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

Side by Side Diff: cc/trees/mutator_host_client.h

Issue 2377223002: CC Animations: Rewrite unit tests to work with AnimationPlayer. (Closed)
Patch Set: Reparent. Created 4 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 | « cc/trees/layer_tree_host_unittest_animation.cc ('k') | no next file » | 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_TREES_MUTATOR_HOST_CLIENT_H_ 5 #ifndef CC_TREES_MUTATOR_HOST_CLIENT_H_
6 #define CC_TREES_MUTATOR_HOST_CLIENT_H_ 6 #define CC_TREES_MUTATOR_HOST_CLIENT_H_
7 7
8 // TODO(loyso) Move these headers out of cc/animation. 8 // TODO(loyso) Move these headers out of cc/animation.
9 #include "cc/animation/element_id.h" 9 #include "cc/animation/element_id.h"
10 #include "cc/animation/property_animation_state.h" 10 #include "cc/animation/property_animation_state.h"
11 #include "cc/animation/target_property.h" 11 #include "cc/animation/target_property.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class Transform; 14 class Transform;
15 class ScrollOffset; 15 class ScrollOffset;
16 } 16 }
17 17
18 namespace cc { 18 namespace cc {
19 19
20 class FilterOperations; 20 class FilterOperations;
21 21
22 enum class ElementListType { ACTIVE, PENDING }; 22 enum class ElementListType { ACTIVE, PENDING };
23 23
24 enum class AnimationChangeType { POTENTIAL, RUNNING, BOTH };
25
26 class MutatorHostClient { 24 class MutatorHostClient {
27 public: 25 public:
28 virtual bool IsElementInList(ElementId element_id, 26 virtual bool IsElementInList(ElementId element_id,
29 ElementListType list_type) const = 0; 27 ElementListType list_type) const = 0;
30 28
31 virtual void SetMutatorsNeedCommit() = 0; 29 virtual void SetMutatorsNeedCommit() = 0;
32 virtual void SetMutatorsNeedRebuildPropertyTrees() = 0; 30 virtual void SetMutatorsNeedRebuildPropertyTrees() = 0;
33 31
34 virtual void SetElementFilterMutated(ElementId element_id, 32 virtual void SetElementFilterMutated(ElementId element_id,
35 ElementListType list_type, 33 ElementListType list_type,
(...skipping 17 matching lines...) Expand all
53 const PropertyAnimationState& state) = 0; 51 const PropertyAnimationState& state) = 0;
54 52
55 virtual void ScrollOffsetAnimationFinished() = 0; 53 virtual void ScrollOffsetAnimationFinished() = 0;
56 virtual gfx::ScrollOffset GetScrollOffsetForAnimation( 54 virtual gfx::ScrollOffset GetScrollOffsetForAnimation(
57 ElementId element_id) const = 0; 55 ElementId element_id) const = 0;
58 }; 56 };
59 57
60 } // namespace cc 58 } // namespace cc
61 59
62 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_ 60 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698