| 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 WebRemoteFrameImpl_h | 5 #ifndef WebRemoteFrameImpl_h |
| 6 #define WebRemoteFrameImpl_h | 6 #define WebRemoteFrameImpl_h |
| 7 | 7 |
| 8 #include "core/frame/FrameOwner.h" | 8 #include "core/frame/FrameOwner.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "public/web/WebRemoteFrame.h" | 10 #include "public/web/WebRemoteFrame.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 bool selectionStartHasSpellingMarkerFor(int from, int length) const override
; | 165 bool selectionStartHasSpellingMarkerFor(int from, int length) const override
; |
| 166 WebString layerTreeAsText(bool showDebugInfo = false) const override; | 166 WebString layerTreeAsText(bool showDebugInfo = false) const override; |
| 167 | 167 |
| 168 WebLocalFrame* createLocalChild(WebTreeScopeType, const WebString& name, Web
SandboxFlags, WebFrameClient*, WebFrame* previousSibling, const WebFrameOwnerPro
perties&) override; | 168 WebLocalFrame* createLocalChild(WebTreeScopeType, const WebString& name, Web
SandboxFlags, WebFrameClient*, WebFrame* previousSibling, const WebFrameOwnerPro
perties&) override; |
| 169 WebRemoteFrame* createRemoteChild(WebTreeScopeType, const WebString& name, W
ebSandboxFlags, WebRemoteFrameClient*) override; | 169 WebRemoteFrame* createRemoteChild(WebTreeScopeType, const WebString& name, W
ebSandboxFlags, WebRemoteFrameClient*) override; |
| 170 | 170 |
| 171 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name); | 171 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name); |
| 172 | 172 |
| 173 void setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame>); | 173 void setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame>); |
| 174 RemoteFrame* frame() const; | 174 RemoteFrame* frame() const { return m_frame.get(); } |
| 175 | 175 |
| 176 WebRemoteFrameClient* client() const { return m_client; } | 176 WebRemoteFrameClient* client() const { return m_client; } |
| 177 | 177 |
| 178 static WebRemoteFrameImpl* fromFrame(RemoteFrame&); | 178 static WebRemoteFrameImpl* fromFrame(RemoteFrame&); |
| 179 | 179 |
| 180 void initializeFromFrame(WebLocalFrame*) const override; | 180 void initializeFromFrame(WebLocalFrame*) const override; |
| 181 | 181 |
| 182 void setReplicatedOrigin(const WebSecurityOrigin&) const override; | 182 void setReplicatedOrigin(const WebSecurityOrigin&) const override; |
| 183 void setReplicatedSandboxFlags(WebSandboxFlags) const override; | 183 void setReplicatedSandboxFlags(WebSandboxFlags) const override; |
| 184 void setReplicatedName(const WebString&) const override; | 184 void setReplicatedName(const WebString&) const override; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 206 // cleared upon close(). | 206 // cleared upon close(). |
| 207 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; | 207 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; |
| 208 #endif | 208 #endif |
| 209 }; | 209 }; |
| 210 | 210 |
| 211 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 211 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
| 212 | 212 |
| 213 } // namespace blink | 213 } // namespace blink |
| 214 | 214 |
| 215 #endif // WebRemoteFrameImpl_h | 215 #endif // WebRemoteFrameImpl_h |
| OLD | NEW |