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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.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/browser/webcontents/WebContentsImpl.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
index 2803d37f91dad0afd556110c621b488b1f9babc3..cc33b2dac09e8da12217a110430cce8147bc3c13 100644
--- a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
+++ b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
@@ -28,6 +28,7 @@ import org.chromium.content_public.browser.MessagePortService;
import org.chromium.content_public.browser.NavigationController;
import org.chromium.content_public.browser.WebContents;
import org.chromium.content_public.browser.WebContentsObserver;
+import org.chromium.ui.OverscrollRefreshHandler;
import org.chromium.ui.accessibility.AXTextStyle;
import java.util.ArrayList;
@@ -421,8 +422,13 @@ import java.util.UUID;
}
@Override
- public void getContentBitmapAsync(Bitmap.Config config, float scale, Rect srcRect,
- ContentBitmapCallback callback) {
+ public void setOverscrollRefreshHandler(OverscrollRefreshHandler handler) {
+ nativeSetOverscrollRefreshHandler(mNativeWebContentsAndroid, handler);
+ }
+
+ @Override
+ public void getContentBitmapAsync(
+ Bitmap.Config config, float scale, Rect srcRect, ContentBitmapCallback callback) {
nativeGetContentBitmap(mNativeWebContentsAndroid, callback, config, scale,
srcRect.left, srcRect.top, srcRect.width(), srcRect.height());
}
@@ -533,6 +539,8 @@ import java.util.UUID;
private native int nativeGetThemeColor(long nativeWebContentsAndroid);
private native void nativeRequestAccessibilitySnapshot(
long nativeWebContentsAndroid, AccessibilitySnapshotCallback callback);
+ private native void nativeSetOverscrollRefreshHandler(
+ long nativeWebContentsAndroid, OverscrollRefreshHandler nativeOverscrollRefreshHandler);
private native void nativeGetContentBitmap(long nativeWebContentsAndroid,
ContentBitmapCallback callback, Bitmap.Config config, float scale,
float x, float y, float width, float height);

Powered by Google App Engine
This is Rietveld 408576698