| 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 "WebEventListenerProperties.h" |
| 31 #include "WebFloatPoint.h" | 32 #include "WebFloatPoint.h" |
| 32 #include "WebNonCopyable.h" | 33 #include "WebNonCopyable.h" |
| 33 #include "WebPrivateOwnPtr.h" | 34 #include "WebPrivateOwnPtr.h" |
| 34 #include "WebSize.h" | 35 #include "WebSize.h" |
| 35 #include "WebTopControlsState.h" | 36 #include "WebTopControlsState.h" |
| 36 | 37 |
| 37 class SkBitmap; | 38 class SkBitmap; |
| 38 | 39 |
| 39 namespace blink { | 40 namespace blink { |
| 40 | 41 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 const WebLayer* pageScaleLayer, | 136 const WebLayer* pageScaleLayer, |
| 136 const WebLayer* innerViewportScrollLayer, | 137 const WebLayer* innerViewportScrollLayer, |
| 137 const WebLayer* outerViewportScrollLayer) { } | 138 const WebLayer* outerViewportScrollLayer) { } |
| 138 virtual void clearViewportLayers() { } | 139 virtual void clearViewportLayers() { } |
| 139 | 140 |
| 140 // Used to update the active selection bounds. | 141 // Used to update the active selection bounds. |
| 141 virtual void registerSelection(const WebSelection&) { } | 142 virtual void registerSelection(const WebSelection&) { } |
| 142 virtual void clearSelection() { } | 143 virtual void clearSelection() { } |
| 143 | 144 |
| 144 // Input properties --------------------------------------------------- | 145 // Input properties --------------------------------------------------- |
| 145 virtual void setHaveWheelEventHandlers(bool) { }; | 146 virtual void setEventListenerProperties(WebEventListenerClass, WebEventListe
nerProperties) { }; |
| 146 virtual void setHaveScrollEventHandlers(bool) { }; | 147 virtual void setHaveScrollEventHandlers(bool) { }; |
| 147 | 148 |
| 148 // Debugging / dangerous --------------------------------------------- | 149 // Debugging / dangerous --------------------------------------------- |
| 149 | 150 |
| 150 virtual bool haveWheelEventHandlers() const { return false; }; | 151 virtual WebEventListenerProperties eventListenerProperties(WebEventListenerC
lass) const { return WebEventListenerProperties::Nothing; }; |
| 151 virtual bool haveScrollEventHandlers() const { return false; }; | 152 virtual bool haveScrollEventHandlers() const { return false; }; |
| 152 | 153 |
| 153 virtual int layerTreeId() const { return 0; } | 154 virtual int layerTreeId() const { return 0; } |
| 154 | 155 |
| 155 // Toggles the FPS counter in the HUD layer | 156 // Toggles the FPS counter in the HUD layer |
| 156 virtual void setShowFPSCounter(bool) { } | 157 virtual void setShowFPSCounter(bool) { } |
| 157 | 158 |
| 158 // Toggles the paint rects in the HUD layer | 159 // Toggles the paint rects in the HUD layer |
| 159 virtual void setShowPaintRects(bool) { } | 160 virtual void setShowPaintRects(bool) { } |
| 160 | 161 |
| 161 // Toggles the debug borders on layers | 162 // Toggles the debug borders on layers |
| 162 virtual void setShowDebugBorders(bool) { } | 163 virtual void setShowDebugBorders(bool) { } |
| 163 | 164 |
| 164 // Toggles scroll bottleneck rects on the HUD layer | 165 // Toggles scroll bottleneck rects on the HUD layer |
| 165 virtual void setShowScrollBottleneckRects(bool) { } | 166 virtual void setShowScrollBottleneckRects(bool) { } |
| 166 }; | 167 }; |
| 167 | 168 |
| 168 } // namespace blink | 169 } // namespace blink |
| 169 | 170 |
| 170 #endif // WebLayerTreeView_h | 171 #endif // WebLayerTreeView_h |
| OLD | NEW |