Chromium Code Reviews| 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/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 struct WebScreenInfo; | 39 struct WebScreenInfo; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace content { | 42 namespace content { |
| 43 class RenderWidgetHostViewFrameSubscriber; | 43 class RenderWidgetHostViewFrameSubscriber; |
| 44 class SyntheticGesture; | 44 class SyntheticGesture; |
| 45 class SyntheticGestureTarget; | 45 class SyntheticGestureTarget; |
| 46 class WebCursor; | 46 class WebCursor; |
| 47 struct DidOverscrollParams; | |
| 47 struct WebPluginGeometry; | 48 struct WebPluginGeometry; |
| 48 struct NativeWebKeyboardEvent; | 49 struct NativeWebKeyboardEvent; |
| 49 | 50 |
| 50 // This is the larger RenderWidgetHostView interface exposed only | 51 // This is the larger RenderWidgetHostView interface exposed only |
| 51 // within content/ and to embedders looking to port to new platforms. | 52 // within content/ and to embedders looking to port to new platforms. |
| 52 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. | 53 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. |
| 53 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView, | 54 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView, |
| 54 public IPC::Listener { | 55 public IPC::Listener { |
| 55 public: | 56 public: |
| 56 virtual ~RenderWidgetHostViewPort() {} | 57 virtual ~RenderWidgetHostViewPort() {} |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 301 // Called by the host when the input flush has completed. | 302 // Called by the host when the input flush has completed. |
| 302 virtual void OnDidFlushInput() = 0; | 303 virtual void OnDidFlushInput() = 0; |
| 303 | 304 |
| 304 // Create a platform specific SyntheticGestureTarget implementation that will | 305 // Create a platform specific SyntheticGestureTarget implementation that will |
| 305 // be used to inject synthetic input events. | 306 // be used to inject synthetic input events. |
| 306 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() = 0; | 307 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() = 0; |
| 307 | 308 |
| 308 virtual void GestureEventAck(const blink::WebGestureEvent& event, | 309 virtual void GestureEventAck(const blink::WebGestureEvent& event, |
| 309 InputEventAckState ack_result) = 0; | 310 InputEventAckState ack_result) = 0; |
| 310 | 311 |
| 311 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 312 virtual void DidOverscroll(const DidOverscrollParams& params) = 0; |
|
jam
2014/04/25 05:09:07
any struct used in content/port must be in content
jdduke (slow)
2014/04/25 14:44:33
Hmm, I wonder if I should remove this method entir
| |
| 312 gfx::Vector2dF current_fling_velocity) = 0; | |
| 313 | 313 |
| 314 virtual void DidStopFlinging() = 0; | 314 virtual void DidStopFlinging() = 0; |
| 315 | 315 |
| 316 virtual void SetPopupType(blink::WebPopupType popup_type) = 0; | 316 virtual void SetPopupType(blink::WebPopupType popup_type) = 0; |
| 317 virtual blink::WebPopupType GetPopupType() = 0; | 317 virtual blink::WebPopupType GetPopupType() = 0; |
| 318 | 318 |
| 319 // Get the BrowserAccessibilityManager if it exists, may return NULL. | 319 // Get the BrowserAccessibilityManager if it exists, may return NULL. |
| 320 virtual BrowserAccessibilityManager* | 320 virtual BrowserAccessibilityManager* |
| 321 GetBrowserAccessibilityManager() const = 0; | 321 GetBrowserAccessibilityManager() const = 0; |
| 322 // Create a BrowserAccessibilityManager for this view if it's possible to | 322 // Create a BrowserAccessibilityManager for this view if it's possible to |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 353 | 353 |
| 354 // Returns an HWND that's given as the parent window for windowless Flash to | 354 // Returns an HWND that's given as the parent window for windowless Flash to |
| 355 // workaround crbug.com/301548. | 355 // workaround crbug.com/301548. |
| 356 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | 356 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; |
| 357 #endif | 357 #endif |
| 358 }; | 358 }; |
| 359 | 359 |
| 360 } // namespace content | 360 } // namespace content |
| 361 | 361 |
| 362 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 362 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |