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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2339683006: [Blink] Modify SuspendableScriptExecutor to take a v8::Function (Closed)
Patch Set: Haraken's Created 4 years, 2 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/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 406259a84e93d68dfc6815971a259fec525d3646..e7905371f676e65b2e5653208bf94733c18548e0 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -771,6 +771,17 @@ void WebLocalFrameImpl::requestExecuteScriptAndReturnValue(
frame(), 0, createSourcesVector(&source, 1), 0, userGesture, callback);
}
+void WebLocalFrameImpl::requestExecuteV8Function(
+ v8::Local<v8::Function> function,
+ v8::Local<v8::Value> receiver,
+ int argc,
+ v8::Local<v8::Value> argv[],
+ WebScriptExecutionCallback* callback) {
+ DCHECK(frame());
+ SuspendableScriptExecutor::createAndRun(frame(), toIsolate(frame()), function,
+ receiver, argc, argv, callback);
+}
+
void WebLocalFrameImpl::executeScriptInIsolatedWorld(
int worldID,
const WebScriptSource* sourcesIn,

Powered by Google App Engine
This is Rietveld 408576698