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

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

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 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 unified diff | Download patch
« no previous file with comments | « ui/compositor/test/test_layer_animation_delegate.h ('k') | ui/compositor/test/test_suite.h » ('j') | 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 #ifndef UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_H_ 5 #ifndef UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_H_
6 #define UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_H_ 6 #define UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/compositor/layer_animation_observer.h" 9 #include "ui/compositor/layer_animation_observer.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 class LayerAnimationSequence; 13 class LayerAnimationSequence;
14 14
15 // Listens to animation ended notifications. Remembers the last sequence that 15 // Listens to animation ended notifications. Remembers the last sequence that
16 // it was notified about. 16 // it was notified about.
17 class TestLayerAnimationObserver : public LayerAnimationObserver { 17 class TestLayerAnimationObserver : public LayerAnimationObserver {
18 public: 18 public:
19 TestLayerAnimationObserver(); 19 TestLayerAnimationObserver();
20 virtual ~TestLayerAnimationObserver(); 20 virtual ~TestLayerAnimationObserver();
21 21
22 virtual void OnLayerAnimationEnded( 22 virtual void OnLayerAnimationEnded(
23 LayerAnimationSequence* sequence) OVERRIDE; 23 LayerAnimationSequence* sequence) override;
24 24
25 virtual void OnLayerAnimationAborted( 25 virtual void OnLayerAnimationAborted(
26 LayerAnimationSequence* sequence) OVERRIDE; 26 LayerAnimationSequence* sequence) override;
27 27
28 virtual void OnLayerAnimationScheduled( 28 virtual void OnLayerAnimationScheduled(
29 LayerAnimationSequence* sequence) OVERRIDE; 29 LayerAnimationSequence* sequence) override;
30 30
31 virtual bool RequiresNotificationWhenAnimatorDestroyed() const OVERRIDE; 31 virtual bool RequiresNotificationWhenAnimatorDestroyed() const override;
32 32
33 const LayerAnimationSequence* last_ended_sequence() const { 33 const LayerAnimationSequence* last_ended_sequence() const {
34 return last_ended_sequence_; 34 return last_ended_sequence_;
35 } 35 }
36 36
37 const LayerAnimationSequence* last_scheduled_sequence() const { 37 const LayerAnimationSequence* last_scheduled_sequence() const {
38 return last_scheduled_sequence_; 38 return last_scheduled_sequence_;
39 } 39 }
40 40
41 const LayerAnimationSequence* last_aborted_sequence() const { 41 const LayerAnimationSequence* last_aborted_sequence() const {
42 return last_aborted_sequence_; 42 return last_aborted_sequence_;
43 } 43 }
44 44
45 void set_requires_notification_when_animator_destroyed(bool value) { 45 void set_requires_notification_when_animator_destroyed(bool value) {
46 requires_notification_when_animator_destroyed_ = value; 46 requires_notification_when_animator_destroyed_ = value;
47 } 47 }
48 48
49 private: 49 private:
50 const LayerAnimationSequence* last_ended_sequence_; 50 const LayerAnimationSequence* last_ended_sequence_;
51 const LayerAnimationSequence* last_scheduled_sequence_; 51 const LayerAnimationSequence* last_scheduled_sequence_;
52 const LayerAnimationSequence* last_aborted_sequence_; 52 const LayerAnimationSequence* last_aborted_sequence_;
53 bool requires_notification_when_animator_destroyed_; 53 bool requires_notification_when_animator_destroyed_;
54 54
55 // Copy and assign are allowed. 55 // Copy and assign are allowed.
56 }; 56 };
57 57
58 } // namespace ui 58 } // namespace ui
59 59
60 #endif // UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_H_ 60 #endif // UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/compositor/test/test_layer_animation_delegate.h ('k') | ui/compositor/test/test_suite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698