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 RemoteFrameClientImpl_h | 5 #ifndef RemoteFrameClientImpl_h |
6 #define RemoteFrameClientImpl_h | 6 #define RemoteFrameClientImpl_h |
7 | 7 |
8 #include "core/frame/RemoteFrameClient.h" | 8 #include "core/frame/RemoteFrameClient.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 class WebRemoteFrameImpl; | 11 class WebRemoteFrameImpl; |
12 | 12 |
13 class RemoteFrameClientImpl final : public RemoteFrameClient { | 13 class RemoteFrameClientImpl final : public RemoteFrameClient { |
14 public: | 14 public: |
15 explicit RemoteFrameClientImpl(WebRemoteFrameImpl*); | 15 explicit RemoteFrameClientImpl(WebRemoteFrameImpl*); |
16 | 16 |
17 // FrameClient overrides: | 17 // FrameClient overrides: |
18 virtual bool inShadowTree() const override; | 18 bool inShadowTree() const override; |
19 virtual void willBeDetached() override; | 19 void willBeDetached() override; |
20 virtual void detached(FrameDetachType) override; | 20 void detached(FrameDetachType) override; |
21 virtual Frame* opener() const override; | 21 Frame* opener() const override; |
22 virtual void setOpener(Frame*) override; | 22 void setOpener(Frame*) override; |
23 virtual Frame* parent() const override; | 23 Frame* parent() const override; |
24 virtual Frame* top() const override; | 24 Frame* top() const override; |
25 virtual Frame* previousSibling() const override; | 25 Frame* previousSibling() const override; |
26 virtual Frame* nextSibling() const override; | 26 Frame* nextSibling() const override; |
27 virtual Frame* firstChild() const override; | 27 Frame* firstChild() const override; |
28 virtual Frame* lastChild() const override; | 28 Frame* lastChild() const override; |
29 virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin*, MessageEvent*
, LocalFrame*) const override; | 29 bool willCheckAndDispatchMessageEvent(SecurityOrigin*, MessageEvent*, LocalF
rame*) const override; |
30 | 30 |
31 // RemoteFrameClient overrides: | 31 // RemoteFrameClient overrides: |
32 virtual void navigate(const ResourceRequest&, bool shouldReplaceCurrentEntry
) override; | 32 void navigate(const ResourceRequest&, bool shouldReplaceCurrentEntry) overri
de; |
33 virtual void reload(FrameLoadType, ClientRedirectPolicy) override; | 33 void reload(FrameLoadType, ClientRedirectPolicy) override; |
34 virtual unsigned backForwardLength() override; | 34 unsigned backForwardLength() override; |
35 virtual void forwardInputEvent(Event*) override; | 35 void forwardInputEvent(Event*) override; |
36 | 36 |
37 WebRemoteFrameImpl* webFrame() const { return m_webFrame; } | 37 WebRemoteFrameImpl* webFrame() const { return m_webFrame; } |
38 | 38 |
39 private: | 39 private: |
40 WebRemoteFrameImpl* m_webFrame; | 40 WebRemoteFrameImpl* m_webFrame; |
41 }; | 41 }; |
42 | 42 |
43 } // namespace blink | 43 } // namespace blink |
44 | 44 |
45 #endif // RemoteFrameClientImpl_h | 45 #endif // RemoteFrameClientImpl_h |
OLD | NEW |