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" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/public/browser/render_widget_host_view.h" | 12 #include "content/public/browser/render_widget_host_view.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
15 #include "ui/base/ime/text_input_type.h" | 15 #include "ui/base/ime/text_input_type.h" |
16 #include "ui/base/range/range.h" | 16 #include "ui/base/range/range.h" |
17 #include "ui/surface/transport_dib.h" | 17 #include "ui/surface/transport_dib.h" |
18 | 18 |
19 class WebCursor; | 19 class WebCursor; |
20 | 20 |
21 struct AccessibilityHostMsg_NotificationParams; | 21 struct AccessibilityHostMsg_NotificationParams; |
22 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 22 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
23 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | 23 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
24 struct ViewHostMsg_TextInputState_Params; | 24 struct ViewHostMsg_TextInputState_Params; |
25 | 25 |
| 26 namespace cc { |
| 27 struct CompositorFrame; |
| 28 } |
| 29 |
26 namespace webkit { | 30 namespace webkit { |
27 namespace npapi { | 31 namespace npapi { |
28 struct WebPluginGeometry; | 32 struct WebPluginGeometry; |
29 } | 33 } |
30 } | 34 } |
31 | 35 |
| 36 namespace WebKit { |
32 #if defined(OS_POSIX) || defined(USE_AURA) | 37 #if defined(OS_POSIX) || defined(USE_AURA) |
33 namespace WebKit { | |
34 struct WebScreenInfo; | 38 struct WebScreenInfo; |
| 39 #endif |
35 } | 40 } |
36 #endif | |
37 | 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 { |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 const gfx::Size& content_size) = 0; | 234 const gfx::Size& content_size) = 0; |
231 virtual void DidSetNeedTouchEvents(bool need_touch_events) = 0; | 235 virtual void DidSetNeedTouchEvents(bool need_touch_events) = 0; |
232 #endif | 236 #endif |
233 | 237 |
234 virtual void AcceleratedSurfaceNew( | 238 virtual void AcceleratedSurfaceNew( |
235 int32 width_in_pixel, | 239 int32 width_in_pixel, |
236 int32 height_in_pixel, | 240 int32 height_in_pixel, |
237 uint64 surface_id) {} | 241 uint64 surface_id) {} |
238 virtual void AcceleratedSurfaceRelease(uint64 surface_id) {} | 242 virtual void AcceleratedSurfaceRelease(uint64 surface_id) {} |
239 | 243 |
| 244 virtual void SwapCompositorFrame(const cc::CompositorFrame& frame) {} |
| 245 |
240 #if defined(TOOLKIT_GTK) | 246 #if defined(TOOLKIT_GTK) |
241 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; | 247 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; |
242 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; | 248 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; |
243 #endif // defined(TOOLKIT_GTK) | 249 #endif // defined(TOOLKIT_GTK) |
244 | 250 |
245 #if defined(OS_WIN) && !defined(USE_AURA) | 251 #if defined(OS_WIN) && !defined(USE_AURA) |
246 virtual void WillWmDestroy() = 0; | 252 virtual void WillWmDestroy() = 0; |
247 #endif | 253 #endif |
248 | 254 |
249 #if defined(OS_POSIX) || defined(USE_AURA) | 255 #if defined(OS_POSIX) || defined(USE_AURA) |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 virtual BrowserAccessibilityManager* | 287 virtual BrowserAccessibilityManager* |
282 GetBrowserAccessibilityManager() const = 0; | 288 GetBrowserAccessibilityManager() const = 0; |
283 virtual void OnAccessibilityNotifications( | 289 virtual void OnAccessibilityNotifications( |
284 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 290 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { |
285 } | 291 } |
286 }; | 292 }; |
287 | 293 |
288 } // namespace content | 294 } // namespace content |
289 | 295 |
290 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 296 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |