From 1e1dd1852bb2593ed515ffcaec8f21bfa7bf9958 Mon Sep 17 00:00:00 2001 From: "dominikg@chromium.org" Date: Thu, 12 Sep 2013 01:51:15 +0000 Subject: Synthetic pinch-to-zoom gesture. Add implementation of synthetic pinch-to-zoom gesture, exposed in JavaScript through chrome.gpuBenchmarking.pinchBy(). A pinch gesture is defined by four parameters: 1) whether to zoom in or out, 2) the number of pixels to cover during the gesture, 3,4) the x/y coordinates of the anchor point of the gesture. BUG=264810 Review URL: https://chromiumcodereview.appspot.com/23587002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222696 0039d316-1c4b-4281-b951-d872f2087c98 --- content/port/browser/render_widget_host_view_port.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'content/port') diff --git a/content/port/browser/render_widget_host_view_port.h b/content/port/browser/render_widget_host_view_port.h index 6db6231..d13a125 100644 --- a/content/port/browser/render_widget_host_view_port.h +++ b/content/port/browser/render_widget_host_view_port.h @@ -269,6 +269,11 @@ class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView, bool scroll_down, int pixels_to_scroll, int mouse_event_x, int mouse_event_y) = 0; + // Asks the view to create a synthetic gesture that will be used to + // simulate a user-initiated pinch-to-zoom. + virtual SyntheticGesture* CreatePinchGesture( + bool zoom_in, int pixels_to_move, int anchor_x, int anchor_y) = 0; + virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; virtual void SetScrollOffsetPinning( bool is_pinned_to_left, bool is_pinned_to_right) = 0; -- cgit v1.1