| OLD | NEW |
| 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_TREES_LAYER_TREE_HOST_COMMON_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <limits> | 10 #include <limits> |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 template <typename Function> | 129 template <typename Function> |
| 130 static void CallFunctionForEveryLayer(LayerTreeImpl* layer, | 130 static void CallFunctionForEveryLayer(LayerTreeImpl* layer, |
| 131 const Function& function); | 131 const Function& function); |
| 132 | 132 |
| 133 struct CC_EXPORT ScrollUpdateInfo { | 133 struct CC_EXPORT ScrollUpdateInfo { |
| 134 int layer_id; | 134 int layer_id; |
| 135 // TODO(miletus): Use ScrollOffset once LayerTreeHost/Blink fully supports | 135 // TODO(miletus): Use ScrollOffset once LayerTreeHost/Blink fully supports |
| 136 // franctional scroll offset. | 136 // franctional scroll offset. |
| 137 gfx::Vector2d scroll_delta; | 137 gfx::Vector2d scroll_delta; |
| 138 gfx::ScrollOffset overscroll; |
| 138 | 139 |
| 139 ScrollUpdateInfo(); | 140 ScrollUpdateInfo(); |
| 140 | 141 |
| 141 bool operator==(const ScrollUpdateInfo& other) const; | 142 bool operator==(const ScrollUpdateInfo& other) const; |
| 142 | 143 |
| 143 void ToProtobuf(proto::ScrollUpdateInfo* proto) const; | 144 void ToProtobuf(proto::ScrollUpdateInfo* proto) const; |
| 144 void FromProtobuf(const proto::ScrollUpdateInfo& proto); | 145 void FromProtobuf(const proto::ScrollUpdateInfo& proto); |
| 145 }; | 146 }; |
| 146 }; | 147 }; |
| 147 | 148 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 function(tree_impl->LayerById(id)); | 196 function(tree_impl->LayerById(id)); |
| 196 } | 197 } |
| 197 } | 198 } |
| 198 | 199 |
| 199 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); | 200 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); |
| 200 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); | 201 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); |
| 201 | 202 |
| 202 } // namespace cc | 203 } // namespace cc |
| 203 | 204 |
| 204 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 205 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
| OLD | NEW |