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

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

Issue 2528823002: Separate SwipeRefreshHandler and ContentViewCore (Closed)
Patch Set: tedchoc's requested changes Created 4 years 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 e5ba490ec4b7db95adbfaede5dda40c598888edc..f263f059d1be0f7349ca2691178ebdb4c3f4797e 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
@@ -9,6 +9,7 @@ import android.graphics.Rect;
import android.os.Parcelable;
import org.chromium.base.VisibleForTesting;
+import org.chromium.ui.OverscrollRefreshHandler;
/**
* The WebContents Java wrapper to allow communicating with the native WebContents object.
@@ -318,6 +319,13 @@ public interface WebContents extends Parcelable {
*/
void removeObserver(WebContentsObserver observer);
+ /**
+ * Sets a handler to handle swipe to refresh events.
+ *
+ * @param handler The handler to install.
+ */
+ void setOverscrollRefreshHandler(OverscrollRefreshHandler handler);
+
public void getContentBitmapAsync(Bitmap.Config config, float scale, Rect srcRect,
ContentBitmapCallback callback);
/**
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java ('k') | ui/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698