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

Unified Diff: extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.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/guest_view/mime_handler_view/mime_handler_view_guest.cc
diff --git a/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc b/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc
index 5284e0256887e24d24fde4d020157ccfd57134bc..ebb65d19c60d03e99615f75594a976bd0d136e2f 100644
--- a/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc
+++ b/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc
@@ -241,9 +241,7 @@ bool MimeHandlerViewGuest::HandleContextMenu(
bool MimeHandlerViewGuest::PreHandleGestureEvent(
WebContents* source,
const blink::WebGestureEvent& event) {
- if (event.GetType() == blink::WebGestureEvent::kGesturePinchBegin ||
- event.GetType() == blink::WebGestureEvent::kGesturePinchUpdate ||
- event.GetType() == blink::WebGestureEvent::kGesturePinchEnd) {
+ if (blink::WebInputEvent::IsPinchGestureEventType(event.GetType())) {
// If we're an embedded plugin we drop pinch-gestures to avoid zooming the
// guest.
return !is_full_page_plugin();
« no previous file with comments | « extensions/browser/app_window/app_web_contents_helper.cc ('k') | third_party/WebKit/Source/web/DevToolsEmulator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698