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

Unified Diff: src/shared/ppapi_proxy/plugin_globals.cc

Issue 7395005: Proxy PPB_Input_Event, PPP_Input_Event, and associated IFs. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: copyright headers Created 9 years, 5 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 | « src/shared/ppapi_proxy/plugin_globals.h ('k') | src/shared/ppapi_proxy/plugin_ppb.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « src/shared/ppapi_proxy/plugin_globals.h ('k') | src/shared/ppapi_proxy/plugin_ppb.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698