| 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 10 matching lines...) Expand all Loading... |
| 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef WebLayerTreeView_h | 26 #ifndef WebLayerTreeView_h |
| 27 #define WebLayerTreeView_h | 27 #define WebLayerTreeView_h |
| 28 | 28 |
| 29 #include "WebColor.h" | 29 #include "WebColor.h" |
| 30 #include "WebCommon.h" | 30 #include "WebCommon.h" |
| 31 #include "WebCompositorMutatorClient.h" |
| 31 #include "WebEventListenerProperties.h" | 32 #include "WebEventListenerProperties.h" |
| 32 #include "WebFloatPoint.h" | 33 #include "WebFloatPoint.h" |
| 33 #include "WebNonCopyable.h" | 34 #include "WebNonCopyable.h" |
| 34 #include "WebPrivateOwnPtr.h" | 35 #include "WebPrivateOwnPtr.h" |
| 35 #include "WebSize.h" | 36 #include "WebSize.h" |
| 36 #include "WebTopControlsState.h" | 37 #include "WebTopControlsState.h" |
| 37 | 38 |
| 38 class SkBitmap; | 39 class SkBitmap; |
| 39 | 40 |
| 40 namespace cc { | 41 namespace cc { |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 const WebLayer* overscrollElasticityLayer, | 139 const WebLayer* overscrollElasticityLayer, |
| 139 const WebLayer* pageScaleLayer, | 140 const WebLayer* pageScaleLayer, |
| 140 const WebLayer* innerViewportScrollLayer, | 141 const WebLayer* innerViewportScrollLayer, |
| 141 const WebLayer* outerViewportScrollLayer) { } | 142 const WebLayer* outerViewportScrollLayer) { } |
| 142 virtual void clearViewportLayers() { } | 143 virtual void clearViewportLayers() { } |
| 143 | 144 |
| 144 // Used to update the active selection bounds. | 145 // Used to update the active selection bounds. |
| 145 virtual void registerSelection(const WebSelection&) { } | 146 virtual void registerSelection(const WebSelection&) { } |
| 146 virtual void clearSelection() { } | 147 virtual void clearSelection() { } |
| 147 | 148 |
| 149 // Mutations are plumbed back to the layer tree via the mutator client. |
| 150 virtual void setMutatorClient(std::unique_ptr<WebCompositorMutatorClient>) {
} |
| 151 |
| 148 // Input properties --------------------------------------------------- | 152 // Input properties --------------------------------------------------- |
| 149 virtual void setEventListenerProperties(WebEventListenerClass, WebEventListe
nerProperties) { }; | 153 virtual void setEventListenerProperties(WebEventListenerClass, WebEventListe
nerProperties) { }; |
| 150 virtual void setHaveScrollEventHandlers(bool) { }; | 154 virtual void setHaveScrollEventHandlers(bool) { }; |
| 151 | 155 |
| 152 // Debugging / dangerous --------------------------------------------- | 156 // Debugging / dangerous --------------------------------------------- |
| 153 | 157 |
| 154 virtual WebEventListenerProperties eventListenerProperties(WebEventListenerC
lass) const { return WebEventListenerProperties::Nothing; }; | 158 virtual WebEventListenerProperties eventListenerProperties(WebEventListenerC
lass) const { return WebEventListenerProperties::Nothing; }; |
| 155 virtual bool haveScrollEventHandlers() const { return false; }; | 159 virtual bool haveScrollEventHandlers() const { return false; }; |
| 156 | 160 |
| 157 virtual int layerTreeId() const { return 0; } | 161 virtual int layerTreeId() const { return 0; } |
| 158 | 162 |
| 159 // Toggles the FPS counter in the HUD layer | 163 // Toggles the FPS counter in the HUD layer |
| 160 virtual void setShowFPSCounter(bool) { } | 164 virtual void setShowFPSCounter(bool) { } |
| 161 | 165 |
| 162 // Toggles the paint rects in the HUD layer | 166 // Toggles the paint rects in the HUD layer |
| 163 virtual void setShowPaintRects(bool) { } | 167 virtual void setShowPaintRects(bool) { } |
| 164 | 168 |
| 165 // Toggles the debug borders on layers | 169 // Toggles the debug borders on layers |
| 166 virtual void setShowDebugBorders(bool) { } | 170 virtual void setShowDebugBorders(bool) { } |
| 167 | 171 |
| 168 // Toggles scroll bottleneck rects on the HUD layer | 172 // Toggles scroll bottleneck rects on the HUD layer |
| 169 virtual void setShowScrollBottleneckRects(bool) { } | 173 virtual void setShowScrollBottleneckRects(bool) { } |
| 170 }; | 174 }; |
| 171 | 175 |
| 172 } // namespace blink | 176 } // namespace blink |
| 173 | 177 |
| 174 #endif // WebLayerTreeView_h | 178 #endif // WebLayerTreeView_h |
| OLD | NEW |