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

Unified Diff: webkit/plugins/ppapi/event_conversion.cc

Issue 14324006: Pass information to ppapi plugin if a mouse button was pressed during MouseMove event. This patch r… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/event_conversion.cc
diff --git a/webkit/plugins/ppapi/event_conversion.cc b/webkit/plugins/ppapi/event_conversion.cc
index a0f97300960c79891b6fe77028b7b2e5da027671..f98092f1f4e96b3bee7f9bee1af39811b9dd529e 100644
--- a/webkit/plugins/ppapi/event_conversion.cc
+++ b/webkit/plugins/ppapi/event_conversion.cc
@@ -191,6 +191,7 @@ void AppendMouseEvent(const WebInputEvent& event,
InputEventData result = GetEventWithCommonFieldsAndType(event);
result.event_modifiers = mouse_event.modifiers;
if (mouse_event.type == WebInputEvent::MouseDown ||
+ mouse_event.type == WebInputEvent::MouseMove ||
mouse_event.type == WebInputEvent::MouseUp) {
result.mouse_button =
static_cast<PP_InputEvent_MouseButton>(mouse_event.button);
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698