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

Unified Diff: ui/gfx/compositor/test/test_layer_animation_observer.h

Issue 10365007: ui: Move compositor/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS Created 8 years, 8 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/test_layer_animation_observer.h
diff --git a/ui/gfx/compositor/test/test_layer_animation_observer.h b/ui/gfx/compositor/test/test_layer_animation_observer.h
deleted file mode 100644
index 44a71191c2dadc6b085e9dc82105729d18e62eb6..0000000000000000000000000000000000000000
--- a/ui/gfx/compositor/test/test_layer_animation_observer.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_
-#define UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_
-#pragma once
-
-#include "base/compiler_specific.h"
-#include "ui/gfx/compositor/layer_animation_observer.h"
-
-namespace ui {
-
-class LayerAnimationSequence;
-
-// Listens to animation ended notifications. Remembers the last sequence that
-// it was notified about.
-class TestLayerAnimationObserver : public LayerAnimationObserver {
- public:
- TestLayerAnimationObserver();
- virtual ~TestLayerAnimationObserver();
-
- virtual void OnLayerAnimationEnded(
- LayerAnimationSequence* sequence) OVERRIDE;
-
- virtual void OnLayerAnimationAborted(
- LayerAnimationSequence* sequence) OVERRIDE;
-
- virtual void OnLayerAnimationScheduled(
- LayerAnimationSequence* sequence) OVERRIDE;
-
- virtual bool RequiresNotificationWhenAnimatorDestroyed() const OVERRIDE;
-
- const LayerAnimationSequence* last_ended_sequence() const {
- return last_ended_sequence_;
- }
-
- const LayerAnimationSequence* last_scheduled_sequence() const {
- return last_scheduled_sequence_;
- }
-
- const LayerAnimationSequence* last_aborted_sequence() const {
- return last_aborted_sequence_;
- }
-
- void set_requires_notification_when_animator_destroyed(bool value) {
- requires_notification_when_animator_destroyed_ = value;
- }
-
- private:
- const LayerAnimationSequence* last_ended_sequence_;
- const LayerAnimationSequence* last_scheduled_sequence_;
- const LayerAnimationSequence* last_aborted_sequence_;
- bool requires_notification_when_animator_destroyed_;
-
- // Copy and assign are allowed.
-};
-
-} // namespace ui
-
-#endif // UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_
« no previous file with comments | « ui/gfx/compositor/test/test_layer_animation_delegate.cc ('k') | ui/gfx/compositor/test/test_layer_animation_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698