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

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

Issue 2673283002: Added CSSPropertyAPI.h.tmpl to generate CSSPropertyAPI.h. (Closed)
Patch Set: rebase Created 3 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
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 2948308033439c57b253b8a1681f9bc5604bef96..a80103487cdf3dc6957b3a5ad6cf3243484299ed 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
@@ -35,6 +35,7 @@ class CSSPropertyAPIWriter(json5_generator.Writer):
self._outputs = {
'CSSPropertyDescriptor.cpp': self.generate_property_descriptor_cpp,
+ 'CSSPropertyAPI.h': self.generate_property_api,
}
# Stores a map of API method name -> (return_type, parameters)
@@ -83,6 +84,13 @@ class CSSPropertyAPIWriter(json5_generator.Writer):
'ordered_api_method_names': self.ordered_api_method_names,
}
+ @template_expander.use_jinja('CSSPropertyAPI.h.tmpl')
+ def generate_property_api(self):
+ return {
+ 'api_method_names': self.ordered_api_method_names,
+ 'api_methods': self.all_api_methods,
sashab 2017/02/10 01:23:20 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')

Powered by Google App Engine
This is Rietveld 408576698