diff options
author | dalecurtis@google.com <dalecurtis@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-09 22:35:47 +0000 |
---|---|---|
committer | dalecurtis@google.com <dalecurtis@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-09 22:35:47 +0000 |
commit | 56de9038d4ccffd29e75e67ed11eda3ff3cc11bf (patch) | |
tree | 0927e9ec0a34f4069e2981c7f15d325da5248f4b /ppapi/generators | |
parent | c1ee74a49064d150157fd5791c4ddae2d2f40260 (diff) | |
download | chromium_src-56de9038d4ccffd29e75e67ed11eda3ff3cc11bf.zip chromium_src-56de9038d4ccffd29e75e67ed11eda3ff3cc11bf.tar.gz chromium_src-56de9038d4ccffd29e75e67ed11eda3ff3cc11bf.tar.bz2 |
Add PPAPI interfaces for platform verification.
Interfaces only at this point. Implementation to follow. API mirrors
that which is provided to the CDMs in http://crrev.com/221019
CanChallengePlatform() can be synchronous since it will just check a
command line flag passed to the process.
BUG=270294
TEST=none
R=ddorwin@chromium.org, dmichael@chromium.org
Review URL: https://codereview.chromium.org/23569005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/generators')
-rwxr-xr-x | ppapi/generators/idl_c_proto.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ppapi/generators/idl_c_proto.py b/ppapi/generators/idl_c_proto.py index 2989a09..0e0797a 100755 --- a/ppapi/generators/idl_c_proto.py +++ b/ppapi/generators/idl_c_proto.py @@ -606,8 +606,14 @@ class CGen(object): for line in data.split('\n'): # Add indentation line = tab + line - if len(line) <= 80: + space_break = line.rfind(' ', 0, 80) + if len(line) <= 80 or 'http' in line: + # Ignore normal line and URLs permitted by the style guide. lines.append(line.rstrip()) + elif not '(' in line and space_break >= 0: + # Break long typedefs on nearest space. + lines.append(line[0:space_break]) + lines.append(' ' + line[space_break + 1:]) else: left = line.rfind('(') + 1 args = line[left:].split(',') |