| 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 12 matching lines...) Expand all Loading... |
| 23 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 23 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
| 24 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | 24 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
| 25 struct ViewHostMsg_TextInputState_Params; | 25 struct ViewHostMsg_TextInputState_Params; |
| 26 | 26 |
| 27 namespace webkit { | 27 namespace webkit { |
| 28 namespace npapi { | 28 namespace npapi { |
| 29 struct WebPluginGeometry; | 29 struct WebPluginGeometry; |
| 30 } | 30 } |
| 31 } | 31 } |
| 32 | 32 |
| 33 #if defined(OS_POSIX) || defined(USE_AURA) | |
| 34 namespace WebKit { | 33 namespace WebKit { |
| 35 struct WebScreenInfo; | 34 struct WebScreenInfo; |
| 36 } | 35 } |
| 37 #endif | |
| 38 | 36 |
| 39 namespace skia { | 37 namespace skia { |
| 40 class PlatformBitmap; | 38 class PlatformBitmap; |
| 41 }; | 39 }; |
| 42 | 40 |
| 43 namespace content { | 41 namespace content { |
| 44 class BackingStore; | 42 class BackingStore; |
| 45 class SmoothScrollGesture; | 43 class SmoothScrollGesture; |
| 46 struct NativeWebKeyboardEvent; | 44 struct NativeWebKeyboardEvent; |
| 47 | 45 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 | 245 |
| 248 #if defined(TOOLKIT_GTK) | 246 #if defined(TOOLKIT_GTK) |
| 249 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; | 247 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; |
| 250 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; | 248 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; |
| 251 #endif // defined(TOOLKIT_GTK) | 249 #endif // defined(TOOLKIT_GTK) |
| 252 | 250 |
| 253 #if defined(OS_WIN) && !defined(USE_AURA) | 251 #if defined(OS_WIN) && !defined(USE_AURA) |
| 254 virtual void WillWmDestroy() = 0; | 252 virtual void WillWmDestroy() = 0; |
| 255 #endif | 253 #endif |
| 256 | 254 |
| 257 #if defined(OS_POSIX) || defined(USE_AURA) | |
| 258 static void GetDefaultScreenInfo( | 255 static void GetDefaultScreenInfo( |
| 259 WebKit::WebScreenInfo* results); | 256 WebKit::WebScreenInfo* results); |
| 260 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; | 257 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; |
| 261 #endif | |
| 262 | 258 |
| 263 // Gets the bounds of the window, in screen coordinates. | 259 // Gets the bounds of the window, in screen coordinates. |
| 264 virtual gfx::Rect GetBoundsInRootWindow() = 0; | 260 virtual gfx::Rect GetBoundsInRootWindow() = 0; |
| 265 | 261 |
| 266 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; | 262 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; |
| 267 | 263 |
| 268 // Because the associated remote WebKit instance can asynchronously | 264 // Because the associated remote WebKit instance can asynchronously |
| 269 // prevent-default on a dispatched touch event, the touch events are queued in | 265 // prevent-default on a dispatched touch event, the touch events are queued in |
| 270 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases | 266 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases |
| 271 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) | 267 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 292 virtual BrowserAccessibilityManager* | 288 virtual BrowserAccessibilityManager* |
| 293 GetBrowserAccessibilityManager() const = 0; | 289 GetBrowserAccessibilityManager() const = 0; |
| 294 virtual void OnAccessibilityNotifications( | 290 virtual void OnAccessibilityNotifications( |
| 295 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 291 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { |
| 296 } | 292 } |
| 297 }; | 293 }; |
| 298 | 294 |
| 299 } // namespace content | 295 } // namespace content |
| 300 | 296 |
| 301 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 297 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |