OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 // Mutations are plumbed back to the layer tree via the mutator client. | 153 // Mutations are plumbed back to the layer tree via the mutator client. |
154 virtual void setMutatorClient(std::unique_ptr<WebCompositorMutatorClient>) {} | 154 virtual void setMutatorClient(std::unique_ptr<WebCompositorMutatorClient>) {} |
155 | 155 |
156 // For when the embedder itself change scales on the page (e.g. devtools) | 156 // For when the embedder itself change scales on the page (e.g. devtools) |
157 // and wants all of the content at the new scale to be crisp. | 157 // and wants all of the content at the new scale to be crisp. |
158 virtual void forceRecalculateRasterScales() {} | 158 virtual void forceRecalculateRasterScales() {} |
159 | 159 |
160 // Input properties --------------------------------------------------- | 160 // Input properties --------------------------------------------------- |
161 virtual void setEventListenerProperties(WebEventListenerClass, | 161 virtual void setEventListenerProperties(WebEventListenerClass, |
162 WebEventListenerProperties){}; | 162 WebEventListenerProperties){}; |
| 163 virtual void updateTouchRectsForSubframeIfNecessary() {} |
163 virtual void setHaveScrollEventHandlers(bool){}; | 164 virtual void setHaveScrollEventHandlers(bool){}; |
164 | 165 |
165 // Debugging / dangerous --------------------------------------------- | 166 // Debugging / dangerous --------------------------------------------- |
166 | 167 |
167 virtual WebEventListenerProperties eventListenerProperties( | 168 virtual WebEventListenerProperties eventListenerProperties( |
168 WebEventListenerClass) const { | 169 WebEventListenerClass) const { |
169 return WebEventListenerProperties::Nothing; | 170 return WebEventListenerProperties::Nothing; |
170 }; | 171 }; |
171 virtual bool haveScrollEventHandlers() const { return false; }; | 172 virtual bool haveScrollEventHandlers() const { return false; }; |
172 | 173 |
173 virtual int layerTreeId() const { return 0; } | 174 virtual int layerTreeId() const { return 0; } |
174 | 175 |
175 // Toggles the FPS counter in the HUD layer | 176 // Toggles the FPS counter in the HUD layer |
176 virtual void setShowFPSCounter(bool) {} | 177 virtual void setShowFPSCounter(bool) {} |
177 | 178 |
178 // Toggles the paint rects in the HUD layer | 179 // Toggles the paint rects in the HUD layer |
179 virtual void setShowPaintRects(bool) {} | 180 virtual void setShowPaintRects(bool) {} |
180 | 181 |
181 // Toggles the debug borders on layers | 182 // Toggles the debug borders on layers |
182 virtual void setShowDebugBorders(bool) {} | 183 virtual void setShowDebugBorders(bool) {} |
183 | 184 |
184 // Toggles scroll bottleneck rects on the HUD layer | 185 // Toggles scroll bottleneck rects on the HUD layer |
185 virtual void setShowScrollBottleneckRects(bool) {} | 186 virtual void setShowScrollBottleneckRects(bool) {} |
186 }; | 187 }; |
187 | 188 |
188 } // namespace blink | 189 } // namespace blink |
189 | 190 |
190 #endif // WebLayerTreeView_h | 191 #endif // WebLayerTreeView_h |
OLD | NEW |