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 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 struct WebPluginGeometry; | 28 struct WebPluginGeometry; |
29 } | 29 } |
30 } | 30 } |
31 | 31 |
32 #if defined(OS_POSIX) || defined(USE_AURA) | 32 #if defined(OS_POSIX) || defined(USE_AURA) |
33 namespace WebKit { | 33 namespace WebKit { |
34 struct WebScreenInfo; | 34 struct WebScreenInfo; |
35 } | 35 } |
36 #endif | 36 #endif |
37 | 37 |
| 38 namespace skia { |
| 39 class PlatformBitmap; |
| 40 }; |
| 41 |
38 namespace content { | 42 namespace content { |
39 class BackingStore; | 43 class BackingStore; |
40 class SmoothScrollGesture; | 44 class SmoothScrollGesture; |
41 struct NativeWebKeyboardEvent; | 45 struct NativeWebKeyboardEvent; |
42 | 46 |
43 // This is the larger RenderWidgetHostView interface exposed only | 47 // This is the larger RenderWidgetHostView interface exposed only |
44 // within content/ and to embedders looking to port to new platforms. | 48 // within content/ and to embedders looking to port to new platforms. |
45 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. | 49 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. |
46 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView { | 50 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView { |
47 public: | 51 public: |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // The rectangle region specified with |src_subrect| is copied from the | 158 // The rectangle region specified with |src_subrect| is copied from the |
155 // contents, scaled to |dst_size|, and written to |output|. | 159 // contents, scaled to |dst_size|, and written to |output|. |
156 // |callback| is invoked with true on success, false otherwise. |output| can | 160 // |callback| is invoked with true on success, false otherwise. |output| can |
157 // be initialized even on failure. | 161 // be initialized even on failure. |
158 // NOTE: |callback| is called asynchronously on Aura and synchronously on the | 162 // NOTE: |callback| is called asynchronously on Aura and synchronously on the |
159 // other platforms. | 163 // other platforms. |
160 virtual void CopyFromCompositingSurface( | 164 virtual void CopyFromCompositingSurface( |
161 const gfx::Rect& src_subrect, | 165 const gfx::Rect& src_subrect, |
162 const gfx::Size& dst_size, | 166 const gfx::Size& dst_size, |
163 const base::Callback<void(bool)>& callback, | 167 const base::Callback<void(bool)>& callback, |
164 skia::PlatformCanvas* output) = 0; | 168 skia::PlatformBitmap* output) = 0; |
165 | 169 |
166 // Called when accelerated compositing state changes. | 170 // Called when accelerated compositing state changes. |
167 virtual void OnAcceleratedCompositingStateChange() = 0; | 171 virtual void OnAcceleratedCompositingStateChange() = 0; |
168 // |params.window| and |params.surface_id| indicate which accelerated | 172 // |params.window| and |params.surface_id| indicate which accelerated |
169 // surface's buffers swapped. |params.renderer_id| and |params.route_id| | 173 // surface's buffers swapped. |params.renderer_id| and |params.route_id| |
170 // are used to formulate a reply to the GPU process to prevent it from getting | 174 // are used to formulate a reply to the GPU process to prevent it from getting |
171 // too far ahead. They may all be zero, in which case no flow control is | 175 // too far ahead. They may all be zero, in which case no flow control is |
172 // enforced; this case is currently used for accelerated plugins. | 176 // enforced; this case is currently used for accelerated plugins. |
173 virtual void AcceleratedSurfaceBuffersSwapped( | 177 virtual void AcceleratedSurfaceBuffersSwapped( |
174 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params_in_pixel, | 178 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params_in_pixel, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 virtual BrowserAccessibilityManager* | 285 virtual BrowserAccessibilityManager* |
282 GetBrowserAccessibilityManager() const = 0; | 286 GetBrowserAccessibilityManager() const = 0; |
283 virtual void OnAccessibilityNotifications( | 287 virtual void OnAccessibilityNotifications( |
284 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 288 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { |
285 } | 289 } |
286 }; | 290 }; |
287 | 291 |
288 } // namespace content | 292 } // namespace content |
289 | 293 |
290 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 294 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |