OLD | NEW |
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 {% include 'copyright_block.txt' %} |
3 // Use of this source code is governed by a BSD-style license that can be | |
4 // found in the LICENSE file. | |
5 | |
6 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! | |
7 | |
8 #include "config.h" | 3 #include "config.h" |
9 #include "{{header_filename}}" | 4 #include "{{header_filename}}" |
10 | 5 |
11 {% from 'conversions.cpp' import v8_value_to_local_cpp_value %} | 6 {% from 'conversions.cpp' import v8_value_to_local_cpp_value %} |
12 {% macro assign_and_return_if_hasinstance(member) %} | 7 {% macro assign_and_return_if_hasinstance(member) %} |
13 if (V8{{member.type_name}}::hasInstance(v8Value, isolate)) { | 8 if (V8{{member.type_name}}::hasInstance(v8Value, isolate)) { |
14 {{member.cpp_local_type}} cppValue = V8{{member.type_name}}::toImpl(v8::Loca
l<v8::Object>::Cast(v8Value)); | 9 {{member.cpp_local_type}} cppValue = V8{{member.type_name}}::toImpl(v8::Loca
l<v8::Object>::Cast(v8Value)); |
15 impl.set{{member.type_name}}(cppValue); | 10 impl.set{{member.type_name}}(cppValue); |
16 return; | 11 return; |
17 } | 12 } |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 187 |
193 {{container.cpp_class}} NativeValueTraits<{{container.cpp_class}}>::nativeValue(
v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState
) | 188 {{container.cpp_class}} NativeValueTraits<{{container.cpp_class}}>::nativeValue(
v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState
) |
194 { | 189 { |
195 {{container.cpp_class}} impl; | 190 {{container.cpp_class}} impl; |
196 V8{{container.cpp_class}}::toImpl(isolate, value, impl, exceptionState); | 191 V8{{container.cpp_class}}::toImpl(isolate, value, impl, exceptionState); |
197 return impl; | 192 return impl; |
198 } | 193 } |
199 | 194 |
200 {% endfor %} | 195 {% endfor %} |
201 } // namespace blink | 196 } // namespace blink |
OLD | NEW |