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

Unified Diff: third_party/WebKit/Source/build/scripts/make_css_property_apis.py

Issue 2620883002: Convert Settings.in, CSSValueKeywords.in, SVGCSSValueKeywords.in to json5 (Closed)
Patch Set: Convert CSSProperties.in to json5 format Created 3 years, 11 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: third_party/WebKit/Source/build/scripts/make_css_property_apis.py
diff --git a/third_party/WebKit/Source/build/scripts/make_css_property_apis.py b/third_party/WebKit/Source/build/scripts/make_css_property_apis.py
index a9cce8fca9d05605609b44e9546d67c371451409..35ee4a2bb4944b2127cf5ce56f14a3296dd057d4 100755
--- a/third_party/WebKit/Source/build/scripts/make_css_property_apis.py
+++ b/third_party/WebKit/Source/build/scripts/make_css_property_apis.py
@@ -5,7 +5,7 @@
import sys
-import in_generator
+import json5_generator
import template_expander
import make_style_builder
@@ -15,7 +15,7 @@ from collections import namedtuple, defaultdict
# Gets the classname for a given property.
def get_classname(property):
if property['api_class'] is True:
- # This property had the generated_api_class flag set in CSSProperties.in.
+ # This property had the generated_api_class flag set in CSSProperties.json5.
return 'CSSPropertyAPI' + property['upper_camel_name']
# This property has a specified class name.
assert isinstance(property['api_class'], str), \
@@ -24,8 +24,8 @@ def get_classname(property):
class CSSPropertyAPIWriter(make_style_builder.StyleBuilderWriter):
- def __init__(self, in_file_path):
- super(CSSPropertyAPIWriter, self).__init__(in_file_path)
+ def __init__(self, json5_file_path):
+ super(CSSPropertyAPIWriter, self).__init__(json5_file_path)
self._outputs = {
'CSSPropertyDescriptor.cpp': self.generate_property_descriptor_cpp,
}
@@ -67,4 +67,4 @@ class CSSPropertyAPIWriter(make_style_builder.StyleBuilderWriter):
return generate_property_api_h
if __name__ == '__main__':
- in_generator.Maker(CSSPropertyAPIWriter).main(sys.argv)
+ json5_generator.Maker(CSSPropertyAPIWriter).main()

Powered by Google App Engine
This is Rietveld 408576698