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 | 35 |
36 class SkBitmap; | 36 class SkBitmap; |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 class WebCompositeAndReadbackAsyncCallback; | 39 class WebCompositeAndReadbackAsyncCallback; |
40 class WebGraphicsContext3D; | 40 class WebGraphicsContext3D; |
41 class WebLayer; | 41 class WebLayer; |
42 struct WebPoint; | 42 struct WebPoint; |
43 struct WebRect; | 43 struct WebRect; |
44 struct WebRenderingStats; | 44 struct WebRenderingStats; |
| 45 struct WebSelectionBound; |
45 | 46 |
46 class WebLayerTreeView { | 47 class WebLayerTreeView { |
47 public: | 48 public: |
48 virtual ~WebLayerTreeView() { } | 49 virtual ~WebLayerTreeView() { } |
49 | 50 |
50 // Initialization and lifecycle -------------------------------------- | 51 // Initialization and lifecycle -------------------------------------- |
51 | 52 |
52 // Indicates that the compositing surface used by this WebLayerTreeView is r
eady to use. | 53 // Indicates that the compositing surface used by this WebLayerTreeView is r
eady to use. |
53 // A WebLayerTreeView may request a context from its client before the surfa
ce is ready, | 54 // A WebLayerTreeView may request a context from its client before the surfa
ce is ready, |
54 // but it won't attempt to use it. | 55 // but it won't attempt to use it. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // been added to the tree. | 119 // been added to the tree. |
119 virtual void registerForAnimations(WebLayer* layer) { } | 120 virtual void registerForAnimations(WebLayer* layer) { } |
120 | 121 |
121 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. | 122 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. |
122 virtual void registerViewportLayers( | 123 virtual void registerViewportLayers( |
123 const WebLayer* pageScaleLayerLayer, | 124 const WebLayer* pageScaleLayerLayer, |
124 const WebLayer* innerViewportScrollLayer, | 125 const WebLayer* innerViewportScrollLayer, |
125 const WebLayer* outerViewportScrollLayer) { } | 126 const WebLayer* outerViewportScrollLayer) { } |
126 virtual void clearViewportLayers() { } | 127 virtual void clearViewportLayers() { } |
127 | 128 |
| 129 // Used to update the active selection bounds. |
| 130 // If the (empty) selection is an insertion point, |anchor| and |focus| will
be identical with type |Caret|. |
| 131 // If the (non-empty) selection has mixed RTL/LTR text, |anchor| and |focus|
may share the same type, |
| 132 // |SelectionLeft| or |SelectionRight|. |
| 133 virtual void registerSelection(const WebSelectionBound& anchor, const WebSel
ectionBound& focus) { } |
| 134 virtual void clearSelection() { } |
| 135 |
128 // Debugging / dangerous --------------------------------------------- | 136 // Debugging / dangerous --------------------------------------------- |
129 | 137 |
130 // Toggles the FPS counter in the HUD layer | 138 // Toggles the FPS counter in the HUD layer |
131 virtual void setShowFPSCounter(bool) { } | 139 virtual void setShowFPSCounter(bool) { } |
132 | 140 |
133 // Toggles the paint rects in the HUD layer | 141 // Toggles the paint rects in the HUD layer |
134 virtual void setShowPaintRects(bool) { } | 142 virtual void setShowPaintRects(bool) { } |
135 | 143 |
136 // Toggles the debug borders on layers | 144 // Toggles the debug borders on layers |
137 virtual void setShowDebugBorders(bool) { } | 145 virtual void setShowDebugBorders(bool) { } |
138 | 146 |
139 // Toggles continuous painting | 147 // Toggles continuous painting |
140 virtual void setContinuousPaintingEnabled(bool) { } | 148 virtual void setContinuousPaintingEnabled(bool) { } |
141 | 149 |
142 // Toggles scroll bottleneck rects on the HUD layer | 150 // Toggles scroll bottleneck rects on the HUD layer |
143 virtual void setShowScrollBottleneckRects(bool) { } | 151 virtual void setShowScrollBottleneckRects(bool) { } |
144 }; | 152 }; |
145 | 153 |
146 } // namespace blink | 154 } // namespace blink |
147 | 155 |
148 #endif // WebLayerTreeView_h | 156 #endif // WebLayerTreeView_h |
OLD | NEW |