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

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

Issue 2671623002: Expose WindowAndroid from WebContents. (Closed)
Patch Set: Rebase Created 3 years, 10 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 22d5e911de6f140d120ae69d2c02c1a4436bafd2..48e7450d52b41a346e4d4501954715933b850662 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
@@ -11,6 +11,7 @@ import android.os.Parcelable;
import org.chromium.base.VisibleForTesting;
import org.chromium.ui.OverscrollRefreshHandler;
+import org.chromium.ui.base.WindowAndroid;
/**
* The WebContents Java wrapper to allow communicating with the native WebContents object.
@@ -38,6 +39,11 @@ import org.chromium.ui.OverscrollRefreshHandler;
*/
public interface WebContents extends Parcelable {
/**
+ * @return The top level WindowAndroid associated with this WebContents. This can be null.
+ */
+ WindowAndroid getTopLevelNativeWindow();
+
+ /**
* Deletes the Web Contents object.
*/
void destroy();
« 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