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

Side by Side Diff: ui/gfx/compositor/test/test_layer_animation_observer.h

Issue 9222018: reland -- Disable animations during aura tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_ 5 #ifndef UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_
6 #define UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_ 6 #define UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/gfx/compositor/layer_animation_observer.h" 10 #include "ui/gfx/compositor/layer_animation_observer.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 class LayerAnimationSequence; 14 class LayerAnimationSequence;
15 15
16 // Listens to animation ended notifications. Remembers the last sequence that 16 // Listens to animation ended notifications. Remembers the last sequence that
17 // it was notified about. 17 // it was notified about.
18 class TestLayerAnimationObserver : public LayerAnimationObserver { 18 class TestLayerAnimationObserver : public LayerAnimationObserver {
19 public: 19 public:
20 TestLayerAnimationObserver(); 20 TestLayerAnimationObserver();
21 virtual ~TestLayerAnimationObserver(); 21 virtual ~TestLayerAnimationObserver();
22 22
23 virtual void OnLayerAnimationEnded( 23 virtual void OnLayerAnimationEnded(
24 const LayerAnimationSequence* sequence) OVERRIDE; 24 LayerAnimationSequence* sequence) OVERRIDE;
25 25
26 virtual void OnLayerAnimationAborted( 26 virtual void OnLayerAnimationAborted(
27 const LayerAnimationSequence* sequence) OVERRIDE; 27 LayerAnimationSequence* sequence) OVERRIDE;
28 28
29 virtual void OnLayerAnimationScheduled( 29 virtual void OnLayerAnimationScheduled(
30 const LayerAnimationSequence* sequence) OVERRIDE; 30 LayerAnimationSequence* sequence) OVERRIDE;
31 31
32 virtual bool RequiresNotificationWhenAnimatorDestroyed() const OVERRIDE; 32 virtual bool RequiresNotificationWhenAnimatorDestroyed() const OVERRIDE;
33 33
34 const LayerAnimationSequence* last_ended_sequence() const { 34 const LayerAnimationSequence* last_ended_sequence() const {
35 return last_ended_sequence_; 35 return last_ended_sequence_;
36 } 36 }
37 37
38 const LayerAnimationSequence* last_scheduled_sequence() const { 38 const LayerAnimationSequence* last_scheduled_sequence() const {
39 return last_scheduled_sequence_; 39 return last_scheduled_sequence_;
40 } 40 }
(...skipping 11 matching lines...) Expand all
52 const LayerAnimationSequence* last_scheduled_sequence_; 52 const LayerAnimationSequence* last_scheduled_sequence_;
53 const LayerAnimationSequence* last_aborted_sequence_; 53 const LayerAnimationSequence* last_aborted_sequence_;
54 bool requires_notification_when_animator_destroyed_; 54 bool requires_notification_when_animator_destroyed_;
55 55
56 // Copy and assign are allowed. 56 // Copy and assign are allowed.
57 }; 57 };
58 58
59 } // namespace ui 59 } // namespace ui
60 60
61 #endif // UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_ 61 #endif // UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_
OLDNEW
« no previous file with comments | « ui/gfx/compositor/scoped_layer_animation_settings.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