Chromium Code Reviews| Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
| index a7da5bc527bc7450f9f1531519e47ec208285838..89fcc7919a242005e0a5486dfe4e1680a095b0b9 100644 |
| --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
| +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
| @@ -1461,7 +1461,14 @@ public class ContentViewCore |
| private void onRenderCoordinatesUpdated() { |
| if (mContentViewGestureHandler == null) return; |
| - mContentViewGestureHandler.updateHasFixedPageScale(mRenderCoordinates.hasFixedPageScale()); |
| + |
| + // We disable double tap zoom for pages that have a width=device-width |
| + // or narrower viewport (indicating that this is a mobile-optimized or |
| + // responsive web design, so text will be legible without zooming). |
| + // We also disable it for pages that disallow the user from zooming in |
| + // or out (even if they don't have a device-width or narrower viewport). |
| + mContentViewGestureHandler.updateShouldDisableDoubleTap( |
| + mRenderCoordinates.hasMobileViewport() || mRenderCoordinates.hasFixedPageScale()); |
|
Ted C
2013/10/24 19:52:44
+4 indent (and it looks like it will require a lin
johnme
2013/10/31 19:13:12
Done (still fit within 100 chars without line wrap
|
| } |
| private void hidePopupDialog() { |