Code example for WebChromeClient

Methods: onCreateWindow

0
 
    /** {@inheritDoc} */ 
    @Override 
    public boolean onCreateWindow(WebView view, boolean dialog,
            boolean userGesture, Message resultMsg) {
        // do not open any new pop-ups 
        resultMsg.sendToTarget();
        return true; 
    } 
 
    /** {@inheritDoc} */ 
    @Override 
    public void onRequestFocus(WebView view) {
        mWrappedClient.onRequestFocus(view);
    } 
 
    /** {@inheritDoc} */ 
    @Override 
    public void onCloseWindow(WebView window) {
        mWrappedClient.onCloseWindow(window);
    }