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 WebRemoteFrameClient_h | 5 #ifndef WebRemoteFrameClient_h |
6 #define WebRemoteFrameClient_h | 6 #define WebRemoteFrameClient_h |
7 | 7 |
8 #include "public/web/WebDOMMessageEvent.h" | 8 #include "public/web/WebDOMMessageEvent.h" |
9 #include "public/web/WebSecurityOrigin.h" | 9 #include "public/web/WebSecurityOrigin.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 class WebInputEvent; | 12 class WebInputEvent; |
13 class WebLocalFrame; | 13 class WebLocalFrame; |
14 class WebRemoteFrame; | 14 class WebRemoteFrame; |
| 15 struct WebRect; |
15 | 16 |
16 class WebRemoteFrameClient { | 17 class WebRemoteFrameClient { |
17 public: | 18 public: |
18 // Notify the embedder that it should remove this frame from the frame tree | 19 // Notify the embedder that it should remove this frame from the frame tree |
19 // and release any resources associated with it. | 20 // and release any resources associated with it. |
20 virtual void frameDetached() { } | 21 virtual void frameDetached() { } |
21 | 22 |
22 // Notifies the embedder that a postMessage was issued to a remote frame. | 23 // Notifies the embedder that a postMessage was issued to a remote frame. |
23 virtual void postMessageEvent( | 24 virtual void postMessageEvent( |
24 WebLocalFrame* sourceFrame, | 25 WebLocalFrame* sourceFrame, |
(...skipping 11 matching lines...) Expand all Loading... |
36 virtual void navigate(const WebURLRequest& request, bool shouldReplaceCurren
tEntry) { } | 37 virtual void navigate(const WebURLRequest& request, bool shouldReplaceCurren
tEntry) { } |
37 | 38 |
38 // FIXME: Remove this method once we have input routing in the browser | 39 // FIXME: Remove this method once we have input routing in the browser |
39 // process. See http://crbug.com/339659. | 40 // process. See http://crbug.com/339659. |
40 virtual void forwardInputEvent(const WebInputEvent*) { } | 41 virtual void forwardInputEvent(const WebInputEvent*) { } |
41 }; | 42 }; |
42 | 43 |
43 } // namespace blink | 44 } // namespace blink |
44 | 45 |
45 #endif // WebRemoteFrameClient_h | 46 #endif // WebRemoteFrameClient_h |
OLD | NEW |