| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 template <typename Function> | 138 template <typename Function> |
| 139 static void CallFunctionForEveryLayer(LayerTreeImpl* layer, | 139 static void CallFunctionForEveryLayer(LayerTreeImpl* layer, |
| 140 const Function& function); | 140 const Function& function); |
| 141 | 141 |
| 142 struct CC_EXPORT ScrollUpdateInfo { | 142 struct CC_EXPORT ScrollUpdateInfo { |
| 143 int layer_id; | 143 int layer_id; |
| 144 // TODO(miletus): Use ScrollOffset once LayerTreeHost/Blink fully supports | 144 // TODO(miletus): Use ScrollOffset once LayerTreeHost/Blink fully supports |
| 145 // franctional scroll offset. | 145 // franctional scroll offset. |
| 146 gfx::Vector2d scroll_delta; | 146 gfx::Vector2d scroll_delta; |
| 147 gfx::ScrollOffset overscroll; |
| 147 | 148 |
| 148 ScrollUpdateInfo(); | 149 ScrollUpdateInfo(); |
| 149 | 150 |
| 150 bool operator==(const ScrollUpdateInfo& other) const; | 151 bool operator==(const ScrollUpdateInfo& other) const; |
| 151 | 152 |
| 152 void ToProtobuf(proto::ScrollUpdateInfo* proto) const; | 153 void ToProtobuf(proto::ScrollUpdateInfo* proto) const; |
| 153 void FromProtobuf(const proto::ScrollUpdateInfo& proto); | 154 void FromProtobuf(const proto::ScrollUpdateInfo& proto); |
| 154 }; | 155 }; |
| 155 }; | 156 }; |
| 156 | 157 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 function(tree_impl->LayerById(id)); | 199 function(tree_impl->LayerById(id)); |
| 199 } | 200 } |
| 200 } | 201 } |
| 201 | 202 |
| 202 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); | 203 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); |
| 203 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); | 204 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); |
| 204 | 205 |
| 205 } // namespace cc | 206 } // namespace cc |
| 206 | 207 |
| 207 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 208 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
| OLD | NEW |