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

Side by Side Diff: cc/input/scrollbar_animation_controller.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
« no previous file with comments | « no previous file | cc/input/scrollbar_animation_controller_thinning.h » ('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 23 matching lines...) Expand all
34 // specialized implementation. 34 // specialized implementation.
35 class CC_EXPORT ScrollbarAnimationController { 35 class CC_EXPORT ScrollbarAnimationController {
36 public: 36 public:
37 virtual ~ScrollbarAnimationController(); 37 virtual ~ScrollbarAnimationController();
38 38
39 bool Animate(base::TimeTicks now); 39 bool Animate(base::TimeTicks now);
40 40
41 virtual void DidScrollBegin(); 41 virtual void DidScrollBegin();
42 virtual void DidScrollUpdate(bool on_resize); 42 virtual void DidScrollUpdate(bool on_resize);
43 virtual void DidScrollEnd(); 43 virtual void DidScrollEnd();
44 virtual void DidCaptureScrollbarBegin() {} 44 virtual void DidMouseDown() {}
45 virtual void DidCaptureScrollbarEnd() {} 45 virtual void DidMouseUp() {}
46 virtual void DidMouseMoveOffScrollbar() {} 46 virtual void DidMouseLeave() {}
47 virtual void DidMouseMoveNear(float distance) {} 47 virtual void DidMouseMoveNear(float distance) {}
48 48
49 protected: 49 protected:
50 ScrollbarAnimationController(int scroll_layer_id, 50 ScrollbarAnimationController(int scroll_layer_id,
51 ScrollbarAnimationControllerClient* client, 51 ScrollbarAnimationControllerClient* client,
52 base::TimeDelta delay_before_starting, 52 base::TimeDelta delay_before_starting,
53 base::TimeDelta resize_delay_before_starting); 53 base::TimeDelta resize_delay_before_starting);
54 54
55 virtual void RunAnimationFrame(float progress) = 0; 55 virtual void RunAnimationFrame(float progress) = 0;
56 virtual const base::TimeDelta& Duration() = 0; 56 virtual const base::TimeDelta& Duration() = 0;
(...skipping 21 matching lines...) Expand all
78 bool currently_scrolling_; 78 bool currently_scrolling_;
79 bool scroll_gesture_has_scrolled_; 79 bool scroll_gesture_has_scrolled_;
80 base::CancelableClosure delayed_scrollbar_fade_; 80 base::CancelableClosure delayed_scrollbar_fade_;
81 81
82 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_; 82 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_;
83 }; 83 };
84 84
85 } // namespace cc 85 } // namespace cc
86 86
87 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ 87 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/input/scrollbar_animation_controller_thinning.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698