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 a80103487cdf3dc6957b3a5ad6cf3243484299ed..40a2064b25ab76a762073e1502b28307dd892b11 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 |
@@ -36,6 +36,7 @@ class CSSPropertyAPIWriter(json5_generator.Writer): |
self._outputs = { |
'CSSPropertyDescriptor.cpp': self.generate_property_descriptor_cpp, |
'CSSPropertyAPI.h': self.generate_property_api, |
+ 'CSSPropertyDescriptor.h': self.generate_property_descriptor_h, |
} |
# Stores a map of API method name -> (return_type, parameters) |
@@ -91,6 +92,13 @@ class CSSPropertyAPIWriter(json5_generator.Writer): |
'api_methods': self.all_api_methods, |
} |
+ @template_expander.use_jinja('CSSPropertyDescriptor.h.tmpl') |
+ def generate_property_descriptor_h(self): |
+ return { |
+ 'ordered_api_method_names': self.ordered_api_method_names, |
sashab
2017/02/10 01:24:34
Change to ordered in other patch as well
|
+ 'api_methods': self.all_api_methods, |
sashab
2017/02/10 01:24:34
all_api_methods
|
+ } |
+ |
# Provides a function object given the classname of the property. |
def generate_property_api_h_builder(self, api_classname): |
@template_expander.use_jinja('CSSPropertyAPIFiles.h.tmpl') |