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

Unified Diff: ui/gfx/compositor/test_layer_animation_observer.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/test_layer_animation_observer.cc
diff --git a/ui/gfx/compositor/test_layer_animation_observer.cc b/ui/gfx/compositor/test_layer_animation_observer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..505d528dab0d4ed02847aec78dd15415af23172a
--- /dev/null
+++ b/ui/gfx/compositor/test_layer_animation_observer.cc
@@ -0,0 +1,35 @@
+// 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_observer.h"
+
+#include <cstddef>
sky 2011/10/28 22:11:38 Is this include really needed?
+
+namespace ui {
+
+TestLayerAnimationObserver::TestLayerAnimationObserver()
+ : last_ended_sequence_(NULL),
+ last_scheduled_sequence_(NULL),
+ last_aborted_sequence_(NULL) {
+}
+
+TestLayerAnimationObserver::~TestLayerAnimationObserver() {
+}
+
+void TestLayerAnimationObserver::OnLayerAnimationEnded(
+ const LayerAnimationSequence* sequence) {
+ last_ended_sequence_ = sequence;
+}
+
+void TestLayerAnimationObserver::OnLayerAnimationScheduled(
+ const LayerAnimationSequence* sequence) {
+ last_scheduled_sequence_ = sequence;
+}
+
+void TestLayerAnimationObserver::OnLayerAnimationAborted(
+ const LayerAnimationSequence* sequence) {
+ last_aborted_sequence_ = sequence;
+}
+
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698