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" |
(...skipping 22 matching lines...) Expand all Loading... |
33 namespace media { | 33 namespace media { |
34 class VideoFrame; | 34 class VideoFrame; |
35 } | 35 } |
36 | 36 |
37 namespace WebKit { | 37 namespace WebKit { |
38 struct WebScreenInfo; | 38 struct WebScreenInfo; |
39 } | 39 } |
40 | 40 |
41 namespace content { | 41 namespace content { |
42 class BackingStore; | 42 class BackingStore; |
| 43 class InputEvent; |
43 class RenderWidgetHostViewFrameSubscriber; | 44 class RenderWidgetHostViewFrameSubscriber; |
44 class SyntheticGesture; | 45 class SyntheticGesture; |
45 struct WebPluginGeometry; | 46 struct WebPluginGeometry; |
46 struct NativeWebKeyboardEvent; | 47 struct NativeWebKeyboardEvent; |
47 | 48 |
48 // This is the larger RenderWidgetHostView interface exposed only | 49 // This is the larger RenderWidgetHostView interface exposed only |
49 // within content/ and to embedders looking to port to new platforms. | 50 // within content/ and to embedders looking to port to new platforms. |
50 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. | 51 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. |
51 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView, | 52 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView, |
52 public IPC::Listener { | 53 public IPC::Listener { |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 virtual InputEventAckState FilterInputEvent( | 289 virtual InputEventAckState FilterInputEvent( |
289 const WebKit::WebInputEvent& input_event) = 0; | 290 const WebKit::WebInputEvent& input_event) = 0; |
290 | 291 |
291 // Called by the host when it requires an input flush; the flush call should | 292 // Called by the host when it requires an input flush; the flush call should |
292 // by synchronized with BeginFrame. | 293 // by synchronized with BeginFrame. |
293 virtual void OnSetNeedsFlushInput() = 0; | 294 virtual void OnSetNeedsFlushInput() = 0; |
294 | 295 |
295 // Called by the host when the input flush has completed. | 296 // Called by the host when the input flush has completed. |
296 virtual void OnDidFlushInput() = 0; | 297 virtual void OnDidFlushInput() = 0; |
297 | 298 |
| 299 virtual void QueueInputEventToPlatform(const InputEvent& event) = 0; |
| 300 |
298 virtual void GestureEventAck(int gesture_event_type, | 301 virtual void GestureEventAck(int gesture_event_type, |
299 InputEventAckState ack_result) = 0; | 302 InputEventAckState ack_result) = 0; |
300 | 303 |
301 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 304 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
302 gfx::Vector2dF current_fling_velocity) = 0; | 305 gfx::Vector2dF current_fling_velocity) = 0; |
303 | 306 |
304 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; | 307 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; |
305 virtual WebKit::WebPopupType GetPopupType() = 0; | 308 virtual WebKit::WebPopupType GetPopupType() = 0; |
306 | 309 |
307 virtual BrowserAccessibilityManager* | 310 virtual BrowserAccessibilityManager* |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 | 343 |
341 #if defined(OS_WIN) && defined(USE_AURA) | 344 #if defined(OS_WIN) && defined(USE_AURA) |
342 virtual void SetParentNativeViewAccessible( | 345 virtual void SetParentNativeViewAccessible( |
343 gfx::NativeViewAccessible accessible_parent) = 0; | 346 gfx::NativeViewAccessible accessible_parent) = 0; |
344 #endif | 347 #endif |
345 }; | 348 }; |
346 | 349 |
347 } // namespace content | 350 } // namespace content |
348 | 351 |
349 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 352 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |