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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 2815823003: Notify OverscrollController of gesture events in plugins. (Closed)
Patch Set: Address comments. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_aura.h
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h
index f3d0eafaa7c80d177efe8fe2a4f60ed8e8ce0bb0..e254928479fbc2a0bf87ba1995d58b99f0003115 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.h
+++ b/content/browser/renderer_host/render_widget_host_view_aura.h
@@ -157,6 +157,8 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
override;
InputEventAckState FilterInputEvent(
const blink::WebInputEvent& input_event) override;
+ InputEventAckState FilterChildGestureEvent(
+ const blink::WebGestureEvent& gesture_event) override;
BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
BrowserAccessibilityDelegate* delegate, bool for_root_frame) override;
gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override;
@@ -294,6 +296,11 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
// Sets whether the overscroll controller should be enabled for this page.
void SetOverscrollControllerEnabled(bool enabled);
+ // TODO(mcnee): Tests needing this are BrowserPlugin specific. Remove after
+ // removing BrowserPlugin (crbug.com/533069).
+ void SetOverscrollControllerForTesting(
+ std::unique_ptr<OverscrollController> controller);
+
void SnapToPhysicalPixelBoundary();
// Called when the context menu is about to be displayed.
« no previous file with comments | « content/browser/renderer_host/overscroll_controller.cc ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698