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

Unified Diff: ppapi/examples/gamepad/gamepad.cc

Issue 9566022: Rename NaCl/pepper gamepad interface from _dev to stable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/c/ppb_gamepad.h ('k') | ppapi/native_client/src/shared/ppapi_proxy/browser_globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/gamepad/gamepad.cc
diff --git a/ppapi/examples/gamepad/gamepad.cc b/ppapi/examples/gamepad/gamepad.cc
index 7006dd1796e8d14a269f9ae3063bb6306918dd6b..eb2c8fc7f43ef86095a32c78d7af0e2476265c59 100644
--- a/ppapi/examples/gamepad/gamepad.cc
+++ b/ppapi/examples/gamepad/gamepad.cc
@@ -7,7 +7,7 @@
#include <stdio.h>
#include "ppapi/c/dev/ppb_console_dev.h"
-#include "ppapi/c/dev/ppb_gamepad_dev.h"
+#include "ppapi/c/ppb_gamepad.h"
#include "ppapi/c/ppb_input_event.h"
#include "ppapi/cpp/completion_callback.h"
#include "ppapi/cpp/graphics_2d.h"
@@ -45,8 +45,8 @@ class MyInstance : public pp::Instance {
virtual ~MyInstance() {}
virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]) {
- gamepad_ = reinterpret_cast<const PPB_Gamepad_Dev*>(
- pp::Module::Get()->GetBrowserInterface(PPB_GAMEPAD_DEV_INTERFACE));
+ gamepad_ = reinterpret_cast<const PPB_Gamepad*>(
+ pp::Module::Get()->GetBrowserInterface(PPB_GAMEPAD_INTERFACE));
if (!gamepad_)
return false;
return true;
@@ -89,7 +89,7 @@ class MyInstance : public pp::Instance {
if (image.is_null())
return image;
- PP_GamepadsSampleData_Dev gamepad_data;
+ PP_GamepadsSampleData gamepad_data;
gamepad_->Sample(pp_instance(), &gamepad_data);
if (gamepad_data.length > 1 && gamepad_data.items[0].connected) {
@@ -121,7 +121,7 @@ class MyInstance : public pp::Instance {
pp::CompletionCallbackFactory<MyInstance> callback_factory_;
- const PPB_Gamepad_Dev* gamepad_;
+ const PPB_Gamepad* gamepad_;
pp::Graphics2D device_context_;
};
« no previous file with comments | « ppapi/c/ppb_gamepad.h ('k') | ppapi/native_client/src/shared/ppapi_proxy/browser_globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698