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

Unified Diff: content/common/input/synthetic_pinch_gesture_params.cc

Issue 293683002: Synthetic pinch gesture take scale factor as parameter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/common/input/synthetic_pinch_gesture_params.cc
diff --git a/content/common/input/synthetic_pinch_gesture_params.cc b/content/common/input/synthetic_pinch_gesture_params.cc
index 5b4ca4486055019174aa0df7cdf6bc574859573c..b4efcb02b17161c45e4c374dba2401f293ef0807 100644
--- a/content/common/input/synthetic_pinch_gesture_params.cc
+++ b/content/common/input/synthetic_pinch_gesture_params.cc
@@ -9,15 +9,13 @@
namespace content {
SyntheticPinchGestureParams::SyntheticPinchGestureParams()
- : zoom_in(true),
- total_num_pixels_covered(100),
+ : scale_factor(1.0f),
relative_pointer_speed_in_pixels_s(500) {}
SyntheticPinchGestureParams::SyntheticPinchGestureParams(
const SyntheticPinchGestureParams& other)
: SyntheticGestureParams(other),
- zoom_in(other.zoom_in),
- total_num_pixels_covered(other.total_num_pixels_covered),
+ scale_factor(other.scale_factor),
anchor(other.anchor),
relative_pointer_speed_in_pixels_s(
other.relative_pointer_speed_in_pixels_s) {}

Powered by Google App Engine
This is Rietveld 408576698