| 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_LAYER_ANIMATION_DELEGATE_H_ | 5 #ifndef UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_ |
| 6 #define UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_ | 6 #define UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "third_party/skia/include/core/SkColor.h" | 8 #include "third_party/skia/include/core/SkColor.h" |
| 9 #include "ui/compositor/compositor_export.h" | 9 #include "ui/compositor/compositor_export.h" |
| 10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // Layer animations interact with the layers using this interface. | 22 // Layer animations interact with the layers using this interface. |
| 23 class COMPOSITOR_EXPORT LayerAnimationDelegate { | 23 class COMPOSITOR_EXPORT LayerAnimationDelegate { |
| 24 public: | 24 public: |
| 25 virtual void SetBoundsFromAnimation(const gfx::Rect& bounds) = 0; | 25 virtual void SetBoundsFromAnimation(const gfx::Rect& bounds) = 0; |
| 26 virtual void SetTransformFromAnimation(const gfx::Transform& transform) = 0; | 26 virtual void SetTransformFromAnimation(const gfx::Transform& transform) = 0; |
| 27 virtual void SetOpacityFromAnimation(float opacity) = 0; | 27 virtual void SetOpacityFromAnimation(float opacity) = 0; |
| 28 virtual void SetVisibilityFromAnimation(bool visibility) = 0; | 28 virtual void SetVisibilityFromAnimation(bool visibility) = 0; |
| 29 virtual void SetBrightnessFromAnimation(float brightness) = 0; | 29 virtual void SetBrightnessFromAnimation(float brightness) = 0; |
| 30 virtual void SetGrayscaleFromAnimation(float grayscale) = 0; | 30 virtual void SetGrayscaleFromAnimation(float grayscale) = 0; |
| 31 virtual void SetColorFromAnimation(SkColor color) = 0; | 31 virtual void SetColorFromAnimation(SkColor color) = 0; |
| 32 virtual void SetTemperatureFromAnimation(float temperature) = 0; |
| 32 virtual void ScheduleDrawForAnimation() = 0; | 33 virtual void ScheduleDrawForAnimation() = 0; |
| 33 virtual const gfx::Rect& GetBoundsForAnimation() const = 0; | 34 virtual const gfx::Rect& GetBoundsForAnimation() const = 0; |
| 34 virtual gfx::Transform GetTransformForAnimation() const = 0; | 35 virtual gfx::Transform GetTransformForAnimation() const = 0; |
| 35 virtual float GetOpacityForAnimation() const = 0; | 36 virtual float GetOpacityForAnimation() const = 0; |
| 36 virtual bool GetVisibilityForAnimation() const = 0; | 37 virtual bool GetVisibilityForAnimation() const = 0; |
| 37 virtual float GetBrightnessForAnimation() const = 0; | 38 virtual float GetBrightnessForAnimation() const = 0; |
| 38 virtual float GetGrayscaleForAnimation() const = 0; | 39 virtual float GetGrayscaleForAnimation() const = 0; |
| 39 virtual SkColor GetColorForAnimation() const = 0; | 40 virtual SkColor GetColorForAnimation() const = 0; |
| 41 virtual float GetTemperatureFromAnimation() const = 0; |
| 40 virtual float GetDeviceScaleFactor() const = 0; | 42 virtual float GetDeviceScaleFactor() const = 0; |
| 41 virtual cc::Layer* GetCcLayer() const = 0; | 43 virtual cc::Layer* GetCcLayer() const = 0; |
| 42 virtual LayerAnimatorCollection* GetLayerAnimatorCollection() = 0; | 44 virtual LayerAnimatorCollection* GetLayerAnimatorCollection() = 0; |
| 43 virtual LayerThreadedAnimationDelegate* GetThreadedAnimationDelegate() = 0; | 45 virtual LayerThreadedAnimationDelegate* GetThreadedAnimationDelegate() = 0; |
| 44 virtual int GetFrameNumber() const = 0; | 46 virtual int GetFrameNumber() const = 0; |
| 45 virtual float GetRefreshRate() const = 0; | 47 virtual float GetRefreshRate() const = 0; |
| 46 | 48 |
| 47 protected: | 49 protected: |
| 48 virtual ~LayerAnimationDelegate() {} | 50 virtual ~LayerAnimationDelegate() {} |
| 49 }; | 51 }; |
| 50 | 52 |
| 51 } // namespace ui | 53 } // namespace ui |
| 52 | 54 |
| 53 #endif // UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_ | 55 #endif // UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_ |
| OLD | NEW |