Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1950)

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java

Issue 381593002: Removing ContentView dependencies for few functions which acts as WebContents wrapper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7003298561674d403df8173e13fc2b4c2f0fab0d 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,78 @@ 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();
+
+ /**
+ * Get the Background color from underlying RenderWidgetHost for this WebContent.
+ */
+ public int getBackgroundColor();
+
+ /**
+ * 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();
+
+ /**
+ * Brings the Editable to the visible area while IME is up to make easier for inputing text.
+ */
+ 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();
+
}
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698