| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 virtual WebString contentAsText(size_t maxChars) const override; | 180 virtual WebString contentAsText(size_t maxChars) const override; |
| 181 virtual WebString contentAsMarkup() const override; | 181 virtual WebString contentAsMarkup() const override; |
| 182 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex
tNormal) const override; | 182 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex
tNormal) const override; |
| 183 virtual WebString markerTextForListItem(const WebElement&) const override; | 183 virtual WebString markerTextForListItem(const WebElement&) const override; |
| 184 virtual WebRect selectionBoundsRect() const override; | 184 virtual WebRect selectionBoundsRect() const override; |
| 185 | 185 |
| 186 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
override; | 186 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
override; |
| 187 virtual WebString layerTreeAsText(bool showDebugInfo = false) const override
; | 187 virtual WebString layerTreeAsText(bool showDebugInfo = false) const override
; |
| 188 | 188 |
| 189 // FIXME(alexmos): This will go away once the Chromium side is updated to pa
ss sandbox flags. | |
| 190 virtual WebLocalFrame* createLocalChild(const WebString& name, WebFrameClien
t*) override; | |
| 191 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla
gs, WebFrameClient*) override; | 189 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla
gs, WebFrameClient*) override; |
| 192 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebRemoteFr
ameClient*) override; | 190 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebRemoteFr
ameClient*) override; |
| 193 | 191 |
| 194 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name); | 192 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name); |
| 195 | 193 |
| 196 void setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame>); | 194 void setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame>); |
| 197 RemoteFrame* frame() const { return m_frame.get(); } | 195 RemoteFrame* frame() const { return m_frame.get(); } |
| 198 | 196 |
| 199 WebRemoteFrameClient* client() const { return m_client; } | 197 WebRemoteFrameClient* client() const { return m_client; } |
| 200 | 198 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 229 GC_PLUGIN_IGNORE("340522") | 227 GC_PLUGIN_IGNORE("340522") |
| 230 Persistent<WebRemoteFrameImpl> m_selfKeepAlive; | 228 Persistent<WebRemoteFrameImpl> m_selfKeepAlive; |
| 231 #endif | 229 #endif |
| 232 }; | 230 }; |
| 233 | 231 |
| 234 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 232 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
| 235 | 233 |
| 236 } // namespace blink | 234 } // namespace blink |
| 237 | 235 |
| 238 #endif // WebRemoteFrameImpl_h | 236 #endif // WebRemoteFrameImpl_h |
| OLD | NEW |