Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: ppapi/generators/idl_thunk.py

Issue 12702011: Pepper: Unify Buffer and BufferTrusted APIs. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comment nits. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/generators/idl_thunk.py
diff --git a/ppapi/generators/idl_thunk.py b/ppapi/generators/idl_thunk.py
index b8adb2e7c6a6f116d8b0ddfd497ee4efe73a9875..3358f188f0a5641dcb66b9f64a24b6d0caf67137 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:

Powered by Google App Engine
This is Rietveld 408576698