diff options
author | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-30 00:13:25 +0000 |
---|---|---|
committer | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-30 00:13:25 +0000 |
commit | 2a7e8c52d4cc4e6adb055cc0ddebd0398b6c0fab (patch) | |
tree | 871d95dea43db9e9b45b09d989fc214f9f2b4a8d /ppapi/api/ppb_gamepad.idl | |
parent | a1287ea400e61be595736aff5437af3af63c5928 (diff) | |
download | chromium_src-2a7e8c52d4cc4e6adb055cc0ddebd0398b6c0fab.zip chromium_src-2a7e8c52d4cc4e6adb055cc0ddebd0398b6c0fab.tar.gz chromium_src-2a7e8c52d4cc4e6adb055cc0ddebd0398b6c0fab.tar.bz2 |
IDL: Autogenerate thunk for PPB_Gamepad.
This required adding two features to the thunk generator.
* Support for a 'singleton_resource' annotation, which forces the use of
EnterInstanceAPI.
* When a function fails in the thunk layer, and it returns void,
automatically zero out the output arguments. This will probably have to be
moved to an annotation later, but seems like a good heuristic for now.
BUG=187666
Review URL: https://chromiumcodereview.appspot.com/13142007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191477 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api/ppb_gamepad.idl')
-rw-r--r-- | ppapi/api/ppb_gamepad.idl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ppapi/api/ppb_gamepad.idl b/ppapi/api/ppb_gamepad.idl index 845714b..6403e34 100644 --- a/ppapi/api/ppb_gamepad.idl +++ b/ppapi/api/ppb_gamepad.idl @@ -8,6 +8,8 @@ * provides access to gamepad devices. */ +[generate_thunk] + label Chrome { M19 = 1.0 }; @@ -83,7 +85,7 @@ struct PP_GamepadsSampleData { * The <code>PPB_Gamepad</code> interface allows retrieving data from * gamepad/joystick devices that are connected to the system. */ -[version=1.0, macro="PPB_GAMEPAD_INTERFACE"] +[version=1.0, macro="PPB_GAMEPAD_INTERFACE", singleton_resource] interface PPB_Gamepad { /** * Samples the current state of the connected gamepads. @@ -91,5 +93,4 @@ interface PPB_Gamepad { void Sample( [in] PP_Instance instance, [out] PP_GamepadsSampleData data); - }; |