| 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 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 v8SetReturnValue(info, ToV8(impl->floatArrayAttribute(), info.Holder(), info.G
etIsolate())); | 1134 v8SetReturnValue(info, ToV8(impl->floatArrayAttribute(), info.Holder(), info.G
etIsolate())); |
| 1135 } | 1135 } |
| 1136 | 1136 |
| 1137 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::FunctionCallbackInfo<v8::Value>& info) { | 1137 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::FunctionCallbackInfo<v8::Value>& info) { |
| 1138 v8::Local<v8::Object> holder = info.Holder(); | 1138 v8::Local<v8::Object> holder = info.Holder(); |
| 1139 TestObject* impl = V8TestObject::toImpl(holder); | 1139 TestObject* impl = V8TestObject::toImpl(holder); |
| 1140 | 1140 |
| 1141 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext
, "TestObject", "floatArrayAttribute"); | 1141 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext
, "TestObject", "floatArrayAttribute"); |
| 1142 | 1142 |
| 1143 // Prepare the value to be set. | 1143 // Prepare the value to be set. |
| 1144 Vector<float> cppValue = toImplArray<Vector<float>>(v8Value, 0, info.GetIsolat
e(), exceptionState); | 1144 Vector<float> cppValue = toImplArray<Vector<float>, IDLFloat>(v8Value, 0, info
.GetIsolate(), exceptionState); |
| 1145 if (exceptionState.hadException()) | 1145 if (exceptionState.hadException()) |
| 1146 return; | 1146 return; |
| 1147 | 1147 |
| 1148 impl->setFloatArrayAttribute(cppValue); | 1148 impl->setFloatArrayAttribute(cppValue); |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 static void stringFrozenArrayAttributeAttributeGetter(const v8::FunctionCallback
Info<v8::Value>& info) { | 1151 static void stringFrozenArrayAttributeAttributeGetter(const v8::FunctionCallback
Info<v8::Value>& info) { |
| 1152 v8::Local<v8::Object> holder = info.Holder(); | 1152 v8::Local<v8::Object> holder = info.Holder(); |
| 1153 | 1153 |
| 1154 TestObject* impl = V8TestObject::toImpl(holder); | 1154 TestObject* impl = V8TestObject::toImpl(holder); |
| (...skipping 3235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4390 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestObject", "voidMethodArrayLongArg"); | 4390 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestObject", "voidMethodArrayLongArg"); |
| 4391 | 4391 |
| 4392 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 4392 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 4393 | 4393 |
| 4394 if (UNLIKELY(info.Length() < 1)) { | 4394 if (UNLIKELY(info.Length() < 1)) { |
| 4395 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.
Length())); | 4395 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.
Length())); |
| 4396 return; | 4396 return; |
| 4397 } | 4397 } |
| 4398 | 4398 |
| 4399 Vector<int32_t> arrayLongArg; | 4399 Vector<int32_t> arrayLongArg; |
| 4400 arrayLongArg = toImplArray<Vector<int32_t>>(info[0], 1, info.GetIsolate(), exc
eptionState); | 4400 arrayLongArg = toImplArray<Vector<int32_t>, IDLLong>(info[0], 1, info.GetIsola
te(), exceptionState); |
| 4401 if (exceptionState.hadException()) | 4401 if (exceptionState.hadException()) |
| 4402 return; | 4402 return; |
| 4403 | 4403 |
| 4404 impl->voidMethodArrayLongArg(arrayLongArg); | 4404 impl->voidMethodArrayLongArg(arrayLongArg); |
| 4405 } | 4405 } |
| 4406 | 4406 |
| 4407 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) { | 4407 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) { |
| 4408 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestObject", "voidMethodArrayStringArg"); | 4408 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestObject", "voidMethodArrayStringArg"); |
| 4409 | 4409 |
| 4410 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 4410 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4445 | 4445 |
| 4446 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 4446 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 4447 | 4447 |
| 4448 if (UNLIKELY(info.Length() < 1)) { | 4448 if (UNLIKELY(info.Length() < 1)) { |
| 4449 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.
Length())); | 4449 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.
Length())); |
| 4450 return; | 4450 return; |
| 4451 } | 4451 } |
| 4452 | 4452 |
| 4453 Nullable<Vector<int32_t>> arrayLongArg; | 4453 Nullable<Vector<int32_t>> arrayLongArg; |
| 4454 if (!isUndefinedOrNull(info[0])) { | 4454 if (!isUndefinedOrNull(info[0])) { |
| 4455 arrayLongArg = toImplArray<Vector<int32_t>>(info[0], 1, info.GetIsolate(), e
xceptionState); | 4455 arrayLongArg = toImplArray<Vector<int32_t>, IDLLong>(info[0], 1, info.GetIso
late(), exceptionState); |
| 4456 if (exceptionState.hadException()) | 4456 if (exceptionState.hadException()) |
| 4457 return; | 4457 return; |
| 4458 } | 4458 } |
| 4459 | 4459 |
| 4460 impl->voidMethodNullableArrayLongArg(arrayLongArg); | 4460 impl->voidMethodNullableArrayLongArg(arrayLongArg); |
| 4461 } | 4461 } |
| 4462 | 4462 |
| 4463 static void longSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) { | 4463 static void longSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) { |
| 4464 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 4464 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 4465 | 4465 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4482 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestObject", "voidMethodSequenceLongArg"); | 4482 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestObject", "voidMethodSequenceLongArg"); |
| 4483 | 4483 |
| 4484 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 4484 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 4485 | 4485 |
| 4486 if (UNLIKELY(info.Length() < 1)) { | 4486 if (UNLIKELY(info.Length() < 1)) { |
| 4487 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.
Length())); | 4487 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.
Length())); |
| 4488 return; | 4488 return; |
| 4489 } | 4489 } |
| 4490 | 4490 |
| 4491 Vector<int32_t> longSequenceArg; | 4491 Vector<int32_t> longSequenceArg; |
| 4492 longSequenceArg = toImplArray<Vector<int32_t>>(info[0], 1, info.GetIsolate(),
exceptionState); | 4492 longSequenceArg = toImplArray<Vector<int32_t>, IDLLong>(info[0], 1, info.GetIs
olate(), exceptionState); |
| 4493 if (exceptionState.hadException()) | 4493 if (exceptionState.hadException()) |
| 4494 return; | 4494 return; |
| 4495 | 4495 |
| 4496 impl->voidMethodSequenceLongArg(longSequenceArg); | 4496 impl->voidMethodSequenceLongArg(longSequenceArg); |
| 4497 } | 4497 } |
| 4498 | 4498 |
| 4499 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) { | 4499 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) { |
| 4500 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestObject", "voidMethodSequenceStringArg"); | 4500 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestObject", "voidMethodSequenceStringArg"); |
| 4501 | 4501 |
| 4502 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 4502 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4555 | 4555 |
| 4556 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 4556 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 4557 | 4557 |
| 4558 if (UNLIKELY(info.Length() < 1)) { | 4558 if (UNLIKELY(info.Length() < 1)) { |
| 4559 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.
Length())); | 4559 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.
Length())); |
| 4560 return; | 4560 return; |
| 4561 } | 4561 } |
| 4562 | 4562 |
| 4563 Nullable<Vector<int32_t>> longSequenceArg; | 4563 Nullable<Vector<int32_t>> longSequenceArg; |
| 4564 if (!isUndefinedOrNull(info[0])) { | 4564 if (!isUndefinedOrNull(info[0])) { |
| 4565 longSequenceArg = toImplArray<Vector<int32_t>>(info[0], 1, info.GetIsolate()
, exceptionState); | 4565 longSequenceArg = toImplArray<Vector<int32_t>, IDLLong>(info[0], 1, info.Get
Isolate(), exceptionState); |
| 4566 if (exceptionState.hadException()) | 4566 if (exceptionState.hadException()) |
| 4567 return; | 4567 return; |
| 4568 } | 4568 } |
| 4569 | 4569 |
| 4570 impl->voidMethodNullableSequenceLongArg(longSequenceArg); | 4570 impl->voidMethodNullableSequenceLongArg(longSequenceArg); |
| 4571 } | 4571 } |
| 4572 | 4572 |
| 4573 static void longFrozenArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) { | 4573 static void longFrozenArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) { |
| 4574 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 4574 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 4575 | 4575 |
| (...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6088 | 6088 |
| 6089 impl->overloadedMethodD(longArg); | 6089 impl->overloadedMethodD(longArg); |
| 6090 } | 6090 } |
| 6091 | 6091 |
| 6092 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) { | 6092 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) { |
| 6093 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestObject", "overloadedMethodD"); | 6093 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestObject", "overloadedMethodD"); |
| 6094 | 6094 |
| 6095 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6095 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6096 | 6096 |
| 6097 Vector<int32_t> longArrayArg; | 6097 Vector<int32_t> longArrayArg; |
| 6098 longArrayArg = toImplArray<Vector<int32_t>>(info[0], 1, info.GetIsolate(), exc
eptionState); | 6098 longArrayArg = toImplArray<Vector<int32_t>, IDLLong>(info[0], 1, info.GetIsola
te(), exceptionState); |
| 6099 if (exceptionState.hadException()) | 6099 if (exceptionState.hadException()) |
| 6100 return; | 6100 return; |
| 6101 | 6101 |
| 6102 impl->overloadedMethodD(longArrayArg); | 6102 impl->overloadedMethodD(longArrayArg); |
| 6103 } | 6103 } |
| 6104 | 6104 |
| 6105 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) { | 6105 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) { |
| 6106 bool isArityError = false; | 6106 bool isArityError = false; |
| 6107 switch (std::min(1, info.Length())) { | 6107 switch (std::min(1, info.Length())) { |
| 6108 case 1: | 6108 case 1: |
| (...skipping 5774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11883 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable
RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust(); | 11883 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable
RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust(); |
| 11884 } | 11884 } |
| 11885 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 11885 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 11886 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable
RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust(); | 11886 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable
RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust(); |
| 11887 } | 11887 } |
| 11888 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); | 11888 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); |
| 11889 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); | 11889 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); |
| 11890 } | 11890 } |
| 11891 | 11891 |
| 11892 } // namespace blink | 11892 } // namespace blink |
| OLD | NEW |