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

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

Issue 386963003: [WIP][NotForLand] IDL dictionary support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: sequence and array support 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
« no previous file with comments | « Source/bindings/templates/dictionary_impl.h ('k') | Source/bindings/templates/dictionary_v8.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4c8de8014c6cf1c47ed293996dd15ec8567332e3
--- /dev/null
+++ b/Source/bindings/templates/dictionary_impl.cpp
@@ -0,0 +1,36 @@
+// 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}}()
+{
+}
+
+{# Setters #}
+{% for member in members %}
+void {{cpp_class}}::{{member.setter_name}}({{member.argument_cpp_type}} value)
+{
+ m_{{member.name}} = value;
+}
+
+{% endfor %}
+void {{cpp_class}}::trace(Visitor* visitor)
+{
+ {% for member in members if member.is_traceable %}
+ visitor->trace(m_{{member.name}});
+ {% endfor %}
+}
+
+} // namespace blink
« no previous file with comments | « Source/bindings/templates/dictionary_impl.h ('k') | Source/bindings/templates/dictionary_v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698