Code example for WebChromeClient

Methods: onCreateWindow

0
            mClient.onProgressChanged(view, newProgress);
        } 
        @Override 
        public boolean onCreateWindow(WebView view, boolean dialog,
                boolean userGesture, android.os.Message resultMsg) {
            return mClient.onCreateWindow(view, dialog, userGesture, resultMsg);
        } 
        @Override 
        public void onCloseWindow(WebView window) {
            if (Browser.DEBUG && window != mTab.mSubView) {
                throw new AssertionError("Can't close the window");
            } 
            mActivity.dismissSubWindow(mTab);
        } 
    } 
    // Background WebChromeClient for focusing tabs 
    private class BackgroundChromeClient extends WebChromeClient {
        @Override 
        public void onRequestFocus(WebView view) {
            Tab t = getTabFromView(view);
            if (t != getCurrentTab()) {