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

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

Issue 608223002: [Android]Increase Scrollbar fade delay on Resize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « no previous file | cc/animation/scrollbar_animation_controller.cc » ('j') | cc/layers/layer_impl.h » ('J')
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_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_H_ 5 #ifndef CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_H_
6 #define CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_H_ 6 #define CC_ANIMATION_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 13 matching lines...) Expand all
24 24
25 // This abstract class represents the compositor-side analogy of 25 // This abstract class represents the compositor-side analogy of
26 // ScrollbarAnimator. Individual platforms should subclass it to provide 26 // ScrollbarAnimator. Individual platforms should subclass it to provide
27 // specialized implementation. 27 // specialized implementation.
28 class CC_EXPORT ScrollbarAnimationController { 28 class CC_EXPORT ScrollbarAnimationController {
29 public: 29 public:
30 virtual ~ScrollbarAnimationController(); 30 virtual ~ScrollbarAnimationController();
31 31
32 void Animate(base::TimeTicks now); 32 void Animate(base::TimeTicks now);
33 33
34 void SetDelayOnScrollbarAnimation(base::TimeDelta delay);
aelias_OOO_until_Jul13 2014/09/29 19:33:46 Instead of this, please have a new method "virtual
MuVen 2014/09/30 12:50:26 Done.(passed the second delay in the constructor).
34 virtual void DidScrollBegin(); 35 virtual void DidScrollBegin();
35 virtual void DidScrollUpdate(); 36 virtual void DidScrollUpdate();
36 virtual void DidScrollEnd(); 37 virtual void DidScrollEnd();
37 virtual void DidMouseMoveOffScrollbar() {} 38 virtual void DidMouseMoveOffScrollbar() {}
38 virtual void DidMouseMoveNear(float distance) {} 39 virtual void DidMouseMoveNear(float distance) {}
39 40
40 protected: 41 protected:
41 ScrollbarAnimationController(ScrollbarAnimationControllerClient* client, 42 ScrollbarAnimationController(ScrollbarAnimationControllerClient* client,
42 base::TimeDelta delay_before_starting, 43 base::TimeDelta delay_before_starting,
43 base::TimeDelta duration); 44 base::TimeDelta duration);
(...skipping 19 matching lines...) Expand all
63 bool currently_scrolling_; 64 bool currently_scrolling_;
64 bool scroll_gesture_has_scrolled_; 65 bool scroll_gesture_has_scrolled_;
65 base::CancelableClosure delayed_scrollbar_fade_; 66 base::CancelableClosure delayed_scrollbar_fade_;
66 67
67 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_; 68 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_;
68 }; 69 };
69 70
70 } // namespace cc 71 } // namespace cc
71 72
72 #endif // CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_H_ 73 #endif // CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/animation/scrollbar_animation_controller.cc » ('j') | cc/layers/layer_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698