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