| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. | 142 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. |
| 143 virtual void registerViewportLayers( | 143 virtual void registerViewportLayers( |
| 144 const WebLayer* overscrollElasticityLayer, | 144 const WebLayer* overscrollElasticityLayer, |
| 145 const WebLayer* pageScaleLayer, | 145 const WebLayer* pageScaleLayer, |
| 146 const WebLayer* innerViewportScrollLayer, | 146 const WebLayer* innerViewportScrollLayer, |
| 147 const WebLayer* outerViewportScrollLayer) { } | 147 const WebLayer* outerViewportScrollLayer) { } |
| 148 virtual void clearViewportLayers() { } | 148 virtual void clearViewportLayers() { } |
| 149 | 149 |
| 150 // Used to update the active selection bounds. | 150 // Used to update the active selection bounds. |
| 151 // FIXME: Remove this overload when downstream consumers have been updated t
o use WebSelection, crbug.com/466672. | |
| 152 virtual void registerSelection(const WebSelectionBound& start, const WebSele
ctionBound& end) { } | |
| 153 virtual void registerSelection(const WebSelection&) { } | 151 virtual void registerSelection(const WebSelection&) { } |
| 154 virtual void clearSelection() { } | 152 virtual void clearSelection() { } |
| 155 | 153 |
| 156 // Debugging / dangerous --------------------------------------------- | 154 // Debugging / dangerous --------------------------------------------- |
| 157 | 155 |
| 158 virtual int layerTreeId() const { return 0; } | 156 virtual int layerTreeId() const { return 0; } |
| 159 | 157 |
| 160 // Toggles the FPS counter in the HUD layer | 158 // Toggles the FPS counter in the HUD layer |
| 161 virtual void setShowFPSCounter(bool) { } | 159 virtual void setShowFPSCounter(bool) { } |
| 162 | 160 |
| 163 // Toggles the paint rects in the HUD layer | 161 // Toggles the paint rects in the HUD layer |
| 164 virtual void setShowPaintRects(bool) { } | 162 virtual void setShowPaintRects(bool) { } |
| 165 | 163 |
| 166 // Toggles the debug borders on layers | 164 // Toggles the debug borders on layers |
| 167 virtual void setShowDebugBorders(bool) { } | 165 virtual void setShowDebugBorders(bool) { } |
| 168 | 166 |
| 169 // Toggles continuous painting | 167 // Toggles continuous painting |
| 170 virtual void setContinuousPaintingEnabled(bool) { } | 168 virtual void setContinuousPaintingEnabled(bool) { } |
| 171 | 169 |
| 172 // Toggles scroll bottleneck rects on the HUD layer | 170 // Toggles scroll bottleneck rects on the HUD layer |
| 173 virtual void setShowScrollBottleneckRects(bool) { } | 171 virtual void setShowScrollBottleneckRects(bool) { } |
| 174 }; | 172 }; |
| 175 | 173 |
| 176 } // namespace blink | 174 } // namespace blink |
| 177 | 175 |
| 178 #endif // WebLayerTreeView_h | 176 #endif // WebLayerTreeView_h |
| OLD | NEW |