| Index: content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
|
| index 6bba091a3859708b2cd13715816786a9fa6acb94..ba0d1dc998402bce2769183578c8a3d8d0b7a46c 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
|
| @@ -198,6 +198,11 @@ class ContentViewGestureHandler implements LongPressDelegate {
|
| * Show the zoom picker UI.
|
| */
|
| public void invokeZoomPicker();
|
| +
|
| + /**
|
| + * @return Whether changing the page scale is not possible on the current page.
|
| + */
|
| + public boolean hasFixedPageScale();
|
| }
|
|
|
| ContentViewGestureHandler(
|
| @@ -391,6 +396,18 @@ class ContentViewGestureHandler implements LongPressDelegate {
|
| }
|
| setClickXAndY((int) x, (int) y);
|
| return true;
|
| + } else if (mMotionEventDelegate.hasFixedPageScale()) {
|
| + // If page is not user scalable, we don't need to wait
|
| + // for double tap timeout.
|
| + float x = e.getX();
|
| + float y = e.getY();
|
| + mExtraParamBundle.clear();
|
| + mExtraParamBundle.putBoolean(SHOW_PRESS, mShowPressIsCalled);
|
| + if (mMotionEventDelegate.sendGesture(GESTURE_SINGLE_TAP_CONFIRMED,
|
| + e.getEventTime(), (int) x, (int) y, mExtraParamBundle)) {
|
| + mIgnoreSingleTap = true;
|
| + }
|
| + setClickXAndY((int) x, (int) y);
|
| }
|
| return false;
|
| }
|
|
|