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

Unified Diff: ui/events/gesture_detection/scale_gesture_detector.cc

Issue 1287103004: Sync ui/events to chromium @ https://codereview.chromium.org/1210203002 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 4 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: ui/events/gesture_detection/scale_gesture_detector.cc
diff --git a/ui/events/gesture_detection/scale_gesture_detector.cc b/ui/events/gesture_detection/scale_gesture_detector.cc
index a8316c7cefeb291107bd26e852a1ace3eae21654..fb27cd9458e11829cb12669c70a6ddae165f1d4a 100644
--- a/ui/events/gesture_detection/scale_gesture_detector.cc
+++ b/ui/events/gesture_detection/scale_gesture_detector.cc
@@ -5,6 +5,7 @@
#include "ui/events/gesture_detection/scale_gesture_detector.h"
#include <limits.h>
+
#include <cmath>
#include "base/logging.h"
@@ -29,7 +30,8 @@ const float kScaleFactor = .5f;
} // namespace
// Note: These constants were taken directly from the default (unscaled)
-// versions found in Android's ViewConfiguration.
+// versions found in Android's ViewConfiguration. Do not change these default
+// values without explicitly consulting an OWNER.
ScaleGestureDetector::Config::Config()
: span_slop(16),
min_scaling_touch_major(48),
« no previous file with comments | « ui/events/gesture_detection/motion_event_generic_unittest.cc ('k') | ui/events/gesture_detection/snap_scroll_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698