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

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

Issue 1054443002: Make classes for union types exported. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
1 {% from 'conversions.cpp' import declare_enum_validation_variable %} 1 {% from 'conversions.cpp' import declare_enum_validation_variable %}
2 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Copyright 2014 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! 6 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
7 7
8 #include "config.h" 8 #include "config.h"
9 #include "{{header_filename}}" 9 #include "{{header_filename}}"
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 52
53 {{container.cpp_class}} {{container.cpp_class}}::from{{member.type_name}}({{memb er.rvalue_cpp_type}} value) 53 {{container.cpp_class}} {{container.cpp_class}}::from{{member.type_name}}({{memb er.rvalue_cpp_type}} value)
54 { 54 {
55 {{container.cpp_class}} container; 55 {{container.cpp_class}} container;
56 container.set{{member.type_name}}(value); 56 container.set{{member.type_name}}(value);
57 return container; 57 return container;
58 } 58 }
59 59
60 {% endfor %} 60 {% endfor %}
61 #if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
62 {{container.cpp_class}}::{{container.cpp_class}}(const {{container.cpp_class}}&) = default;
63 {{container.cpp_class}}::~{{container.cpp_class}}() = default;
64 {{container.cpp_class}}& {{container.cpp_class}}::operator=(const {{container.cp p_class}}&) = default;
65 #endif
66
61 {% if container.needs_trace %} 67 {% if container.needs_trace %}
62 DEFINE_TRACE({{container.cpp_class}}) 68 DEFINE_TRACE({{container.cpp_class}})
63 { 69 {
64 {% for member in container.members if member.is_traceable %} 70 {% for member in container.members if member.is_traceable %}
65 visitor->trace(m_{{member.cpp_name}}); 71 visitor->trace(m_{{member.cpp_name}});
66 {% endfor %} 72 {% endfor %}
67 } 73 }
68 74
69 {% endif %} 75 {% endif %}
70 void V8{{container.cpp_class}}::toImpl(v8::Isolate* isolate, v8::Local<v8::Value > v8Value, {{container.cpp_class}}& impl, ExceptionState& exceptionState) 76 void V8{{container.cpp_class}}::toImpl(v8::Isolate* isolate, v8::Local<v8::Value > v8Value, {{container.cpp_class}}& impl, ExceptionState& exceptionState)
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 192
187 {{container.cpp_class}} NativeValueTraits<{{container.cpp_class}}>::nativeValue( v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState ) 193 {{container.cpp_class}} NativeValueTraits<{{container.cpp_class}}>::nativeValue( v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState )
188 { 194 {
189 {{container.cpp_class}} impl; 195 {{container.cpp_class}} impl;
190 V8{{container.cpp_class}}::toImpl(isolate, value, impl, exceptionState); 196 V8{{container.cpp_class}}::toImpl(isolate, value, impl, exceptionState);
191 return impl; 197 return impl;
192 } 198 }
193 199
194 {% endfor %} 200 {% endfor %}
195 } // namespace blink 201 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698