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

Side by Side Diff: Source/bindings/templates/union.h

Issue 954683002: InlinedVisitor: Migrate bindings to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
6 6
7 #ifndef {{macro_guard}} 7 #ifndef {{macro_guard}}
8 #define {{macro_guard}} 8 #define {{macro_guard}}
9 9
10 {% for filename in header_includes %} 10 {% for filename in header_includes %}
(...skipping 14 matching lines...) Expand all
25 bool isNull() const { return m_type == SpecificTypeNone; } 25 bool isNull() const { return m_type == SpecificTypeNone; }
26 26
27 {% for member in container.members %} 27 {% for member in container.members %}
28 bool is{{member.type_name}}() const { return m_type == {{member.specific_typ e_enum}}; } 28 bool is{{member.type_name}}() const { return m_type == {{member.specific_typ e_enum}}; }
29 {{member.rvalue_cpp_type}} getAs{{member.type_name}}() const; 29 {{member.rvalue_cpp_type}} getAs{{member.type_name}}() const;
30 void set{{member.type_name}}({{member.rvalue_cpp_type}}); 30 void set{{member.type_name}}({{member.rvalue_cpp_type}});
31 static {{container.cpp_class}} from{{member.type_name}}({{member.rvalue_cpp_ type}}); 31 static {{container.cpp_class}} from{{member.type_name}}({{member.rvalue_cpp_ type}});
32 32
33 {% endfor %} 33 {% endfor %}
34 {% if container.needs_trace %} 34 {% if container.needs_trace %}
35 void trace(Visitor*); 35 DECLARE_TRACE();
36 36
37 {% endif %} 37 {% endif %}
38 private: 38 private:
39 enum SpecificTypes { 39 enum SpecificTypes {
40 SpecificTypeNone, 40 SpecificTypeNone,
41 {% for member in container.members %} 41 {% for member in container.members %}
42 {{member.specific_type_enum}}, 42 {{member.specific_type_enum}},
43 {% endfor %} 43 {% endfor %}
44 }; 44 };
45 SpecificTypes m_type; 45 SpecificTypes m_type;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 if (isUndefinedOrNull(v8Value)) 80 if (isUndefinedOrNull(v8Value))
81 return; 81 return;
82 V8{{cpp_type}}::toImpl(isolate, v8Value, impl, exceptionState); 82 V8{{cpp_type}}::toImpl(isolate, v8Value, impl, exceptionState);
83 } 83 }
84 }; 84 };
85 85
86 {% endfor %} 86 {% endfor %}
87 } // namespace blink 87 } // namespace blink
88 88
89 #endif // {{macro_guard}} 89 #endif // {{macro_guard}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698