| 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/platform/WebFocusType.h" | 8 #include "public/platform/WebFocusType.h" |
| 9 #include "public/platform/WebSecurityOrigin.h" | 9 #include "public/platform/WebSecurityOrigin.h" |
| 10 #include "public/web/WebDOMMessageEvent.h" | 10 #include "public/web/WebDOMMessageEvent.h" |
| 11 #include "public/web/WebFrame.h" | 11 #include "public/web/WebFrame.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 class WebInputEvent; | 14 class WebInputEvent; |
| 15 enum class WebClientRedirectPolicy; | 15 enum class WebClientRedirectPolicy; |
| 16 enum class WebFrameLoadType; | 16 enum class WebFrameLoadType; |
| 17 struct WebRect; | 17 struct WebRect; |
| 18 | 18 |
| 19 class WebRemoteFrameClient { | 19 class WebRemoteFrameClient { |
| 20 public: | 20 public: |
| 21 // Specifies the reason for the detachment. | 21 // Specifies the reason for the detachment. |
| 22 enum class DetachType { Remove, Swap }; | 22 enum class DetachType { Remove, Swap }; |
| 23 | 23 |
| 24 // Notify the embedder that it should remove this frame from the frame tree | 24 // Notify the embedder that it should remove this frame from the frame tree |
| 25 // and release any resources associated with it. | 25 // and release any resources associated with it. |
| 26 virtual void frameDetached(DetachType) { } | 26 virtual void frameDetached(DetachType) { } |
| 27 | 27 |
| 28 // Notifies the embedder that a postMessage was issued to a remote frame. | 28 // Notifies the embedder that a postMessage was issued to a remote frame. |
| 29 virtual void postMessageEvent( | 29 virtual void forwardPostMessage( |
| 30 WebLocalFrame* sourceFrame, | 30 WebLocalFrame* sourceFrame, |
| 31 WebRemoteFrame* targetFrame, | 31 WebRemoteFrame* targetFrame, |
| 32 WebSecurityOrigin targetOrigin, | 32 WebSecurityOrigin targetOrigin, |
| 33 WebDOMMessageEvent) { } | 33 WebDOMMessageEvent) {} |
| 34 | 34 |
| 35 // Send initial drawing parameters to a child frame that is being rendered | 35 // Send initial drawing parameters to a child frame that is being rendered |
| 36 // out of process. | 36 // out of process. |
| 37 virtual void initializeChildFrame(float deviceScaleFactor) { } | 37 virtual void initializeChildFrame(float deviceScaleFactor) { } |
| 38 | 38 |
| 39 // A remote frame was asked to start a navigation. | 39 // A remote frame was asked to start a navigation. |
| 40 virtual void navigate(const WebURLRequest& request, bool shouldReplaceCurren
tEntry) { } | 40 virtual void navigate(const WebURLRequest& request, bool shouldReplaceCurren
tEntry) { } |
| 41 virtual void reload(WebFrameLoadType, WebClientRedirectPolicy) {} | 41 virtual void reload(WebFrameLoadType, WebClientRedirectPolicy) {} |
| 42 | 42 |
| 43 // FIXME: Remove this method once we have input routing in the browser | 43 // FIXME: Remove this method once we have input routing in the browser |
| (...skipping 12 matching lines...) Expand all Loading... |
| 56 // response to <tab>) and encounters a remote frame. | 56 // response to <tab>) and encounters a remote frame. |
| 57 virtual void advanceFocus(WebFocusType type, WebLocalFrame* source) { } | 57 virtual void advanceFocus(WebFocusType type, WebLocalFrame* source) { } |
| 58 | 58 |
| 59 // This frame was focused by another frame. | 59 // This frame was focused by another frame. |
| 60 virtual void frameFocused() { } | 60 virtual void frameFocused() { } |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace blink | 63 } // namespace blink |
| 64 | 64 |
| 65 #endif // WebRemoteFrameClient_h | 65 #endif // WebRemoteFrameClient_h |
| OLD | NEW |