Index: src/shared/ppapi_proxy/plugin_globals.cc |
diff --git a/src/shared/ppapi_proxy/plugin_globals.cc b/src/shared/ppapi_proxy/plugin_globals.cc |
index d9785a7b62d3d6834d8f5414d55951cfedf491c2..c5d875d3bb9271c4e15e1367804e418c0d52c79a 100644 |
--- a/src/shared/ppapi_proxy/plugin_globals.cc |
+++ b/src/shared/ppapi_proxy/plugin_globals.cc |
@@ -10,9 +10,9 @@ |
#include "native_client/src/shared/ppapi_proxy/plugin_ppb_core.h" |
#include "native_client/src/shared/ppapi_proxy/plugin_ppb_var.h" |
#include "native_client/src/shared/ppapi_proxy/ppruntime.h" |
+#include "native_client/src/shared/ppapi_proxy/untrusted/srpcgen/ppp_rpc.h" |
#include "native_client/src/shared/ppapi_proxy/utility.h" |
#include "native_client/src/shared/srpc/nacl_srpc.h" |
-#include "srpcgen/ppp_rpc.h" |
#define NACL_SEND_FD 6 |
@@ -82,6 +82,16 @@ const PPB_Var* PPBVarInterface() { |
GetBrowserInterfaceSafe(PPB_VAR_INTERFACE)); |
} |
+const PPP_InputEvent* PPPInputEventInterface() { |
+ static const PPP_InputEvent* ppp_input_event = |
+ static_cast<const PPP_InputEvent*>( |
+ ::PPP_GetInterface(PPP_INPUT_EVENT_INTERFACE)); |
+ // This helper is only used from interface function proxies; a NULL return |
+ // means something is wrong with the proxy. |
+ CHECK(ppp_input_event != NULL); |
+ return ppp_input_event; |
+} |
+ |
const PPP_Messaging* PPPMessagingInterface() { |
static const PPP_Messaging* ppp_messaging = static_cast<const PPP_Messaging*>( |
::PPP_GetInterface(PPP_MESSAGING_INTERFACE)); |