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

Unified Diff: tools/json_schema_compiler/idl_schema.py

Issue 273323002: Convert snakecase enum names to camelcase when stringified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 991b1c6bb9d060ce44ca842555b345fd2dc509e6..c7764c7d04083a35e8434b5a1a91d69d71c20928 100644
--- a/tools/json_schema_compiler/idl_schema.py
+++ b/tools/json_schema_compiler/idl_schema.py
@@ -438,6 +438,8 @@ class IDLSchema(object):
platforms = list(node.value)
elif node.name == 'implemented_in':
compiler_options = {'implemented_in': node.value}
+ elif node.name == 'camel_case_enum_to_string':
+ compiler_options = {'camel_case_enum_to_string': node.value}
not at google - send to devlin 2014/05/13 18:36:35 this means that an API can't specify more than one
David Tseng 2014/05/13 20:10:17 Done.
elif node.name == 'deprecated':
deprecated = str(node.value)
else:

Powered by Google App Engine
This is Rietveld 408576698