| 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 15 matching lines...) Expand all Loading... |
| 26 #ifndef WebLayerTreeView_h | 26 #ifndef WebLayerTreeView_h |
| 27 #define WebLayerTreeView_h | 27 #define WebLayerTreeView_h |
| 28 | 28 |
| 29 #include "WebBrowserControlsState.h" | 29 #include "WebBrowserControlsState.h" |
| 30 #include "WebColor.h" | 30 #include "WebColor.h" |
| 31 #include "WebCommon.h" | 31 #include "WebCommon.h" |
| 32 #include "WebCompositorMutatorClient.h" | 32 #include "WebCompositorMutatorClient.h" |
| 33 #include "WebEventListenerProperties.h" | 33 #include "WebEventListenerProperties.h" |
| 34 #include "WebFloatPoint.h" | 34 #include "WebFloatPoint.h" |
| 35 #include "WebSize.h" | 35 #include "WebSize.h" |
| 36 #include "cc/surfaces/frame_sink_id.h" |
| 36 | 37 |
| 37 namespace cc { | 38 namespace cc { |
| 38 class AnimationHost; | 39 class AnimationHost; |
| 39 } | 40 } |
| 40 | 41 |
| 41 namespace blink { | 42 namespace blink { |
| 42 | 43 |
| 43 class WebCompositeAndReadbackAsyncCallback; | 44 class WebCompositeAndReadbackAsyncCallback; |
| 44 class WebLayer; | 45 class WebLayer; |
| 45 class WebLayoutAndPaintAsyncCallback; | 46 class WebLayoutAndPaintAsyncCallback; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 156 |
| 156 // For when the embedder itself change scales on the page (e.g. devtools) | 157 // 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. | 158 // and wants all of the content at the new scale to be crisp. |
| 158 virtual void forceRecalculateRasterScales() {} | 159 virtual void forceRecalculateRasterScales() {} |
| 159 | 160 |
| 160 // Input properties --------------------------------------------------- | 161 // Input properties --------------------------------------------------- |
| 161 virtual void setEventListenerProperties(WebEventListenerClass, | 162 virtual void setEventListenerProperties(WebEventListenerClass, |
| 162 WebEventListenerProperties){}; | 163 WebEventListenerProperties){}; |
| 163 virtual void setHaveScrollEventHandlers(bool){}; | 164 virtual void setHaveScrollEventHandlers(bool){}; |
| 164 | 165 |
| 166 // Returns the FrameSinkId of the widget associated with this layer tree view. |
| 167 virtual cc::FrameSinkId getFrameSinkId() { return cc::FrameSinkId(); } |
| 168 |
| 165 // Debugging / dangerous --------------------------------------------- | 169 // Debugging / dangerous --------------------------------------------- |
| 166 | 170 |
| 167 virtual WebEventListenerProperties eventListenerProperties( | 171 virtual WebEventListenerProperties eventListenerProperties( |
| 168 WebEventListenerClass) const { | 172 WebEventListenerClass) const { |
| 169 return WebEventListenerProperties::Nothing; | 173 return WebEventListenerProperties::Nothing; |
| 170 }; | 174 }; |
| 171 virtual bool haveScrollEventHandlers() const { return false; }; | 175 virtual bool haveScrollEventHandlers() const { return false; }; |
| 172 | 176 |
| 173 virtual int layerTreeId() const { return 0; } | 177 virtual int layerTreeId() const { return 0; } |
| 174 | 178 |
| 175 // Toggles the FPS counter in the HUD layer | 179 // Toggles the FPS counter in the HUD layer |
| 176 virtual void setShowFPSCounter(bool) {} | 180 virtual void setShowFPSCounter(bool) {} |
| 177 | 181 |
| 178 // Toggles the paint rects in the HUD layer | 182 // Toggles the paint rects in the HUD layer |
| 179 virtual void setShowPaintRects(bool) {} | 183 virtual void setShowPaintRects(bool) {} |
| 180 | 184 |
| 181 // Toggles the debug borders on layers | 185 // Toggles the debug borders on layers |
| 182 virtual void setShowDebugBorders(bool) {} | 186 virtual void setShowDebugBorders(bool) {} |
| 183 | 187 |
| 184 // Toggles scroll bottleneck rects on the HUD layer | 188 // Toggles scroll bottleneck rects on the HUD layer |
| 185 virtual void setShowScrollBottleneckRects(bool) {} | 189 virtual void setShowScrollBottleneckRects(bool) {} |
| 186 }; | 190 }; |
| 187 | 191 |
| 188 } // namespace blink | 192 } // namespace blink |
| 189 | 193 |
| 190 #endif // WebLayerTreeView_h | 194 #endif // WebLayerTreeView_h |
| OLD | NEW |