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

Unified Diff: ppapi/shared_impl/input_event_impl.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/shared_impl/input_event_impl.h ('k') | ppapi/thunk/ppb_input_event_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/input_event_impl.cc
diff --git a/ppapi/shared_impl/input_event_impl.cc b/ppapi/shared_impl/input_event_impl.cc
index 3b455b61b13c4c4f20b94331c1ecf812ad28861a..8dc653a8d3fbc581cbd292f6cc3cac0ff304a60d 100644
--- a/ppapi/shared_impl/input_event_impl.cc
+++ b/ppapi/shared_impl/input_event_impl.cc
@@ -19,6 +19,7 @@ InputEventData::InputEventData()
mouse_button(PP_INPUTEVENT_MOUSEBUTTON_NONE),
mouse_position(PP_MakePoint(0, 0)),
mouse_click_count(0),
+ mouse_movement(PP_MakePoint(0, 0)),
wheel_delta(PP_MakeFloatPoint(0.0f, 0.0f)),
wheel_ticks(PP_MakeFloatPoint(0.0f, 0.0f)),
wheel_scroll_by_page(false),
@@ -75,6 +76,10 @@ int32_t InputEventImpl::GetMouseClickCount() {
return data_.mouse_click_count;
}
+PP_Point InputEventImpl::GetMouseMovement() {
+ return data_.mouse_movement;
+}
+
PP_FloatPoint InputEventImpl::GetWheelDelta() {
return data_.wheel_delta;
}
« no previous file with comments | « ppapi/shared_impl/input_event_impl.h ('k') | ppapi/thunk/ppb_input_event_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698