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/interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
10 | 10 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 int numArgsPassed = info.Length(); | 123 int numArgsPassed = info.Length(); |
124 while (numArgsPassed > 0) { | 124 while (numArgsPassed > 0) { |
125 if (!info[numArgsPassed - 1]->IsUndefined()) | 125 if (!info[numArgsPassed - 1]->IsUndefined()) |
126 break; | 126 break; |
127 --numArgsPassed; | 127 --numArgsPassed; |
128 } | 128 } |
129 if (UNLIKELY(numArgsPassed <= 0)) { | 129 if (UNLIKELY(numArgsPassed <= 0)) { |
130 impl->voidMethodArrayOfLongsArg(); | 130 impl->voidMethodArrayOfLongsArg(); |
131 return; | 131 return; |
132 } | 132 } |
133 arrayOfLongsArg = toImplArray<Vector<int32_t>>(info[0], 1, info.GetIsolate(),
exceptionState); | 133 arrayOfLongsArg = toImplArray<Vector<int32_t>, IDLLong>(info[0], 1, info.GetIs
olate(), exceptionState); |
134 if (exceptionState.hadException()) | 134 if (exceptionState.hadException()) |
135 return; | 135 return; |
136 | 136 |
137 impl->voidMethodArrayOfLongsArg(arrayOfLongsArg); | 137 impl->voidMethodArrayOfLongsArg(arrayOfLongsArg); |
138 } | 138 } |
139 | 139 |
140 static void voidMethodFloatArgStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) { | 140 static void voidMethodFloatArgStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) { |
141 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestTypedefs", "voidMethodFloatArgStringArg"); | 141 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestTypedefs", "voidMethodFloatArgStringArg"); |
142 | 142 |
143 TestTypedefs* impl = V8TestTypedefs::toImpl(info.Holder()); | 143 TestTypedefs* impl = V8TestTypedefs::toImpl(info.Holder()); |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 | 522 |
523 TestTypedefs* V8TestTypedefs::toImplWithTypeCheck(v8::Isolate* isolate, v8::Loca
l<v8::Value> value) { | 523 TestTypedefs* V8TestTypedefs::toImplWithTypeCheck(v8::Isolate* isolate, v8::Loca
l<v8::Value> value) { |
524 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 524 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
525 } | 525 } |
526 | 526 |
527 TestTypedefs* NativeValueTraits<TestTypedefs>::nativeValue(v8::Isolate* isolate,
v8::Local<v8::Value> value, ExceptionState& exceptionState) { | 527 TestTypedefs* NativeValueTraits<TestTypedefs>::nativeValue(v8::Isolate* isolate,
v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
528 return V8TestTypedefs::toImplWithTypeCheck(isolate, value); | 528 return V8TestTypedefs::toImplWithTypeCheck(isolate, value); |
529 } | 529 } |
530 | 530 |
531 } // namespace blink | 531 } // namespace blink |
OLD | NEW |