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

Unified Diff: third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl

Issue 2458913003: Add first sketch of the webmodules code generator. (Closed)
Patch Set: Implemented WebModuleAPI extended attribute. Created 4 years, 1 month 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/templates/web_module_interface.cpp.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..9adbe86274f9a628cf25ac54432c634a47c47aba
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl
@@ -0,0 +1,36 @@
+{% filter format_blink_cpp_source_code %}
+
+{% include 'copyright_block.txt' %}
+// clang-format on
+
+#include "Web{{class_name}}.h"
+
+// TODO(dglazkov): Implement generating includes.
+{% for filename in cpp_includes %}
+#include "{{filename}}"
+{% endfor %}
+
+namespace blink {
+namespace api {
+
+// TODO(dglazkov): Implement constant generation
+{% for constant in constants %}
+// {{ constant.name }}
+{% endfor %}
+
+// TODO(dglazkov): Implement constructor generation
+
+// TODO(dglazkov): Implement attribute getter/setter generation
+{% for attribute in attributes %}
+// {{attribute.name}}
+{% endfor %}
+
+// TODO(dglazkov): Implement method generation
+{% for method in methods %}
+// {{method.cpp_type}} Cpp{{class_name}}::{{method.name}}
+{% endfor %}
+
+} // namespace api
+}
Yuki 2016/11/07 02:55:53 nit: } // namespace blink
+
+{% endfilter %}

Powered by Google App Engine
This is Rietveld 408576698