| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 bool operator==(const ScrollUpdateInfo& other) const; | 143 bool operator==(const ScrollUpdateInfo& other) const; |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 // Used to communicate scrollbar visibility from Impl thread to Blink. | 146 // Used to communicate scrollbar visibility from Impl thread to Blink. |
| 147 // Scrollbar input is handled by Blink but the compositor thread animates | 147 // Scrollbar input is handled by Blink but the compositor thread animates |
| 148 // opacity on scrollbars to fade them out when they're overlay. Blink needs | 148 // opacity on scrollbars to fade them out when they're overlay. Blink needs |
| 149 // to be told when they're faded out so it can stop handling input for | 149 // to be told when they're faded out so it can stop handling input for |
| 150 // invisible scrollbars. | 150 // invisible scrollbars. |
| 151 struct CC_EXPORT ScrollbarsUpdateInfo { | 151 struct CC_EXPORT ScrollbarsUpdateInfo { |
| 152 int layer_id; | 152 ElementId element_id; |
| 153 bool hidden; | 153 bool hidden; |
| 154 | 154 |
| 155 ScrollbarsUpdateInfo(); | 155 ScrollbarsUpdateInfo(); |
| 156 ScrollbarsUpdateInfo(int layer_id, bool hidden); | 156 ScrollbarsUpdateInfo(ElementId element_id, bool hidden); |
| 157 | 157 |
| 158 bool operator==(const ScrollbarsUpdateInfo& other) const; | 158 bool operator==(const ScrollbarsUpdateInfo& other) const; |
| 159 }; | 159 }; |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 struct CC_EXPORT ScrollAndScaleSet { | 162 struct CC_EXPORT ScrollAndScaleSet { |
| 163 ScrollAndScaleSet(); | 163 ScrollAndScaleSet(); |
| 164 ~ScrollAndScaleSet(); | 164 ~ScrollAndScaleSet(); |
| 165 | 165 |
| 166 // The inner viewport scroll delta is kept separate since it's special. | 166 // The inner viewport scroll delta is kept separate since it's special. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 function(tree_impl->LayerById(id)); | 202 function(tree_impl->LayerById(id)); |
| 203 } | 203 } |
| 204 } | 204 } |
| 205 | 205 |
| 206 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); | 206 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); |
| 207 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); | 207 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); |
| 208 | 208 |
| 209 } // namespace cc | 209 } // namespace cc |
| 210 | 210 |
| 211 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 211 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
| OLD | NEW |