diff options
author | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-26 19:32:50 +0000 |
---|---|---|
committer | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-26 19:32:50 +0000 |
commit | 8c71647a64faa680adce4c4c1415004f625580aa (patch) | |
tree | 9a1b1f095116b137cfdbdb0b80ecb7d7b382576e /ppapi/generators/idl_thunk.py | |
parent | 913e3018b2c564f159c9a0b8119595f0daa8847a (diff) | |
download | chromium_src-8c71647a64faa680adce4c4c1415004f625580aa.zip chromium_src-8c71647a64faa680adce4c4c1415004f625580aa.tar.gz chromium_src-8c71647a64faa680adce4c4c1415004f625580aa.tar.bz2 |
IDL: Autogen thunk: PPB_ContentDecryptor_Private.
Automatically generate thunk for the PPB_ContentDecryptor_Private interface.
BUG=
Review URL: https://chromiumcodereview.appspot.com/12334079
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/generators/idl_thunk.py')
-rwxr-xr-x | ppapi/generators/idl_thunk.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ppapi/generators/idl_thunk.py b/ppapi/generators/idl_thunk.py index a754e3f..1f99658 100755 --- a/ppapi/generators/idl_thunk.py +++ b/ppapi/generators/idl_thunk.py @@ -429,7 +429,10 @@ class TGen(GeneratorByFile): thunk_type = '_'.join((node.GetName(), version)) version_list.append((thunk_type, thunk_name)) - out.Write('const %s %s = {\n' % (thunk_type, thunk_name)) + declare_line = 'const %s %s = {' % (thunk_type, thunk_name) + if len(declare_line) > 80: + declare_line = 'const %s\n %s = {' % (thunk_type, thunk_name) + out.Write('%s\n' % declare_line) generated_functions = [] members = node.GetListOf('Member') for child in members: |