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

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

Issue 2923053002: Move MainWorldScriptContext accessor/method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Rebasing... Created 3 years, 6 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/public/web/WebLocalFrame.h ('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 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"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // This is called in OOPIF scenarios when an element contained in this 94 // This is called in OOPIF scenarios when an element contained in this
95 // frame is about to enter fullscreen. This frame's owner 95 // frame is about to enter fullscreen. This frame's owner
96 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling 96 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling
97 // this prepares FullscreenController to enter fullscreen for that frame 97 // this prepares FullscreenController to enter fullscreen for that frame
98 // owner. 98 // owner.
99 virtual void WillEnterFullscreen() = 0; 99 virtual void WillEnterFullscreen() = 0;
100 100
101 virtual void SetHasReceivedUserGesture() = 0; 101 virtual void SetHasReceivedUserGesture() = 0;
102 102
103 virtual v8::Local<v8::Object> GlobalProxy() const = 0;
104
105 protected: 103 protected:
106 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) {} 104 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) {}
107 105
108 // Inherited from WebFrame, but intentionally hidden: it never makes sense 106 // Inherited from WebFrame, but intentionally hidden: it never makes sense
109 // to call these on a WebRemoteFrame. 107 // to call these on a WebRemoteFrame.
110 bool IsWebLocalFrame() const override = 0; 108 bool IsWebLocalFrame() const override = 0;
111 WebLocalFrame* ToWebLocalFrame() override = 0; 109 WebLocalFrame* ToWebLocalFrame() override = 0;
112 bool IsWebRemoteFrame() const override = 0; 110 bool IsWebRemoteFrame() const override = 0;
113 WebRemoteFrame* ToWebRemoteFrame() override = 0; 111 WebRemoteFrame* ToWebRemoteFrame() override = 0;
114 }; 112 };
115 113
116 } // namespace blink 114 } // namespace blink
117 115
118 #endif // WebRemoteFrame_h 116 #endif // WebRemoteFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebLocalFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698