Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(900)

Side by Side Diff: ui/web_dialogs/web_dialog_web_contents_delegate.cc

Issue 2497033002: Break apart WebGestureEvent from WebInputEvent. (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/web_dialogs/DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/web_dialogs/web_dialog_web_contents_delegate.h" 5 #include "ui/web_dialogs/web_dialog_web_contents_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/public/browser/web_contents.h" 8 #include "content/public/browser/web_contents.h"
9 #include "third_party/WebKit/public/web/WebInputEvent.h" 9 #include "third_party/WebKit/public/platform/WebGestureEvent.h"
10 10
11 using content::BrowserContext; 11 using content::BrowserContext;
12 using content::OpenURLParams; 12 using content::OpenURLParams;
13 using content::WebContents; 13 using content::WebContents;
14 14
15 namespace ui { 15 namespace ui {
16 16
17 // Incognito profiles are not long-lived, so we always want to store a 17 // Incognito profiles are not long-lived, so we always want to store a
18 // non-incognito profile. 18 // non-incognito profile.
19 // 19 //
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 bool WebDialogWebContentsDelegate::PreHandleGestureEvent( 59 bool WebDialogWebContentsDelegate::PreHandleGestureEvent(
60 WebContents* source, 60 WebContents* source,
61 const blink::WebGestureEvent& event) { 61 const blink::WebGestureEvent& event) {
62 // Disable pinch zooming. 62 // Disable pinch zooming.
63 return event.type == blink::WebGestureEvent::GesturePinchBegin || 63 return event.type == blink::WebGestureEvent::GesturePinchBegin ||
64 event.type == blink::WebGestureEvent::GesturePinchUpdate || 64 event.type == blink::WebGestureEvent::GesturePinchUpdate ||
65 event.type == blink::WebGestureEvent::GesturePinchEnd; 65 event.type == blink::WebGestureEvent::GesturePinchEnd;
66 } 66 }
67 67
68 } // namespace ui 68 } // namespace ui
OLDNEW
« no previous file with comments | « ui/web_dialogs/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698