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

Unified Diff: ui/android/overscroll_refresh.h

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/java/src/org/chromium/ui/OverscrollRefreshHandler.java ('k') | ui/android/overscroll_refresh.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/overscroll_refresh.h
diff --git a/ui/android/overscroll_refresh.h b/ui/android/overscroll_refresh.h
index 451805ed7c02c3d58b5a20ad3b7bdcab20887c5a..7cb98e272ce711c843103d3b2ffa62d33b9296b5 100644
--- a/ui/android/overscroll_refresh.h
+++ b/ui/android/overscroll_refresh.h
@@ -12,26 +12,7 @@
namespace ui {
-class UI_ANDROID_EXPORT OverscrollRefreshHandler {
- public:
- // Signals the start of an overscrolling pull. Returns whether the handler
- // will consume the overscroll gesture, in which case it will receive the
- // remaining pull updates.
- virtual bool PullStart() = 0;
-
- // Signals a pull update, where |delta| is in device pixels.
- virtual void PullUpdate(float delta) = 0;
-
- // Signals the release of the pull, and whether the release is allowed to
- // trigger the refresh action.
- virtual void PullRelease(bool allow_refresh) = 0;
-
- // Reset the active pull state.
- virtual void PullReset() = 0;
-
- protected:
- virtual ~OverscrollRefreshHandler() {}
-};
+class OverscrollRefreshHandler;
// Simple pull-to-refresh styled effect. Listens to scroll events, conditionally
// activating when:
@@ -99,6 +80,6 @@ class UI_ANDROID_EXPORT OverscrollRefresh {
DISALLOW_COPY_AND_ASSIGN(OverscrollRefresh);
};
-} // namespace content
+} // namespace ui
#endif // UI_ANDROID_OVERSCROLL_REFRESH_H_
« no previous file with comments | « ui/android/java/src/org/chromium/ui/OverscrollRefreshHandler.java ('k') | ui/android/overscroll_refresh.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698