| 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 "ui/compositor/layer_animation_delegate.h" | 9 #include "ui/compositor/layer_animation_delegate.h" |
| 10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 virtual void SetGrayscaleFromAnimation(float grayscale) OVERRIDE; | 28 virtual void SetGrayscaleFromAnimation(float grayscale) OVERRIDE; |
| 29 virtual void SetColorFromAnimation(SkColor color) OVERRIDE; | 29 virtual void SetColorFromAnimation(SkColor color) OVERRIDE; |
| 30 virtual void ScheduleDrawForAnimation() OVERRIDE; | 30 virtual void ScheduleDrawForAnimation() OVERRIDE; |
| 31 virtual const gfx::Rect& GetBoundsForAnimation() const OVERRIDE; | 31 virtual const gfx::Rect& GetBoundsForAnimation() const OVERRIDE; |
| 32 virtual const gfx::Transform& GetTransformForAnimation() const OVERRIDE; | 32 virtual const gfx::Transform& GetTransformForAnimation() const OVERRIDE; |
| 33 virtual float GetOpacityForAnimation() const OVERRIDE; | 33 virtual float GetOpacityForAnimation() const OVERRIDE; |
| 34 virtual bool GetVisibilityForAnimation() const OVERRIDE; | 34 virtual bool GetVisibilityForAnimation() const OVERRIDE; |
| 35 virtual float GetBrightnessForAnimation() const OVERRIDE; | 35 virtual float GetBrightnessForAnimation() const OVERRIDE; |
| 36 virtual float GetGrayscaleForAnimation() const OVERRIDE; | 36 virtual float GetGrayscaleForAnimation() const OVERRIDE; |
| 37 virtual SkColor GetColorForAnimation() const OVERRIDE; | 37 virtual SkColor GetColorForAnimation() const OVERRIDE; |
| 38 virtual void AddThreadedAnimation( |
| 39 scoped_ptr<cc::Animation> animation) OVERRIDE; |
| 40 virtual void RemoveThreadedAnimation(int animation_id) OVERRIDE; |
| 38 | 41 |
| 39 private: | 42 private: |
| 40 gfx::Rect bounds_; | 43 gfx::Rect bounds_; |
| 41 gfx::Transform transform_; | 44 gfx::Transform transform_; |
| 42 float opacity_; | 45 float opacity_; |
| 43 bool visibility_; | 46 bool visibility_; |
| 44 float brightness_; | 47 float brightness_; |
| 45 float grayscale_; | 48 float grayscale_; |
| 46 SkColor color_; | 49 SkColor color_; |
| 47 | 50 |
| 48 // Allow copy and assign. | 51 // Allow copy and assign. |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 } // namespace ui | 54 } // namespace ui |
| 52 | 55 |
| 53 #endif // UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ | 56 #endif // UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_ |
| OLD | NEW |