| 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 #include "config.h" | 5 #include "config.h" |
| 6 #include "web/WebRemoteFrameImpl.h" | 6 #include "web/WebRemoteFrameImpl.h" |
| 7 | 7 |
| 8 #include "core/frame/RemoteFrame.h" | 8 #include "core/frame/RemoteFrame.h" |
| 9 #include "public/platform/WebFloatRect.h" | 9 #include "public/platform/WebFloatRect.h" |
| 10 #include "public/platform/WebRect.h" | 10 #include "public/platform/WebRect.h" |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 ASSERT_NOT_REACHED(); | 237 ASSERT_NOT_REACHED(); |
| 238 return 0; | 238 return 0; |
| 239 } | 239 } |
| 240 | 240 |
| 241 void WebRemoteFrameImpl::removeChild(WebFrame* frame) | 241 void WebRemoteFrameImpl::removeChild(WebFrame* frame) |
| 242 { | 242 { |
| 243 WebFrame::removeChild(frame); | 243 WebFrame::removeChild(frame); |
| 244 m_ownersForChildren.remove(frame); | 244 m_ownersForChildren.remove(frame); |
| 245 } | 245 } |
| 246 | 246 |
| 247 WebFrame* WebRemoteFrameImpl::traversePrevious(bool wrap) const | |
| 248 { | |
| 249 ASSERT_NOT_REACHED(); | |
| 250 return 0; | |
| 251 } | |
| 252 | |
| 253 WebFrame* WebRemoteFrameImpl::traverseNext(bool wrap) const | |
| 254 { | |
| 255 ASSERT_NOT_REACHED(); | |
| 256 return 0; | |
| 257 } | |
| 258 | |
| 259 WebFrame* WebRemoteFrameImpl::findChildByName(const WebString&) const | |
| 260 { | |
| 261 ASSERT_NOT_REACHED(); | |
| 262 return 0; | |
| 263 } | |
| 264 | |
| 265 WebDocument WebRemoteFrameImpl::document() const | 247 WebDocument WebRemoteFrameImpl::document() const |
| 266 { | 248 { |
| 267 ASSERT_NOT_REACHED(); | 249 ASSERT_NOT_REACHED(); |
| 268 return WebDocument(); | 250 return WebDocument(); |
| 269 } | 251 } |
| 270 | 252 |
| 271 WebPerformance WebRemoteFrameImpl::performance() const | 253 WebPerformance WebRemoteFrameImpl::performance() const |
| 272 { | 254 { |
| 273 ASSERT_NOT_REACHED(); | 255 ASSERT_NOT_REACHED(); |
| 274 return WebPerformance(); | 256 return WebPerformance(); |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 child->setWebCoreFrame(childFrame); | 818 child->setWebCoreFrame(childFrame); |
| 837 childFrame->tree().setName(name, AtomicString()); | 819 childFrame->tree().setName(name, AtomicString()); |
| 838 return child; | 820 return child; |
| 839 } | 821 } |
| 840 | 822 |
| 841 void WebRemoteFrameImpl::setWebCoreFrame(PassRefPtr<RemoteFrame> frame) | 823 void WebRemoteFrameImpl::setWebCoreFrame(PassRefPtr<RemoteFrame> frame) |
| 842 { | 824 { |
| 843 m_frame = frame; | 825 m_frame = frame; |
| 844 } | 826 } |
| 845 | 827 |
| 828 WebRemoteFrameImpl* WebRemoteFrameImpl::fromFrame(RemoteFrame& frame) |
| 829 { |
| 830 if (!frame.client()) |
| 831 return 0; |
| 832 return static_cast<RemoteFrameClient*>(frame.client())->webFrame(); |
| 833 } |
| 834 |
| 846 } // namespace blink | 835 } // namespace blink |
| 847 | 836 |
| OLD | NEW |