| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_TEST_TEST_HOOKS_H_ | 5 #ifndef CC_TEST_TEST_HOOKS_H_ |
| 6 #define CC_TEST_TEST_HOOKS_H_ | 6 #define CC_TEST_TEST_HOOKS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/animation/animation_delegate.h" | 9 #include "cc/animation/animation_delegate.h" |
| 10 #include "cc/trees/layer_tree_host.h" | 10 #include "cc/trees/layer_tree_host.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 virtual void ReceivedRequestNewOutputSurface() {} | 122 virtual void ReceivedRequestNewOutputSurface() {} |
| 123 virtual void ReceivedDidInitializeOutputSurface( | 123 virtual void ReceivedDidInitializeOutputSurface( |
| 124 bool success, | 124 bool success, |
| 125 const RendererCapabilities& capabilities) {} | 125 const RendererCapabilities& capabilities) {} |
| 126 virtual void ReceivedDidCompletePageScaleAnimation() {} | 126 virtual void ReceivedDidCompletePageScaleAnimation() {} |
| 127 virtual void ReceivedPostFrameTimingEventsOnMain() {} | 127 virtual void ReceivedPostFrameTimingEventsOnMain() {} |
| 128 virtual void ReceivedBeginMainFrame() {} | 128 virtual void ReceivedBeginMainFrame() {} |
| 129 | 129 |
| 130 // Implementation of AnimationDelegate: | 130 // Implementation of AnimationDelegate: |
| 131 void NotifyAnimationStarted(base::TimeTicks monotonic_time, | 131 void NotifyAnimationStarted(base::TimeTicks monotonic_time, |
| 132 Animation::TargetProperty target_property, | 132 AnimationTargetProperty target_property, |
| 133 int group) override {} | 133 int group) override {} |
| 134 void NotifyAnimationFinished(base::TimeTicks monotonic_time, | 134 void NotifyAnimationFinished(base::TimeTicks monotonic_time, |
| 135 Animation::TargetProperty target_property, | 135 AnimationTargetProperty target_property, |
| 136 int group) override {} | 136 int group) override {} |
| 137 void NotifyAnimationAborted(base::TimeTicks monotonic_time, | 137 void NotifyAnimationAborted(base::TimeTicks monotonic_time, |
| 138 Animation::TargetProperty target_property, | 138 AnimationTargetProperty target_property, |
| 139 int group) override {} | 139 int group) override {} |
| 140 | 140 |
| 141 virtual void RequestNewOutputSurface() = 0; | 141 virtual void RequestNewOutputSurface() = 0; |
| 142 | 142 |
| 143 // Used to notify the test to create the Remote client LayerTreeHost on | 143 // Used to notify the test to create the Remote client LayerTreeHost on |
| 144 // receiving a CompositorMessageToImpl of type INITIALIZE_IMPL. | 144 // receiving a CompositorMessageToImpl of type INITIALIZE_IMPL. |
| 145 virtual void CreateRemoteClientHost( | 145 virtual void CreateRemoteClientHost( |
| 146 const proto::CompositorMessageToImpl& proto) {} | 146 const proto::CompositorMessageToImpl& proto) {} |
| 147 | 147 |
| 148 // Used to notify the test to destroy the Remote client LayerTreeHost on | 148 // Used to notify the test to destroy the Remote client LayerTreeHost on |
| 149 // receiving a CompositorMessageToImpl of type CLOSE_IMPL. | 149 // receiving a CompositorMessageToImpl of type CLOSE_IMPL. |
| 150 virtual void DestroyRemoteClientHost() {} | 150 virtual void DestroyRemoteClientHost() {} |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 } // namespace cc | 153 } // namespace cc |
| 154 | 154 |
| 155 #endif // CC_TEST_TEST_HOOKS_H_ | 155 #endif // CC_TEST_TEST_HOOKS_H_ |
| OLD | NEW |