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

Unified Diff: tools/json_schema_compiler/idl_schema.py

Issue 1982193002: Add enum class support to json_schema_compiler (idl files) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit python style Created 4 years, 7 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: 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 58efe28598f1660e9f4481e412f30fa715195668..2ca7200d12cec563c2af4967509cab8019fb4a11 100755
--- a/tools/json_schema_compiler/idl_schema.py
+++ b/tools/json_schema_compiler/idl_schema.py
@@ -361,7 +361,7 @@ class Enum(object):
'type': 'string',
'enum': enum}
for property_name in ('cpp_enum_prefix_override', 'inline_doc',
- 'noinline_doc', 'nodefine', 'nodoc',):
+ 'noinline_doc', 'nodefine', 'nodoc', 'class',):
if self.node.GetProperty(property_name):
result[property_name] = self.node.GetProperty(property_name)
if self.node.GetProperty('deprecated'):

Powered by Google App Engine
This is Rietveld 408576698