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

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

Issue 7715021: Add movement information to PPB_MouseInputEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 4 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 | « ppapi/thunk/thunk.h ('k') | webkit/plugins/ppapi/plugin_module.cc » ('j') | 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 eb051da573d3903cb8a49d3f455784d514a4e34b..1c4ac3ac591895c65ff60042d373bc16994a5b9d 100644
--- a/webkit/plugins/ppapi/event_conversion.cc
+++ b/webkit/plugins/ppapi/event_conversion.cc
@@ -135,6 +135,10 @@ void AppendMouseEvent(const WebInputEvent& event,
result.mouse_position.x = mouse_event.x;
result.mouse_position.y = mouse_event.y;
result.mouse_click_count = mouse_event.clickCount;
+
+ // TODO(yzshen): Make the change after WebMouseEvent adds movementX/Y.
+ result.mouse_movement.x = 0; // mouse_event.movementX
+ result.mouse_movement.y = 0; // mouse_event.movementY
result_events->push_back(result);
}
@@ -225,6 +229,11 @@ WebMouseEvent* BuildMouseEvent(const InputEventData& event) {
mouse_event->x = event.mouse_position.x;
mouse_event->y = event.mouse_position.y;
mouse_event->clickCount = event.mouse_click_count;
+
+ // TODO(yzshen): Uncomment the following lines after WebMouseEvent adds
+ // movementX/Y.
+ // mouse_event->movementX = event.mouse_position.x;
+ // mouse_event->movementY = event.mouse_position.y;
return mouse_event;
}
« no previous file with comments | « ppapi/thunk/thunk.h ('k') | webkit/plugins/ppapi/plugin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698