| 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 WebLocalFrame; | 13 class WebLocalFrame; |
| 13 class WebRemoteFrame; | 14 class WebRemoteFrame; |
| 14 | 15 |
| 15 class WebRemoteFrameClient { | 16 class WebRemoteFrameClient { |
| 16 public: | 17 public: |
| 17 // Notify the embedder that it should remove this frame from the frame tree | 18 // Notify the embedder that it should remove this frame from the frame tree |
| 18 // and release any resources associated with it. | 19 // and release any resources associated with it. |
| 19 virtual void frameDetached() { } | 20 virtual void frameDetached() { } |
| 20 | 21 |
| 21 // Notifies the embedder that a postMessage was issued to a remote frame. | 22 // Notifies the embedder that a postMessage was issued to a remote frame. |
| 22 virtual void postMessageEvent( | 23 virtual void postMessageEvent( |
| 23 WebLocalFrame* sourceFrame, | 24 WebLocalFrame* sourceFrame, |
| 24 WebRemoteFrame* targetFrame, | 25 WebRemoteFrame* targetFrame, |
| 25 WebSecurityOrigin targetOrigin, | 26 WebSecurityOrigin targetOrigin, |
| 26 WebDOMMessageEvent) { } | 27 WebDOMMessageEvent) { } |
| 27 | 28 |
| 28 // Send initial drawing parameters to a child frame that is being rendered | 29 // Send initial drawing parameters to a child frame that is being rendered |
| 29 // out of process. | 30 // out of process. |
| 30 virtual void initializeChildFrame( | 31 virtual void initializeChildFrame( |
| 31 const WebRect& frameRect, | 32 const WebRect& frameRect, |
| 32 float scaleFactor) { } | 33 float scaleFactor) { } |
| 33 | 34 |
| 34 // A remote frame was asked to start a navigation. | 35 // A remote frame was asked to start a navigation. |
| 35 virtual void navigate(const WebURLRequest& request, bool shouldReplaceCurren
tEntry) { } | 36 virtual void navigate(const WebURLRequest& request, bool shouldReplaceCurren
tEntry) { } |
| 37 |
| 38 // FIXME: Remove this method once we have input routing in the browser |
| 39 // process. See http://crbug.com/339659. |
| 40 virtual void forwardInputEvent(const WebInputEvent*) { } |
| 36 }; | 41 }; |
| 37 | 42 |
| 38 } // namespace blink | 43 } // namespace blink |
| 39 | 44 |
| 40 #endif // WebRemoteFrameClient_h | 45 #endif // WebRemoteFrameClient_h |
| OLD | NEW |