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 RemoteFrameClient_h | 5 #ifndef RemoteFrameClient_h |
6 #define RemoteFrameClient_h | 6 #define RemoteFrameClient_h |
7 | 7 |
8 #include "core/frame/FrameClient.h" | 8 #include "core/frame/FrameClient.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class WebRemoteFrameImpl; | 12 class WebRemoteFrameImpl; |
13 | 13 |
14 class RemoteFrameClient : public blink::FrameClient { | 14 class RemoteFrameClient : public FrameClient { |
15 public: | 15 public: |
16 explicit RemoteFrameClient(WebRemoteFrameImpl*); | 16 explicit RemoteFrameClient(WebRemoteFrameImpl*); |
17 | 17 |
18 // FrameClient overrides: | 18 // FrameClient overrides: |
19 virtual blink::Frame* opener() const OVERRIDE; | 19 virtual Frame* opener() const OVERRIDE; |
20 virtual void setOpener(blink::Frame*) OVERRIDE; | 20 virtual void setOpener(Frame*) OVERRIDE; |
21 | 21 |
22 virtual blink::Frame* parent() const OVERRIDE; | 22 virtual Frame* parent() const OVERRIDE; |
23 virtual blink::Frame* top() const OVERRIDE; | 23 virtual Frame* top() const OVERRIDE; |
24 virtual blink::Frame* previousSibling() const OVERRIDE; | 24 virtual Frame* previousSibling() const OVERRIDE; |
25 virtual blink::Frame* nextSibling() const OVERRIDE; | 25 virtual Frame* nextSibling() const OVERRIDE; |
26 virtual blink::Frame* firstChild() const OVERRIDE; | 26 virtual Frame* firstChild() const OVERRIDE; |
27 virtual blink::Frame* lastChild() const OVERRIDE; | 27 virtual Frame* lastChild() const OVERRIDE; |
28 | 28 |
29 WebRemoteFrameImpl* webFrame() const { return m_webFrame; } | 29 WebRemoteFrameImpl* webFrame() const { return m_webFrame; } |
30 | 30 |
31 private: | 31 private: |
32 WebRemoteFrameImpl* m_webFrame; | 32 WebRemoteFrameImpl* m_webFrame; |
33 }; | 33 }; |
34 | 34 |
35 } // namespace blink | 35 } // namespace blink |
36 | 36 |
37 #endif // RemoteFrameClient_h | 37 #endif // RemoteFrameClient_h |
OLD | NEW |