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

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

Issue 2837923003: Make NodeFilter a legacy callback interface. (Closed)
Patch Set: legacy_callback_interface.*.tmpl, etc. Created 3 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/bindings/templates/legacy_callback_interface.h.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/legacy_callback_interface.h.tmpl b/third_party/WebKit/Source/bindings/templates/legacy_callback_interface.h.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..cbf0373a2a4924409b6b97f4984de2cd2d167744
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/templates/legacy_callback_interface.h.tmpl
@@ -0,0 +1,24 @@
+{% filter format_blink_cpp_source_code %}
+
+{% include 'copyright_block.txt' %}
+#ifndef {{v8_class}}_h
+#define {{v8_class}}_h
+
+{% for filename in header_includes %}
+#include "{{filename}}"
+{% endfor %}
+
+namespace blink {
+
+class {{v8_class}} final {
+ STATIC_ONLY({{v8_class}});
+ public:
+ static v8::Local<v8::FunctionTemplate> DomTemplate(v8::Isolate*, const DOMWrapperWorld&);
+ {{exported}} static const WrapperTypeInfo wrapperTypeInfo;
+ {{exported}} static void TypeErrorConstructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
+};
+
+}
+#endif // {{v8_class}}_h
+
+{% endfilter %}{# format_blink_cpp_source_code #}

Powered by Google App Engine
This is Rietveld 408576698