diff options
author | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-11 02:26:42 +0000 |
---|---|---|
committer | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-11 02:26:42 +0000 |
commit | 2807a28caa0433ab1d8a5d2ffde1d05374ab9ecf (patch) | |
tree | 3732da21989f065c6ef0dc259ae45b5e74162d17 /ppapi | |
parent | 1c40788c80d5258922169c4bf089929e0350e01a (diff) | |
download | chromium_src-2807a28caa0433ab1d8a5d2ffde1d05374ab9ecf.zip chromium_src-2807a28caa0433ab1d8a5d2ffde1d05374ab9ecf.tar.gz chromium_src-2807a28caa0433ab1d8a5d2ffde1d05374ab9ecf.tar.bz2 |
Autogenerate thunk .cc file for PPB_Flash_DeviceID
BUG=
Review URL: https://chromiumcodereview.appspot.com/11511010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172240 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/api/private/ppb_flash_device_id.idl | 2 | ||||
-rw-r--r-- | ppapi/thunk/ppb_flash_device_id_thunk.cc | 21 |
2 files changed, 15 insertions, 8 deletions
diff --git a/ppapi/api/private/ppb_flash_device_id.idl b/ppapi/api/private/ppb_flash_device_id.idl index dd69b3d..1fa4986 100644 --- a/ppapi/api/private/ppb_flash_device_id.idl +++ b/ppapi/api/private/ppb_flash_device_id.idl @@ -7,6 +7,8 @@ * This file contains the <code>PPB_Flash_DeviceID</code> interface. */ +[generate_thunk] + label Chrome { M21 = 1.0 }; diff --git a/ppapi/thunk/ppb_flash_device_id_thunk.cc b/ppapi/thunk/ppb_flash_device_id_thunk.cc index 498df75..38ee1a5 100644 --- a/ppapi/thunk/ppb_flash_device_id_thunk.cc +++ b/ppapi/thunk/ppb_flash_device_id_thunk.cc @@ -2,11 +2,16 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// From private/ppb_flash_device_id.idl modified Mon Dec 10 16:03:11 2012. + +#include "ppapi/c/pp_errors.h" #include "ppapi/c/private/ppb_flash_device_id.h" +#include "ppapi/shared_impl/tracked_callback.h" #include "ppapi/thunk/enter.h" -#include "ppapi/thunk/thunk.h" #include "ppapi/thunk/ppb_flash_device_id_api.h" +#include "ppapi/thunk/ppb_instance_api.h" #include "ppapi/thunk/resource_creation_api.h" +#include "ppapi/thunk/thunk.h" namespace ppapi { namespace thunk { @@ -20,24 +25,24 @@ PP_Resource Create(PP_Instance instance) { return enter.functions()->CreateFlashDeviceID(instance); } -int32_t GetDeviceID(PP_Resource resource, - PP_Var* id, - PP_CompletionCallback callback) { - EnterResource<PPB_Flash_DeviceID_API> enter(resource, callback, true); +int32_t GetDeviceID(PP_Resource device_id, + struct PP_Var* id, + struct PP_CompletionCallback callback) { + EnterResource<PPB_Flash_DeviceID_API> enter(device_id, callback, true); if (enter.failed()) return enter.retval(); return enter.SetResult(enter.object()->GetDeviceID(id, enter.callback())); } -const PPB_Flash_DeviceID g_ppb_flash_deviceid_thunk = { +const PPB_Flash_DeviceID_1_0 g_ppb_flash_deviceid_thunk_1_0 = { &Create, - &GetDeviceID + &GetDeviceID, }; } // namespace const PPB_Flash_DeviceID_1_0* GetPPB_Flash_DeviceID_1_0_Thunk() { - return &g_ppb_flash_deviceid_thunk; + return &g_ppb_flash_deviceid_thunk_1_0; } } // namespace thunk |