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

Unified Diff: tools/json_schema_compiler/idl_schema.py

Issue 1695563002: Media Galleries Partial Deprecation: Remove scan functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « tools/json_schema_compiler/compiler.py ('k') | tools/json_schema_compiler/idl_schema_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/idl_schema.py
diff --git a/tools/json_schema_compiler/idl_schema.py b/tools/json_schema_compiler/idl_schema.py
index 65d7baeb485f0a06026a24c2a2e02112c72f63e7..58efe28598f1660e9f4481e412f30fa715195668 100755
--- a/tools/json_schema_compiler/idl_schema.py
+++ b/tools/json_schema_compiler/idl_schema.py
@@ -149,6 +149,8 @@ class Dictionary(object):
result = {'id': self.node.GetName(),
'properties': properties,
'type': 'object'}
+ if self.node.GetProperty('nodefine'):
+ result['nodefine'] = True
if self.node.GetProperty('nodoc'):
result['nodoc'] = True
elif self.node.GetProperty('inline_doc'):
@@ -175,7 +177,8 @@ class Member(object):
properties['deprecated'] = self.node.GetProperty('deprecated')
if self.node.GetProperty('allowAmbiguousOptionalArguments'):
properties['allowAmbiguousOptionalArguments'] = True
- for property_name in ('OPTIONAL', 'nodoc', 'nocompile', 'nodart'):
+ for property_name in ('OPTIONAL', 'nodoc', 'nocompile', 'nodart',
+ 'nodefine'):
if self.node.GetProperty(property_name):
properties[property_name.lower()] = True
for option_name, sanitizer in [
@@ -357,8 +360,8 @@ class Enum(object):
'description': self.description,
'type': 'string',
'enum': enum}
- for property_name in (
- 'inline_doc', 'noinline_doc', 'nodoc', 'cpp_enum_prefix_override',):
+ for property_name in ('cpp_enum_prefix_override', 'inline_doc',
+ 'noinline_doc', 'nodefine', 'nodoc',):
if self.node.GetProperty(property_name):
result[property_name] = self.node.GetProperty(property_name)
if self.node.GetProperty('deprecated'):
« no previous file with comments | « tools/json_schema_compiler/compiler.py ('k') | tools/json_schema_compiler/idl_schema_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698