| 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 "public/web/WebRemoteFrame.h" | 8 #include "public/web/WebRemoteFrame.h" |
| 9 #include "web/RemoteFrameClient.h" | 9 #include "web/RemoteFrameClient.h" |
| 10 #include "wtf/HashMap.h" | 10 #include "wtf/HashMap.h" |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 166 |
| 167 virtual WebString contentAsText(size_t maxChars) const OVERRIDE; | 167 virtual WebString contentAsText(size_t maxChars) const OVERRIDE; |
| 168 virtual WebString contentAsMarkup() const OVERRIDE; | 168 virtual WebString contentAsMarkup() const OVERRIDE; |
| 169 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex
tNormal) const OVERRIDE; | 169 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex
tNormal) const OVERRIDE; |
| 170 virtual WebString markerTextForListItem(const WebElement&) const OVERRIDE; | 170 virtual WebString markerTextForListItem(const WebElement&) const OVERRIDE; |
| 171 virtual WebRect selectionBoundsRect() const OVERRIDE; | 171 virtual WebRect selectionBoundsRect() const OVERRIDE; |
| 172 | 172 |
| 173 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
OVERRIDE; | 173 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
OVERRIDE; |
| 174 virtual WebString layerTreeAsText(bool showDebugInfo = false) const OVERRIDE
; | 174 virtual WebString layerTreeAsText(bool showDebugInfo = false) const OVERRIDE
; |
| 175 | 175 |
| 176 virtual void requestManifest(WebManifestRequest&) const OVERRIDE; |
| 177 |
| 176 virtual WebLocalFrame* createLocalChild(const WebString& name, WebFrameClien
t*) OVERRIDE; | 178 virtual WebLocalFrame* createLocalChild(const WebString& name, WebFrameClien
t*) OVERRIDE; |
| 177 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebFrameCli
ent*) OVERRIDE; | 179 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebFrameCli
ent*) OVERRIDE; |
| 178 | 180 |
| 179 void initializeWebCoreFrame(blink::FrameHost*, blink::FrameOwner*, const Ato
micString& name); | 181 void initializeWebCoreFrame(blink::FrameHost*, blink::FrameOwner*, const Ato
micString& name); |
| 180 | 182 |
| 181 void setWebCoreFrame(PassRefPtr<blink::RemoteFrame>); | 183 void setWebCoreFrame(PassRefPtr<blink::RemoteFrame>); |
| 182 blink::RemoteFrame* frame() const { return m_frame.get(); } | 184 blink::RemoteFrame* frame() const { return m_frame.get(); } |
| 183 | 185 |
| 184 static WebRemoteFrameImpl* fromFrame(blink::RemoteFrame&); | 186 static WebRemoteFrameImpl* fromFrame(blink::RemoteFrame&); |
| 185 | 187 |
| 186 private: | 188 private: |
| 187 RemoteFrameClient m_frameClient; | 189 RemoteFrameClient m_frameClient; |
| 188 RefPtr<blink::RemoteFrame> m_frame; | 190 RefPtr<blink::RemoteFrame> m_frame; |
| 189 | 191 |
| 190 HashMap<WebFrame*, OwnPtr<blink::FrameOwner> > m_ownersForChildren; | 192 HashMap<WebFrame*, OwnPtr<blink::FrameOwner> > m_ownersForChildren; |
| 191 }; | 193 }; |
| 192 | 194 |
| 193 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 195 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
| 194 | 196 |
| 195 } // namespace blink | 197 } // namespace blink |
| 196 | 198 |
| 197 #endif // WebRemoteFrameImpl_h | 199 #endif // WebRemoteFrameImpl_h |
| OLD | NEW |