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

Side by Side Diff: ui/compositor/layer_animation_observer.h

Issue 10444014: ash: Improved window maximize/restore animations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix lock screen, app windows Created 8 years, 6 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/compositor/compositor_observer.h ('k') | ui/compositor/layer_unittest.cc » ('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_LAYER_ANIMATION_OBSERVER_H_ 5 #ifndef UI_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_
6 #define UI_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_ 6 #define UI_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // An implicit animation observer is intended to be used in conjunction with a 77 // An implicit animation observer is intended to be used in conjunction with a
78 // ScopedLayerAnimationSettings object in order to receive a notification when 78 // ScopedLayerAnimationSettings object in order to receive a notification when
79 // all implicit animations complete. 79 // all implicit animations complete.
80 class COMPOSITOR_EXPORT ImplicitAnimationObserver 80 class COMPOSITOR_EXPORT ImplicitAnimationObserver
81 : public LayerAnimationObserver { 81 : public LayerAnimationObserver {
82 public: 82 public:
83 ImplicitAnimationObserver(); 83 ImplicitAnimationObserver();
84 virtual ~ImplicitAnimationObserver(); 84 virtual ~ImplicitAnimationObserver();
85 85
86 // Do not "delete this" in your implementation. Consider using something
87 // like MessageLoop::current()->DeleteSoon() instead.
86 virtual void OnImplicitAnimationsCompleted() = 0; 88 virtual void OnImplicitAnimationsCompleted() = 0;
87 89
88 protected: 90 protected:
89 // Deactivates the observer and clears the collection of animations it is 91 // Deactivates the observer and clears the collection of animations it is
90 // waiting for. 92 // waiting for.
91 void StopObservingImplicitAnimations(); 93 void StopObservingImplicitAnimations();
92 94
93 private: 95 private:
94 friend class ScopedLayerAnimationSettings; 96 friend class ScopedLayerAnimationSettings;
95 97
(...skipping 14 matching lines...) Expand all
110 void SetActive(bool active); 112 void SetActive(bool active);
111 113
112 void CheckCompleted(); 114 void CheckCompleted();
113 115
114 bool active_; 116 bool active_;
115 }; 117 };
116 118
117 } // namespace ui 119 } // namespace ui
118 120
119 #endif // UI_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_ 121 #endif // UI_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor_observer.h ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698