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

Side by Side Diff: ui/base/animation/animation_delegate.h

Issue 6154001: Move animation code to new ui/base/animation directory.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
OLDNEW
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_ANIMATION_DELEGATE_H_ 5 #ifndef UI_BASE_ANIMATION_ANIMATION_DELEGATE_H_
6 #define APP_ANIMATION_DELEGATE_H_ 6 #define UI_BASE_ANIMATION_ANIMATION_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 namespace ui {
10
9 class Animation; 11 class Animation;
10 12
11 // AnimationDelegate 13 // AnimationDelegate
12 // 14 //
13 // Implement this interface when you want to receive notifications about the 15 // Implement this interface when you want to receive notifications about the
14 // state of an animation. 16 // state of an animation.
15 class AnimationDelegate { 17 class AnimationDelegate {
16 public: 18 public:
17 // Called when an animation has completed. 19 // Called when an animation has completed.
18 virtual void AnimationEnded(const Animation* animation) {} 20 virtual void AnimationEnded(const Animation* animation) {}
19 21
20 // Called when an animation has progressed. 22 // Called when an animation has progressed.
21 virtual void AnimationProgressed(const Animation* animation) {} 23 virtual void AnimationProgressed(const Animation* animation) {}
22 24
23 // Called when an animation has been canceled. 25 // Called when an animation has been canceled.
24 virtual void AnimationCanceled(const Animation* animation) {} 26 virtual void AnimationCanceled(const Animation* animation) {}
25 27
26 protected: 28 protected:
27 virtual ~AnimationDelegate() {} 29 virtual ~AnimationDelegate() {}
28 }; 30 };
29 31
30 #endif // APP_ANIMATION_DELEGATE_H_ 32 } // namespace ui
33
34 #endif // UI_BASE_ANIMATION_ANIMATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/base/animation/animation_container_unittest.cc ('k') | ui/base/animation/animation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698