OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_ANIMATION_TEST_ANIMATION_DELEGATE_H_ | 5 #ifndef UI_GFX_ANIMATION_TEST_ANIMATION_DELEGATE_H_ |
6 #define UI_GFX_ANIMATION_TEST_ANIMATION_DELEGATE_H_ | 6 #define UI_GFX_ANIMATION_TEST_ANIMATION_DELEGATE_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
9 #include "ui/gfx/animation/animation_delegate.h" | 10 #include "ui/gfx/animation/animation_delegate.h" |
10 | 11 |
11 namespace gfx { | 12 namespace gfx { |
12 | 13 |
13 // Trivial AnimationDelegate implementation. AnimationEnded/Canceled quit the | 14 // Trivial AnimationDelegate implementation. AnimationEnded/Canceled quit the |
14 // message loop. | 15 // message loop. |
15 class TestAnimationDelegate : public AnimationDelegate { | 16 class TestAnimationDelegate : public AnimationDelegate { |
16 public: | 17 public: |
17 TestAnimationDelegate() : canceled_(false), finished_(false) { | 18 TestAnimationDelegate() : canceled_(false), finished_(false) { |
(...skipping 21 matching lines...) Expand all Loading... |
39 private: | 40 private: |
40 bool canceled_; | 41 bool canceled_; |
41 bool finished_; | 42 bool finished_; |
42 | 43 |
43 DISALLOW_COPY_AND_ASSIGN(TestAnimationDelegate); | 44 DISALLOW_COPY_AND_ASSIGN(TestAnimationDelegate); |
44 }; | 45 }; |
45 | 46 |
46 } // namespace gfx | 47 } // namespace gfx |
47 | 48 |
48 #endif // UI_GFX_ANIMATION_TEST_ANIMATION_DELEGATE_H_ | 49 #endif // UI_GFX_ANIMATION_TEST_ANIMATION_DELEGATE_H_ |
OLD | NEW |