| 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/WebContentSecurityPolicy.h" |
| 10 #include "public/web/WebDOMMessageEvent.h" | 11 #include "public/web/WebDOMMessageEvent.h" |
| 11 #include "public/web/WebFrame.h" | 12 #include "public/web/WebFrame.h" |
| 12 | 13 |
| 13 namespace blink { | 14 namespace blink { |
| 14 class WebInputEvent; | 15 class WebInputEvent; |
| 15 enum class WebClientRedirectPolicy; | 16 enum class WebClientRedirectPolicy; |
| 16 enum class WebFrameLoadType; | 17 enum class WebFrameLoadType; |
| 17 struct WebRect; | 18 struct WebRect; |
| 18 | 19 |
| 19 class WebRemoteFrameClient { | 20 class WebRemoteFrameClient { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // This frame updated its opener to another frame. | 52 // This frame updated its opener to another frame. |
| 52 virtual void didChangeOpener(WebFrame* opener) { } | 53 virtual void didChangeOpener(WebFrame* opener) { } |
| 53 | 54 |
| 54 // Continue sequential focus navigation in this frame. This is called when | 55 // Continue sequential focus navigation in this frame. This is called when |
| 55 // the |source| frame is searching for the next focusable element (e.g., in | 56 // the |source| frame is searching for the next focusable element (e.g., in |
| 56 // response to <tab>) and encounters a remote frame. | 57 // response to <tab>) and encounters a remote frame. |
| 57 virtual void advanceFocus(WebFocusType type, WebLocalFrame* source) { } | 58 virtual void advanceFocus(WebFocusType type, WebLocalFrame* source) { } |
| 58 | 59 |
| 59 // This frame was focused by another frame. | 60 // This frame was focused by another frame. |
| 60 virtual void frameFocused() { } | 61 virtual void frameFocused() { } |
| 62 |
| 63 // Forwards a Content Security Policy violation from a frame proxy to the |
| 64 // real frame. |
| 65 virtual void forwardContentSecurityPolicyViolation(const WebString& directiv
eText, const WebString& effectiveDirective, const WebString& consoleMessage, con
st WebURL& blockedURL, const WebVector<WebString>& reportEndpoints, const WebStr
ing& header, WebContentSecurityPolicyViolationType, bool followedRedirect, int c
ontextLine) {} |
| 61 }; | 66 }; |
| 62 | 67 |
| 63 } // namespace blink | 68 } // namespace blink |
| 64 | 69 |
| 65 #endif // WebRemoteFrameClient_h | 70 #endif // WebRemoteFrameClient_h |
| OLD | NEW |