OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 // Notifies the View that the renderer selection bounds has changed. | 132 // Notifies the View that the renderer selection bounds has changed. |
133 // |start_rect| and |end_rect| are the bounds end of the selection in the | 133 // |start_rect| and |end_rect| are the bounds end of the selection in the |
134 // coordinate system of the render view. | 134 // coordinate system of the render view. |
135 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, | 135 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, |
136 const gfx::Rect& end_rect) {} | 136 const gfx::Rect& end_rect) {} |
137 | 137 |
138 // Allocate a backing store for this view. | 138 // Allocate a backing store for this view. |
139 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; | 139 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; |
140 | 140 |
| 141 // Copies the contents of the compositing surface into the given |
| 142 // (uninitialized) PlatformCanvas if any. Returns true on success, false |
| 143 // otherwise. |
| 144 virtual bool CopyFromCompositingSurface(const gfx::Size& size, |
| 145 skia::PlatformCanvas* output) = 0; |
| 146 |
141 // Called when accelerated compositing state changes. | 147 // Called when accelerated compositing state changes. |
142 virtual void OnAcceleratedCompositingStateChange() = 0; | 148 virtual void OnAcceleratedCompositingStateChange() = 0; |
143 // |params.window| and |params.surface_id| indicate which accelerated | 149 // |params.window| and |params.surface_id| indicate which accelerated |
144 // surface's buffers swapped. |params.renderer_id| and |params.route_id| | 150 // surface's buffers swapped. |params.renderer_id| and |params.route_id| |
145 // are used to formulate a reply to the GPU process to prevent it from getting | 151 // are used to formulate a reply to the GPU process to prevent it from getting |
146 // too far ahead. They may all be zero, in which case no flow control is | 152 // too far ahead. They may all be zero, in which case no flow control is |
147 // enforced; this case is currently used for accelerated plugins. | 153 // enforced; this case is currently used for accelerated plugins. |
148 virtual void AcceleratedSurfaceBuffersSwapped( | 154 virtual void AcceleratedSurfaceBuffersSwapped( |
149 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 155 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
150 int gpu_host_id) = 0; | 156 int gpu_host_id) = 0; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 virtual WebKit::WebPopupType GetPopupType() = 0; | 248 virtual WebKit::WebPopupType GetPopupType() = 0; |
243 | 249 |
244 virtual void OnAccessibilityNotifications( | 250 virtual void OnAccessibilityNotifications( |
245 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 251 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { |
246 } | 252 } |
247 }; | 253 }; |
248 | 254 |
249 } // namespace content | 255 } // namespace content |
250 | 256 |
251 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 257 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |