Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / autofill / autofill_dialog_sign_in_delegate.cc
index 987a0a8..b1737ea 100644 (file)
@@ -11,6 +11,7 @@
 #include "content/public/browser/render_view_host.h"
 #include "content/public/browser/web_contents.h"
 #include "content/public/common/renderer_preferences.h"
+#include "third_party/WebKit/public/web/WebInputEvent.h"
 #include "ui/base/window_open_disposition.h"
 
 namespace autofill {
@@ -97,6 +98,15 @@ void AutofillDialogSignInDelegate::AddNewContents(
       was_blocked);
 }
 
+bool AutofillDialogSignInDelegate::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 AutofillDialogSignInDelegate::RenderViewCreated(
     content::RenderViewHost* render_view_host) {
   EnableAutoResize();