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

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

Issue 2358323003: Keep expanded if mouse moves off of scrollbar while dragging (Closed)
Patch Set: style Created 4 years, 2 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 | « cc/input/input_handler.h ('k') | 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() {}
45 virtual void DidCaptureScrollbarEnd() {}
44 virtual void DidMouseMoveOffScrollbar() {} 46 virtual void DidMouseMoveOffScrollbar() {}
45 virtual void DidMouseMoveNear(float distance) {} 47 virtual void DidMouseMoveNear(float distance) {}
46 48
47 protected: 49 protected:
48 ScrollbarAnimationController(int scroll_layer_id, 50 ScrollbarAnimationController(int scroll_layer_id,
49 ScrollbarAnimationControllerClient* client, 51 ScrollbarAnimationControllerClient* client,
50 base::TimeDelta delay_before_starting, 52 base::TimeDelta delay_before_starting,
51 base::TimeDelta resize_delay_before_starting, 53 base::TimeDelta resize_delay_before_starting,
52 base::TimeDelta duration); 54 base::TimeDelta duration);
53 55
(...skipping 23 matching lines...) Expand all
77 bool currently_scrolling_; 79 bool currently_scrolling_;
78 bool scroll_gesture_has_scrolled_; 80 bool scroll_gesture_has_scrolled_;
79 base::CancelableClosure delayed_scrollbar_fade_; 81 base::CancelableClosure delayed_scrollbar_fade_;
80 82
81 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_; 83 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_;
82 }; 84 };
83 85
84 } // namespace cc 86 } // namespace cc
85 87
86 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_ 88 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/input/scrollbar_animation_controller_thinning.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698