Upstream version 5.34.92.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / android / java / src / org / xwalk / core / XWalkWebContentsDelegate.java
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.
4
5 package org.xwalk.core;
6
7 import org.chromium.base.CalledByNative;
8 import org.chromium.base.JNINamespace;
9 import org.chromium.components.web_contents_delegate_android.WebContentsDelegateAndroid;
10
11 @JNINamespace("xwalk")
12 public abstract class XWalkWebContentsDelegate extends WebContentsDelegateAndroid {
13     @CalledByNative
14     public abstract boolean addNewContents(boolean isDialog, boolean isUserGesture);
15
16     @CalledByNative
17     public abstract void closeContents();
18
19     @CalledByNative
20     public abstract void activateContents();
21
22     @CalledByNative
23     public abstract void rendererUnresponsive();
24
25     @CalledByNative
26     public abstract void rendererResponsive();
27
28     @CalledByNative
29     public void updatePreferredSize(int widthCss, int heightCss) {
30     }
31
32     @CalledByNative
33     public void toggleFullscreen(boolean enterFullscreen) {
34     }
35
36     @CalledByNative
37     public boolean isFullscreen() {
38         return false;
39     }
40 }