Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 181 | 181 |
| 182 // Scripting -------------------------------------------------------------- | 182 // Scripting -------------------------------------------------------------- |
| 183 // Executes script in the context of the current page and returns the value | 183 // Executes script in the context of the current page and returns the value |
| 184 // that the script evaluated to with callback. Script execution can be | 184 // that the script evaluated to with callback. Script execution can be |
| 185 // suspend. | 185 // suspend. |
| 186 virtual void requestExecuteScriptAndReturnValue( | 186 virtual void requestExecuteScriptAndReturnValue( |
| 187 const WebScriptSource&, | 187 const WebScriptSource&, |
| 188 bool userGesture, | 188 bool userGesture, |
| 189 WebScriptExecutionCallback*) = 0; | 189 WebScriptExecutionCallback*) = 0; |
| 190 | 190 |
| 191 // Requests execution of the given function, but allowing for script | |
| 192 // suspension and asynchronous execution. | |
| 193 virtual void requestExecuteV8Function(v8::Local<v8::Function>, | |
|
dcheng
2016/10/04 05:59:53
Also, I forgot to save this comment the first time
Devlin
2016/10/04 19:40:05
I'm happy to. Done.
| |
| 194 v8::Local<v8::Value> receiver, | |
| 195 int argc, | |
| 196 v8::Local<v8::Value> argv[], | |
| 197 WebScriptExecutionCallback*) = 0; | |
| 198 | |
| 191 // worldID must be > 0 (as 0 represents the main world). | 199 // worldID must be > 0 (as 0 represents the main world). |
| 192 // worldID must be < EmbedderWorldIdLimit, high number used internally. | 200 // worldID must be < EmbedderWorldIdLimit, high number used internally. |
| 193 virtual void requestExecuteScriptInIsolatedWorld( | 201 virtual void requestExecuteScriptInIsolatedWorld( |
| 194 int worldID, | 202 int worldID, |
| 195 const WebScriptSource* sourceIn, | 203 const WebScriptSource* sourceIn, |
| 196 unsigned numSources, | 204 unsigned numSources, |
| 197 int extensionGroup, | 205 int extensionGroup, |
| 198 bool userGesture, | 206 bool userGesture, |
| 199 WebScriptExecutionCallback*) = 0; | 207 WebScriptExecutionCallback*) = 0; |
| 200 | 208 |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 438 // to call these on a WebLocalFrame. | 446 // to call these on a WebLocalFrame. |
| 439 bool isWebLocalFrame() const override = 0; | 447 bool isWebLocalFrame() const override = 0; |
| 440 WebLocalFrame* toWebLocalFrame() override = 0; | 448 WebLocalFrame* toWebLocalFrame() override = 0; |
| 441 bool isWebRemoteFrame() const override = 0; | 449 bool isWebRemoteFrame() const override = 0; |
| 442 WebRemoteFrame* toWebRemoteFrame() override = 0; | 450 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 443 }; | 451 }; |
| 444 | 452 |
| 445 } // namespace blink | 453 } // namespace blink |
| 446 | 454 |
| 447 #endif // WebLocalFrame_h | 455 #endif // WebLocalFrame_h |
| OLD | NEW |