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

Unified Diff: extensions/browser/app_window/app_web_contents_helper.cc

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Fix nits Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/app_window/app_web_contents_helper.cc
diff --git a/extensions/browser/app_window/app_web_contents_helper.cc b/extensions/browser/app_window/app_web_contents_helper.cc
index 1dbbcd0df739611f6376d95b027712af8f9c6ef3..7c5e4900ea2cb881c2e8b60008396f838ffb81ac 100644
--- a/extensions/browser/app_window/app_web_contents_helper.cc
+++ b/extensions/browser/app_window/app_web_contents_helper.cc
@@ -33,9 +33,9 @@ AppWebContentsHelper::AppWebContentsHelper(
bool AppWebContentsHelper::ShouldSuppressGestureEvent(
const blink::WebGestureEvent& event) {
// Disable pinch zooming in app windows.
- return event.type == blink::WebGestureEvent::GesturePinchBegin ||
- event.type == blink::WebGestureEvent::GesturePinchUpdate ||
- event.type == blink::WebGestureEvent::GesturePinchEnd;
+ return event.type() == blink::WebGestureEvent::GesturePinchBegin ||
+ event.type() == blink::WebGestureEvent::GesturePinchUpdate ||
+ event.type() == blink::WebGestureEvent::GesturePinchEnd;
}
content::WebContents* AppWebContentsHelper::OpenURLFromTab(
« no previous file with comments | « content/renderer/render_widget_unittest.cc ('k') | extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698