| 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 11 matching lines...) Expand all Loading... |
| 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 webkit { | 26 namespace webkit { |
| 27 namespace npapi { | 27 namespace npapi { |
| 28 struct WebPluginGeometry; | 28 struct WebPluginGeometry; |
| 29 } | 29 } |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace WebKit { |
| 33 struct WebCompositorFrame; |
| 32 #if defined(OS_POSIX) || defined(USE_AURA) | 34 #if defined(OS_POSIX) || defined(USE_AURA) |
| 33 namespace WebKit { | |
| 34 struct WebScreenInfo; | 35 struct WebScreenInfo; |
| 36 #endif |
| 35 } | 37 } |
| 36 #endif | |
| 37 | 38 |
| 38 namespace content { | 39 namespace content { |
| 39 class BackingStore; | 40 class BackingStore; |
| 40 class SmoothScrollGesture; | 41 class SmoothScrollGesture; |
| 41 struct NativeWebKeyboardEvent; | 42 struct NativeWebKeyboardEvent; |
| 42 | 43 |
| 43 // This is the larger RenderWidgetHostView interface exposed only | 44 // This is the larger RenderWidgetHostView interface exposed only |
| 44 // within content/ and to embedders looking to port to new platforms. | 45 // within content/ and to embedders looking to port to new platforms. |
| 45 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. | 46 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. |
| 46 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView { | 47 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; | 231 const gfx::Size& content_size) = 0; |
| 231 virtual void DidSetNeedTouchEvents(bool need_touch_events) = 0; | 232 virtual void DidSetNeedTouchEvents(bool need_touch_events) = 0; |
| 232 #endif | 233 #endif |
| 233 | 234 |
| 234 virtual void AcceleratedSurfaceNew( | 235 virtual void AcceleratedSurfaceNew( |
| 235 int32 width_in_pixel, | 236 int32 width_in_pixel, |
| 236 int32 height_in_pixel, | 237 int32 height_in_pixel, |
| 237 uint64 surface_id) {} | 238 uint64 surface_id) {} |
| 238 virtual void AcceleratedSurfaceRelease(uint64 surface_id) {} | 239 virtual void AcceleratedSurfaceRelease(uint64 surface_id) {} |
| 239 | 240 |
| 241 virtual void SwapCompositorFrame(const WebKit::WebCompositorFrame& frame) {} |
| 242 |
| 240 #if defined(TOOLKIT_GTK) | 243 #if defined(TOOLKIT_GTK) |
| 241 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; | 244 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; |
| 242 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; | 245 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; |
| 243 #endif // defined(TOOLKIT_GTK) | 246 #endif // defined(TOOLKIT_GTK) |
| 244 | 247 |
| 245 #if defined(OS_WIN) && !defined(USE_AURA) | 248 #if defined(OS_WIN) && !defined(USE_AURA) |
| 246 virtual void WillWmDestroy() = 0; | 249 virtual void WillWmDestroy() = 0; |
| 247 #endif | 250 #endif |
| 248 | 251 |
| 249 #if defined(OS_POSIX) || defined(USE_AURA) | 252 #if defined(OS_POSIX) || defined(USE_AURA) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 virtual BrowserAccessibilityManager* | 284 virtual BrowserAccessibilityManager* |
| 282 GetBrowserAccessibilityManager() const = 0; | 285 GetBrowserAccessibilityManager() const = 0; |
| 283 virtual void OnAccessibilityNotifications( | 286 virtual void OnAccessibilityNotifications( |
| 284 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 287 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { |
| 285 } | 288 } |
| 286 }; | 289 }; |
| 287 | 290 |
| 288 } // namespace content | 291 } // namespace content |
| 289 | 292 |
| 290 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 293 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |