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

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

Issue 478023002: OverscrollController consumes scroll updates only during gesture-nav. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test. 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.h
diff --git a/content/browser/renderer_host/overscroll_controller.h b/content/browser/renderer_host/overscroll_controller.h
index 5577ce97f3d5893fc1076e87efcbdafaad3139c2..a6287efd3bd75571c49dba54c50076783e2d8488 100644
--- a/content/browser/renderer_host/overscroll_controller.h
+++ b/content/browser/renderer_host/overscroll_controller.h
@@ -91,8 +91,9 @@ class OverscrollController {
// Processes horizontal overscroll. This can update both the overscroll mode
// and the over scroll amount (i.e. |overscroll_mode_|, |overscroll_delta_x_|
- // and |overscroll_delta_y_|).
- void ProcessOverscroll(float delta_x,
+ // and |overscroll_delta_y_|). Returns true if overscroll was handled by the
+ // delegate.
+ bool ProcessOverscroll(float delta_x,
float delta_y,
blink::WebInputEvent::Type event_type);

Powered by Google App Engine
This is Rietveld 408576698