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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_input_event_rpc_server.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/cpp/input_event.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_input_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_input_event_rpc_server.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_input_event_rpc_server.cc b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_input_event_rpc_server.cc
index 8d21cd78173a0fcebe9cfca3ef3f464dddca1e82..ab77f784d46ba9f83f30aba4b9c0c3c99d46ba42 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_input_event_rpc_server.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_input_event_rpc_server.cc
@@ -81,6 +81,8 @@ void PpbInputEventRpcServer::PPB_InputEvent_CreateMouseInputEvent(
int32_t position_x, // PP_Point.x
int32_t position_y, // PP_Point.y
int32_t click_count,
+ int32_t movement_x, // PP_Point.x
+ int32_t movement_y, // PP_Point.y
PP_Resource* resource_id) {
NaClSrpcClosureRunner runner(done);
rpc->result = NACL_SRPC_RESULT_APP_ERROR;
@@ -92,6 +94,7 @@ void PpbInputEventRpcServer::PPB_InputEvent_CreateMouseInputEvent(
return;
}
PP_Point mouse_position = { position_x, position_y };
+ PP_Point mouse_movement = { movement_x, movement_y };
*resource_id = input_event_if->Create(
instance,
static_cast<PP_InputEvent_Type>(type),
@@ -99,7 +102,8 @@ void PpbInputEventRpcServer::PPB_InputEvent_CreateMouseInputEvent(
static_cast<uint32_t>(modifiers),
static_cast<PP_InputEvent_MouseButton>(mouse_button),
&mouse_position,
- click_count);
+ click_count,
+ &mouse_movement);
DebugPrintf("PPB_InputEvent::CreateMouseInputEvent: resource_id="
"%"NACL_PRId32"\n",
*resource_id);
« no previous file with comments | « ppapi/cpp/input_event.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_input_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698