| OLD | NEW |
| 1 {% from 'conversions.cpp' import declare_enum_validation_variable %} | 1 {% from 'utilities.cpp' import declare_enum_validation_variable %} |
| 2 {% include 'copyright_block.txt' %} | 2 {% include 'copyright_block.txt' %} |
| 3 #include "{{header_filename}}" | 3 #include "{{header_filename}}" |
| 4 | 4 |
| 5 {% from 'conversions.cpp' import v8_value_to_local_cpp_value %} | 5 {% from 'utilities.cpp' import v8_value_to_local_cpp_value %} |
| 6 {% macro assign_and_return_if_hasinstance(member) %} | 6 {% macro assign_and_return_if_hasinstance(member) %} |
| 7 if (V8{{member.type_name}}::hasInstance(v8Value, isolate)) { | 7 if (V8{{member.type_name}}::hasInstance(v8Value, isolate)) { |
| 8 {{member.cpp_local_type}} cppValue = V8{{member.type_name}}::toImpl(v8::Loca
l<v8::Object>::Cast(v8Value)); | 8 {{member.cpp_local_type}} cppValue = V8{{member.type_name}}::toImpl(v8::Loca
l<v8::Object>::Cast(v8Value)); |
| 9 impl.set{{member.type_name}}(cppValue); | 9 impl.set{{member.type_name}}(cppValue); |
| 10 return; | 10 return; |
| 11 } | 11 } |
| 12 {% endmacro %} | 12 {% endmacro %} |
| 13 {% for filename in cpp_includes %} | 13 {% for filename in cpp_includes %} |
| 14 #include "{{filename}}" | 14 #include "{{filename}}" |
| 15 {% endfor %} | 15 {% endfor %} |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 194 |
| 195 {{container.cpp_class}} NativeValueTraits<{{container.cpp_class}}>::nativeValue(
v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState
) | 195 {{container.cpp_class}} NativeValueTraits<{{container.cpp_class}}>::nativeValue(
v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState
) |
| 196 { | 196 { |
| 197 {{container.cpp_class}} impl; | 197 {{container.cpp_class}} impl; |
| 198 V8{{container.cpp_class}}::toImpl(isolate, value, impl, UnionTypeConversionM
ode::NotNullable, exceptionState); | 198 V8{{container.cpp_class}}::toImpl(isolate, value, impl, UnionTypeConversionM
ode::NotNullable, exceptionState); |
| 199 return impl; | 199 return impl; |
| 200 } | 200 } |
| 201 | 201 |
| 202 {% endfor %} | 202 {% endfor %} |
| 203 } // namespace blink | 203 } // namespace blink |
| OLD | NEW |