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

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

Issue 2966723003: Add support for bounds animations (Closed)
Patch Set: address reviewer feedback Created 3 years, 5 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 | « cc/animation/animation_player.cc ('k') | cc/animation/element_animations.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ELEMENT_ANIMATIONS_H_ 5 #ifndef CC_ANIMATION_ELEMENT_ANIMATIONS_H_
6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_ 6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "cc/animation/animation_export.h" 14 #include "cc/animation/animation_export.h"
15 #include "cc/trees/element_id.h" 15 #include "cc/trees/element_id.h"
16 #include "cc/trees/property_animation_state.h" 16 #include "cc/trees/property_animation_state.h"
17 #include "cc/trees/target_property.h" 17 #include "cc/trees/target_property.h"
18 #include "ui/gfx/geometry/scroll_offset.h" 18 #include "ui/gfx/geometry/scroll_offset.h"
19 #include "ui/gfx/transform.h" 19 #include "ui/gfx/transform.h"
20 20
21 namespace gfx { 21 namespace gfx {
22 class BoxF; 22 class BoxF;
23 class SizeF;
23 } 24 }
24 25
25 namespace cc { 26 namespace cc {
26 27
27 class AnimationHost; 28 class AnimationHost;
28 class AnimationPlayer; 29 class AnimationPlayer;
29 class FilterOperations; 30 class FilterOperations;
30 enum class ElementListType; 31 enum class ElementListType;
31 struct AnimationEvent; 32 struct AnimationEvent;
32 33
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 bool notify_pending_elements); 151 bool notify_pending_elements);
151 void NotifyClientTransformAnimated(const gfx::Transform& transform, 152 void NotifyClientTransformAnimated(const gfx::Transform& transform,
152 bool notify_active_elements, 153 bool notify_active_elements,
153 bool notify_pending_elements); 154 bool notify_pending_elements);
154 void NotifyClientFilterAnimated(const FilterOperations& filter, 155 void NotifyClientFilterAnimated(const FilterOperations& filter,
155 bool notify_active_elements, 156 bool notify_active_elements,
156 bool notify_pending_elements); 157 bool notify_pending_elements);
157 void NotifyClientScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset, 158 void NotifyClientScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset,
158 bool notify_active_elements, 159 bool notify_active_elements,
159 bool notify_pending_elements); 160 bool notify_pending_elements);
161 void NotifyClientBoundsAnimated(const gfx::SizeF& size,
162 bool notify_active_elements,
163 bool notify_pending_elements);
164
160 gfx::ScrollOffset ScrollOffsetForAnimation() const; 165 gfx::ScrollOffset ScrollOffsetForAnimation() const;
161 166
162 private: 167 private:
163 friend class base::RefCounted<ElementAnimations>; 168 friend class base::RefCounted<ElementAnimations>;
164 169
165 ElementAnimations(); 170 ElementAnimations();
166 ~ElementAnimations(); 171 ~ElementAnimations();
167 172
168 void OnFilterAnimated(ElementListType list_type, 173 void OnFilterAnimated(ElementListType list_type,
169 const FilterOperations& filters); 174 const FilterOperations& filters);
(...skipping 21 matching lines...) Expand all
191 PropertyAnimationState pending_state_; 196 PropertyAnimationState pending_state_;
192 197
193 mutable bool needs_update_impl_client_state_; 198 mutable bool needs_update_impl_client_state_;
194 199
195 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); 200 DISALLOW_COPY_AND_ASSIGN(ElementAnimations);
196 }; 201 };
197 202
198 } // namespace cc 203 } // namespace cc
199 204
200 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ 205 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_
OLDNEW
« no previous file with comments | « cc/animation/animation_player.cc ('k') | cc/animation/element_animations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698