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 WebRemoteFrame_h | 5 #ifndef WebRemoteFrame_h |
6 #define WebRemoteFrame_h | 6 #define WebRemoteFrame_h |
7 | 7 |
8 #include "public/platform/WebContentSecurityPolicy.h" | 8 #include "public/platform/WebContentSecurityPolicy.h" |
9 #include "public/platform/WebFeaturePolicy.h" | 9 #include "public/platform/WebFeaturePolicy.h" |
10 #include "public/platform/WebInsecureRequestPolicy.h" | 10 #include "public/platform/WebInsecureRequestPolicy.h" |
11 #include "public/web/WebFrame.h" | 11 #include "public/web/WebFrame.h" |
12 #include "public/web/WebSandboxFlags.h" | 12 #include "public/web/WebSandboxFlags.h" |
| 13 #include "v8/include/v8.h" |
13 | 14 |
14 namespace blink { | 15 namespace blink { |
15 | 16 |
16 enum class WebTreeScopeType; | 17 enum class WebTreeScopeType; |
17 class InterfaceProvider; | 18 class InterfaceProvider; |
18 class InterfaceRegistry; | 19 class InterfaceRegistry; |
19 class WebFrameClient; | 20 class WebFrameClient; |
20 class WebLayer; | 21 class WebLayer; |
21 class WebRemoteFrameClient; | 22 class WebRemoteFrameClient; |
22 class WebString; | 23 class WebString; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling | 98 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling |
98 // this prepares FullscreenController to enter fullscreen for that frame | 99 // this prepares FullscreenController to enter fullscreen for that frame |
99 // owner. | 100 // owner. |
100 virtual void willEnterFullscreen() = 0; | 101 virtual void willEnterFullscreen() = 0; |
101 | 102 |
102 virtual void setHasReceivedUserGesture() = 0; | 103 virtual void setHasReceivedUserGesture() = 0; |
103 | 104 |
104 // Temporary method to allow embedders to get the script context of a | 105 // Temporary method to allow embedders to get the script context of a |
105 // remote frame. This should only be used by legacy code that has not yet | 106 // remote frame. This should only be used by legacy code that has not yet |
106 // migrated over to the new OOPI infrastructure. | 107 // migrated over to the new OOPI infrastructure. |
107 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0; | 108 virtual v8::Local<v8::Object> globalProxy() const = 0; |
108 | 109 |
109 protected: | 110 protected: |
110 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) {} | 111 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) {} |
111 | 112 |
112 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 113 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
113 // to call these on a WebRemoteFrame. | 114 // to call these on a WebRemoteFrame. |
114 bool isWebLocalFrame() const override = 0; | 115 bool isWebLocalFrame() const override = 0; |
115 WebLocalFrame* toWebLocalFrame() override = 0; | 116 WebLocalFrame* toWebLocalFrame() override = 0; |
116 bool isWebRemoteFrame() const override = 0; | 117 bool isWebRemoteFrame() const override = 0; |
117 WebRemoteFrame* toWebRemoteFrame() override = 0; | 118 WebRemoteFrame* toWebRemoteFrame() override = 0; |
118 }; | 119 }; |
119 | 120 |
120 } // namespace blink | 121 } // namespace blink |
121 | 122 |
122 #endif // WebRemoteFrame_h | 123 #endif // WebRemoteFrame_h |
OLD | NEW |