Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_CLIENT_H_ | |
| 6 #define CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_CLIENT_H_ | |
| 7 | |
| 8 #include "base/cancelable_callback.h" | |
| 9 #include "base/time/time.h" | |
| 10 #include "cc/base/cc_export.h" | |
| 11 #include "cc/layers/scrollbar_layer_impl_base.h" | |
| 12 | |
| 13 namespace cc { | |
| 14 | |
| 15 class CC_EXPORT ScrollbarAnimationControllerClient { | |
|
bokan
2017/01/25 22:20:54
Why did this have to get split out into a separate
| |
| 16 public: | |
| 17 virtual void PostDelayedScrollbarAnimationTask(const base::Closure& task, | |
| 18 base::TimeDelta delay) = 0; | |
| 19 virtual void SetNeedsRedrawForScrollbarAnimation() = 0; | |
| 20 virtual void SetNeedsAnimateForScrollbarAnimation() = 0; | |
| 21 virtual void DidChangeScrollbarVisibility() = 0; | |
| 22 virtual ScrollbarSet ScrollbarsFor(int scroll_layer_id) const = 0; | |
| 23 | |
| 24 protected: | |
| 25 virtual ~ScrollbarAnimationControllerClient() {} | |
| 26 }; | |
| 27 | |
| 28 } // namespace cc | |
| 29 | |
| 30 #endif // CC_INPUT_SCROLLBAR_ANIMATION_CONTROLLER_CLIENT_H_ | |
| OLD | NEW |