Index: apps/shell_window.cc |
diff --git a/apps/shell_window.cc b/apps/shell_window.cc |
index 9fef5c4ab5952cadf091bc40390c27aa856dc3aa..504cf17adc7ded597fa5688c6a28caafe38edd6f 100644 |
--- a/apps/shell_window.cc |
+++ b/apps/shell_window.cc |
@@ -347,6 +347,15 @@ void ShellWindow::RequestToLockMouse(WebContents* web_contents, |
web_contents->GotResponseToLockMouseRequest(has_permission); |
} |
+bool ShellWindow::PreHandleGestureEvent( |
+ WebContents* source, |
+ const blink::WebGestureEvent& event) { |
+ // Disable pinch zooming in shell windows. |
+ return event.type == blink::WebGestureEvent::GesturePinchBegin || |
+ event.type == blink::WebGestureEvent::GesturePinchUpdate || |
+ event.type == blink::WebGestureEvent::GesturePinchEnd; |
+} |
+ |
void ShellWindow::DidFirstVisuallyNonEmptyPaint(int32 page_id) { |
first_paint_complete_ = true; |
if (show_on_first_paint_) { |