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/RemoteFrameClient.h" | 6 #include "web/RemoteFrameClient.h" |
7 | 7 |
8 #include "web/WebRemoteFrameImpl.h" | 8 #include "web/WebRemoteFrameImpl.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 RemoteFrameClient::RemoteFrameClient(WebRemoteFrameImpl* webFrame) | 12 RemoteFrameClient::RemoteFrameClient(WebRemoteFrameImpl* webFrame) |
13 : m_webFrame(webFrame) | 13 : m_webFrame(webFrame) |
14 { | 14 { |
15 } | 15 } |
16 | 16 |
17 blink::Frame* RemoteFrameClient::opener() const | 17 Frame* RemoteFrameClient::opener() const |
18 { | 18 { |
19 return toWebCoreFrame(m_webFrame->opener()); | 19 return toWebCoreFrame(m_webFrame->opener()); |
20 } | 20 } |
21 | 21 |
22 void RemoteFrameClient::setOpener(blink::Frame*) | 22 void RemoteFrameClient::setOpener(Frame*) |
23 { | 23 { |
24 // FIXME: Implement. | 24 // FIXME: Implement. |
25 } | 25 } |
26 | 26 |
27 blink::Frame* RemoteFrameClient::parent() const | 27 Frame* RemoteFrameClient::parent() const |
28 { | 28 { |
29 return toWebCoreFrame(m_webFrame->parent()); | 29 return toWebCoreFrame(m_webFrame->parent()); |
30 } | 30 } |
31 | 31 |
32 blink::Frame* RemoteFrameClient::top() const | 32 Frame* RemoteFrameClient::top() const |
33 { | 33 { |
34 return toWebCoreFrame(m_webFrame->top()); | 34 return toWebCoreFrame(m_webFrame->top()); |
35 } | 35 } |
36 | 36 |
37 blink::Frame* RemoteFrameClient::previousSibling() const | 37 Frame* RemoteFrameClient::previousSibling() const |
38 { | 38 { |
39 return toWebCoreFrame(m_webFrame->previousSibling()); | 39 return toWebCoreFrame(m_webFrame->previousSibling()); |
40 } | 40 } |
41 | 41 |
42 blink::Frame* RemoteFrameClient::nextSibling() const | 42 Frame* RemoteFrameClient::nextSibling() const |
43 { | 43 { |
44 return toWebCoreFrame(m_webFrame->nextSibling()); | 44 return toWebCoreFrame(m_webFrame->nextSibling()); |
45 } | 45 } |
46 | 46 |
47 blink::Frame* RemoteFrameClient::firstChild() const | 47 Frame* RemoteFrameClient::firstChild() const |
48 { | 48 { |
49 return toWebCoreFrame(m_webFrame->firstChild()); | 49 return toWebCoreFrame(m_webFrame->firstChild()); |
50 } | 50 } |
51 | 51 |
52 blink::Frame* RemoteFrameClient::lastChild() const | 52 Frame* RemoteFrameClient::lastChild() const |
53 { | 53 { |
54 return toWebCoreFrame(m_webFrame->lastChild()); | 54 return toWebCoreFrame(m_webFrame->lastChild()); |
55 } | 55 } |
56 | 56 |
57 } // namespace blink | 57 } // namespace blink |
OLD | NEW |