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 |