1 // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 package org.xwalk.core.internal;
7 import android.view.KeyEvent;
9 import org.chromium.base.CalledByNative;
10 import org.chromium.base.JNINamespace;
11 import org.chromium.components.web_contents_delegate_android.WebContentsDelegateAndroid;
13 @JNINamespace("xwalk")
14 abstract class XWalkWebContentsDelegate extends WebContentsDelegateAndroid {
16 public abstract boolean shouldOpenWithDefaultBrowser(String contentUrl);
19 public abstract boolean addNewContents(boolean isDialog, boolean isUserGesture);
22 public abstract void closeContents();
25 public abstract void activateContents();
28 public abstract void rendererUnresponsive();
31 public abstract void rendererResponsive();
34 public abstract void handleKeyboardEvent(KeyEvent event);
37 public abstract boolean shouldOverrideRunFileChooser(
38 int processId, int renderId, int mode,
39 String acceptTypes, boolean capture);
42 public void updatePreferredSize(int widthCss, int heightCss) {
46 public void toggleFullscreen(boolean enterFullscreen) {
50 public boolean isFullscreen() {