| OLD | NEW |
| 1 {% filter format_blink_cpp_source_code %} | 1 {% filter format_blink_cpp_source_code %} |
| 2 | 2 |
| 3 {% from 'utilities.cpp.tmpl' import declare_enum_validation_variable %} | 3 {% from 'utilities.cpp.tmpl' import declare_enum_validation_variable %} |
| 4 {% include 'copyright_block.txt' %} | 4 {% include 'copyright_block.txt' %} |
| 5 #include "{{v8_original_class}}.h" | 5 #include "{{v8_original_class}}.h" |
| 6 | 6 |
| 7 {% for filename in cpp_includes if filename != '%s.h' % v8_class %} | 7 {% for filename in cpp_includes if filename != '%s.h' % v8_class %} |
| 8 #include "{{filename}}" | 8 #include "{{filename}}" |
| 9 {% endfor %} | 9 {% endfor %} |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 return; | 56 return; |
| 57 {% else %} | 57 {% else %} |
| 58 // Do nothing. | 58 // Do nothing. |
| 59 {% endif %} | 59 {% endif %} |
| 60 {% if member.is_nullable %} | 60 {% if member.is_nullable %} |
| 61 } else if ({{member.name}}Value->IsNull()) { | 61 } else if ({{member.name}}Value->IsNull()) { |
| 62 impl.{{member.null_setter_name}}(); | 62 impl.{{member.null_setter_name}}(); |
| 63 {% endif %} | 63 {% endif %} |
| 64 } else { | 64 } else { |
| 65 {% if member.deprecate_as %} | 65 {% if member.deprecate_as %} |
| 66 Deprecation::countDeprecation(currentExecutionContext(isolate), UseCounter::
{{member.deprecate_as}}); | 66 Deprecation::countDeprecation(currentExecutionContext(isolate), UseCounter::
k{{member.deprecate_as}}); |
| 67 {% endif %} | 67 {% endif %} |
| 68 {{v8_value_to_local_cpp_value(member) | indent}} | 68 {{v8_value_to_local_cpp_value(member) | indent}} |
| 69 {% if member.is_interface_type %} | 69 {% if member.is_interface_type %} |
| 70 if (!{{member.name}}) { | 70 if (!{{member.name}}) { |
| 71 exceptionState.throwTypeError("member {{member.name}} is not of type {{mem
ber.idl_type}}."); | 71 exceptionState.throwTypeError("member {{member.name}} is not of type {{mem
ber.idl_type}}."); |
| 72 return; | 72 return; |
| 73 } | 73 } |
| 74 {% endif %} | 74 {% endif %} |
| 75 {% if member.enum_values %} | 75 {% if member.enum_values %} |
| 76 {{declare_enum_validation_variable(member.enum_values) | indent}} | 76 {{declare_enum_validation_variable(member.enum_values) | indent}} |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 {{cpp_class}} NativeValueTraits<{{cpp_class}}>::nativeValue(v8::Isolate* isolate
, v8::Local<v8::Value> value, ExceptionState& exceptionState) { | 130 {{cpp_class}} NativeValueTraits<{{cpp_class}}>::nativeValue(v8::Isolate* isolate
, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
| 131 {{cpp_class}} impl; | 131 {{cpp_class}} impl; |
| 132 {{v8_class}}::toImpl(isolate, value, impl, exceptionState); | 132 {{v8_class}}::toImpl(isolate, value, impl, exceptionState); |
| 133 return impl; | 133 return impl; |
| 134 } | 134 } |
| 135 | 135 |
| 136 } // namespace blink | 136 } // namespace blink |
| 137 | 137 |
| 138 {% endfilter %}{# format_blink_cpp_source_code #} | 138 {% endfilter %}{# format_blink_cpp_source_code #} |
| OLD | NEW |