| 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 enum class WebClientRedirectPolicy; | 14 enum class WebClientRedirectPolicy; |
| 15 enum class WebFrameLoadType; | 15 enum class WebFrameLoadType; |
| 16 class WebURLRequest; |
| 16 struct WebRect; | 17 struct WebRect; |
| 17 | 18 |
| 18 class WebRemoteFrameClient { | 19 class WebRemoteFrameClient { |
| 19 public: | 20 public: |
| 20 // Specifies the reason for the detachment. | 21 // Specifies the reason for the detachment. |
| 21 enum class DetachType { kRemove, kSwap }; | 22 enum class DetachType { kRemove, kSwap }; |
| 22 | 23 |
| 23 // 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 |
| 24 // and release any resources associated with it. | 25 // and release any resources associated with it. |
| 25 virtual void FrameDetached(DetachType) {} | 26 virtual void FrameDetached(DetachType) {} |
| (...skipping 27 matching lines...) Expand all Loading... |
| 53 // response to <tab>) and encounters a remote frame. | 54 // response to <tab>) and encounters a remote frame. |
| 54 virtual void AdvanceFocus(WebFocusType type, WebLocalFrame* source) {} | 55 virtual void AdvanceFocus(WebFocusType type, WebLocalFrame* source) {} |
| 55 | 56 |
| 56 // This frame was focused by another frame. | 57 // This frame was focused by another frame. |
| 57 virtual void FrameFocused() {} | 58 virtual void FrameFocused() {} |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 } // namespace blink | 61 } // namespace blink |
| 61 | 62 |
| 62 #endif // WebRemoteFrameClient_h | 63 #endif // WebRemoteFrameClient_h |
| OLD | NEW |