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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 class SkBitmap; | 38 class SkBitmap; |
39 | 39 |
40 namespace cc { | 40 namespace cc { |
41 class AnimationTimeline; | 41 class AnimationTimeline; |
42 } | 42 } |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 class WebCompositeAndReadbackAsyncCallback; | 46 class WebCompositeAndReadbackAsyncCallback; |
| 47 class WebCompositorMutatorClient; |
47 class WebLayer; | 48 class WebLayer; |
48 class WebLayoutAndPaintAsyncCallback; | 49 class WebLayoutAndPaintAsyncCallback; |
49 struct WebPoint; | 50 struct WebPoint; |
50 struct WebSelectionBound; | 51 struct WebSelectionBound; |
51 class WebSelection; | 52 class WebSelection; |
52 class WebWidget; | 53 class WebWidget; |
53 | 54 |
54 class WebLayerTreeView { | 55 class WebLayerTreeView { |
55 public: | 56 public: |
56 virtual ~WebLayerTreeView() { } | 57 virtual ~WebLayerTreeView() { } |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 const WebLayer* overscrollElasticityLayer, | 136 const WebLayer* overscrollElasticityLayer, |
136 const WebLayer* pageScaleLayer, | 137 const WebLayer* pageScaleLayer, |
137 const WebLayer* innerViewportScrollLayer, | 138 const WebLayer* innerViewportScrollLayer, |
138 const WebLayer* outerViewportScrollLayer) { } | 139 const WebLayer* outerViewportScrollLayer) { } |
139 virtual void clearViewportLayers() { } | 140 virtual void clearViewportLayers() { } |
140 | 141 |
141 // Used to update the active selection bounds. | 142 // Used to update the active selection bounds. |
142 virtual void registerSelection(const WebSelection&) { } | 143 virtual void registerSelection(const WebSelection&) { } |
143 virtual void clearSelection() { } | 144 virtual void clearSelection() { } |
144 | 145 |
| 146 // Mutations are plumbed back to the layer tree via the mutator client. |
| 147 virtual void setMutatorClient(std::unique_ptr<WebCompositorMutatorClient>) {
} |
| 148 |
145 // Input properties --------------------------------------------------- | 149 // Input properties --------------------------------------------------- |
146 virtual void setEventListenerProperties(WebEventListenerClass, WebEventListe
nerProperties) { }; | 150 virtual void setEventListenerProperties(WebEventListenerClass, WebEventListe
nerProperties) { }; |
147 virtual void setHaveScrollEventHandlers(bool) { }; | 151 virtual void setHaveScrollEventHandlers(bool) { }; |
148 | 152 |
149 // Debugging / dangerous --------------------------------------------- | 153 // Debugging / dangerous --------------------------------------------- |
150 | 154 |
151 virtual WebEventListenerProperties eventListenerProperties(WebEventListenerC
lass) const { return WebEventListenerProperties::Nothing; }; | 155 virtual WebEventListenerProperties eventListenerProperties(WebEventListenerC
lass) const { return WebEventListenerProperties::Nothing; }; |
152 virtual bool haveScrollEventHandlers() const { return false; }; | 156 virtual bool haveScrollEventHandlers() const { return false; }; |
153 | 157 |
154 virtual int layerTreeId() const { return 0; } | 158 virtual int layerTreeId() const { return 0; } |
155 | 159 |
156 // Toggles the FPS counter in the HUD layer | 160 // Toggles the FPS counter in the HUD layer |
157 virtual void setShowFPSCounter(bool) { } | 161 virtual void setShowFPSCounter(bool) { } |
158 | 162 |
159 // Toggles the paint rects in the HUD layer | 163 // Toggles the paint rects in the HUD layer |
160 virtual void setShowPaintRects(bool) { } | 164 virtual void setShowPaintRects(bool) { } |
161 | 165 |
162 // Toggles the debug borders on layers | 166 // Toggles the debug borders on layers |
163 virtual void setShowDebugBorders(bool) { } | 167 virtual void setShowDebugBorders(bool) { } |
164 | 168 |
165 // Toggles scroll bottleneck rects on the HUD layer | 169 // Toggles scroll bottleneck rects on the HUD layer |
166 virtual void setShowScrollBottleneckRects(bool) { } | 170 virtual void setShowScrollBottleneckRects(bool) { } |
167 }; | 171 }; |
168 | 172 |
169 } // namespace blink | 173 } // namespace blink |
170 | 174 |
171 #endif // WebLayerTreeView_h | 175 #endif // WebLayerTreeView_h |
OLD | NEW |