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

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

Issue 2931703002: Don't fade in overlay scrollbar when user interacting the content under scrollbar. (Closed)
Patch Set: bokan comments addressed Created 3 years, 6 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
« no previous file with comments | « no previous file | cc/input/scrollbar_animation_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 bool currently_scrolling_; 147 bool currently_scrolling_;
148 bool show_in_fast_scroll_; 148 bool show_in_fast_scroll_;
149 149
150 base::CancelableClosure delayed_scrollbar_animation_; 150 base::CancelableClosure delayed_scrollbar_animation_;
151 151
152 float opacity_; 152 float opacity_;
153 153
154 const bool show_scrollbars_on_scroll_gesture_; 154 const bool show_scrollbars_on_scroll_gesture_;
155 const bool need_thinning_animation_; 155 const bool need_thinning_animation_;
156 156
157 bool is_mouse_down_;
158
157 std::unique_ptr<SingleScrollbarAnimationControllerThinning> 159 std::unique_ptr<SingleScrollbarAnimationControllerThinning>
158 vertical_controller_; 160 vertical_controller_;
159 std::unique_ptr<SingleScrollbarAnimationControllerThinning> 161 std::unique_ptr<SingleScrollbarAnimationControllerThinning>
160 horizontal_controller_; 162 horizontal_controller_;
161 163
162 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_; 164 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_;
163 }; 165 };
164 166
165 } // namespace cc 167 } // namespace cc
166 168
167 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ 169 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_
OLDNEW
« 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