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..81f5163b98297f84e3ca766f2f89601a9dbadf2c |
--- /dev/null |
+++ b/Source/bindings/templates/dictionary_impl.cpp |
@@ -0,0 +1,43 @@ |
+// 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" |
+{% filter conditional(conditional_string) %} |
+#include "{{cpp_name}}.h" |
+ |
+{% for filename in cpp_includes %} |
+#include "{{filename}}" |
+{% endfor %} |
+ |
+namespace WebCore { |
+ |
+{# Constructor #} |
+{{cpp_name}}::{{cpp_name}}() |
+{ |
+ {% for member in members %} |
+ m_{{member.has_name}} = false; |
+ {% endfor %} |
+} |
+ |
+{# Setters #} |
+{% for member in members %} |
+void {{cpp_name}}::{{member.setter_name}}({{member.argument_cpp_type}} value) |
+{ |
+ m_{{member.name}} = value; |
+ m_{{member.has_name}} = true; |
+} |
+ |
+{% endfor %} |
+ |
+void {{cpp_name}}::trace(Visitor* visitor) |
+{ |
+ {% for member in members if member.is_traceable %} |
+ visitor->trace(m_{{member.name}}); |
+ {% endfor %} |
+} |
+ |
+} // namespace WebCore |
+{% endfilter %} |