Index: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java |
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java |
index 402954f97218afbff872bb161b7d4608c7b3a3bc..4151d0a59d70566e662c41b4d843768bd2773d0e 100644 |
--- a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java |
+++ b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java |
@@ -32,4 +32,93 @@ public interface WebContents { |
* Inserts css into main frame's document. |
*/ |
void insertCSS(String css); |
+ |
+ /** |
+ * To be called when the ContentView is hidden. |
+ */ |
+ public void onHide(); |
+ |
+ /** |
+ * To be called when the ContentView is shown. |
+ */ |
+ public void onShow(); |
+ |
+ public int getBackgroundColor(); |
Yaron
2014/07/15 21:23:48
Please add javadoc for new functions here.
AKVT
2014/07/16 09:53:47
Done.
|
+ |
+ /** |
+ * Requests the renderer insert a link to the specified stylesheet in the |
+ * main frame's document. |
+ */ |
+ void addStyleSheetByURL(String url); |
+ |
+ /** |
+ * Shows an interstitial page driven by the passed in delegate. |
+ * |
+ * @param url The URL being blocked by the interstitial. |
+ * @param delegate The delegate handling the interstitial. |
+ */ |
+ public void showInterstitialPage( |
+ String url, long interstitialPageDelegateAndroid); |
+ |
+ /** |
+ * @return Whether the page is currently showing an interstitial, such as a bad HTTPS page. |
+ */ |
+ public boolean isShowingInterstitialPage(); |
+ |
+ /** |
+ * If the view is ready to draw contents to the screen. In hardware mode, |
+ * the initialization of the surface texture may not occur until after the |
+ * view has been added to the layout. This method will return {@code true} |
+ * once the texture is actually ready. |
+ */ |
+ public boolean isReady(); |
+ |
+ /** |
+ * Inform WebKit that Fullscreen mode has been exited by the user. |
+ */ |
+ public void exitFullscreen(); |
+ |
+ /** |
+ * Changes whether hiding the top controls is enabled. |
+ * |
+ * @param enableHiding Whether hiding the top controls should be enabled or not. |
+ * @param enableShowing Whether showing the top controls should be enabled or not. |
+ * @param animate Whether the transition should be animated or not. |
+ */ |
+ public void updateTopControlsState(boolean enableHiding, boolean enableShowing, |
+ boolean animate); |
+ |
+ /** |
+ * Shows the IME if the focused widget could accept text input. |
+ */ |
+ public void showImeIfNeeded(); |
+ |
+ public void scrollFocusedEditableNodeIntoView(); |
+ |
+ /** |
+ * Selects the word around the caret, if any. |
+ * The caller can check if selection actually occurred by listening to OnSelectionChanged. |
+ */ |
+ public void selectWordAroundCaret(); |
+ |
+ /** |
+ * @return The original request URL for the current navigation entry, or null if there is no |
+ * current entry. |
+ */ |
+ public String getOriginalUrlForActiveNavigationEntry(); |
+ |
+ public long getNativeImeAdapter(); |
+ |
+ public boolean getUseDesktopUserAgent(); |
+ |
+ public void clearSslPreferences(); |
+ |
+ /** |
+ * Set whether or not we're using a desktop user agent for the currently loaded page. |
+ * @param override If true, use a desktop user agent. Use a mobile one otherwise. |
+ * @param reloadOnChange Reload the page if the UA has changed. |
+ */ |
+ public void setUseDesktopUserAgent(boolean override, boolean reloadOnChange); |
+ |
+ public void extractSmartClipData(int x, int y, int width, int height); |
} |