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

Unified Diff: content/browser/renderer_host/input/synthetic_gesture_target_aura.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/browser/renderer_host/input/synthetic_gesture_target_aura.cc
diff --git a/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc b/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
index 9825cb5c5f9c509fa6ddcdb1eb468206b42dd5ed..f096d2551627ccfe16db8466ac8fed1e56331ed1 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
+++ b/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
@@ -138,6 +138,10 @@ int SyntheticGestureTargetAura::GetTouchSlopInDips() const {
return ui::GestureConfiguration::max_touch_move_in_pixels_for_click() - 1;
}
+int SyntheticGestureTargetAura::GetMinScalingSpanInDips() const {
+ return ui::GestureConfiguration::min_distance_for_pinch_scroll_in_pixels();
+}
+
aura::Window* SyntheticGestureTargetAura::GetWindow() const {
aura::Window* window = render_widget_host()->GetView()->GetNativeView();
DCHECK(window);

Powered by Google App Engine
This is Rietveld 408576698