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

Unified Diff: core/scripts/make_internal_runtime_flags.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_event_factory.py ('k') | core/scripts/make_runtime_features.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/scripts/make_internal_runtime_flags.py
===================================================================
--- core/scripts/make_internal_runtime_flags.py (revision 23517)
+++ core/scripts/make_internal_runtime_flags.py (working copy)
@@ -32,6 +32,7 @@
import in_generator
import make_runtime_features
+import template_expander
# We want exactly the same parsing as RuntimeFeatureWriter
@@ -39,20 +40,25 @@
class InternalRuntimeFlagsWriter(make_runtime_features.RuntimeFeatureWriter):
class_name = "InternalRuntimeFlags"
+ def __init__(self, in_file_path, enabled_conditions):
+ super(InternalRuntimeFlagsWriter, self).__init__(in_file_path, enabled_conditions)
+ self._outputs = {(self.class_name + ".idl"): self.generate_idl,
+ (self.class_name + ".h"): self.generate_header,
+ }
+
+ @template_expander.use_jinja(class_name + ".idl.tmpl")
def generate_idl(self):
return {
'features': self._features,
}
+ @template_expander.use_jinja(class_name + ".h.tmpl")
def generate_header(self):
return {
'features': self._features,
'feature_sets': self._feature_sets(),
}
- def generate_implementation(self):
- return None
-
if __name__ == "__main__":
in_generator.Maker(InternalRuntimeFlagsWriter).main(sys.argv)
« no previous file with comments | « core/scripts/make_event_factory.py ('k') | core/scripts/make_runtime_features.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698