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 #include "core/frame/FrameTypes.h" | 9 #include "core/frame/FrameTypes.h" |
10 #include "core/loader/FrameLoaderTypes.h" | 10 #include "core/loader/FrameLoaderTypes.h" |
11 #include "public/platform/WebFocusType.h" | 11 #include "public/platform/WebFocusType.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class Event; | 15 class Event; |
16 class IntRect; | 16 class IntRect; |
17 class ResourceRequest; | 17 class ResourceRequest; |
18 | 18 |
19 class RemoteFrameClient : public FrameClient { | 19 class RemoteFrameClient : public FrameClient { |
20 public: | 20 public: |
21 ~RemoteFrameClient() override { } | 21 ~RemoteFrameClient() override { } |
22 | 22 |
23 virtual void navigate(const ResourceRequest&, bool shouldReplaceCurrentEntry
) = 0; | 23 virtual void navigate(const ResourceRequest&, bool shouldReplaceCurrentEntry
) = 0; |
24 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0; | 24 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0; |
25 virtual unsigned backForwardLength() = 0; | 25 virtual unsigned backForwardLength() = 0; |
26 | 26 |
| 27 // Forwards a postMessage for a remote frame. |
| 28 virtual void forwardPostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> ta
rget, LocalFrame* sourceFrame) const = 0; |
| 29 |
27 // FIXME: Remove this method once we have input routing in the browser | 30 // FIXME: Remove this method once we have input routing in the browser |
28 // process. See http://crbug.com/339659. | 31 // process. See http://crbug.com/339659. |
29 virtual void forwardInputEvent(Event*) = 0; | 32 virtual void forwardInputEvent(Event*) = 0; |
30 | 33 |
31 virtual void frameRectsChanged(const IntRect& frameRect) = 0; | 34 virtual void frameRectsChanged(const IntRect& frameRect) = 0; |
32 | 35 |
33 virtual void advanceFocus(WebFocusType, LocalFrame* source) = 0; | 36 virtual void advanceFocus(WebFocusType, LocalFrame* source) = 0; |
34 | 37 |
35 virtual void visibilityChanged(bool visible) = 0; | 38 virtual void visibilityChanged(bool visible) = 0; |
36 }; | 39 }; |
37 | 40 |
38 } // namespace blink | 41 } // namespace blink |
39 | 42 |
40 #endif // RemoteFrameClient_h | 43 #endif // RemoteFrameClient_h |
OLD | NEW |