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

Side by Side Diff: third_party/WebKit/Source/web/WebRemoteFrameImpl.h

Issue 2139303002: Clean up around methods to enter/exit fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 WebRemoteFrameImpl_h 5 #ifndef WebRemoteFrameImpl_h
6 #define WebRemoteFrameImpl_h 6 #define WebRemoteFrameImpl_h
7 7
8 #include "core/frame/RemoteFrame.h" 8 #include "core/frame/RemoteFrame.h"
9 #include "platform/heap/SelfKeepAlive.h" 9 #include "platform/heap/SelfKeepAlive.h"
10 #include "public/platform/WebInsecureRequestPolicy.h" 10 #include "public/platform/WebInsecureRequestPolicy.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void resetReplicatedContentSecurityPolicy() const override; 122 void resetReplicatedContentSecurityPolicy() const override;
123 void setReplicatedInsecureRequestPolicy(WebInsecureRequestPolicy) const over ride; 123 void setReplicatedInsecureRequestPolicy(WebInsecureRequestPolicy) const over ride;
124 void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const override; 124 void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const override;
125 void DispatchLoadEventForFrameOwner() const override; 125 void DispatchLoadEventForFrameOwner() const override;
126 126
127 void didStartLoading() override; 127 void didStartLoading() override;
128 void didStopLoading() override; 128 void didStopLoading() override;
129 129
130 bool isIgnoredForHitTest() const override; 130 bool isIgnoredForHitTest() const override;
131 131
132 void willEnterFullScreen() override; 132 void willEnterFullscreen() override;
133 133
134 DECLARE_TRACE(); 134 DECLARE_TRACE();
135 135
136 private: 136 private:
137 WebRemoteFrameImpl(WebTreeScopeType, WebRemoteFrameClient*); 137 WebRemoteFrameImpl(WebTreeScopeType, WebRemoteFrameClient*);
138 138
139 // Inherited from WebFrame, but intentionally hidden: it never makes sense 139 // Inherited from WebFrame, but intentionally hidden: it never makes sense
140 // to call these on a WebRemoteFrameImpl. 140 // to call these on a WebRemoteFrameImpl.
141 bool isWebLocalFrame() const override; 141 bool isWebLocalFrame() const override;
142 WebLocalFrame* toWebLocalFrame() override; 142 WebLocalFrame* toWebLocalFrame() override;
143 bool isWebRemoteFrame() const override; 143 bool isWebRemoteFrame() const override;
144 WebRemoteFrame* toWebRemoteFrame() override; 144 WebRemoteFrame* toWebRemoteFrame() override;
145 145
146 Member<RemoteFrameClientImpl> m_frameClient; 146 Member<RemoteFrameClientImpl> m_frameClient;
147 Member<RemoteFrame> m_frame; 147 Member<RemoteFrame> m_frame;
148 WebRemoteFrameClient* m_client; 148 WebRemoteFrameClient* m_client;
149 149
150 // Oilpan: WebRemoteFrameImpl must remain alive until close() is called. 150 // Oilpan: WebRemoteFrameImpl must remain alive until close() is called.
151 // Accomplish that by keeping a self-referential Persistent<>. It is 151 // Accomplish that by keeping a self-referential Persistent<>. It is
152 // cleared upon close(). 152 // cleared upon close().
153 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; 153 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive;
154 }; 154 };
155 155
156 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame()); 156 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame());
157 157
158 } // namespace blink 158 } // namespace blink
159 159
160 #endif // WebRemoteFrameImpl_h 160 #endif // WebRemoteFrameImpl_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp ('k') | third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698