OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CC_PUBLIC_MUTATOR_HOST_CLIENT_H_ | |
ajuma
2015/06/29 14:56:19
Creating a cc/public directory for this seems a bi
loyso (OOO)
2015/06/30 01:39:57
We have a plan to accumulate all the external cc i
| |
6 #define CC_PUBLIC_MUTATOR_HOST_CLIENT_H_ | |
7 | |
8 namespace gfx { | |
9 class Transform; | |
10 class ScrollOffset; | |
11 } | |
12 | |
13 namespace cc { | |
14 | |
15 class FilterOperations; | |
16 class Layer; | |
17 | |
18 enum class LayerTreeType { ACTIVE, PENDING }; | |
19 | |
20 class MutatorHostClient { | |
21 public: | |
22 virtual bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const = 0; | |
23 virtual void SetMutatorsNeedCommit() = 0; | |
24 | |
25 virtual void SetLayerFilterMutated(int layer_id, | |
26 LayerTreeType tree_type, | |
27 const FilterOperations& filters) = 0; | |
28 virtual void SetLayerOpacityMutated(int layer_id, | |
29 LayerTreeType tree_type, | |
30 float opacity) = 0; | |
31 virtual void SetLayerTransformMutated(int layer_id, | |
32 LayerTreeType tree_type, | |
33 const gfx::Transform& transform) = 0; | |
34 virtual void SetLayerScrollOffsetMutated( | |
35 int layer_id, | |
36 LayerTreeType tree_type, | |
37 const gfx::ScrollOffset& scroll_offset) = 0; | |
38 }; | |
39 | |
40 } // namespace cc | |
41 | |
42 #endif // CC_PUBLIC_MUTATOR_HOST_CLIENT_H_ | |
OLD | NEW |