Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: content/port/browser/render_widget_host_view_port.h

Issue 20045007: Use DidOverscrollParams in the browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase... Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/input/input_event_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/input/input_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698