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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc

Issue 9148044: Add NaCl proxy for pepper gamepad (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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/native_client/src/shared/ppapi_proxy/browser_globals.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc b/ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc
index 87e170e28eba20c1063ccbcd3dee0e6e76da20f4..512477d46a59761deba53dca733955b5af9237ac 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc
@@ -375,6 +375,13 @@ const PPB_Fullscreen* PPBFullscreenInterface() {
return ppb;
}
+const PPB_Gamepad_Dev* PPBGamepadInterface() {
+ static const PPB_Gamepad_Dev* ppb =
+ static_cast<const PPB_Gamepad_Dev*>(
+ GetBrowserInterfaceSafe(PPB_GAMEPAD_DEV_INTERFACE));
bbudge 2012/01/11 23:52:59 nit: indentation
scottmg 2012/01/11 23:58:25 Done.
+ return ppb;
+}
+
const PPB_MouseLock* PPBMouseLockInterface() {
static const PPB_MouseLock* ppb = static_cast<const PPB_MouseLock*>(
GetBrowserInterfaceSafe(PPB_MOUSELOCK_INTERFACE));

Powered by Google App Engine
This is Rietveld 408576698