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

Side by Side Diff: cc/animation/layer_animation_controller.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 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
« no previous file with comments | « ash/wm/window_state.h ('k') | cc/surfaces/surface_manager.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ 5 #ifndef CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ 6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 AnimationRegistrar* registrar_; 209 AnimationRegistrar* registrar_;
210 int id_; 210 int id_;
211 ScopedPtrVector<Animation> animations_; 211 ScopedPtrVector<Animation> animations_;
212 212
213 // This is used to ensure that we don't spam the registrar. 213 // This is used to ensure that we don't spam the registrar.
214 bool is_active_; 214 bool is_active_;
215 215
216 base::TimeTicks last_tick_time_; 216 base::TimeTicks last_tick_time_;
217 217
218 ObserverList<LayerAnimationValueObserver> value_observers_; 218 base::ObserverList<LayerAnimationValueObserver> value_observers_;
219 ObserverList<LayerAnimationEventObserver> event_observers_; 219 base::ObserverList<LayerAnimationEventObserver> event_observers_;
220 220
221 LayerAnimationValueProvider* value_provider_; 221 LayerAnimationValueProvider* value_provider_;
222 222
223 AnimationDelegate* layer_animation_delegate_; 223 AnimationDelegate* layer_animation_delegate_;
224 224
225 // Only try to start animations when new animations are added or when the 225 // Only try to start animations when new animations are added or when the
226 // previous attempt at starting animations failed to start all animations. 226 // previous attempt at starting animations failed to start all animations.
227 bool needs_to_start_animations_; 227 bool needs_to_start_animations_;
228 228
229 bool scroll_offset_animation_was_interrupted_; 229 bool scroll_offset_animation_was_interrupted_;
230 230
231 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); 231 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController);
232 }; 232 };
233 233
234 } // namespace cc 234 } // namespace cc
235 235
236 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ 236 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/window_state.h ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698