Code example for WebChromeClient

Methods: onJsPrompt

0
				r.confirm("CALABASH_ERROR");
				scriptFuture.complete();
				return true; 
			} else { 
				// TODO I'm not what this case does... 
				return mWebChromeClient.onJsPrompt(view, url, message,
						defaultValue, r);
			} 
		} 
	} 
 
	public WebView getWebView() {
		return webView;
	} 
 
	public static CalabashChromeClient prepareWebView(WebView webView) {
		CalabashChromeClient calabashChromeClient = new CalabashChromeClient(
				webView);
		webView.getSettings().setJavaScriptEnabled(true);
		return calabashChromeClient;
	}