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

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 // 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 #include "config.h" 7 #include "config.h"
8 #include "{{header_filename}}" 8 #include "{{header_filename}}"
9 9
10 {% from 'conversions.cpp' import v8_value_to_local_cpp_value %} 10 {% from 'conversions.cpp' import v8_value_to_local_cpp_value %}
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 {{container.cpp_class}} {{container.cpp_class}}::from{{member.type_name}}({{memb er.rvalue_cpp_type}} value) 51 {{container.cpp_class}} {{container.cpp_class}}::from{{member.type_name}}({{memb er.rvalue_cpp_type}} value)
52 { 52 {
53 {{container.cpp_class}} container; 53 {{container.cpp_class}} container;
54 container.set{{member.type_name}}(value); 54 container.set{{member.type_name}}(value);
55 return container; 55 return container;
56 } 56 }
57 57
58 {% endfor %} 58 {% endfor %}
59 #if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
60 {{container.cpp_class}}::{{container.cpp_class}}(const {{container.cpp_class}}&) = default;
61 {{container.cpp_class}}::~{{container.cpp_class}}() = default;
62 {{container.cpp_class}}& {{container.cpp_class}}::operator=(const {{container.cp p_class}}&) = default;
63 #endif
64
59 {% if container.needs_trace %} 65 {% if container.needs_trace %}
60 DEFINE_TRACE({{container.cpp_class}}) 66 DEFINE_TRACE({{container.cpp_class}})
61 { 67 {
62 {% for member in container.members if member.is_traceable %} 68 {% for member in container.members if member.is_traceable %}
63 visitor->trace(m_{{member.cpp_name}}); 69 visitor->trace(m_{{member.cpp_name}});
64 {% endfor %} 70 {% endfor %}
65 } 71 }
66 72
67 {% endif %} 73 {% endif %}
68 void V8{{container.cpp_class}}::toImpl(v8::Isolate* isolate, v8::Local<v8::Value > v8Value, {{container.cpp_class}}& impl, ExceptionState& exceptionState) 74 void V8{{container.cpp_class}}::toImpl(v8::Isolate* isolate, v8::Local<v8::Value > v8Value, {{container.cpp_class}}& impl, ExceptionState& exceptionState)
(...skipping 117 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