OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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_ANIMATION_LAYER_TREE_MUTATOR_H_ | |
6 #define CC_ANIMATION_LAYER_TREE_MUTATOR_H_ | |
7 | |
8 #include "base/callback_forward.h" | |
9 | |
10 namespace cc { | |
11 | |
12 class LayerTreeMutator { | |
13 public: | |
14 virtual ~LayerTreeMutator() {} | |
15 | |
16 // The callback which is responsible for applying layer tree mutations to DOM | |
17 // elements. | |
18 using ApplyMutationsCallback = base::Closure; | |
esprehn
2016/03/31 05:03:11
why add a typedef for this? Seems more clear to ju
danakj
2016/04/05 17:41:11
Ya, just use a Closure IMO.
| |
19 virtual ApplyMutationsCallback TakeMutations() = 0; | |
20 }; | |
21 | |
22 } // namespace cc | |
23 | |
24 #endif // CC_ANIMATION_LAYER_TREE_MUTATOR_H_ | |
OLD | NEW |