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

Unified Diff: ui/android/java/src/org/chromium/ui/OverscrollRefreshHandler.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
« no previous file with comments | « ui/android/BUILD.gn ('k') | ui/android/overscroll_refresh.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/OverscrollRefreshHandler.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/OverscrollRefreshHandler.java b/ui/android/java/src/org/chromium/ui/OverscrollRefreshHandler.java
similarity index 87%
rename from content/public/android/java/src/org/chromium/content/browser/OverscrollRefreshHandler.java
rename to ui/android/java/src/org/chromium/ui/OverscrollRefreshHandler.java
index 8717b8384fe5ee05835cea8ff01d438a89c7dc8c..85b45d110bd38711dec2238899624b6b8589157e 100644
--- a/content/public/android/java/src/org/chromium/content/browser/OverscrollRefreshHandler.java
+++ b/ui/android/java/src/org/chromium/ui/OverscrollRefreshHandler.java
@@ -2,7 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-package org.chromium.content.browser;
+package org.chromium.ui;
+
+import org.chromium.base.annotations.CalledByNative;
/**
* Simple interface allowing customized response to an overscrolling pull input.
@@ -12,23 +14,27 @@ public interface OverscrollRefreshHandler {
* Signals the start of an overscrolling pull.
* @return Whether the handler will consume the overscroll sequence.
*/
+ @CalledByNative
public boolean start();
/**
* Signals a pull update.
* @param delta The change in pull distance (positive if pulling down, negative if up).
*/
+ @CalledByNative
public void pull(float delta);
/**
* Signals the release of the pull.
* @param allowRefresh Whether the release signal should be allowed to trigger a refresh.
*/
+ @CalledByNative
public void release(boolean allowRefresh);
/**
* Reset the active pull state.
*/
+ @CalledByNative
public void reset();
/**
« no previous file with comments | « ui/android/BUILD.gn ('k') | ui/android/overscroll_refresh.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698