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

Side by Side Diff: cc/layers/layer_impl.h

Issue 1587073011: Plumb NotifyAnimationAborted from the compositor to blink animation delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: initialize aborted_ in unittest Created 4 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 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 CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating) override; 118 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating) override;
119 bool IsActive() const override; 119 bool IsActive() const override;
120 120
121 // AnimationDelegate implementation. 121 // AnimationDelegate implementation.
122 void NotifyAnimationStarted(base::TimeTicks monotonic_time, 122 void NotifyAnimationStarted(base::TimeTicks monotonic_time,
123 Animation::TargetProperty target_property, 123 Animation::TargetProperty target_property,
124 int group) override{}; 124 int group) override{};
125 void NotifyAnimationFinished(base::TimeTicks monotonic_time, 125 void NotifyAnimationFinished(base::TimeTicks monotonic_time,
126 Animation::TargetProperty target_property, 126 Animation::TargetProperty target_property,
127 int group) override; 127 int group) override;
128 void NotifyAnimationAborted(base::TimeTicks monotonic_time,
129 Animation::TargetProperty target_property,
130 int group) override{};
128 131
129 // Tree structure. 132 // Tree structure.
130 LayerImpl* parent() { return parent_; } 133 LayerImpl* parent() { return parent_; }
131 const LayerImpl* parent() const { return parent_; } 134 const LayerImpl* parent() const { return parent_; }
132 const OwnedLayerImplList& children() const { return children_; } 135 const OwnedLayerImplList& children() const { return children_; }
133 OwnedLayerImplList& children() { return children_; } 136 OwnedLayerImplList& children() { return children_; }
134 LayerImpl* child_at(size_t index) const { return children_[index].get(); } 137 LayerImpl* child_at(size_t index) const { return children_[index].get(); }
135 void AddChild(scoped_ptr<LayerImpl> child); 138 void AddChild(scoped_ptr<LayerImpl> child);
136 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child); 139 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child);
137 void SetParent(LayerImpl* parent); 140 void SetParent(LayerImpl* parent);
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 bool layer_or_descendant_has_input_handler_; 896 bool layer_or_descendant_has_input_handler_;
894 bool sorted_for_recursion_; 897 bool sorted_for_recursion_;
895 bool is_hidden_from_property_trees_; 898 bool is_hidden_from_property_trees_;
896 899
897 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 900 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
898 }; 901 };
899 902
900 } // namespace cc 903 } // namespace cc
901 904
902 #endif // CC_LAYERS_LAYER_IMPL_H_ 905 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/blink/web_to_cc_animation_delegate_adapter.cc ('k') | cc/test/animation_timelines_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698