Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: ui/gfx/compositor/dummy_layer_animation_delegate.cc

Issue 8395046: Allows observers to be notified when layer animations complete. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer comments. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/compositor/dummy_layer_animation_delegate.cc
diff --git a/ui/gfx/compositor/dummy_layer_animation_delegate.cc b/ui/gfx/compositor/dummy_layer_animation_delegate.cc
deleted file mode 100644
index ea026dcc0d7ed66f704e06d3cb640616ee43bdd0..0000000000000000000000000000000000000000
--- a/ui/gfx/compositor/dummy_layer_animation_delegate.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// 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/dummy_layer_animation_delegate.h"
-
-namespace ui {
-
-DummyLayerAnimationDelegate::DummyLayerAnimationDelegate() : opacity_(1.0f) {
-}
-
-DummyLayerAnimationDelegate::DummyLayerAnimationDelegate(
- const LayerAnimationDelegate& other)
- : bounds_(other.GetBoundsForAnimation()),
- transform_(other.GetTransformForAnimation()),
- opacity_(other.GetOpacityForAnimation()) {
-}
-
-DummyLayerAnimationDelegate::~DummyLayerAnimationDelegate() {
-}
-
-void DummyLayerAnimationDelegate::SetBoundsFromAnimation(
- const gfx::Rect& bounds) {
- bounds_ = bounds;
-}
-
-void DummyLayerAnimationDelegate::SetTransformFromAnimation(
- const Transform& transform) {
- transform_ = transform;
-}
-
-void DummyLayerAnimationDelegate::SetOpacityFromAnimation(float opacity) {
- opacity_ = opacity;
-}
-
-void DummyLayerAnimationDelegate::ScheduleDrawForAnimation() {
-}
-
-const gfx::Rect& DummyLayerAnimationDelegate::GetBoundsForAnimation() const {
- return bounds_;
-}
-
-const Transform& DummyLayerAnimationDelegate::GetTransformForAnimation() const {
- return transform_;
-}
-
-float DummyLayerAnimationDelegate::GetOpacityForAnimation() const {
- return opacity_;
-}
-
-void DummyLayerAnimationDelegate::OnLayerAnimationEnded(
- LayerAnimationSequence* sequence) {
-}
-
-} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698