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

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

Issue 414423002: Removing ContentViewCore dependencies from few functions which acts as direct wrapper to WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 7003298561674d403df8173e13fc2b4c2f0fab0d..560e5f030584587eb1fb13f12d443dfd51de6516 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
@@ -106,4 +106,60 @@ public interface WebContents {
*/
public void selectWordAroundCaret();
+ /**
+ * Get the URL of the current page.
+ *
+ * @return The URL of the current page.
+ */
+ public String getUrl();
+
+ /**
+ * Get the InCognito state of WebContents.
+ *
+ * @return whether this WebContents is in InCognito mode or not
+ */
+ public boolean isIncognito();
+
+ /**
+ * Resets the Gesture detection for the WebContens.
+ */
+ public void resetGestureDetection();
+
+ /**
+ * Sets/Reset the Multi Touch Zoom support flag in underlying RenderWidgetHost.
+ */
+ public void updateMultiTouchZoomSupport(boolean supportsMultiTouchZoom);
+
+ /**
+ * Set/Reset the Double Tap support flag in underlying RenderWidgetHost.
+ */
+ public void updateDoubleTapSupport(boolean supportsDoubleTap);
+
+ /**
+ * Select the Popup menu items based on indices.
+ * @param indices Whether array of indices which needs to be selected.
+ */
+ public void selectPopupMenuItems(int[] indices);
+
+ /**
+ * Hides insertion handles as well as text selection handles.
+ */
+ public void hideTextHandles();
+
+ /**
+ * Set the WebContents background to opaque with opaque value.
+ * @param opaque value of opaque need to be applied.
+ */
+ public void setBackgroundOpaque(boolean opaque);
+
+ /**
+ * Resumes the response which is deferred during start.
+ */
+ public void resumeResponseDeferredAtStart();
+
+ /**
+ * Set pending Navigation for transition testing on this WebContents.
+ */
+ public void setHasPendingNavigationTransitionForTesting();
+
}

Powered by Google App Engine
This is Rietveld 408576698