| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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_TEST_LAYER_INTERNALS_FOR_TEST_H_ | |
| 6 #define CC_TEST_LAYER_INTERNALS_FOR_TEST_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "cc/layers/layer.h" | |
| 10 | |
| 11 namespace cc { | |
| 12 | |
| 13 // Utility class to give tests access to Layer private methods. | |
| 14 class LayerInternalsForTest { | |
| 15 public: | |
| 16 explicit LayerInternalsForTest(Layer* layer); | |
| 17 | |
| 18 void OnOpacityAnimated(float opacity); | |
| 19 void OnTransformAnimated(const gfx::Transform& transform); | |
| 20 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | |
| 21 | |
| 22 private: | |
| 23 Layer* layer_; | |
| 24 }; | |
| 25 | |
| 26 } // namespace cc | |
| 27 | |
| 28 #endif // CC_TEST_LAYER_INTERNALS_FOR_TEST_H_ | |
| OLD | NEW |