| 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 #include "ui/compositor/test/test_layer_animation_delegate.h" | 5 #include "ui/compositor/test/test_layer_animation_delegate.h" |
| 6 | 6 |
| 7 namespace ui { | 7 namespace ui { |
| 8 | 8 |
| 9 TestLayerAnimationDelegate::TestLayerAnimationDelegate() | 9 TestLayerAnimationDelegate::TestLayerAnimationDelegate() |
| 10 : opacity_(1.0f), | 10 : opacity_(1.0f), |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 } | 33 } |
| 34 | 34 |
| 35 void TestLayerAnimationDelegate::SetOpacityFromAnimation(float opacity) { | 35 void TestLayerAnimationDelegate::SetOpacityFromAnimation(float opacity) { |
| 36 opacity_ = opacity; | 36 opacity_ = opacity; |
| 37 } | 37 } |
| 38 | 38 |
| 39 void TestLayerAnimationDelegate::SetVisibilityFromAnimation(bool visibility) { | 39 void TestLayerAnimationDelegate::SetVisibilityFromAnimation(bool visibility) { |
| 40 visibility_ = visibility; | 40 visibility_ = visibility; |
| 41 } | 41 } |
| 42 | 42 |
| 43 void TestLayerAnimationDelegate::SetBrightnessFromAnimation(float brightness) { |
| 44 brightness_ = brightness; |
| 45 } |
| 46 |
| 47 void TestLayerAnimationDelegate::SetGrayscaleFromAnimation(float grayscale) { |
| 48 grayscale_ = grayscale; |
| 49 } |
| 50 |
| 43 void TestLayerAnimationDelegate::ScheduleDrawForAnimation() { | 51 void TestLayerAnimationDelegate::ScheduleDrawForAnimation() { |
| 44 } | 52 } |
| 45 | 53 |
| 46 const gfx::Rect& TestLayerAnimationDelegate::GetBoundsForAnimation() const { | 54 const gfx::Rect& TestLayerAnimationDelegate::GetBoundsForAnimation() const { |
| 47 return bounds_; | 55 return bounds_; |
| 48 } | 56 } |
| 49 | 57 |
| 50 const Transform& TestLayerAnimationDelegate::GetTransformForAnimation() const { | 58 const Transform& TestLayerAnimationDelegate::GetTransformForAnimation() const { |
| 51 return transform_; | 59 return transform_; |
| 52 } | 60 } |
| 53 | 61 |
| 54 float TestLayerAnimationDelegate::GetOpacityForAnimation() const { | 62 float TestLayerAnimationDelegate::GetOpacityForAnimation() const { |
| 55 return opacity_; | 63 return opacity_; |
| 56 } | 64 } |
| 57 | 65 |
| 58 bool TestLayerAnimationDelegate::GetVisibilityForAnimation() const { | 66 bool TestLayerAnimationDelegate::GetVisibilityForAnimation() const { |
| 59 return visibility_; | 67 return visibility_; |
| 60 } | 68 } |
| 61 | 69 |
| 70 float TestLayerAnimationDelegate::GetBrightnessForAnimation() const { |
| 71 return brightness_; |
| 72 } |
| 73 |
| 74 float TestLayerAnimationDelegate::GetGrayscaleForAnimation() const { |
| 75 return grayscale_; |
| 76 } |
| 77 |
| 62 } // namespace ui | 78 } // namespace ui |
| OLD | NEW |