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/kill.h" | 9 #include "base/process/kill.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "cc/output/compositor_frame.h" | 11 #include "cc/output/compositor_frame.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/port/browser/event_with_latency_info.h" | 13 #include "content/port/browser/event_with_latency_info.h" |
14 #include "content/port/common/input_event_ack_state.h" | 14 #include "content/port/common/input_event_ack_state.h" |
15 #include "content/public/browser/render_widget_host_view.h" | 15 #include "content/public/browser/render_widget_host_view.h" |
16 #include "ipc/ipc_listener.h" | 16 #include "ipc/ipc_listener.h" |
17 #include "third_party/WebKit/public/web/WebPopupType.h" | 17 #include "third_party/WebKit/public/web/WebPopupType.h" |
18 #include "third_party/WebKit/public/web/WebTextDirection.h" | 18 #include "third_party/WebKit/public/web/WebTextDirection.h" |
19 #include "ui/base/ime/text_input_mode.h" | 19 #include "ui/base/ime/text_input_mode.h" |
20 #include "ui/base/ime/text_input_type.h" | 20 #include "ui/base/ime/text_input_type.h" |
21 #include "ui/base/range/range.h" | 21 #include "ui/base/range/range.h" |
22 #include "ui/surface/transport_dib.h" | 22 #include "ui/surface/transport_dib.h" |
23 | 23 |
24 class SkBitmap; | 24 class SkBitmap; |
25 class WebCursor; | 25 class WebCursor; |
26 | 26 |
27 struct AccessibilityHostMsg_NotificationParams; | 27 struct AccessibilityHostMsg_EventParams; |
28 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 28 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
29 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | 29 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
30 struct ViewHostMsg_TextInputState_Params; | 30 struct ViewHostMsg_TextInputState_Params; |
31 struct ViewHostMsg_SelectionBounds_Params; | 31 struct ViewHostMsg_SelectionBounds_Params; |
32 | 32 |
33 namespace media { | 33 namespace media { |
34 class VideoFrame; | 34 class VideoFrame; |
35 } | 35 } |
36 | 36 |
37 namespace WebKit { | 37 namespace WebKit { |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 InputEventAckState ack_result) = 0; | 287 InputEventAckState ack_result) = 0; |
288 | 288 |
289 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 289 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
290 gfx::Vector2dF current_fling_velocity) = 0; | 290 gfx::Vector2dF current_fling_velocity) = 0; |
291 | 291 |
292 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; | 292 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; |
293 virtual WebKit::WebPopupType GetPopupType() = 0; | 293 virtual WebKit::WebPopupType GetPopupType() = 0; |
294 | 294 |
295 virtual BrowserAccessibilityManager* | 295 virtual BrowserAccessibilityManager* |
296 GetBrowserAccessibilityManager() const = 0; | 296 GetBrowserAccessibilityManager() const = 0; |
297 virtual void OnAccessibilityNotifications( | 297 virtual void OnAccessibilityEvents( |
298 const std::vector<AccessibilityHostMsg_NotificationParams>& params) = 0; | 298 const std::vector<AccessibilityHostMsg_EventParams>& params) = 0; |
299 | 299 |
300 // Return a value that is incremented each time the renderer swaps a new frame | 300 // Return a value that is incremented each time the renderer swaps a new frame |
301 // to the view. | 301 // to the view. |
302 virtual uint32 RendererFrameNumber() = 0; | 302 virtual uint32 RendererFrameNumber() = 0; |
303 // Called each time the RenderWidgetHost receives a new frame for display from | 303 // Called each time the RenderWidgetHost receives a new frame for display from |
304 // the renderer. | 304 // the renderer. |
305 virtual void DidReceiveRendererFrame() = 0; | 305 virtual void DidReceiveRendererFrame() = 0; |
306 | 306 |
307 #if defined(OS_MACOSX) | 307 #if defined(OS_MACOSX) |
308 // Called just before GetBackingStore blocks for an updated frame. | 308 // Called just before GetBackingStore blocks for an updated frame. |
(...skipping 19 matching lines...) Expand all Loading... |
328 | 328 |
329 #if defined(OS_WIN) && defined(USE_AURA) | 329 #if defined(OS_WIN) && defined(USE_AURA) |
330 virtual void SetParentNativeViewAccessible( | 330 virtual void SetParentNativeViewAccessible( |
331 gfx::NativeViewAccessible accessible_parent) = 0; | 331 gfx::NativeViewAccessible accessible_parent) = 0; |
332 #endif | 332 #endif |
333 }; | 333 }; |
334 | 334 |
335 } // namespace content | 335 } // namespace content |
336 | 336 |
337 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 337 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |