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

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2339683006: [Blink] Modify SuspendableScriptExecutor to take a v8::Function (Closed)
Patch Set: Win compile fix 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebLocalFrame_h 5 #ifndef WebLocalFrame_h
6 #define WebLocalFrame_h 6 #define WebLocalFrame_h
7 7
8 #include "WebCompositionUnderline.h" 8 #include "WebCompositionUnderline.h"
9 #include "WebFrame.h" 9 #include "WebFrame.h"
10 #include "WebFrameLoadType.h" 10 #include "WebFrameLoadType.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 // Returns the value for a page property that is only defined when printing. 178 // Returns the value for a page property that is only defined when printing.
179 // printBegin must have been called before this method. 179 // printBegin must have been called before this method.
180 virtual WebString pageProperty(const WebString& propertyName, 180 virtual WebString pageProperty(const WebString& propertyName,
181 int pageIndex) = 0; 181 int pageIndex) = 0;
182 182
183 // Scripting -------------------------------------------------------------- 183 // Scripting --------------------------------------------------------------
184 // Executes script in the context of the current page and returns the value 184 // Executes script in the context of the current page and returns the value
185 // that the script evaluated to with callback. Script execution can be 185 // that the script evaluated to with callback. Script execution can be
186 // suspend. 186 // suspend.
187 // DEPRECATED: Prefer requestExecuteScriptInIsolatedWorld().
187 virtual void requestExecuteScriptAndReturnValue( 188 virtual void requestExecuteScriptAndReturnValue(
188 const WebScriptSource&, 189 const WebScriptSource&,
189 bool userGesture, 190 bool userGesture,
190 WebScriptExecutionCallback*) = 0; 191 WebScriptExecutionCallback*) = 0;
191 192
193 // Requests execution of the given function, but allowing for script
194 // suspension and asynchronous execution.
195 virtual void requestExecuteV8Function(v8::Local<v8::Function>,
196 v8::Local<v8::Value> receiver,
197 int argc,
198 v8::Local<v8::Value> argv[],
199 WebScriptExecutionCallback*) = 0;
200
192 // worldID must be > 0 (as 0 represents the main world). 201 // worldID must be > 0 (as 0 represents the main world).
193 // worldID must be < EmbedderWorldIdLimit, high number used internally. 202 // worldID must be < EmbedderWorldIdLimit, high number used internally.
194 virtual void requestExecuteScriptInIsolatedWorld( 203 virtual void requestExecuteScriptInIsolatedWorld(
195 int worldID, 204 int worldID,
196 const WebScriptSource* sourceIn, 205 const WebScriptSource* sourceIn,
197 unsigned numSources, 206 unsigned numSources,
198 int extensionGroup, 207 int extensionGroup,
199 bool userGesture, 208 bool userGesture,
200 WebScriptExecutionCallback*) = 0; 209 WebScriptExecutionCallback*) = 0;
201 210
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 // to call these on a WebLocalFrame. 449 // to call these on a WebLocalFrame.
441 bool isWebLocalFrame() const override = 0; 450 bool isWebLocalFrame() const override = 0;
442 WebLocalFrame* toWebLocalFrame() override = 0; 451 WebLocalFrame* toWebLocalFrame() override = 0;
443 bool isWebRemoteFrame() const override = 0; 452 bool isWebRemoteFrame() const override = 0;
444 WebRemoteFrame* toWebRemoteFrame() override = 0; 453 WebRemoteFrame* toWebRemoteFrame() override = 0;
445 }; 454 };
446 455
447 } // namespace blink 456 } // namespace blink
448 457
449 #endif // WebLocalFrame_h 458 #endif // WebLocalFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698