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..5a1878fa42082dc18e15be36dd49edcd685f46d5 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
@@ -58,6 +58,7 @@ |
#include "bindings/core/v8/V8TestNode.h" |
#include "bindings/core/v8/V8TestObject.h" |
#include "bindings/core/v8/V8Uint8Array.h" |
+#include "bindings/core/v8/V8VoidCallbackFunction2.h" |
#include "bindings/core/v8/V8Window.h" |
#include "bindings/core/v8/V8XPathNSResolver.h" |
#include "core/HTMLNames.h" |
@@ -5592,6 +5593,29 @@ static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: |
TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info); |
} |
+static void voidMethodVoidCallbackFunction2ArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
+{ |
+ 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]), 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}, |