Index: third_party/WebKit/Source/bindings/tests/results/core/V8VoidCallbackFunctionInterfaceArg.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8VoidExperimentalCallbackFunction.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8VoidCallbackFunctionInterfaceArg.cpp |
similarity index 60% |
copy from third_party/WebKit/Source/bindings/tests/results/core/V8VoidExperimentalCallbackFunction.cpp |
copy to third_party/WebKit/Source/bindings/tests/results/core/V8VoidCallbackFunctionInterfaceArg.cpp |
index 56704495e31a4ff73142a0d59e02b71becc9243c..6147d063984804796cb0d4a186c2775e69ac3a0f 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8VoidExperimentalCallbackFunction.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8VoidCallbackFunctionInterfaceArg.cpp |
@@ -4,26 +4,27 @@ |
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
-#include "V8VoidExperimentalCallbackFunction.h" |
+#include "V8VoidCallbackFunctionInterfaceArg.h" |
#include "bindings/core/v8/ScriptState.h" |
#include "bindings/core/v8/V8Binding.h" |
+#include "bindings/core/v8/V8HTMLDivElement.h" |
#include "wtf/Assertions.h" |
namespace blink { |
-V8VoidExperimentalCallbackFunction::V8VoidExperimentalCallbackFunction(v8::Isolate* isolate, v8::Local<v8::Function> callback) |
+V8VoidCallbackFunctionInterfaceArg::V8VoidCallbackFunctionInterfaceArg(v8::Isolate* isolate, v8::Local<v8::Function> callback) |
: m_callback(isolate, callback) |
{ |
DCHECK(!m_callback.isEmpty()); |
m_callback.setPhantom(); |
} |
-DEFINE_TRACE(V8VoidExperimentalCallbackFunction) |
+DEFINE_TRACE(V8VoidCallbackFunctionInterfaceArg) |
{ |
} |
-bool V8VoidExperimentalCallbackFunction::call(ScriptState* scriptState, ScriptWrappable* scriptWrappable) |
+bool V8VoidCallbackFunctionInterfaceArg::call(ScriptState* scriptState, ScriptWrappable* scriptWrappable, HTMLDivElement* divElements) |
{ |
if (!scriptState->contextIsValid()) |
return false; |
@@ -32,13 +33,14 @@ bool V8VoidExperimentalCallbackFunction::call(ScriptState* scriptState, ScriptWr |
return false; |
ScriptState::Scope scope(scriptState); |
- v8::Local<v8::Value> *argv = nullptr; |
+ v8::Local<v8::Value> divElementsArgument = toV8(divElements, scriptState->context()->Global(), scriptState->isolate()); |
+ v8::Local<v8::Value> argv[] = { divElementsArgument }; |
v8::Local<v8::Value> v8ReturnValue; |
v8::TryCatch exceptionCatcher(scriptState->isolate()); |
exceptionCatcher.SetVerbose(true); |
- if (V8ScriptRunner::callFunction(m_callback.newLocal(scriptState->isolate()), scriptState->getExecutionContext(), scriptState->context()->Global(), 0, argv, scriptState->isolate()).ToLocal(&v8ReturnValue)) |
+ if (V8ScriptRunner::callFunction(m_callback.newLocal(scriptState->isolate()), scriptState->getExecutionContext(), scriptState->context()->Global(), 1, argv, scriptState->isolate()).ToLocal(&v8ReturnValue)) |
{ |
return true; |
} |