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

Unified Diff: core/scripts/make_runtime_features.py

Issue 15643014: Blink IDL roll. (Closed) Base URL: http://dart.googlecode.com/svn/third_party/WebCore/
Patch Set: Created 7 years, 6 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 | « core/scripts/make_internal_runtime_flags.py ('k') | core/scripts/make_style_builder.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/scripts/make_runtime_features.py
===================================================================
--- core/scripts/make_runtime_features.py (revision 23517)
+++ core/scripts/make_runtime_features.py (working copy)
@@ -32,6 +32,7 @@
from in_file import InFile
import in_generator
+import template_expander
class RuntimeFeatureWriter(in_generator.Writer):
@@ -50,6 +51,10 @@
def __init__(self, in_file_path, enabled_conditions):
super(RuntimeFeatureWriter, self).__init__(in_file_path, enabled_conditions)
+ self._outputs = {(self.class_name + ".h"): self.generate_header,
+ (self.class_name + ".cpp"): self.generate_implementation,
+ }
+
self._features = self.in_file.name_dictionaries
# Make sure the resulting dictionaries have all the keys we expect.
for feature in self._features:
@@ -74,12 +79,14 @@
# which is how we're referring to them in this generator.
return self.valid_values['status']
+ @template_expander.use_jinja(class_name + ".h.tmpl")
def generate_header(self):
return {
'features': self._features,
'feature_sets': self._feature_sets(),
}
+ @template_expander.use_jinja(class_name + ".cpp.tmpl")
def generate_implementation(self):
return {
'features': self._features,
« no previous file with comments | « core/scripts/make_internal_runtime_flags.py ('k') | core/scripts/make_style_builder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698