| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 virtual WebString pageProperty(const WebString& propertyName, int pageIndex)
= 0; | 175 virtual WebString pageProperty(const WebString& propertyName, int pageIndex)
= 0; |
| 176 | 176 |
| 177 | 177 |
| 178 // Scripting -------------------------------------------------------------- | 178 // Scripting -------------------------------------------------------------- |
| 179 // Executes script in the context of the current page and returns the value | 179 // Executes script in the context of the current page and returns the value |
| 180 // that the script evaluated to with callback. Script execution can be | 180 // that the script evaluated to with callback. Script execution can be |
| 181 // suspend. | 181 // suspend. |
| 182 virtual void requestExecuteScriptAndReturnValue(const WebScriptSource&, | 182 virtual void requestExecuteScriptAndReturnValue(const WebScriptSource&, |
| 183 bool userGesture, WebScriptExecutionCallback*) = 0; | 183 bool userGesture, WebScriptExecutionCallback*) = 0; |
| 184 | 184 |
| 185 // Requests execution of the given function, but allowing for script |
| 186 // suspension and asynchronous execution. |
| 187 virtual void requestExecuteV8Function( |
| 188 v8::Local<v8::Function>, v8::Local<v8::Value> receiver, int argc, v8::Lo
cal<v8::Value> argv[], WebScriptExecutionCallback*) = 0; |
| 189 |
| 185 // worldID must be > 0 (as 0 represents the main world). | 190 // worldID must be > 0 (as 0 represents the main world). |
| 186 // worldID must be < EmbedderWorldIdLimit, high number used internally. | 191 // worldID must be < EmbedderWorldIdLimit, high number used internally. |
| 187 virtual void requestExecuteScriptInIsolatedWorld( | 192 virtual void requestExecuteScriptInIsolatedWorld( |
| 188 int worldID, const WebScriptSource* sourceIn, unsigned numSources, | 193 int worldID, const WebScriptSource* sourceIn, unsigned numSources, |
| 189 int extensionGroup, bool userGesture, WebScriptExecutionCallback*) = 0; | 194 int extensionGroup, bool userGesture, WebScriptExecutionCallback*) = 0; |
| 190 | 195 |
| 191 // Run the task when the context of the current page is not suspended | 196 // Run the task when the context of the current page is not suspended |
| 192 // otherwise run it on context resumed. | 197 // otherwise run it on context resumed. |
| 193 // Method takes ownership of the passed task. | 198 // Method takes ownership of the passed task. |
| 194 virtual void requestRunTask(WebSuspendableTask*) const = 0; | 199 virtual void requestRunTask(WebSuspendableTask*) const = 0; |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 // to call these on a WebLocalFrame. | 420 // to call these on a WebLocalFrame. |
| 416 bool isWebLocalFrame() const override = 0; | 421 bool isWebLocalFrame() const override = 0; |
| 417 WebLocalFrame* toWebLocalFrame() override = 0; | 422 WebLocalFrame* toWebLocalFrame() override = 0; |
| 418 bool isWebRemoteFrame() const override = 0; | 423 bool isWebRemoteFrame() const override = 0; |
| 419 WebRemoteFrame* toWebRemoteFrame() override = 0; | 424 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 420 }; | 425 }; |
| 421 | 426 |
| 422 } // namespace blink | 427 } // namespace blink |
| 423 | 428 |
| 424 #endif // WebLocalFrame_h | 429 #endif // WebLocalFrame_h |
| OLD | NEW |