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

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

Issue 2684353002: Added CSSPropertyDescriptor.h.tmpl to generate CSSPropertyDescriptor.h. (Closed)
Patch Set: renames and comments 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/scripts.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c69630de092514edef714da9a3fccb517f1bc7ac..140068c12c0b1f0a4be377ca065ea5baf4dd1230 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, comment)
@@ -92,6 +93,13 @@ class CSSPropertyAPIWriter(json5_generator.Writer):
'all_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,
+ 'all_api_methods': self.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')
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/scripts.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698