| Index: content/browser/renderer_host/input/synthetic_gesture_target_android.cc
|
| diff --git a/content/browser/renderer_host/input/synthetic_gesture_target_android.cc b/content/browser/renderer_host/input/synthetic_gesture_target_android.cc
|
| index 91792c2a8ad77d8d0b0723ffd34e683674ef2d7d..a1e5dea6b77a3c01204ba8844a9fa28ee28fa9ed 100644
|
| --- a/content/browser/renderer_host/input/synthetic_gesture_target_android.cc
|
| +++ b/content/browser/renderer_host/input/synthetic_gesture_target_android.cc
|
| @@ -92,10 +92,17 @@ SyntheticGestureTargetAndroid::GetDefaultSyntheticGestureSourceType() const {
|
| return SyntheticGestureParams::TOUCH_INPUT;
|
| }
|
|
|
| -int SyntheticGestureTargetAndroid::GetTouchSlopInDips() const {
|
| +float SyntheticGestureTargetAndroid::GetTouchSlopInDips() const {
|
| float device_scale_factor =
|
| gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().device_scale_factor();
|
| return gfx::ViewConfiguration::GetTouchSlopInPixels() / device_scale_factor;
|
| }
|
|
|
| +float SyntheticGestureTargetAndroid::GetMinScalingSpanInDips() const {
|
| + float device_scale_factor =
|
| + gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().device_scale_factor();
|
| + return
|
| + gfx::ViewConfiguration::GetMinScalingSpanInPixels() / device_scale_factor;
|
| +}
|
| +
|
| } // namespace content
|
|
|