OLD | NEW |
1 // Copyright (c) 2010 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 APP_TEST_ANIMATION_DELEGATE_H_ | 5 #ifndef UI_BASE_ANIMATION_TEST_ANIMATION_DELEGATE_H_ |
6 #define APP_TEST_ANIMATION_DELEGATE_H_ | 6 #define UI_BASE_ANIMATION_TEST_ANIMATION_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "app/animation_delegate.h" | |
10 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "ui/base/animation/animation_delegate.h" |
| 11 |
| 12 namespace ui { |
11 | 13 |
12 // Trivial AnimationDelegate implementation. AnimationEnded/Canceled quit the | 14 // Trivial AnimationDelegate implementation. AnimationEnded/Canceled quit the |
13 // message loop. | 15 // message loop. |
14 class TestAnimationDelegate : public AnimationDelegate { | 16 class TestAnimationDelegate : public AnimationDelegate { |
15 public: | 17 public: |
16 TestAnimationDelegate() : canceled_(false), finished_(false) { | 18 TestAnimationDelegate() : canceled_(false), finished_(false) { |
17 } | 19 } |
18 | 20 |
19 virtual void AnimationEnded(const Animation* animation) { | 21 virtual void AnimationEnded(const Animation* animation) { |
20 finished_ = true; | 22 finished_ = true; |
(...skipping 14 matching lines...) Expand all Loading... |
35 return canceled_; | 37 return canceled_; |
36 } | 38 } |
37 | 39 |
38 private: | 40 private: |
39 bool canceled_; | 41 bool canceled_; |
40 bool finished_; | 42 bool finished_; |
41 | 43 |
42 DISALLOW_COPY_AND_ASSIGN(TestAnimationDelegate); | 44 DISALLOW_COPY_AND_ASSIGN(TestAnimationDelegate); |
43 }; | 45 }; |
44 | 46 |
45 #endif // APP_TEST_ANIMATION_DELEGATE_H_ | 47 } // namespace ui |
| 48 |
| 49 #endif // UI_BASE_ANIMATION_TEST_ANIMATION_DELEGATE_H_ |
OLD | NEW |