summaryrefslogtreecommitdiffstats
path: root/ppapi/generators
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-23 23:50:49 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-23 23:50:49 +0000
commite3da4e80d5b48a5319c4e412eaceec7df6e77cad (patch)
tree230739afbfd8f631ce3e1901b7a3f6c490076d4a /ppapi/generators
parentc47ddb2b81bcb3c4f9fb9fb16281e12d60a461ff (diff)
downloadchromium_src-e3da4e80d5b48a5319c4e412eaceec7df6e77cad.zip
chromium_src-e3da4e80d5b48a5319c4e412eaceec7df6e77cad.tar.gz
chromium_src-e3da4e80d5b48a5319c4e412eaceec7df6e77cad.tar.bz2
Pepper: Unify Buffer and BufferTrusted APIs.
For consistency, APIs with both normal/trusted and normal/private interfaces will be merged together. This also makes it easer to generate thunks for more IDL files, since the API name (and file name) can be derived without extra annotations. BUG= Review URL: https://chromiumcodereview.appspot.com/12702011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190122 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/generators')
-rwxr-xr-xppapi/generators/idl_thunk.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ppapi/generators/idl_thunk.py b/ppapi/generators/idl_thunk.py
index b8adb2e..3358f18 100755
--- a/ppapi/generators/idl_thunk.py
+++ b/ppapi/generators/idl_thunk.py
@@ -92,6 +92,8 @@ def _MakeEnterLine(filenode, interface, arg, handle_errors, callback, meta):
return 'EnterInstance enter(%s, %s);' % (arg[1], callback)
elif arg[0] == 'PP_Resource':
api_name = interface.GetName()
+ if api_name.endswith('Trusted'):
+ api_name = api_name[:-len('Trusted')]
if api_name.endswith('_Dev'):
api_name = api_name[:-len('_Dev')]
api_name += '_API'
@@ -102,6 +104,9 @@ def _MakeEnterLine(filenode, interface, arg, handle_errors, callback, meta):
if api_basename.endswith('_dev'):
# Clip off _dev suffix.
api_basename = api_basename[:-len('_dev')]
+ if api_basename.endswith('_trusted'):
+ # Clip off _trusted suffix.
+ api_basename = api_basename[:-len('_trusted')]
meta.AddApi(api_basename + '_api')
if callback is None: