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 24 matching lines...) Expand all Loading... | |
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 RenderWidgetHostViewFrameSubscriber; | 43 class RenderWidgetHostViewFrameSubscriber; |
44 class SyntheticGesture; | 44 class SyntheticGesture; |
45 class SyntheticGestureTarget; | |
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 { |
53 public: | 54 public: |
54 virtual ~RenderWidgetHostViewPort() {} | 55 virtual ~RenderWidgetHostViewPort() {} |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
291 virtual InputEventAckState FilterInputEvent( | 292 virtual InputEventAckState FilterInputEvent( |
292 const WebKit::WebInputEvent& input_event) = 0; | 293 const WebKit::WebInputEvent& input_event) = 0; |
293 | 294 |
294 // Called by the host when it requires an input flush; the flush call should | 295 // Called by the host when it requires an input flush; the flush call should |
295 // by synchronized with BeginFrame. | 296 // by synchronized with BeginFrame. |
296 virtual void OnSetNeedsFlushInput() = 0; | 297 virtual void OnSetNeedsFlushInput() = 0; |
297 | 298 |
298 // Called by the host when the input flush has completed. | 299 // Called by the host when the input flush has completed. |
299 virtual void OnDidFlushInput() = 0; | 300 virtual void OnDidFlushInput() = 0; |
300 | 301 |
302 virtual SyntheticGestureTarget* CreateSyntheticGestureTarget() = 0; | |
jdduke (slow)
2013/10/30 19:02:43
Would it be possible to return a scoped_ptr?
| |
303 | |
301 virtual void GestureEventAck(int gesture_event_type, | 304 virtual void GestureEventAck(int gesture_event_type, |
302 InputEventAckState ack_result) = 0; | 305 InputEventAckState ack_result) = 0; |
303 | 306 |
304 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 307 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
305 gfx::Vector2dF current_fling_velocity) = 0; | 308 gfx::Vector2dF current_fling_velocity) = 0; |
306 | 309 |
307 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; | 310 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; |
308 virtual WebKit::WebPopupType GetPopupType() = 0; | 311 virtual WebKit::WebPopupType GetPopupType() = 0; |
309 | 312 |
310 virtual BrowserAccessibilityManager* | 313 virtual BrowserAccessibilityManager* |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
343 | 346 |
344 #if defined(OS_WIN) && defined(USE_AURA) | 347 #if defined(OS_WIN) && defined(USE_AURA) |
345 virtual void SetParentNativeViewAccessible( | 348 virtual void SetParentNativeViewAccessible( |
346 gfx::NativeViewAccessible accessible_parent) = 0; | 349 gfx::NativeViewAccessible accessible_parent) = 0; |
347 #endif | 350 #endif |
348 }; | 351 }; |
349 | 352 |
350 } // namespace content | 353 } // namespace content |
351 | 354 |
352 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 355 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |