| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ | 5 #ifndef UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ |
| 6 #define UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ | 6 #define UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "cc/layers/layer.h" | 9 #include "cc/layers/layer.h" |
| 10 #include "ui/compositor/layer_animation_delegate.h" | 10 #include "ui/compositor/layer_animation_delegate.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 ~TestLayerAnimationDelegate() override; | 33 ~TestLayerAnimationDelegate() override; |
| 34 | 34 |
| 35 // Implementation of LayerAnimationDelegate | 35 // Implementation of LayerAnimationDelegate |
| 36 void SetBoundsFromAnimation(const gfx::Rect& bounds) override; | 36 void SetBoundsFromAnimation(const gfx::Rect& bounds) override; |
| 37 void SetTransformFromAnimation(const gfx::Transform& transform) override; | 37 void SetTransformFromAnimation(const gfx::Transform& transform) override; |
| 38 void SetOpacityFromAnimation(float opacity) override; | 38 void SetOpacityFromAnimation(float opacity) override; |
| 39 void SetVisibilityFromAnimation(bool visibility) override; | 39 void SetVisibilityFromAnimation(bool visibility) override; |
| 40 void SetBrightnessFromAnimation(float brightness) override; | 40 void SetBrightnessFromAnimation(float brightness) override; |
| 41 void SetGrayscaleFromAnimation(float grayscale) override; | 41 void SetGrayscaleFromAnimation(float grayscale) override; |
| 42 void SetColorFromAnimation(SkColor color) override; | 42 void SetColorFromAnimation(SkColor color) override; |
| 43 void SetTemperatureFromAnimation(float temperature) override; |
| 43 void ScheduleDrawForAnimation() override; | 44 void ScheduleDrawForAnimation() override; |
| 44 const gfx::Rect& GetBoundsForAnimation() const override; | 45 const gfx::Rect& GetBoundsForAnimation() const override; |
| 45 gfx::Transform GetTransformForAnimation() const override; | 46 gfx::Transform GetTransformForAnimation() const override; |
| 46 float GetOpacityForAnimation() const override; | 47 float GetOpacityForAnimation() const override; |
| 47 bool GetVisibilityForAnimation() const override; | 48 bool GetVisibilityForAnimation() const override; |
| 48 float GetBrightnessForAnimation() const override; | 49 float GetBrightnessForAnimation() const override; |
| 49 float GetGrayscaleForAnimation() const override; | 50 float GetGrayscaleForAnimation() const override; |
| 50 SkColor GetColorForAnimation() const override; | 51 SkColor GetColorForAnimation() const override; |
| 52 float GetTemperatureFromAnimation() const override; |
| 51 float GetDeviceScaleFactor() const override; | 53 float GetDeviceScaleFactor() const override; |
| 52 LayerAnimatorCollection* GetLayerAnimatorCollection() override; | 54 LayerAnimatorCollection* GetLayerAnimatorCollection() override; |
| 53 cc::Layer* GetCcLayer() const override; | 55 cc::Layer* GetCcLayer() const override; |
| 54 LayerThreadedAnimationDelegate* GetThreadedAnimationDelegate() override; | 56 LayerThreadedAnimationDelegate* GetThreadedAnimationDelegate() override; |
| 55 int GetFrameNumber() const override; | 57 int GetFrameNumber() const override; |
| 56 float GetRefreshRate() const override; | 58 float GetRefreshRate() const override; |
| 57 | 59 |
| 58 private: | 60 private: |
| 59 void CreateCcLayer(); | 61 void CreateCcLayer(); |
| 60 | 62 |
| 61 TestLayerThreadedAnimationDelegate threaded_delegate_; | 63 TestLayerThreadedAnimationDelegate threaded_delegate_; |
| 62 | 64 |
| 63 gfx::Rect bounds_; | 65 gfx::Rect bounds_; |
| 64 gfx::Transform transform_; | 66 gfx::Transform transform_; |
| 65 float opacity_; | 67 float opacity_; |
| 66 bool visibility_; | 68 bool visibility_; |
| 67 float brightness_; | 69 float brightness_; |
| 68 float grayscale_; | 70 float grayscale_; |
| 69 SkColor color_; | 71 SkColor color_; |
| 72 float temperature_; |
| 70 scoped_refptr<cc::Layer> cc_layer_; | 73 scoped_refptr<cc::Layer> cc_layer_; |
| 71 | 74 |
| 72 // Allow copy and assign. | 75 // Allow copy and assign. |
| 73 }; | 76 }; |
| 74 | 77 |
| 75 } // namespace ui | 78 } // namespace ui |
| 76 | 79 |
| 77 #endif // UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ | 80 #endif // UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ |
| OLD | NEW |