Index: chrome/browser/devtools/devtools_window.cc |
diff --git a/chrome/browser/devtools/devtools_window.cc b/chrome/browser/devtools/devtools_window.cc |
index ce6f49696d0c26d05325567fad10c66a6297ba3b..400ae0d9d67ab68968b7b176328207d3983b9498 100644 |
--- a/chrome/browser/devtools/devtools_window.cc |
+++ b/chrome/browser/devtools/devtools_window.cc |
@@ -66,6 +66,7 @@ |
#include "content/public/common/url_constants.h" |
#include "extensions/common/extension_set.h" |
#include "grit/generated_resources.h" |
+#include "third_party/WebKit/public/web/WebInputEvent.h" |
#include "ui/base/l10n/l10n_util.h" |
using base::DictionaryValue; |
@@ -930,6 +931,15 @@ void DevToolsWindow::WebContentsFocused(content::WebContents* contents) { |
inspected_browser->window()->WebContentsFocused(contents); |
} |
+bool DevToolsWindow::PreHandleGestureEvent( |
+ content::WebContents* source, |
+ const blink::WebGestureEvent& event) { |
+ // Disable pinch zooming. |
+ return event.type == blink::WebGestureEvent::GesturePinchBegin || |
+ event.type == blink::WebGestureEvent::GesturePinchUpdate || |
+ event.type == blink::WebGestureEvent::GesturePinchEnd; |
+} |
+ |
void DevToolsWindow::DispatchOnEmbedder(const std::string& message) { |
std::string method; |
base::ListValue empty_params; |