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

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

Issue 2861373004: Add blink::WebInputEvent::IsPinchGestureEventType(). (Closed)
Patch Set: rebase Created 3 years, 7 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 f8077bbe9d646c2e33e2644a1b020e2630be9fb9..2bd902e5aab274514d3fe8b8eb50ba13a26a5f16 100644
--- a/extensions/browser/app_window/app_web_contents_helper.cc
+++ b/extensions/browser/app_window/app_web_contents_helper.cc
@@ -33,9 +33,7 @@ AppWebContentsHelper::AppWebContentsHelper(
bool AppWebContentsHelper::ShouldSuppressGestureEvent(
const blink::WebGestureEvent& event) {
// Disable pinch zooming in app windows.
- return event.GetType() == blink::WebGestureEvent::kGesturePinchBegin ||
- event.GetType() == blink::WebGestureEvent::kGesturePinchUpdate ||
- event.GetType() == blink::WebGestureEvent::kGesturePinchEnd;
+ return blink::WebInputEvent::IsPinchGestureEventType(event.GetType());
}
content::WebContents* AppWebContentsHelper::OpenURLFromTab(

Powered by Google App Engine
This is Rietveld 408576698