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

Unified Diff: Source/bindings/templates/dictionary_impl.cpp

Issue 420763002: IDL: DOM impl class code generation for IDL dictionaries (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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: Source/bindings/templates/dictionary_impl.cpp
diff --git a/Source/bindings/templates/dictionary_impl.cpp b/Source/bindings/templates/dictionary_impl.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..64fff01caf213821b850c615721a2350e08ee0ec
--- /dev/null
+++ b/Source/bindings/templates/dictionary_impl.cpp
@@ -0,0 +1,28 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
+
+#include "config.h"
+#include "{{cpp_class}}.h"
+
+{% for filename in cpp_includes %}
+#include "{{filename}}"
+{% endfor %}
+
+namespace blink {
+
+{# Constructor #}
+{{cpp_class}}::{{cpp_class}}()
+{
+}
+
+void {{cpp_class}}::trace(Visitor* visitor)
+{
+ {% for member in members if member.is_traceable %}
+ visitor->trace(m_{{member.name}});
+ {% endfor %}
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698