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

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

Issue 584503005: Make scroll offset type of float in cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: link crbug to TODO Created 6 years, 2 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 | « no previous file | cc/animation/layer_animation_controller.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 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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "cc/animation/animation_events.h" 14 #include "cc/animation/animation_events.h"
15 #include "cc/animation/layer_animation_event_observer.h" 15 #include "cc/animation/layer_animation_event_observer.h"
16 #include "cc/base/cc_export.h" 16 #include "cc/base/cc_export.h"
17 #include "cc/base/scoped_ptr_vector.h" 17 #include "cc/base/scoped_ptr_vector.h"
18 #include "ui/gfx/geometry/scroll_offset.h"
18 #include "ui/gfx/transform.h" 19 #include "ui/gfx/transform.h"
19 20
20 namespace gfx { 21 namespace gfx {
21 class BoxF; 22 class BoxF;
22 class Transform; 23 class Transform;
23 } 24 }
24 25
25 namespace cc { 26 namespace cc {
26 27
27 class Animation; 28 class Animation;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 176
176 void NotifyObserversOpacityAnimated(float opacity, 177 void NotifyObserversOpacityAnimated(float opacity,
177 bool notify_active_observers, 178 bool notify_active_observers,
178 bool notify_pending_observers); 179 bool notify_pending_observers);
179 void NotifyObserversTransformAnimated(const gfx::Transform& transform, 180 void NotifyObserversTransformAnimated(const gfx::Transform& transform,
180 bool notify_active_observers, 181 bool notify_active_observers,
181 bool notify_pending_observers); 182 bool notify_pending_observers);
182 void NotifyObserversFilterAnimated(const FilterOperations& filter, 183 void NotifyObserversFilterAnimated(const FilterOperations& filter,
183 bool notify_active_observers, 184 bool notify_active_observers,
184 bool notify_pending_observers); 185 bool notify_pending_observers);
185 void NotifyObserversScrollOffsetAnimated(const gfx::Vector2dF& scroll_offset, 186 void NotifyObserversScrollOffsetAnimated(
186 bool notify_active_observers, 187 const gfx::ScrollOffset& scroll_offset,
187 bool notify_pending_observers); 188 bool notify_active_observers,
189 bool notify_pending_observers);
188 190
189 void NotifyObserversAnimationWaitingForDeletion(); 191 void NotifyObserversAnimationWaitingForDeletion();
190 192
191 bool HasValueObserver(); 193 bool HasValueObserver();
192 bool HasActiveValueObserver(); 194 bool HasActiveValueObserver();
193 195
194 AnimationRegistrar* registrar_; 196 AnimationRegistrar* registrar_;
195 int id_; 197 int id_;
196 ScopedPtrVector<Animation> animations_; 198 ScopedPtrVector<Animation> animations_;
197 199
(...skipping 12 matching lines...) Expand all
210 // Only try to start animations when new animations are added or when the 212 // Only try to start animations when new animations are added or when the
211 // previous attempt at starting animations failed to start all animations. 213 // previous attempt at starting animations failed to start all animations.
212 bool needs_to_start_animations_; 214 bool needs_to_start_animations_;
213 215
214 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); 216 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController);
215 }; 217 };
216 218
217 } // namespace cc 219 } // namespace cc
218 220
219 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ 221 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/animation/layer_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698