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

Unified Diff: cc/input/scrollbar_animation_controller.h

Issue 2611013002: Show Overlay Scrollbar when GestureScrollUpdate (Closed)
Patch Set: bokan comment#70 addressed Created 3 years, 9 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
« no previous file with comments | « no previous file | cc/input/scrollbar_animation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/scrollbar_animation_controller.h
diff --git a/cc/input/scrollbar_animation_controller.h b/cc/input/scrollbar_animation_controller.h
index 02f8e97d2cbc049b1691203b47583a481dab10ec..262354386331b306337d8587da29aadff14ffb26 100644
--- a/cc/input/scrollbar_animation_controller.h
+++ b/cc/input/scrollbar_animation_controller.h
@@ -65,8 +65,19 @@ class CC_EXPORT ScrollbarAnimationController {
bool Animate(base::TimeTicks now);
+ // WillUpdateScroll expects to be called even if the scroll position won't
+ // change as a result of the scroll. Only effect Aura Overlay Scrollbar.
+ void WillUpdateScroll();
+
+ // DidScrollUpdate expects to be called only if the scroll position change.
+ // Effect both Android and Aura Overlay Scrollbar.
+ void DidScrollUpdate();
+
+ // DidResize expects to be called when clip layer size changed or scroll layer
+ // size changed.
+ void DidResize();
+
void DidScrollBegin();
- void DidScrollUpdate(bool on_resize);
void DidScrollEnd();
void DidMouseDown();
@@ -143,6 +154,7 @@ class CC_EXPORT ScrollbarAnimationController {
float opacity_;
base::TimeDelta fade_out_duration_;
+ const bool show_scrollbars_on_scroll_gesture_;
const bool need_thinning_animation_;
std::unique_ptr<SingleScrollbarAnimationControllerThinning>
vertical_controller_;
« no previous file with comments | « no previous file | cc/input/scrollbar_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698