diff options
author | scottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-07 16:53:16 +0000 |
---|---|---|
committer | scottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-07 16:53:16 +0000 |
commit | d5cc7198356bdfa3945e7a61f964d8c9ac77070f (patch) | |
tree | 61bb3b104e2ba6acaba0ddc062b5fa263a8ab697 /ppapi/examples | |
parent | d815b6b8043a7114cbb0bf97beba8778c08d7e6f (diff) | |
download | chromium_src-d5cc7198356bdfa3945e7a61f964d8c9ac77070f.zip chromium_src-d5cc7198356bdfa3945e7a61f964d8c9ac77070f.tar.gz chromium_src-d5cc7198356bdfa3945e7a61f964d8c9ac77070f.tar.bz2 |
Rename NaCl/pepper gamepad interface from _dev to stable
Following API review, and revisions here:
https://chromiumcodereview.appspot.com/9405033/. This change is just the
mechanical renames and bump of version number to 1.0.
BUG=112879, 115119
Review URL: http://codereview.chromium.org/9566022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/examples')
-rw-r--r-- | ppapi/examples/gamepad/gamepad.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ppapi/examples/gamepad/gamepad.cc b/ppapi/examples/gamepad/gamepad.cc index 7006dd1..eb2c8fc 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_; }; |