| 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();
|
|
|
| /**
|
|
|