diff options
author | dominikg@chromium.org <dominikg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-12 01:51:15 +0000 |
---|---|---|
committer | dominikg@chromium.org <dominikg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-12 01:51:15 +0000 |
commit | 1e1dd1852bb2593ed515ffcaec8f21bfa7bf9958 (patch) | |
tree | 8573c8bedd916019b657ce59f3f6138caa8809a7 /content/port | |
parent | 567261abf7d6509f9ae2a47842d13039b9c63b5e (diff) | |
download | chromium_src-1e1dd1852bb2593ed515ffcaec8f21bfa7bf9958.zip chromium_src-1e1dd1852bb2593ed515ffcaec8f21bfa7bf9958.tar.gz chromium_src-1e1dd1852bb2593ed515ffcaec8f21bfa7bf9958.tar.bz2 |
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
Diffstat (limited to 'content/port')
-rw-r--r-- | content/port/browser/render_widget_host_view_port.h | 5 |
1 files changed, 5 insertions, 0 deletions
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; |