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

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

Issue 2422353002: Iframe/div MD scrollbars get idle when mouse leaves the nested elements. (Closed)
Patch Set: Unittest passes asan build bot. Created 4 years, 1 month 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 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 19 matching lines...) Expand all
30 ~ScrollbarAnimationControllerThinning() override; 30 ~ScrollbarAnimationControllerThinning() override;
31 31
32 void set_mouse_move_distance_for_test(float distance) { 32 void set_mouse_move_distance_for_test(float distance) {
33 mouse_move_distance_to_trigger_animation_ = distance; 33 mouse_move_distance_to_trigger_animation_ = distance;
34 } 34 }
35 bool mouse_is_over_scrollbar() const { return mouse_is_over_scrollbar_; } 35 bool mouse_is_over_scrollbar() const { return mouse_is_over_scrollbar_; }
36 bool mouse_is_near_scrollbar() const { return mouse_is_near_scrollbar_; } 36 bool mouse_is_near_scrollbar() const { return mouse_is_near_scrollbar_; }
37 37
38 void DidScrollUpdate(bool on_resize) override; 38 void DidScrollUpdate(bool on_resize) override;
39 39
40 void DidCaptureScrollbarBegin() override; 40 void DidMouseDown() override;
41 void DidCaptureScrollbarEnd() override; 41 void DidMouseUp() override;
42 void DidMouseMoveOffScrollbar() override; 42 void DidMouseLeave() override;
43 void DidMouseMoveNear(float distance) override; 43 void DidMouseMoveNear(float distance) override;
44 44
45 protected: 45 protected:
46 ScrollbarAnimationControllerThinning( 46 ScrollbarAnimationControllerThinning(
47 int scroll_layer_id, 47 int scroll_layer_id,
48 ScrollbarAnimationControllerClient* client, 48 ScrollbarAnimationControllerClient* client,
49 base::TimeDelta delay_before_starting, 49 base::TimeDelta delay_before_starting,
50 base::TimeDelta resize_delay_before_starting, 50 base::TimeDelta resize_delay_before_starting,
51 base::TimeDelta fade_duration, 51 base::TimeDelta fade_duration,
52 base::TimeDelta thinning_duration); 52 base::TimeDelta thinning_duration);
(...skipping 30 matching lines...) Expand all
83 base::TimeDelta thinning_duration_; 83 base::TimeDelta thinning_duration_;
84 84
85 AnimatingProperty current_animating_property_; 85 AnimatingProperty current_animating_property_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerThinning); 87 DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerThinning);
88 }; 88 };
89 89
90 } // namespace cc 90 } // namespace cc
91 91
92 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_ 92 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_THINNING_H_
OLDNEW
« no previous file with comments | « cc/input/scrollbar_animation_controller.h ('k') | cc/input/scrollbar_animation_controller_thinning.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698