Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
| index 178a144cb67aa65452417efa3cffc93b74a09fde..1a82088d5a3e3c30b0f18e7e1b593f9895f1fc39 100644 |
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
| @@ -50,6 +50,7 @@ |
| #include "bindings/core/v8/V8ObjectConstructor.h" |
| #include "bindings/core/v8/V8PrivateProperty.h" |
| #include "bindings/core/v8/V8ShadowRoot.h" |
| +#include "bindings/core/v8/V8TestCallback.h" |
| #include "bindings/core/v8/V8TestCallbackInterface.h" |
| #include "bindings/core/v8/V8TestDictionary.h" |
| #include "bindings/core/v8/V8TestInterface.h" |
| @@ -5592,6 +5593,29 @@ static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: |
| TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info); |
| } |
| +static void voidMethodVoidCallbackFunction2ArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
|
Yuki
2016/09/07 08:27:12
Add new expectation files. You must already have
lkawai
2016/09/08 09:11:31
Done.
|
| +{ |
| + if (UNLIKELY(info.Length() < 1)) { |
| + V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodVoidCallbackFunction2Arg", "TestObject", 1, info.Length())); |
| + return; |
| + } |
| + TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| + V8VoidCallbackFunction2* voidCallbackFunction2Arg; |
| + { |
| + if (!info[0]->IsFunction()) { |
| + V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("voidMethodVoidCallbackFunction2Arg", "TestObject", "The callback provided as parameter 1 is not a function.")); |
| + return; |
| + } |
| + voidCallbackFunction2Arg = V8VoidCallbackFunction2::create(v8::Local<v8::Function>::Cast(info[0]), info.Holder(), ScriptState::current(info.GetIsolate())); |
| + } |
| + impl->voidMethodVoidCallbackFunction2Arg(voidCallbackFunction2Arg); |
| +} |
| + |
| +static void voidMethodVoidCallbackFunction2ArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| +{ |
| + TestObjectV8Internal::voidMethodVoidCallbackFunction2ArgMethod(info); |
| +} |
| + |
| static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| @@ -11329,6 +11353,7 @@ const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { |
| {"voidMethodOptionalVoidCallbackFunctionArg", TestObjectV8Internal::voidMethodOptionalVoidCallbackFunctionArgMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
| {"voidMethodNullableVoidCallbackFunctionArg", TestObjectV8Internal::voidMethodNullableVoidCallbackFunctionArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
| {"voidMethodAnyCallbackFunctionOptionalAnyArg", TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
| + {"voidMethodVoidCallbackFunction2Arg", TestObjectV8Internal::voidMethodVoidCallbackFunction2ArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
| {"anyMethod", TestObjectV8Internal::anyMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
| {"voidMethodEventTargetArg", TestObjectV8Internal::voidMethodEventTargetArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
| {"voidMethodAnyArg", TestObjectV8Internal::voidMethodAnyArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |