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

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

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/scripts/v8_types.py ('k') | Source/bindings/templates/dictionary_impl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/templates/dictionary_impl.h
diff --git a/Source/bindings/templates/dictionary_impl.h b/Source/bindings/templates/dictionary_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..cfc7e2564184792ac38faeeab0059652c2c13214
--- /dev/null
+++ b/Source/bindings/templates/dictionary_impl.h
@@ -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!
+
+#ifndef {{cpp_class}}_h
+#define {{cpp_class}}_h
+
+{% for filename in header_includes %}
+#include "{{filename}}"
+{% endfor %}
+
+namespace blink {
+
+class {{cpp_class}} : public GarbageCollectedFinalized<{{cpp_class}}> {
+public:
+ static {{cpp_class}}* create()
+ {
+ return new {{cpp_class}};
+ }
+
+ {% for member in members %}
+ bool {{member.has_name}}() const { return {{member.has_method_expression}}; }
+ {{member.getter_cpp_type}} {{member.name}}() const { return {{member.getter_method_expression}}; }
+ void {{member.setter_name}}({{member.argument_cpp_type}});
+ {% endfor %}
+
+ void trace(Visitor*);
+
+private:
+ {{cpp_class}}();
+
+ {% for member in members %}
+ {{member.member_cpp_type}} m_{{member.name}};
+ {% endfor %}
+
+ friend class V8{{cpp_class}};
+};
+
+} // namespace blink
+
+#endif // {{cpp_class}}_h
« no previous file with comments | « Source/bindings/scripts/v8_types.py ('k') | Source/bindings/templates/dictionary_impl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698