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/memory/scoped_ptr.h" |
9 #include "base/process/kill.h" | 10 #include "base/process/kill.h" |
10 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
11 #include "cc/output/compositor_frame.h" | 12 #include "cc/output/compositor_frame.h" |
12 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
13 #include "content/port/browser/event_with_latency_info.h" | 14 #include "content/port/browser/event_with_latency_info.h" |
14 #include "content/port/common/input_event_ack_state.h" | 15 #include "content/port/common/input_event_ack_state.h" |
15 #include "content/public/browser/render_widget_host_view.h" | 16 #include "content/public/browser/render_widget_host_view.h" |
16 #include "ipc/ipc_listener.h" | 17 #include "ipc/ipc_listener.h" |
17 #include "third_party/WebKit/public/web/WebPopupType.h" | 18 #include "third_party/WebKit/public/web/WebPopupType.h" |
18 #include "third_party/WebKit/public/web/WebTextDirection.h" | 19 #include "third_party/WebKit/public/web/WebTextDirection.h" |
(...skipping 16 matching lines...) Expand all Loading... |
35 } | 36 } |
36 | 37 |
37 namespace blink { | 38 namespace blink { |
38 struct WebScreenInfo; | 39 struct WebScreenInfo; |
39 } | 40 } |
40 | 41 |
41 namespace content { | 42 namespace content { |
42 class BackingStore; | 43 class BackingStore; |
43 class RenderWidgetHostViewFrameSubscriber; | 44 class RenderWidgetHostViewFrameSubscriber; |
44 class SyntheticGesture; | 45 class SyntheticGesture; |
| 46 class SyntheticGestureTarget; |
45 struct WebPluginGeometry; | 47 struct WebPluginGeometry; |
46 struct NativeWebKeyboardEvent; | 48 struct NativeWebKeyboardEvent; |
47 | 49 |
48 // This is the larger RenderWidgetHostView interface exposed only | 50 // This is the larger RenderWidgetHostView interface exposed only |
49 // within content/ and to embedders looking to port to new platforms. | 51 // within content/ and to embedders looking to port to new platforms. |
50 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. | 52 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. |
51 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView, | 53 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView, |
52 public IPC::Listener { | 54 public IPC::Listener { |
53 public: | 55 public: |
54 virtual ~RenderWidgetHostViewPort() {} | 56 virtual ~RenderWidgetHostViewPort() {} |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 virtual InputEventAckState FilterInputEvent( | 295 virtual InputEventAckState FilterInputEvent( |
294 const blink::WebInputEvent& input_event) = 0; | 296 const blink::WebInputEvent& input_event) = 0; |
295 | 297 |
296 // Called by the host when it requires an input flush; the flush call should | 298 // Called by the host when it requires an input flush; the flush call should |
297 // by synchronized with BeginFrame. | 299 // by synchronized with BeginFrame. |
298 virtual void OnSetNeedsFlushInput() = 0; | 300 virtual void OnSetNeedsFlushInput() = 0; |
299 | 301 |
300 // Called by the host when the input flush has completed. | 302 // Called by the host when the input flush has completed. |
301 virtual void OnDidFlushInput() = 0; | 303 virtual void OnDidFlushInput() = 0; |
302 | 304 |
| 305 // Create a platform specific SyntheticGestureTarget implementation that will |
| 306 // be used to inject synthetic input events. |
| 307 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() = 0; |
| 308 |
303 virtual void GestureEventAck(int gesture_event_type, | 309 virtual void GestureEventAck(int gesture_event_type, |
304 InputEventAckState ack_result) = 0; | 310 InputEventAckState ack_result) = 0; |
305 | 311 |
306 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 312 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
307 gfx::Vector2dF current_fling_velocity) = 0; | 313 gfx::Vector2dF current_fling_velocity) = 0; |
308 | 314 |
309 virtual void SetPopupType(blink::WebPopupType popup_type) = 0; | 315 virtual void SetPopupType(blink::WebPopupType popup_type) = 0; |
310 virtual blink::WebPopupType GetPopupType() = 0; | 316 virtual blink::WebPopupType GetPopupType() = 0; |
311 | 317 |
312 virtual BrowserAccessibilityManager* | 318 virtual BrowserAccessibilityManager* |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 | 351 |
346 #if defined(OS_WIN) && defined(USE_AURA) | 352 #if defined(OS_WIN) && defined(USE_AURA) |
347 virtual void SetParentNativeViewAccessible( | 353 virtual void SetParentNativeViewAccessible( |
348 gfx::NativeViewAccessible accessible_parent) = 0; | 354 gfx::NativeViewAccessible accessible_parent) = 0; |
349 #endif | 355 #endif |
350 }; | 356 }; |
351 | 357 |
352 } // namespace content | 358 } // namespace content |
353 | 359 |
354 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 360 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |