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

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: Removed comments for the 1.0 interface. 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
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 599cfa1dce8a7bdcc7a96b9f89e05957b910e9b8..5d88991a7a76e9d494f62975cc69970d4cb30aeb 100644
--- a/ppapi/shared_impl/input_event_impl.cc
+++ b/ppapi/shared_impl/input_event_impl.cc
@@ -14,6 +14,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),
@@ -55,6 +56,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;
}

Powered by Google App Engine
This is Rietveld 408576698