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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 293043003: <webview>: Move PreHandleGestureEvent in chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: content/browser/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index d9b86594d2bde61efa51f4b9767510e981b2c720..5bd8a2e23d94a521e398dd3e222f59ecd458f549 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -1133,9 +1133,10 @@ void BrowserPluginGuest::RequestMediaAccessPermission(
bool BrowserPluginGuest::PreHandleGestureEvent(
WebContents* source, const blink::WebGestureEvent& event) {
- return event.type == blink::WebGestureEvent::GesturePinchBegin ||
- event.type == blink::WebGestureEvent::GesturePinchUpdate ||
- event.type == blink::WebGestureEvent::GesturePinchEnd;
+ if (!delegate_)
+ return false;
+
+ return delegate_->PreHandleGestureEvent(source, event);
}
void BrowserPluginGuest::OnUpdateRect(

Powered by Google App Engine
This is Rietveld 408576698