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 "core/frame/RemoteFrame.h" | 9 #include "core/frame/RemoteFrame.h" |
10 #include "public/web/WebRemoteFrame.h" | 10 #include "public/web/WebRemoteFrame.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 int& marginTop, | 134 int& marginTop, |
135 int& marginRight, | 135 int& marginRight, |
136 int& marginBottom, | 136 int& marginBottom, |
137 int& marginLeft) override; | 137 int& marginLeft) override; |
138 WebString pageProperty(const WebString& propertyName, int pageIndex) overrid
e; | 138 WebString pageProperty(const WebString& propertyName, int pageIndex) overrid
e; |
139 void printPagesWithBoundaries(WebCanvas*, const WebSize&) override; | 139 void printPagesWithBoundaries(WebCanvas*, const WebSize&) override; |
140 void dispatchMessageEventWithOriginCheck( | 140 void dispatchMessageEventWithOriginCheck( |
141 const WebSecurityOrigin& intendedTargetOrigin, | 141 const WebSecurityOrigin& intendedTargetOrigin, |
142 const WebDOMEvent&) override; | 142 const WebDOMEvent&) override; |
143 | 143 |
144 WebString contentAsText(size_t maxChars) const override; | |
145 WebString contentAsMarkup() const override; | |
146 WebString layoutTreeAsText(LayoutAsTextControls toShow = LayoutAsTextNormal)
const override; | |
147 WebString markerTextForListItem(const WebElement&) const override; | |
148 WebRect selectionBoundsRect() const override; | 144 WebRect selectionBoundsRect() const override; |
149 | 145 |
150 bool selectionStartHasSpellingMarkerFor(int from, int length) const override
; | 146 bool selectionStartHasSpellingMarkerFor(int from, int length) const override
; |
151 WebString layerTreeAsText(bool showDebugInfo = false) const override; | 147 WebString layerTreeAsText(bool showDebugInfo = false) const override; |
152 | 148 |
153 WebFrameImplBase* toImplBase() { return this; } | 149 WebFrameImplBase* toImplBase() { return this; } |
154 | 150 |
155 // WebFrameImplBase methods: | 151 // WebFrameImplBase methods: |
156 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name,
const AtomicString& fallbackName) override; | 152 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name,
const AtomicString& fallbackName) override; |
157 RemoteFrame* frame() const override { return m_frame.get(); } | 153 RemoteFrame* frame() const override { return m_frame.get(); } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 // cleared upon close(). | 194 // cleared upon close(). |
199 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; | 195 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; |
200 #endif | 196 #endif |
201 }; | 197 }; |
202 | 198 |
203 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 199 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
204 | 200 |
205 } // namespace blink | 201 } // namespace blink |
206 | 202 |
207 #endif // WebRemoteFrameImpl_h | 203 #endif // WebRemoteFrameImpl_h |
OLD | NEW |