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

Side by Side Diff: ui/gfx/animation/test_animation_delegate.h

Issue 23531053: ui/base/animation -> ui/gfx/animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 2 trunk Created 7 years, 3 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/animation/slide_animation_unittest.cc ('k') | ui/gfx/animation/throb_animation.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) 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_BASE_ANIMATION_TEST_ANIMATION_DELEGATE_H_ 5 #ifndef UI_BASE_ANIMATION_TEST_ANIMATION_DELEGATE_H_
6 #define UI_BASE_ANIMATION_TEST_ANIMATION_DELEGATE_H_ 6 #define UI_BASE_ANIMATION_TEST_ANIMATION_DELEGATE_H_
7 7
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "ui/base/animation/animation_delegate.h" 9 #include "ui/gfx/animation/animation_delegate.h"
10 10
11 namespace ui { 11 namespace gfx {
12 12
13 // Trivial AnimationDelegate implementation. AnimationEnded/Canceled quit the 13 // Trivial AnimationDelegate implementation. AnimationEnded/Canceled quit the
14 // message loop. 14 // message loop.
15 class TestAnimationDelegate : public AnimationDelegate { 15 class TestAnimationDelegate : public AnimationDelegate {
16 public: 16 public:
17 TestAnimationDelegate() : canceled_(false), finished_(false) { 17 TestAnimationDelegate() : canceled_(false), finished_(false) {
18 } 18 }
19 19
20 virtual void AnimationEnded(const Animation* animation) { 20 virtual void AnimationEnded(const Animation* animation) {
21 finished_ = true; 21 finished_ = true;
(...skipping 14 matching lines...) Expand all
36 return canceled_; 36 return canceled_;
37 } 37 }
38 38
39 private: 39 private:
40 bool canceled_; 40 bool canceled_;
41 bool finished_; 41 bool finished_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(TestAnimationDelegate); 43 DISALLOW_COPY_AND_ASSIGN(TestAnimationDelegate);
44 }; 44 };
45 45
46 } // namespace ui 46 } // namespace gfx
47 47
48 #endif // UI_BASE_ANIMATION_TEST_ANIMATION_DELEGATE_H_ 48 #endif // UI_BASE_ANIMATION_TEST_ANIMATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/gfx/animation/slide_animation_unittest.cc ('k') | ui/gfx/animation/throb_animation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698