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

Unified Diff: components/plugins/renderer/webview_plugin.cc

Issue 2844823002: Support Coalesced Touch in ppapi (Closed)
Patch Set: Support Coalesced Touch in ppapi 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
« no previous file with comments | « components/plugins/renderer/webview_plugin.h ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/webview_plugin.cc
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
index 3aecdaf89384eb296d9786dd2f79c106f8ff417e..76d9c8dc66228d464a3f6b0f974647a5e5bbd7e2 100644
--- a/components/plugins/renderer/webview_plugin.cc
+++ b/components/plugins/renderer/webview_plugin.cc
@@ -33,7 +33,6 @@ using blink::WebDragData;
using blink::WebDragOperationsMask;
using blink::WebFrameWidget;
using blink::WebImage;
-using blink::WebInputEvent;
using blink::WebLocalFrame;
using blink::WebMouseEvent;
using blink::WebPlugin;
@@ -205,19 +204,20 @@ void WebViewPlugin::UpdateFocus(bool focused, blink::WebFocusType focus_type) {
}
blink::WebInputEventResult WebViewPlugin::HandleInputEvent(
- const WebInputEvent& event,
+ const blink::WebCoalescedInputEvent& coalesced_event,
WebCursorInfo& cursor) {
+ const blink::WebInputEvent& event = coalesced_event.Event();
// For tap events, don't handle them. They will be converted to
// mouse events later and passed to here.
- if (event.GetType() == WebInputEvent::kGestureTap)
+ if (event.GetType() == blink::WebInputEvent::kGestureTap)
return blink::WebInputEventResult::kNotHandled;
// For LongPress events we return false, since otherwise the context menu will
// be suppressed. https://crbug.com/482842
- if (event.GetType() == WebInputEvent::kGestureLongPress)
+ if (event.GetType() == blink::WebInputEvent::kGestureLongPress)
return blink::WebInputEventResult::kNotHandled;
- if (event.GetType() == WebInputEvent::kContextMenu) {
+ if (event.GetType() == blink::WebInputEvent::kContextMenu) {
if (delegate_) {
const WebMouseEvent& mouse_event =
reinterpret_cast<const WebMouseEvent&>(event);
« no previous file with comments | « components/plugins/renderer/webview_plugin.h ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698