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