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

Unified Diff: public/web/WebLocalFrame.h

Issue 660863002: [DevTools] Added public method for async execution of scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: public/web/WebLocalFrame.h
diff --git a/public/web/WebLocalFrame.h b/public/web/WebLocalFrame.h
index 40e37e48539515db8d0b0fe1acbf8d8f887a5988..d6badf7428eba7255d4c0c540fe0a5581a611854 100644
--- a/public/web/WebLocalFrame.h
+++ b/public/web/WebLocalFrame.h
@@ -9,6 +9,8 @@
namespace blink {
+class WebScriptExecutionCallback;
+
// Interface for interacting with in process frames. This contains methods that
// require interacting with a frame's document.
// FIXME: Move lots of methods from WebFrame in here.
@@ -67,6 +69,12 @@ public:
// Scripting --------------------------------------------------------------
+ virtual void requestExecuteScriptAndReturnValue(const WebScriptSource&,
pfeldman 2014/10/22 15:38:17 Please document those. Also, it is not clear wheth
kozyatinskiy1 2014/10/22 16:46:58 Done.
+ bool userGesture, WebScriptExecutionCallback*) = 0;
+ virtual void requestExecuteScriptInIsolatedWorld(
+ int worldID, const WebScriptSource* sourceIn, unsigned numSources,
+ int extensionGroup, bool userGesture, WebScriptExecutionCallback*) = 0;
+
// ONLY FOR TESTS: Forwards to executeScriptAndReturnValue, but sets a fake
// UserGestureIndicator before execution.
virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests(const WebScriptSource&) = 0;

Powered by Google App Engine
This is Rietveld 408576698