| OLD | NEW |
| 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_v8.py. | 5 // This file has been auto-generated by code_generator_v8.py. |
| 6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
| 7 | 7 |
| 8 // This file has been generated from the Jinja2 template in | 8 // This file has been generated from the Jinja2 template in |
| 9 // third_party/WebKit/Source/bindings/templates/union_container.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/union_container.cpp.tmpl |
| 10 | 10 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 return; | 155 return; |
| 156 } | 156 } |
| 157 | 157 |
| 158 if (V8XMLHttpRequest::hasInstance(v8Value, isolate)) { | 158 if (V8XMLHttpRequest::hasInstance(v8Value, isolate)) { |
| 159 XMLHttpRequest* cppValue = V8XMLHttpRequest::toImpl(v8::Local<v8::Object>::C
ast(v8Value)); | 159 XMLHttpRequest* cppValue = V8XMLHttpRequest::toImpl(v8::Local<v8::Object>::C
ast(v8Value)); |
| 160 impl.setXMLHttpRequest(cppValue); | 160 impl.setXMLHttpRequest(cppValue); |
| 161 return; | 161 return; |
| 162 } | 162 } |
| 163 | 163 |
| 164 if (v8Value->IsArray()) { | 164 if (v8Value->IsArray()) { |
| 165 Vector<int32_t> cppValue = toImplArray<Vector<int32_t>>(v8Value, 0, isolate,
exceptionState); | 165 Vector<int32_t> cppValue = toImplArray<Vector<int32_t>, IDLLong>(v8Value, 0,
isolate, exceptionState); |
| 166 if (exceptionState.hadException()) | 166 if (exceptionState.hadException()) |
| 167 return; | 167 return; |
| 168 impl.setLongSequence(cppValue); | 168 impl.setLongSequence(cppValue); |
| 169 return; | 169 return; |
| 170 } | 170 } |
| 171 | 171 |
| 172 if (v8Value->IsObject()) { | 172 if (v8Value->IsObject()) { |
| 173 HeapVector<std::pair<String, ByteStringOrNodeList>> cppValue = NativeValueTr
aits<IDLRecord<IDLString, ByteStringOrNodeList>>::nativeValue(isolate, v8Value,
exceptionState); | 173 HeapVector<std::pair<String, ByteStringOrNodeList>> cppValue = NativeValueTr
aits<IDLRecord<IDLString, ByteStringOrNodeList>>::nativeValue(isolate, v8Value,
exceptionState); |
| 174 if (exceptionState.hadException()) | 174 if (exceptionState.hadException()) |
| 175 return; | 175 return; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 return v8::Local<v8::Value>(); | 208 return v8::Local<v8::Value>(); |
| 209 } | 209 } |
| 210 | 210 |
| 211 NodeOrLongSequenceOrEventOrXMLHttpRequestOrStringOrStringByteStringOrNodeListRec
ord NativeValueTraits<NodeOrLongSequenceOrEventOrXMLHttpRequestOrStringOrStringB
yteStringOrNodeListRecord>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Valu
e> value, ExceptionState& exceptionState) { | 211 NodeOrLongSequenceOrEventOrXMLHttpRequestOrStringOrStringByteStringOrNodeListRec
ord NativeValueTraits<NodeOrLongSequenceOrEventOrXMLHttpRequestOrStringOrStringB
yteStringOrNodeListRecord>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Valu
e> value, ExceptionState& exceptionState) { |
| 212 NodeOrLongSequenceOrEventOrXMLHttpRequestOrStringOrStringByteStringOrNodeListR
ecord impl; | 212 NodeOrLongSequenceOrEventOrXMLHttpRequestOrStringOrStringByteStringOrNodeListR
ecord impl; |
| 213 V8NodeOrLongSequenceOrEventOrXMLHttpRequestOrStringOrStringByteStringOrNodeLis
tRecord::toImpl(isolate, value, impl, UnionTypeConversionMode::NotNullable, exce
ptionState); | 213 V8NodeOrLongSequenceOrEventOrXMLHttpRequestOrStringOrStringByteStringOrNodeLis
tRecord::toImpl(isolate, value, impl, UnionTypeConversionMode::NotNullable, exce
ptionState); |
| 214 return impl; | 214 return impl; |
| 215 } | 215 } |
| 216 | 216 |
| 217 } // namespace blink | 217 } // namespace blink |
| OLD | NEW |