| Index: ui/gfx/compositor/test_layer_animation_delegate.cc
|
| diff --git a/ui/gfx/compositor/test_layer_animation_delegate.cc b/ui/gfx/compositor/test_layer_animation_delegate.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5d87ae05043925ec8229679995deafc8eb3ef42b
|
| --- /dev/null
|
| +++ b/ui/gfx/compositor/test_layer_animation_delegate.cc
|
| @@ -0,0 +1,44 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ui/gfx/compositor/test_layer_animation_delegate.h"
|
| +
|
| +namespace ui {
|
| +
|
| +TestLayerAnimationDelegate::TestLayerAnimationDelegate() : opacity_(1.0f) {
|
| +}
|
| +
|
| +TestLayerAnimationDelegate::~TestLayerAnimationDelegate() {
|
| +}
|
| +
|
| +void TestLayerAnimationDelegate::SetBoundsFromAnimation(
|
| + const gfx::Rect& bounds) {
|
| + bounds_ = bounds;
|
| +}
|
| +
|
| +void TestLayerAnimationDelegate::SetTransformFromAnimation(
|
| + const Transform& transform) {
|
| + transform_ = transform;
|
| +}
|
| +
|
| +void TestLayerAnimationDelegate::SetOpacityFromAnimation(float opacity) {
|
| + opacity_ = opacity;
|
| +}
|
| +
|
| +void TestLayerAnimationDelegate::ScheduleDrawForAnimation() {
|
| +}
|
| +
|
| +const gfx::Rect& TestLayerAnimationDelegate::GetBoundsForAnimation() const {
|
| + return bounds_;
|
| +}
|
| +
|
| +const Transform& TestLayerAnimationDelegate::GetTransformForAnimation() const {
|
| + return transform_;
|
| +}
|
| +
|
| +float TestLayerAnimationDelegate::GetOpacityForAnimation() const {
|
| + return opacity_;
|
| +}
|
| +
|
| +} // namespace ui
|
|
|