| 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 24 matching lines...) Expand all Loading... |
| 35 #include "WebTopControlsState.h" | 35 #include "WebTopControlsState.h" |
| 36 | 36 |
| 37 class SkBitmap; | 37 class SkBitmap; |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class WebCompositeAndReadbackAsyncCallback; | 41 class WebCompositeAndReadbackAsyncCallback; |
| 42 class WebLayer; | 42 class WebLayer; |
| 43 struct WebPoint; | 43 struct WebPoint; |
| 44 struct WebSelectionBound; | 44 struct WebSelectionBound; |
| 45 class WebSelection; |
| 45 class WebWidget; | 46 class WebWidget; |
| 46 | 47 |
| 47 class WebLayerTreeView { | 48 class WebLayerTreeView { |
| 48 public: | 49 public: |
| 49 virtual ~WebLayerTreeView() { } | 50 virtual ~WebLayerTreeView() { } |
| 50 | 51 |
| 51 // Initialization and lifecycle -------------------------------------- | 52 // Initialization and lifecycle -------------------------------------- |
| 52 | 53 |
| 53 // Sets the root of the tree. The root is set by way of the constructor. | 54 // Sets the root of the tree. The root is set by way of the constructor. |
| 54 virtual void setRootLayer(const WebLayer&) = 0; | 55 virtual void setRootLayer(const WebLayer&) = 0; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 124 |
| 124 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. | 125 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. |
| 125 virtual void registerViewportLayers( | 126 virtual void registerViewportLayers( |
| 126 const WebLayer* overscrollElasticityLayer, | 127 const WebLayer* overscrollElasticityLayer, |
| 127 const WebLayer* pageScaleLayer, | 128 const WebLayer* pageScaleLayer, |
| 128 const WebLayer* innerViewportScrollLayer, | 129 const WebLayer* innerViewportScrollLayer, |
| 129 const WebLayer* outerViewportScrollLayer) { } | 130 const WebLayer* outerViewportScrollLayer) { } |
| 130 virtual void clearViewportLayers() { } | 131 virtual void clearViewportLayers() { } |
| 131 | 132 |
| 132 // Used to update the active selection bounds. | 133 // Used to update the active selection bounds. |
| 133 // If the (empty) selection is an insertion point, |start| and |end| will be
identical with type |Caret|. | 134 // FIXME: Remove this overload when downstream consumers have been updated t
o use WebSelection, crbug.com/466672. |
| 134 // If the (non-empty) selection has mixed RTL/LTR text, |start| and |end| ma
y share the same type, | |
| 135 // |SelectionLeft| or |SelectionRight|. | |
| 136 virtual void registerSelection(const WebSelectionBound& start, const WebSele
ctionBound& end) { } | 135 virtual void registerSelection(const WebSelectionBound& start, const WebSele
ctionBound& end) { } |
| 136 virtual void registerSelection(const WebSelection&) { } |
| 137 virtual void clearSelection() { } | 137 virtual void clearSelection() { } |
| 138 | 138 |
| 139 // Debugging / dangerous --------------------------------------------- | 139 // Debugging / dangerous --------------------------------------------- |
| 140 | 140 |
| 141 // Toggles the FPS counter in the HUD layer | 141 // Toggles the FPS counter in the HUD layer |
| 142 virtual void setShowFPSCounter(bool) { } | 142 virtual void setShowFPSCounter(bool) { } |
| 143 | 143 |
| 144 // Toggles the paint rects in the HUD layer | 144 // Toggles the paint rects in the HUD layer |
| 145 virtual void setShowPaintRects(bool) { } | 145 virtual void setShowPaintRects(bool) { } |
| 146 | 146 |
| 147 // Toggles the debug borders on layers | 147 // Toggles the debug borders on layers |
| 148 virtual void setShowDebugBorders(bool) { } | 148 virtual void setShowDebugBorders(bool) { } |
| 149 | 149 |
| 150 // Toggles continuous painting | 150 // Toggles continuous painting |
| 151 virtual void setContinuousPaintingEnabled(bool) { } | 151 virtual void setContinuousPaintingEnabled(bool) { } |
| 152 | 152 |
| 153 // Toggles scroll bottleneck rects on the HUD layer | 153 // Toggles scroll bottleneck rects on the HUD layer |
| 154 virtual void setShowScrollBottleneckRects(bool) { } | 154 virtual void setShowScrollBottleneckRects(bool) { } |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace blink | 157 } // namespace blink |
| 158 | 158 |
| 159 #endif // WebLayerTreeView_h | 159 #endif // WebLayerTreeView_h |
| OLD | NEW |