OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 UI_COMPOSITOR_TEST_LAYER_ANIMATION_OBSERVER_TEST_API_H_ |
| 6 #define UI_COMPOSITOR_TEST_LAYER_ANIMATION_OBSERVER_TEST_API_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "ui/compositor/layer_animation_observer.h" |
| 10 |
| 11 namespace ui { |
| 12 namespace test { |
| 13 |
| 14 // Test API to provide internal access to the LayerAnimationObserver class. |
| 15 class LayerAnimationObserverTestApi { |
| 16 public: |
| 17 explicit LayerAnimationObserverTestApi(LayerAnimationObserver* observer); |
| 18 |
| 19 // Wrappers for LayerAnimationObserver. |
| 20 void AttachedToSequence(LayerAnimationSequence* sequence); |
| 21 void DetachedFromSequence(LayerAnimationSequence* sequence, |
| 22 bool send_notification); |
| 23 |
| 24 private: |
| 25 // The instance to provide internal access to. |
| 26 LayerAnimationObserver* observer_; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(LayerAnimationObserverTestApi); |
| 29 }; |
| 30 |
| 31 } // namespace test |
| 32 } // namespace ui |
| 33 |
| 34 #endif // UI_COMPOSITOR_TEST_LAYER_ANIMATION_OBSERVER_TEST_API_H_ |
OLD | NEW |