| 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "extensions/browser/guest_view/guest_view_base.h" | 8 #include "extensions/browser/guest_view/guest_view_base.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Called when context menu operation was handled. | 37 // Called when context menu operation was handled. |
| 38 virtual bool HandleContextMenu(const content::ContextMenuParams& params) = 0; | 38 virtual bool HandleContextMenu(const content::ContextMenuParams& params) = 0; |
| 39 | 39 |
| 40 // Called to attach helpers just after additional initialization is performed. | 40 // Called to attach helpers just after additional initialization is performed. |
| 41 virtual void OnAttachWebViewHelpers(content::WebContents* contents) = 0; | 41 virtual void OnAttachWebViewHelpers(content::WebContents* contents) = 0; |
| 42 | 42 |
| 43 // Called to perform some cleanup prior to destruction. | 43 // Called to perform some cleanup prior to destruction. |
| 44 virtual void OnEmbedderDestroyed() = 0; | 44 virtual void OnEmbedderDestroyed() = 0; |
| 45 | 45 |
| 46 // Called after the guest has been attached to an embedder and suspended |
| 47 // resource loads have been resumed. |
| 48 virtual void OnDidAttachToEmbedder() = 0; |
| 49 |
| 46 // Called when the guest WebContents commits a provisional load in any frame. | 50 // Called when the guest WebContents commits a provisional load in any frame. |
| 47 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) = 0; | 51 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) = 0; |
| 48 | 52 |
| 49 // Called just after additional initialization is performed. | 53 // Called just after additional initialization is performed. |
| 50 virtual void OnDidInitialize() = 0; | 54 virtual void OnDidInitialize() = 0; |
| 51 | 55 |
| 52 virtual void OnDocumentLoadedInFrame( | 56 virtual void OnDocumentLoadedInFrame( |
| 53 content::RenderFrameHost* render_frame_host) = 0; | 57 content::RenderFrameHost* render_frame_host) = 0; |
| 54 | 58 |
| 55 // Called immediately after the guest WebContents has been destroyed. | 59 // Called immediately after the guest WebContents has been destroyed. |
| 56 virtual void OnGuestDestroyed() = 0; | 60 virtual void OnGuestDestroyed() = 0; |
| 57 | 61 |
| 58 // Called when to set the zoom factor. | 62 // Called when to set the zoom factor. |
| 59 virtual void OnSetZoom(double zoom_factor) = 0; | 63 virtual void OnSetZoom(double zoom_factor) = 0; |
| 60 | 64 |
| 61 // Shows the context menu for the guest. | 65 // Shows the context menu for the guest. |
| 62 // |items| acts as a filter. This restricts the current context's default | 66 // |items| acts as a filter. This restricts the current context's default |
| 63 // menu items to contain only the items from |items|. | 67 // menu items to contain only the items from |items|. |
| 64 // |items| == NULL means no filtering will be applied. | 68 // |items| == NULL means no filtering will be applied. |
| 65 virtual void OnShowContextMenu( | 69 virtual void OnShowContextMenu( |
| 66 int request_id, | 70 int request_id, |
| 67 const MenuItemVector* items) = 0; | 71 const MenuItemVector* items) = 0; |
| 68 }; | 72 }; |
| 69 | 73 |
| 70 } // namespace extensions | 74 } // namespace extensions |
| 71 | 75 |
| 72 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ | 76 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ |
| OLD | NEW |