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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/LongSequenceOrEvent.cpp

Issue 2791133002: bindings: Explicitly pass ValueType to toImplArray (Closed)
Patch Set: Fix tests Created 3 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_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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 if (conversionMode == UnionTypeConversionMode::Nullable && isUndefinedOrNull(v 8Value)) 69 if (conversionMode == UnionTypeConversionMode::Nullable && isUndefinedOrNull(v 8Value))
70 return; 70 return;
71 71
72 if (V8Event::hasInstance(v8Value, isolate)) { 72 if (V8Event::hasInstance(v8Value, isolate)) {
73 Event* cppValue = V8Event::toImpl(v8::Local<v8::Object>::Cast(v8Value)); 73 Event* cppValue = V8Event::toImpl(v8::Local<v8::Object>::Cast(v8Value));
74 impl.setEvent(cppValue); 74 impl.setEvent(cppValue);
75 return; 75 return;
76 } 76 }
77 77
78 if (v8Value->IsArray()) { 78 if (v8Value->IsArray()) {
79 Vector<int32_t> cppValue = toImplArray<Vector<int32_t>>(v8Value, 0, isolate, exceptionState); 79 Vector<int32_t> cppValue = toImplArray<Vector<int32_t>, IDLLong>(v8Value, 0, isolate, exceptionState);
80 if (exceptionState.hadException()) 80 if (exceptionState.hadException())
81 return; 81 return;
82 impl.setLongSequence(cppValue); 82 impl.setLongSequence(cppValue);
83 return; 83 return;
84 } 84 }
85 85
86 exceptionState.throwTypeError("The provided value is not of type '(sequence<lo ng> or Event)'"); 86 exceptionState.throwTypeError("The provided value is not of type '(sequence<lo ng> or Event)'");
87 } 87 }
88 88
89 v8::Local<v8::Value> ToV8(const LongSequenceOrEvent& impl, v8::Local<v8::Object> creationContext, v8::Isolate* isolate) { 89 v8::Local<v8::Value> ToV8(const LongSequenceOrEvent& impl, v8::Local<v8::Object> creationContext, v8::Isolate* isolate) {
(...skipping 10 matching lines...) Expand all
100 return v8::Local<v8::Value>(); 100 return v8::Local<v8::Value>();
101 } 101 }
102 102
103 LongSequenceOrEvent NativeValueTraits<LongSequenceOrEvent>::nativeValue(v8::Isol ate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { 103 LongSequenceOrEvent NativeValueTraits<LongSequenceOrEvent>::nativeValue(v8::Isol ate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) {
104 LongSequenceOrEvent impl; 104 LongSequenceOrEvent impl;
105 V8LongSequenceOrEvent::toImpl(isolate, value, impl, UnionTypeConversionMode::N otNullable, exceptionState); 105 V8LongSequenceOrEvent::toImpl(isolate, value, impl, UnionTypeConversionMode::N otNullable, exceptionState);
106 return impl; 106 return impl;
107 } 107 }
108 108
109 } // namespace blink 109 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698