| 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" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // and release any resources associated with it. | 24 // and release any resources associated with it. |
| 25 virtual void frameDetached(DetachType) {} | 25 virtual void frameDetached(DetachType) {} |
| 26 | 26 |
| 27 // Notifies the embedder that a postMessage was issued to a remote frame. | 27 // Notifies the embedder that a postMessage was issued to a remote frame. |
| 28 virtual void forwardPostMessage(WebLocalFrame* sourceFrame, | 28 virtual void forwardPostMessage(WebLocalFrame* sourceFrame, |
| 29 WebRemoteFrame* targetFrame, | 29 WebRemoteFrame* targetFrame, |
| 30 WebSecurityOrigin targetOrigin, | 30 WebSecurityOrigin targetOrigin, |
| 31 WebDOMMessageEvent) {} | 31 WebDOMMessageEvent) {} |
| 32 | 32 |
| 33 // A remote frame was asked to start a navigation. | 33 // A remote frame was asked to start a navigation. |
| 34 virtual void navigate(const WebURLRequest& request, | 34 virtual void navigate(WebLocalFrame* initiatorFrame, |
| 35 const WebURLRequest& request, |
| 35 bool shouldReplaceCurrentEntry) {} | 36 bool shouldReplaceCurrentEntry) {} |
| 36 virtual void reload(WebFrameLoadType, WebClientRedirectPolicy) {} | 37 virtual void reload(WebFrameLoadType, WebClientRedirectPolicy) {} |
| 37 | 38 |
| 38 virtual void frameRectsChanged(const WebRect&) {} | 39 virtual void frameRectsChanged(const WebRect&) {} |
| 39 | 40 |
| 40 virtual void updateRemoteViewportIntersection( | 41 virtual void updateRemoteViewportIntersection( |
| 41 const WebRect& viewportIntersection) {} | 42 const WebRect& viewportIntersection) {} |
| 42 | 43 |
| 43 virtual void visibilityChanged(bool visible) {} | 44 virtual void visibilityChanged(bool visible) {} |
| 44 | 45 |
| 45 // This frame updated its opener to another frame. | 46 // This frame updated its opener to another frame. |
| 46 virtual void didChangeOpener(WebFrame* opener) {} | 47 virtual void didChangeOpener(WebFrame* opener) {} |
| 47 | 48 |
| 48 // Continue sequential focus navigation in this frame. This is called when | 49 // Continue sequential focus navigation in this frame. This is called when |
| 49 // the |source| frame is searching for the next focusable element (e.g., in | 50 // the |source| frame is searching for the next focusable element (e.g., in |
| 50 // response to <tab>) and encounters a remote frame. | 51 // response to <tab>) and encounters a remote frame. |
| 51 virtual void advanceFocus(WebFocusType type, WebLocalFrame* source) {} | 52 virtual void advanceFocus(WebFocusType type, WebLocalFrame* source) {} |
| 52 | 53 |
| 53 // This frame was focused by another frame. | 54 // This frame was focused by another frame. |
| 54 virtual void frameFocused() {} | 55 virtual void frameFocused() {} |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace blink | 58 } // namespace blink |
| 58 | 59 |
| 59 #endif // WebRemoteFrameClient_h | 60 #endif // WebRemoteFrameClient_h |
| OLD | NEW |