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

Side by Side Diff: cc/input/scrollbar_animation_controller.h

Issue 2611013002: Show Overlay Scrollbar when GestureScrollUpdate (Closed)
Patch Set: bokan comments 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ 5 #ifndef CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_
6 #define CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ 6 #define CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 base::TimeDelta fade_out_resize_delay, 58 base::TimeDelta fade_out_resize_delay,
59 base::TimeDelta fade_out_duration, 59 base::TimeDelta fade_out_duration,
60 base::TimeDelta thinning_duration); 60 base::TimeDelta thinning_duration);
61 61
62 ~ScrollbarAnimationController(); 62 ~ScrollbarAnimationController();
63 63
64 bool ScrollbarsHidden() const; 64 bool ScrollbarsHidden() const;
65 65
66 bool Animate(base::TimeTicks now); 66 bool Animate(base::TimeTicks now);
67 67
68 void WillUpdateScroll();
69 void DidResize();
68 void DidScrollBegin(); 70 void DidScrollBegin();
69 void DidScrollUpdate(bool on_resize);
70 void DidScrollEnd(); 71 void DidScrollEnd();
71 72
72 void DidMouseDown(); 73 void DidMouseDown();
73 void DidMouseUp(); 74 void DidMouseUp();
74 void DidMouseLeave(); 75 void DidMouseLeave();
75 void DidMouseMoveNear(ScrollbarOrientation, float); 76 void DidMouseMoveNear(ScrollbarOrientation, float);
76 77
77 bool mouse_is_over_scrollbar(ScrollbarOrientation orientation) const; 78 bool mouse_is_over_scrollbar(ScrollbarOrientation orientation) const;
78 bool mouse_is_near_scrollbar(ScrollbarOrientation orientation) const; 79 bool mouse_is_near_scrollbar(ScrollbarOrientation orientation) const;
79 bool mouse_is_near_any_scrollbar() const; 80 bool mouse_is_near_any_scrollbar() const;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 vertical_controller_; 147 vertical_controller_;
147 std::unique_ptr<SingleScrollbarAnimationControllerThinning> 148 std::unique_ptr<SingleScrollbarAnimationControllerThinning>
148 horizontal_controller_; 149 horizontal_controller_;
149 150
150 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_; 151 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_;
151 }; 152 };
152 153
153 } // namespace cc 154 } // namespace cc
154 155
155 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ 156 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/input/scrollbar_animation_controller.cc » ('j') | cc/trees/layer_tree_host_impl_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698