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

Unified Diff: content/browser/web_contents/aura/gesture_nav_simple.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/web_contents/aura/gesture_nav_simple.h
diff --git a/content/browser/web_contents/aura/gesture_nav_simple.h b/content/browser/web_contents/aura/gesture_nav_simple.h
index e8466e5e6e24fe3377cb72b767d8f55826a59d73..69b20df93b2ac59c001c24b5598f36e5beaafe3f 100644
--- a/content/browser/web_contents/aura/gesture_nav_simple.h
+++ b/content/browser/web_contents/aura/gesture_nav_simple.h
@@ -32,11 +32,13 @@ class GestureNavSimple : public OverscrollControllerDelegate {
void ApplyEffectsAndDestroy(const gfx::Transform& transform, float opacity);
void AbortGestureAnimation();
void CompleteGestureAnimation();
- void ApplyEffectsForDelta(float delta_x);
+ // Returns true if the delta was applied.
+ bool ApplyEffectsForDelta(float delta_x);
// OverscrollControllerDelegate:
virtual gfx::Rect GetVisibleBounds() const OVERRIDE;
- virtual void OnOverscrollUpdate(float delta_x, float delta_y) OVERRIDE;
+ // Returns true if the scroll update was consumed.
+ virtual bool OnOverscrollUpdate(float delta_x, float delta_y) OVERRIDE;
virtual void OnOverscrollComplete(OverscrollMode overscroll_mode) OVERRIDE;
virtual void OnOverscrollModeChange(OverscrollMode old_mode,
OverscrollMode new_mode) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698