| OLD | NEW |
| 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" |
| 11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
| 12 #include "ui/gfx/vector2d_f.h" | 12 #include "ui/gfx/geometry/vector2d_f.h" |
| 13 | 13 |
| 14 namespace cc { | 14 namespace cc { |
| 15 | 15 |
| 16 class CC_EXPORT ScrollbarAnimationControllerClient { | 16 class CC_EXPORT ScrollbarAnimationControllerClient { |
| 17 public: | 17 public: |
| 18 virtual ~ScrollbarAnimationControllerClient() {} | 18 virtual ~ScrollbarAnimationControllerClient() {} |
| 19 | 19 |
| 20 virtual void PostDelayedScrollbarFade(const base::Closure& start_fade, | 20 virtual void PostDelayedScrollbarFade(const base::Closure& start_fade, |
| 21 base::TimeDelta delay) = 0; | 21 base::TimeDelta delay) = 0; |
| 22 virtual void SetNeedsScrollbarAnimationFrame() = 0; | 22 virtual void SetNeedsScrollbarAnimationFrame() = 0; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 bool currently_scrolling_; | 65 bool currently_scrolling_; |
| 66 bool scroll_gesture_has_scrolled_; | 66 bool scroll_gesture_has_scrolled_; |
| 67 base::CancelableClosure delayed_scrollbar_fade_; | 67 base::CancelableClosure delayed_scrollbar_fade_; |
| 68 | 68 |
| 69 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_; | 69 base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace cc | 72 } // namespace cc |
| 73 | 73 |
| 74 #endif // CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_H_ | 74 #endif // CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_H_ |
| OLD | NEW |