• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #include "config.h"
6 #include "web/RemoteFrameClient.h"
7 
8 #include "web/WebRemoteFrameImpl.h"
9 
10 namespace blink {
11 
RemoteFrameClient(WebRemoteFrameImpl * webFrame)12 RemoteFrameClient::RemoteFrameClient(WebRemoteFrameImpl* webFrame)
13     : m_webFrame(webFrame)
14 {
15 }
16 
opener() const17 WebCore::Frame* RemoteFrameClient::opener() const
18 {
19     return toWebCoreFrame(m_webFrame->opener());
20 }
21 
setOpener(WebCore::Frame *)22 void RemoteFrameClient::setOpener(WebCore::Frame*)
23 {
24     // FIXME: Implement.
25 }
26 
parent() const27 WebCore::Frame* RemoteFrameClient::parent() const
28 {
29     return toWebCoreFrame(m_webFrame->parent());
30 }
31 
top() const32 WebCore::Frame* RemoteFrameClient::top() const
33 {
34     return toWebCoreFrame(m_webFrame->top());
35 }
36 
previousSibling() const37 WebCore::Frame* RemoteFrameClient::previousSibling() const
38 {
39     return toWebCoreFrame(m_webFrame->previousSibling());
40 }
41 
nextSibling() const42 WebCore::Frame* RemoteFrameClient::nextSibling() const
43 {
44     return toWebCoreFrame(m_webFrame->nextSibling());
45 }
46 
firstChild() const47 WebCore::Frame* RemoteFrameClient::firstChild() const
48 {
49     return toWebCoreFrame(m_webFrame->firstChild());
50 }
51 
lastChild() const52 WebCore::Frame* RemoteFrameClient::lastChild() const
53 {
54     return toWebCoreFrame(m_webFrame->lastChild());
55 }
56 
57 } // namespace blink
58