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

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

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
« no previous file with comments | « ui/gfx/compositor/test/test_layer_animation_observer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ui/gfx/compositor/test/test_layer_animation_observer.h" 5 #include "ui/gfx/compositor/test/test_layer_animation_observer.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 namespace ui { 9 namespace ui {
10 10
11 TestLayerAnimationObserver::TestLayerAnimationObserver() 11 TestLayerAnimationObserver::TestLayerAnimationObserver()
12 : last_ended_sequence_(NULL), 12 : last_ended_sequence_(NULL),
13 last_scheduled_sequence_(NULL), 13 last_scheduled_sequence_(NULL),
14 last_aborted_sequence_(NULL), 14 last_aborted_sequence_(NULL),
15 requires_notification_when_animator_destroyed_(false) { 15 requires_notification_when_animator_destroyed_(false) {
16 } 16 }
17 17
18 TestLayerAnimationObserver::~TestLayerAnimationObserver() { 18 TestLayerAnimationObserver::~TestLayerAnimationObserver() {
19 } 19 }
20 20
21 void TestLayerAnimationObserver::OnLayerAnimationEnded( 21 void TestLayerAnimationObserver::OnLayerAnimationEnded(
22 const LayerAnimationSequence* sequence) { 22 LayerAnimationSequence* sequence) {
23 last_ended_sequence_ = sequence; 23 last_ended_sequence_ = sequence;
24 } 24 }
25 25
26 void TestLayerAnimationObserver::OnLayerAnimationAborted( 26 void TestLayerAnimationObserver::OnLayerAnimationAborted(
27 const LayerAnimationSequence* sequence) { 27 LayerAnimationSequence* sequence) {
28 last_aborted_sequence_ = sequence; 28 last_aborted_sequence_ = sequence;
29 } 29 }
30 30
31 void TestLayerAnimationObserver::OnLayerAnimationScheduled( 31 void TestLayerAnimationObserver::OnLayerAnimationScheduled(
32 const LayerAnimationSequence* sequence) { 32 LayerAnimationSequence* sequence) {
33 last_scheduled_sequence_ = sequence; 33 last_scheduled_sequence_ = sequence;
34 } 34 }
35 35
36 bool 36 bool
37 TestLayerAnimationObserver::RequiresNotificationWhenAnimatorDestroyed() const { 37 TestLayerAnimationObserver::RequiresNotificationWhenAnimatorDestroyed() const {
38 return requires_notification_when_animator_destroyed_; 38 return requires_notification_when_animator_destroyed_;
39 } 39 }
40 40
41 } // namespace ui 41 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gfx/compositor/test/test_layer_animation_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698