Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Side by Side Diff: cc/trees/layer_tree_host_common.h

Issue 2816063003: Replace layer id with Element id for tracking scrollbar animation controllers (Closed)
Patch Set: Address reviewer comments, pull element_id.h change to another patch Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 bool operator==(const ScrollUpdateInfo& other) const; 141 bool operator==(const ScrollUpdateInfo& other) const;
142 }; 142 };
143 143
144 // Used to communicate scrollbar visibility from Impl thread to Blink. 144 // Used to communicate scrollbar visibility from Impl thread to Blink.
145 // Scrollbar input is handled by Blink but the compositor thread animates 145 // Scrollbar input is handled by Blink but the compositor thread animates
146 // opacity on scrollbars to fade them out when they're overlay. Blink needs 146 // opacity on scrollbars to fade them out when they're overlay. Blink needs
147 // to be told when they're faded out so it can stop handling input for 147 // to be told when they're faded out so it can stop handling input for
148 // invisible scrollbars. 148 // invisible scrollbars.
149 struct CC_EXPORT ScrollbarsUpdateInfo { 149 struct CC_EXPORT ScrollbarsUpdateInfo {
150 int layer_id; 150 ElementId element_id;
151 bool hidden; 151 bool hidden;
152 152
153 ScrollbarsUpdateInfo(); 153 ScrollbarsUpdateInfo();
154 ScrollbarsUpdateInfo(int layer_id, bool hidden); 154 ScrollbarsUpdateInfo(ElementId element_id, bool hidden);
155 155
156 bool operator==(const ScrollbarsUpdateInfo& other) const; 156 bool operator==(const ScrollbarsUpdateInfo& other) const;
157 }; 157 };
158 }; 158 };
159 159
160 struct CC_EXPORT ScrollAndScaleSet { 160 struct CC_EXPORT ScrollAndScaleSet {
161 ScrollAndScaleSet(); 161 ScrollAndScaleSet();
162 ~ScrollAndScaleSet(); 162 ~ScrollAndScaleSet();
163 163
164 // The inner viewport scroll delta is kept separate since it's special. 164 // The inner viewport scroll delta is kept separate since it's special.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 function(tree_impl->LayerById(id)); 200 function(tree_impl->LayerById(id));
201 } 201 }
202 } 202 }
203 203
204 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); 204 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer);
205 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); 205 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer);
206 206
207 } // namespace cc 207 } // namespace cc
208 208
209 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 209 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698