diff options
author | dominikg@chromium.org <dominikg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-22 23:13:07 +0000 |
---|---|---|
committer | dominikg@chromium.org <dominikg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-22 23:13:07 +0000 |
commit | 33963436e74bd0adca3be5f3a7a56dc9c25fc434 (patch) | |
tree | a0380954087d91fad436f8b8ea4e6b6231a199e4 /content/common/input_messages.h | |
parent | f694b67c0da71ff9daa400a00924bd0acea0544b (diff) | |
download | chromium_src-33963436e74bd0adca3be5f3a7a56dc9c25fc434.zip chromium_src-33963436e74bd0adca3be5f3a7a56dc9c25fc434.tar.gz chromium_src-33963436e74bd0adca3be5f3a7a56dc9c25fc434.tar.bz2 |
Synthetic pinch gesture take scale factor as parameter.
Instead of a zoom direction and the number of pixels to be covered by the pinch
gesture, the gesture now takes a scale factor as parameter. From that, it
computes how to perform the gesture: the ratio of the final span and the initial
span equals the scale factor (modulo touch slop). The spans must not fall below
a certain threshold, provided by the gesture target (GetMinScalingSpanInDips).
Update the JS interface (chrome.gpuBenchmarking.pinchBy) to reflect the changes.
For (temporary) backwards compatibility, add another method to the interface to
tell Telemetry whether or not the browser supports the new interface. This is to
avoid crashes when Telemetry is run with the current stable version. Will be
removed once the stable version supports the new interface.
Update tough_pinch_zoom_cases page set to make sure all pinch gestures start
within the web content (tested on N4 and N10).
Update synthetic gesture controller unit tests to use the new parameter.
BUG=309484
Review URL: https://codereview.chromium.org/293683002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272359 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/input_messages.h')
-rw-r--r-- | content/common/input_messages.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/content/common/input_messages.h b/content/common/input_messages.h index d4fff90..6b36bec 100644 --- a/content/common/input_messages.h +++ b/content/common/input_messages.h @@ -84,8 +84,7 @@ IPC_STRUCT_TRAITS_END() IPC_STRUCT_TRAITS_BEGIN(content::SyntheticPinchGestureParams) IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) - IPC_STRUCT_TRAITS_MEMBER(zoom_in) - IPC_STRUCT_TRAITS_MEMBER(total_num_pixels_covered) + IPC_STRUCT_TRAITS_MEMBER(scale_factor) IPC_STRUCT_TRAITS_MEMBER(anchor) IPC_STRUCT_TRAITS_MEMBER(relative_pointer_speed_in_pixels_s) IPC_STRUCT_TRAITS_END() |