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 WebKit { | 38 namespace WebKit { |
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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
291 virtual InputEventAckState FilterInputEvent( | 293 virtual InputEventAckState FilterInputEvent( |
292 const WebKit::WebInputEvent& input_event) = 0; | 294 const WebKit::WebInputEvent& input_event) = 0; |
293 | 295 |
294 // Called by the host when it requires an input flush; the flush call should | 296 // Called by the host when it requires an input flush; the flush call should |
295 // by synchronized with BeginFrame. | 297 // by synchronized with BeginFrame. |
296 virtual void OnSetNeedsFlushInput() = 0; | 298 virtual void OnSetNeedsFlushInput() = 0; |
297 | 299 |
298 // Called by the host when the input flush has completed. | 300 // Called by the host when the input flush has completed. |
299 virtual void OnDidFlushInput() = 0; | 301 virtual void OnDidFlushInput() = 0; |
300 | 302 |
303 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() = 0; | |
jam
2013/11/06 17:47:26
nit: please add a comment
| |
304 | |
301 virtual void GestureEventAck(int gesture_event_type, | 305 virtual void GestureEventAck(int gesture_event_type, |
302 InputEventAckState ack_result) = 0; | 306 InputEventAckState ack_result) = 0; |
303 | 307 |
304 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 308 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
305 gfx::Vector2dF current_fling_velocity) = 0; | 309 gfx::Vector2dF current_fling_velocity) = 0; |
306 | 310 |
307 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; | 311 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; |
308 virtual WebKit::WebPopupType GetPopupType() = 0; | 312 virtual WebKit::WebPopupType GetPopupType() = 0; |
309 | 313 |
310 virtual BrowserAccessibilityManager* | 314 virtual BrowserAccessibilityManager* |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
343 | 347 |
344 #if defined(OS_WIN) && defined(USE_AURA) | 348 #if defined(OS_WIN) && defined(USE_AURA) |
345 virtual void SetParentNativeViewAccessible( | 349 virtual void SetParentNativeViewAccessible( |
346 gfx::NativeViewAccessible accessible_parent) = 0; | 350 gfx::NativeViewAccessible accessible_parent) = 0; |
347 #endif | 351 #endif |
348 }; | 352 }; |
349 | 353 |
350 } // namespace content | 354 } // namespace content |
351 | 355 |
352 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 356 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |