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

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

Issue 1895293002: Test fragment scrolling and history restoration interaction w/ scroll anchoring. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove resetToConsistentState and conditionally make feature settable Created 4 years, 8 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_internal_runtime_flags.py
diff --git a/third_party/WebKit/Source/build/scripts/make_internal_runtime_flags.py b/third_party/WebKit/Source/build/scripts/make_internal_runtime_flags.py
index 131394158827761ba9ef8f782c019eff403493d1..1bf1bb9777b0ce5592b22647bd905896cb72fd6b 100755
--- a/third_party/WebKit/Source/build/scripts/make_internal_runtime_flags.py
+++ b/third_party/WebKit/Source/build/scripts/make_internal_runtime_flags.py
@@ -45,6 +45,7 @@ class InternalRuntimeFlagsWriter(make_runtime_features.RuntimeFeatureWriter):
super(InternalRuntimeFlagsWriter, self).__init__(in_file_path)
self._outputs = {(self.class_name + '.idl'): self.generate_idl,
(self.class_name + '.h'): self.generate_header,
+ (self.class_name + '.cpp'): self.generate_implementation,
}
@template_expander.use_jinja(class_name + '.idl.tmpl')
@@ -62,6 +63,13 @@ class InternalRuntimeFlagsWriter(make_runtime_features.RuntimeFeatureWriter):
'standard_features': self._standard_features,
}
+ @template_expander.use_jinja(class_name + '.cpp.tmpl')
+ def generate_implementation(self):
+ return {
+ 'features': self._features,
+ 'standard_features': self._standard_features,
+ }
+
if __name__ == '__main__':
in_generator.Maker(InternalRuntimeFlagsWriter).main(sys.argv)

Powered by Google App Engine
This is Rietveld 408576698