| 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 <set> | 8 #include <set> |
| 9 #include "WebCompositionUnderline.h" | 9 #include "WebCompositionUnderline.h" |
| 10 #include "WebFrame.h" | 10 #include "WebFrame.h" |
| 11 #include "WebFrameLoadType.h" | 11 #include "WebFrameLoadType.h" |
| 12 #include "WebHistoryItem.h" | 12 #include "WebHistoryItem.h" |
| 13 #include "public/platform/WebCachePolicy.h" | 13 #include "public/platform/WebCachePolicy.h" |
| 14 #include "public/platform/WebURLError.h" | 14 #include "public/platform/WebURLError.h" |
| 15 #include "public/platform/WebURLRequest.h" | 15 #include "public/platform/WebURLRequest.h" |
| 16 #include "public/platform/site_engagement.mojom-shared.h" | 16 #include "public/platform/site_engagement.mojom-shared.h" |
| 17 #include "v8/include/v8.h" |
| 17 | 18 |
| 18 namespace base { | 19 namespace base { |
| 19 class SingleThreadTaskRunner; | 20 class SingleThreadTaskRunner; |
| 20 } | 21 } |
| 21 | 22 |
| 22 namespace blink { | 23 namespace blink { |
| 23 | 24 |
| 24 class InterfaceProvider; | 25 class InterfaceProvider; |
| 25 class InterfaceRegistry; | 26 class InterfaceRegistry; |
| 26 class WebAutofillClient; | 27 class WebAutofillClient; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // Returns the value for a page property that is only defined when printing. | 288 // Returns the value for a page property that is only defined when printing. |
| 288 // printBegin must have been called before this method. | 289 // printBegin must have been called before this method. |
| 289 virtual WebString PageProperty(const WebString& property_name, | 290 virtual WebString PageProperty(const WebString& property_name, |
| 290 int page_index) = 0; | 291 int page_index) = 0; |
| 291 | 292 |
| 292 // Scripting -------------------------------------------------------------- | 293 // Scripting -------------------------------------------------------------- |
| 293 | 294 |
| 294 // Executes script in the context of the current page. | 295 // Executes script in the context of the current page. |
| 295 virtual void ExecuteScript(const WebScriptSource&) = 0; | 296 virtual void ExecuteScript(const WebScriptSource&) = 0; |
| 296 | 297 |
| 298 // Returns the V8 context for associated with the main world and this |
| 299 // frame. There can be many V8 contexts associated with this frame, one for |
| 300 // each isolated world and one for the main world. If you don't know what |
| 301 // the "main world" or an "isolated world" is, then you probably shouldn't |
| 302 // be calling this API. |
| 303 virtual v8::Local<v8::Context> MainWorldScriptContext() const = 0; |
| 304 |
| 297 // Executes script in the context of the current page and returns the value | 305 // Executes script in the context of the current page and returns the value |
| 298 // that the script evaluated to with callback. Script execution can be | 306 // that the script evaluated to with callback. Script execution can be |
| 299 // suspend. | 307 // suspend. |
| 300 // DEPRECATED: Prefer requestExecuteScriptInIsolatedWorld(). | 308 // DEPRECATED: Prefer requestExecuteScriptInIsolatedWorld(). |
| 301 virtual void RequestExecuteScriptAndReturnValue( | 309 virtual void RequestExecuteScriptAndReturnValue( |
| 302 const WebScriptSource&, | 310 const WebScriptSource&, |
| 303 bool user_gesture, | 311 bool user_gesture, |
| 304 WebScriptExecutionCallback*) = 0; | 312 WebScriptExecutionCallback*) = 0; |
| 305 | 313 |
| 306 // Requests execution of the given function, but allowing for script | 314 // Requests execution of the given function, but allowing for script |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 // to call these on a WebLocalFrame. | 632 // to call these on a WebLocalFrame. |
| 625 bool IsWebLocalFrame() const override = 0; | 633 bool IsWebLocalFrame() const override = 0; |
| 626 WebLocalFrame* ToWebLocalFrame() override = 0; | 634 WebLocalFrame* ToWebLocalFrame() override = 0; |
| 627 bool IsWebRemoteFrame() const override = 0; | 635 bool IsWebRemoteFrame() const override = 0; |
| 628 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 636 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
| 629 }; | 637 }; |
| 630 | 638 |
| 631 } // namespace blink | 639 } // namespace blink |
| 632 | 640 |
| 633 #endif // WebLocalFrame_h | 641 #endif // WebLocalFrame_h |
| OLD | NEW |