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

Unified Diff: content/browser/renderer_host/overscroll_controller_delegate.h

Issue 478023002: OverscrollController consumes scroll updates only during gesture-nav. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months 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/browser/renderer_host/overscroll_controller_delegate.h
diff --git a/content/browser/renderer_host/overscroll_controller_delegate.h b/content/browser/renderer_host/overscroll_controller_delegate.h
index 59295ce41277247a8ef7896087e2408f5c0f523c..54b5da18857277eb816916d9305b76738b185f44 100644
--- a/content/browser/renderer_host/overscroll_controller_delegate.h
+++ b/content/browser/renderer_host/overscroll_controller_delegate.h
@@ -23,8 +23,9 @@ class OverscrollControllerDelegate {
// events will only be processed if the visible bounds are non-empty.
virtual gfx::Rect GetVisibleBounds() const = 0;
- // This is called for each update in the overscroll amount.
- virtual void OnOverscrollUpdate(float delta_x, float delta_y) = 0;
+ // This is called for each update in the overscroll amount. Returns true if
+ // the delegate consumed the event.
+ virtual bool OnOverscrollUpdate(float delta_x, float delta_y) = 0;
// This is called when the overscroll completes.
virtual void OnOverscrollComplete(OverscrollMode overscroll_mode) = 0;

Powered by Google App Engine
This is Rietveld 408576698