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

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

Issue 2552813002: Overlay scrollbars shouldn't fade out while mouse is over/near. (Closed)
Patch Set: removed braces Created 4 years 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_thinning.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_THINNING_H_ 5 #ifndef CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_
6 #define CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ 6 #define CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 17 matching lines...) Expand all
28 28
29 ~ScrollbarAnimationControllerThinning() override; 29 ~ScrollbarAnimationControllerThinning() override;
30 30
31 void set_mouse_move_distance_for_test(float distance) { 31 void set_mouse_move_distance_for_test(float distance) {
32 mouse_move_distance_to_trigger_animation_ = distance; 32 mouse_move_distance_to_trigger_animation_ = distance;
33 } 33 }
34 bool mouse_is_over_scrollbar() const { return mouse_is_over_scrollbar_; } 34 bool mouse_is_over_scrollbar() const { return mouse_is_over_scrollbar_; }
35 bool mouse_is_near_scrollbar() const { return mouse_is_near_scrollbar_; } 35 bool mouse_is_near_scrollbar() const { return mouse_is_near_scrollbar_; }
36 36
37 void DidScrollUpdate(bool on_resize) override; 37 void DidScrollUpdate(bool on_resize) override;
38 void DidScrollEnd() override;
38 39
39 void DidMouseDown() override; 40 void DidMouseDown() override;
40 void DidMouseUp() override; 41 void DidMouseUp() override;
41 void DidMouseLeave() override; 42 void DidMouseLeave() override;
42 void DidMouseMoveNear(float distance) override; 43 void DidMouseMoveNear(float distance) override;
43 bool ScrollbarsHidden() const override; 44 bool ScrollbarsHidden() const override;
44 45
45 protected: 46 protected:
46 ScrollbarAnimationControllerThinning( 47 ScrollbarAnimationControllerThinning(
47 int scroll_layer_id, 48 int scroll_layer_id,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 base::TimeDelta thinning_duration_; 84 base::TimeDelta thinning_duration_;
84 85
85 AnimatingProperty current_animating_property_; 86 AnimatingProperty current_animating_property_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerThinning); 88 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerThinning);
88 }; 89 };
89 90
90 } // namespace cc 91 } // namespace cc
91 92
92 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ 93 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_
OLDNEW
« no previous file with comments | « no previous file | cc/input/scrollbar_animation_controller_thinning.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698