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

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

Issue 2568693002: Add first bindings unit test and enable testing. (Closed)
Patch Set: Add harness code after typ roll. 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/templates/web_module_interface.h.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl b/third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl
index bf9489fd5bb94392fcebb3af0ebcd7663070655e..199c7b39adefbe476b4e5530e35dfc2851ed072b 100644
--- a/third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl
@@ -2,6 +2,24 @@
{% include 'copyright_block.txt' %}
-// TODO(dglazkov): Implement generating the header file.
+// TODO(dglazkov): Use chromium-style path.
+#ifndef {{class_name}}_h
+#define {{class_name}}_h
-{% endfilter %}
+{% for include_file in header_includes %}
+#include "{{include_file}}"
+{% endfor %}
+
+namespace blink {
+namespace api {
+
+class {{class_name}} {
+
+};
+
+} // namespace api
+} // namespace blink
+
+#endif // {{class_name}}_h
+
+{% endfilter %}

Powered by Google App Engine
This is Rietveld 408576698