OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 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 #include "ui/gfx/compositor/test_layer_animation_delegate.h" | |
6 | |
7 namespace ui { | |
8 | |
9 TestLayerAnimationDelegate::TestLayerAnimationDelegate() : opacity_(1.0f) { | |
10 } | |
11 | |
12 TestLayerAnimationDelegate::~TestLayerAnimationDelegate() { | |
13 } | |
14 | |
15 void TestLayerAnimationDelegate::SetBoundsFromAnimation( | |
16 const gfx::Rect& bounds) { | |
17 bounds_ = bounds; | |
18 } | |
19 | |
20 void TestLayerAnimationDelegate::SetTransformFromAnimation( | |
21 const Transform& transform) { | |
22 transform_ = transform; | |
23 } | |
24 | |
25 void TestLayerAnimationDelegate::SetOpacityFromAnimation(float opacity) { | |
26 opacity_ = opacity; | |
27 } | |
28 | |
29 void TestLayerAnimationDelegate::ScheduleDrawForAnimation() { | |
30 } | |
31 | |
32 const gfx::Rect& TestLayerAnimationDelegate::GetBoundsForAnimation() const { | |
33 return bounds_; | |
34 } | |
35 | |
36 const Transform& TestLayerAnimationDelegate::GetTransformForAnimation() const { | |
37 return transform_; | |
38 } | |
39 | |
40 float TestLayerAnimationDelegate::GetOpacityForAnimation() const { | |
41 return opacity_; | |
42 } | |
43 | |
44 } // namespace ui | |
OLD | NEW |