| 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" |
| 11 #include "wtf/OwnPtr.h" | 11 #include "wtf/OwnPtr.h" |
| 12 #include "wtf/RefCounted.h" | 12 #include "wtf/RefCounted.h" |
| 13 | 13 |
| 14 namespace WebCore { | 14 namespace blink { |
| 15 class FrameHost; | 15 class FrameHost; |
| 16 class FrameOwner; | 16 class FrameOwner; |
| 17 class RemoteFrame; | 17 class RemoteFrame; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 | 21 |
| 22 class WebRemoteFrameImpl : public WebRemoteFrame, public RefCounted<WebRemoteFra
meImpl> { | 22 class WebRemoteFrameImpl : public WebRemoteFrame, public RefCounted<WebRemoteFra
meImpl> { |
| 23 public: | 23 public: |
| 24 WebRemoteFrameImpl(); | 24 WebRemoteFrameImpl(); |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 WebLocalFrame* createLocalChild(const WebString& name, WebFrameClien
t*) OVERRIDE; | 176 virtual WebLocalFrame* createLocalChild(const WebString& name, WebFrameClien
t*) OVERRIDE; |
| 177 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebFrameCli
ent*) OVERRIDE; | 177 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebFrameCli
ent*) OVERRIDE; |
| 178 | 178 |
| 179 void initializeWebCoreFrame(WebCore::FrameHost*, WebCore::FrameOwner*, const
AtomicString& name); | 179 void initializeWebCoreFrame(blink::FrameHost*, blink::FrameOwner*, const Ato
micString& name); |
| 180 | 180 |
| 181 void setWebCoreFrame(PassRefPtr<WebCore::RemoteFrame>); | 181 void setWebCoreFrame(PassRefPtr<blink::RemoteFrame>); |
| 182 WebCore::RemoteFrame* frame() const { return m_frame.get(); } | 182 blink::RemoteFrame* frame() const { return m_frame.get(); } |
| 183 | 183 |
| 184 static WebRemoteFrameImpl* fromFrame(WebCore::RemoteFrame&); | 184 static WebRemoteFrameImpl* fromFrame(blink::RemoteFrame&); |
| 185 | 185 |
| 186 private: | 186 private: |
| 187 RemoteFrameClient m_frameClient; | 187 RemoteFrameClient m_frameClient; |
| 188 RefPtr<WebCore::RemoteFrame> m_frame; | 188 RefPtr<blink::RemoteFrame> m_frame; |
| 189 | 189 |
| 190 HashMap<WebFrame*, OwnPtr<WebCore::FrameOwner> > m_ownersForChildren; | 190 HashMap<WebFrame*, OwnPtr<blink::FrameOwner> > m_ownersForChildren; |
| 191 }; | 191 }; |
| 192 | 192 |
| 193 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 193 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
| 194 | 194 |
| 195 } // namespace blink | 195 } // namespace blink |
| 196 | 196 |
| 197 #endif // WebRemoteFrameImpl_h | 197 #endif // WebRemoteFrameImpl_h |
| OLD | NEW |