Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8StringSequenceCallbackFunctionLongSequenceArg.h

Issue 2350813005: bindings: Support sequence in callback function arguments (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/tests/results/core/V8StringSequenceCallbackFunctionLongSequenceArg.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8VoidExperimentalCallbackFunction.h b/third_party/WebKit/Source/bindings/tests/results/core/V8StringSequenceCallbackFunctionLongSequenceArg.h
similarity index 52%
copy from third_party/WebKit/Source/bindings/tests/results/core/V8VoidExperimentalCallbackFunction.h
copy to third_party/WebKit/Source/bindings/tests/results/core/V8StringSequenceCallbackFunctionLongSequenceArg.h
index ba03085507cd9cedccc02ac5bdbba6ad3881b600..126eb653544491bf46407d5e188797f30d664cec 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8VoidExperimentalCallbackFunction.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8StringSequenceCallbackFunctionLongSequenceArg.h
@@ -6,9 +6,10 @@
// clang-format off
-#ifndef V8VoidExperimentalCallbackFunction_h
-#define V8VoidExperimentalCallbackFunction_h
+#ifndef V8StringSequenceCallbackFunctionLongSequenceArg_h
+#define V8StringSequenceCallbackFunctionLongSequenceArg_h
+#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScopedPersistent.h"
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
@@ -18,18 +19,18 @@ namespace blink {
class ScriptState;
-class CORE_EXPORT V8VoidExperimentalCallbackFunction final : public GarbageCollectedFinalized<V8VoidExperimentalCallbackFunction> {
+class CORE_EXPORT V8StringSequenceCallbackFunctionLongSequenceArg final : public GarbageCollectedFinalized<V8StringSequenceCallbackFunctionLongSequenceArg> {
public:
- static V8VoidExperimentalCallbackFunction* create(v8::Isolate* isolate, v8::Local<v8::Function> callback)
+ static V8StringSequenceCallbackFunctionLongSequenceArg* create(v8::Isolate* isolate, v8::Local<v8::Function> callback)
{
- return new V8VoidExperimentalCallbackFunction(isolate, callback);
+ return new V8StringSequenceCallbackFunctionLongSequenceArg(isolate, callback);
}
- ~V8VoidExperimentalCallbackFunction() = default;
+ ~V8StringSequenceCallbackFunctionLongSequenceArg() = default;
DECLARE_TRACE();
- bool call(ScriptState* scriptState, ScriptWrappable* scriptWrappable);
+ bool call(ScriptState* scriptState, ScriptWrappable* scriptWrappable, ExceptionState& exceptionState, const Vector<int>& arg, Vector<String>& returnValue);
v8::Local<v8::Function> v8Value(v8::Isolate* isolate)
{
@@ -43,10 +44,10 @@ public:
}
private:
- V8VoidExperimentalCallbackFunction(v8::Isolate* isolate, v8::Local<v8::Function>);
+ V8StringSequenceCallbackFunctionLongSequenceArg(v8::Isolate* isolate, v8::Local<v8::Function>);
ScopedPersistent<v8::Function> m_callback;
};
} // namespace blink
-#endif // V8VoidExperimentalCallbackFunction_h
+#endif // V8StringSequenceCallbackFunctionLongSequenceArg_h

Powered by Google App Engine
This is Rietveld 408576698