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

Unified Diff: ppapi/proxy/ppp_input_event_proxy.cc

Issue 9558009: Add HandleInputEventAck message to allow out-of-process plugins to respond to user gestures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/proxy/ppp_input_event_proxy.h ('k') | ppapi/tests/test_fullscreen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppp_input_event_proxy.cc
===================================================================
--- ppapi/proxy/ppp_input_event_proxy.cc (revision 125463)
+++ ppapi/proxy/ppp_input_event_proxy.cc (working copy)
@@ -101,6 +101,7 @@
CallWhileUnlocked(ppp_input_event_impl_->HandleInputEvent,
instance,
resource->pp_resource());
+ HandleInputEventAck(instance, data.event_time_stamp);
}
void PPP_InputEvent_Proxy::OnMsgHandleFilteredInputEvent(
@@ -112,7 +113,20 @@
*result = CallWhileUnlocked(ppp_input_event_impl_->HandleInputEvent,
instance,
resource->pp_resource());
+ HandleInputEventAck(instance, data.event_time_stamp);
}
+void PPP_InputEvent_Proxy::HandleInputEventAck(
+ PP_Instance instance, PP_TimeTicks timestamp) {
+ PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance);
+ if (dispatcher) {
+ // Note that we're sending the message to the host PPB_InstanceProxy.
+ dispatcher->Send(new PpapiMsg_PPPInputEvent_HandleInputEvent_ACK(
+ API_ID_PPB_INSTANCE, instance, timestamp));
+ } else {
+ NOTREACHED();
+ }
+}
+
} // namespace proxy
} // namespace ppapi
« no previous file with comments | « ppapi/proxy/ppp_input_event_proxy.h ('k') | ppapi/tests/test_fullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698