| 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/port/common/input_event_ack_state.h" | 12 #include "content/port/common/input_event_ack_state.h" |
| 13 #include "content/public/browser/render_widget_host_view.h" | 13 #include "content/public/browser/render_widget_host_view.h" |
| 14 #include "ipc/ipc_listener.h" | 14 #include "ipc/ipc_listener.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 17 #include "ui/base/ime/text_input_type.h" | 17 #include "ui/base/ime/text_input_type.h" |
| 18 #include "ui/base/range/range.h" | 18 #include "ui/base/range/range.h" |
| 19 #include "ui/surface/transport_dib.h" | 19 #include "ui/surface/transport_dib.h" |
| 20 | 20 |
| 21 class SkBitmap; | 21 class SkBitmap; |
| 22 class WebCursor; | 22 class WebCursor; |
| 23 | 23 |
| 24 struct AccessibilityHostMsg_NotificationParams; | 24 struct AccessibilityHostMsg_NotificationParams; |
| 25 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 25 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
| 26 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | 26 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
| 27 struct ViewHostMsg_TextInputState_Params; | 27 struct ViewHostMsg_TextInputState_Params; |
| 28 struct ViewHostMsg_SelectionBounds_Params; | 28 struct ViewHostMsg_SelectionBounds_Params; |
| 29 | 29 |
| 30 namespace cc { |
| 31 class CompositorFrame; |
| 32 } |
| 33 |
| 30 namespace media { | 34 namespace media { |
| 31 class VideoFrame; | 35 class VideoFrame; |
| 32 } | 36 } |
| 33 | 37 |
| 34 namespace webkit { | 38 namespace webkit { |
| 35 namespace npapi { | 39 namespace npapi { |
| 36 struct WebPluginGeometry; | 40 struct WebPluginGeometry; |
| 37 } | 41 } |
| 38 } | 42 } |
| 39 | 43 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 // next swap buffers or post sub buffer. | 218 // next swap buffers or post sub buffer. |
| 215 virtual void AcceleratedSurfaceSuspend() = 0; | 219 virtual void AcceleratedSurfaceSuspend() = 0; |
| 216 | 220 |
| 217 virtual void AcceleratedSurfaceRelease() = 0; | 221 virtual void AcceleratedSurfaceRelease() = 0; |
| 218 | 222 |
| 219 // Return true if the view has an accelerated surface that contains the last | 223 // Return true if the view has an accelerated surface that contains the last |
| 220 // presented frame for the view. If |desired_size| is non-empty, true is | 224 // presented frame for the view. If |desired_size| is non-empty, true is |
| 221 // returned only if the accelerated surface size matches. | 225 // returned only if the accelerated surface size matches. |
| 222 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; | 226 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; |
| 223 | 227 |
| 228 virtual void OnSwapCompositorFrame(const cc::CompositorFrame& frame) = 0; |
| 229 |
| 224 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; | 230 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; |
| 225 | 231 |
| 226 // Gets the bounds of the window, in screen coordinates. | 232 // Gets the bounds of the window, in screen coordinates. |
| 227 virtual gfx::Rect GetBoundsInRootWindow() = 0; | 233 virtual gfx::Rect GetBoundsInRootWindow() = 0; |
| 228 | 234 |
| 229 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; | 235 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; |
| 230 | 236 |
| 231 // Because the associated remote WebKit instance can asynchronously | 237 // Because the associated remote WebKit instance can asynchronously |
| 232 // prevent-default on a dispatched touch event, the touch events are queued in | 238 // prevent-default on a dispatched touch event, the touch events are queued in |
| 233 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases | 239 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 #endif | 289 #endif |
| 284 | 290 |
| 285 #if defined(OS_WIN) && !defined(USE_AURA) | 291 #if defined(OS_WIN) && !defined(USE_AURA) |
| 286 virtual void WillWmDestroy() = 0; | 292 virtual void WillWmDestroy() = 0; |
| 287 #endif | 293 #endif |
| 288 }; | 294 }; |
| 289 | 295 |
| 290 } // namespace content | 296 } // namespace content |
| 291 | 297 |
| 292 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 298 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |