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

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

Issue 2471393004: bindings: Use forward declarations for wrapper types in dictionary_impl (Closed)
Patch Set: Added copy operator 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/dictionary_impl.h.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/dictionary_impl.h.tmpl b/third_party/WebKit/Source/bindings/templates/dictionary_impl.h.tmpl
index f69a7bddf3bb496110998c938927a415c192790f..c6fc37799ce9cecec4abb573d682aa18d1b3c2c4 100644
--- a/third_party/WebKit/Source/bindings/templates/dictionary_impl.h.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/dictionary_impl.h.tmpl
@@ -10,12 +10,18 @@
namespace blink {
+{% for decl in header_forward_decls %}
+class {{decl}};
+{% endfor %}
+
{# FIXME: Add "final" if this class doesn\'t have subclasses #}
class {{exported}}{{cpp_class}}{% if parent_cpp_class %} : public {{parent_cpp_class}}{% endif %} {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
public:
{{cpp_class}}();
virtual ~{{cpp_class}}();
+ {{cpp_class}}(const {{cpp_class}}&);
+ {{cpp_class}}& operator=(const {{cpp_class}}&);
{% for member in members %}
bool {{member.has_method_name}}() const;

Powered by Google App Engine
This is Rietveld 408576698