From 2a7e8c52d4cc4e6adb055cc0ddebd0398b6c0fab Mon Sep 17 00:00:00 2001 From: "teravest@chromium.org" Date: Sat, 30 Mar 2013 00:13:25 +0000 Subject: 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 --- ppapi/api/ppb_gamepad.idl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ppapi/api/ppb_gamepad.idl') 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 PPB_Gamepad 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); - }; -- cgit v1.1