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

Unified Diff: third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py

Issue 2569923003: Refer back to Jinja templates from the C++ code generated from IDL files. (Closed)
Patch Set: Also cover templates used from code_generator_web_module.py Created 4 years 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/bindings/scripts/code_generator_web_module.py
diff --git a/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py b/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py
index 5868b002512a2e96fe1cdc6f11ce93cdb3cafd4d..aef967dc5e8e45020c6a658014a819a14613097c 100644
--- a/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py
+++ b/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py
@@ -22,7 +22,7 @@ DOM classes to the Web Modules layer.
import os
import posixpath
-from code_generator import CodeGeneratorBase
+from code_generator import CodeGeneratorBase, render_template
# TODO(dglazkov): Move TypedefResolver to code_generator.py
from code_generator_v8 import TypedefResolver
@@ -124,8 +124,8 @@ class CodeGeneratorWebModule(CodeGeneratorBase):
cpp_template = self.get_template('cpp')
header_template = self.get_template('h')
- cpp_text = cpp_template.render(template_context)
- header_text = header_template.render(template_context)
+ cpp_text = render_template(cpp_template, template_context)
+ header_text = render_template(header_template, template_context)
header_path, cpp_path = self.output_paths(interface.name)
return (

Powered by Google App Engine
This is Rietveld 408576698