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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 // Returns the current zoom factor. | 34 // Returns the current zoom factor. |
35 virtual double GetZoom() = 0; | 35 virtual double GetZoom() = 0; |
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. | |
44 virtual void OnEmbedderDestroyed() = 0; | |
45 | |
46 // Called after the guest has been attached to an embedder and suspended | 43 // Called after the guest has been attached to an embedder and suspended |
47 // resource loads have been resumed. | 44 // resource loads have been resumed. |
48 virtual void OnDidAttachToEmbedder() = 0; | 45 virtual void OnDidAttachToEmbedder() = 0; |
49 | 46 |
50 // Called when the guest WebContents commits a provisional load in any frame. | 47 // Called when the guest WebContents commits a provisional load in any frame. |
51 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) = 0; | 48 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) = 0; |
52 | 49 |
53 // Called just after additional initialization is performed. | 50 // Called just after additional initialization is performed. |
54 virtual void OnDidInitialize() = 0; | 51 virtual void OnDidInitialize() = 0; |
55 | 52 |
(...skipping 11 matching lines...) Expand all Loading... |
67 // menu items to contain only the items from |items|. | 64 // menu items to contain only the items from |items|. |
68 // |items| == NULL means no filtering will be applied. | 65 // |items| == NULL means no filtering will be applied. |
69 virtual void OnShowContextMenu( | 66 virtual void OnShowContextMenu( |
70 int request_id, | 67 int request_id, |
71 const MenuItemVector* items) = 0; | 68 const MenuItemVector* items) = 0; |
72 }; | 69 }; |
73 | 70 |
74 } // namespace extensions | 71 } // namespace extensions |
75 | 72 |
76 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ | 73 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ |
OLD | NEW |