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

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

Issue 2471393004: bindings: Use forward declarations for wrapper types in dictionary_impl (Closed)
Patch Set: WIP 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.cpp.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/dictionary_impl.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/dictionary_impl.cpp.tmpl
index 3e612a1b6bfccce278b1a1d6195afb893f292426..077918ad1d4bf7b0572668fa2f3ababfc178cbad 100644
--- a/third_party/WebKit/Source/bindings/templates/dictionary_impl.cpp.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/dictionary_impl.cpp.tmpl
@@ -27,6 +27,27 @@ DEFINE_TRACE({{cpp_class}}) {
{% endif %}
}
+{% for member in members %}
+bool {{cpp_class}}::{{member.has_method_name}}() const {
+ return {{member.has_method_expression}};
+}
+
+{{member.rvalue_cpp_type}} {{cpp_class}}::{{member.cpp_name}}() const {
+ return {{member.getter_expression}};
+}
+
+void {{cpp_class}}::{{member.setter_name}}({{member.rvalue_cpp_type}} value) {
+ m_{{member.cpp_name}} = value;
+}
+
+{% if member.null_setter_name %}
+void {{cpp_class}}::{{member.null_setter_name}}() {
+ m_{{member.cpp_name}} = {{member.member_cpp_type}}();
+}
+{% endif %}
+
+{% endfor %}
+
} // namespace blink
{% endfilter %}{# format_blink_cpp_source_code #}

Powered by Google App Engine
This is Rietveld 408576698