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