Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_DELEGA TE_H_ | |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_DELEGA TE_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 | |
| 10 namespace content { | |
| 11 struct ContextMenuParams; | |
| 12 struct OpenURLParams; | |
| 13 class WebContents; | |
| 14 } | |
| 15 | |
| 16 namespace extensions { | |
| 17 | |
| 18 class ExtensionViewGuest; | |
| 19 | |
| 20 // Interface to handle communication between ExtensionViewGuest | |
| 21 // with the browser. | |
| 22 class ExtensionViewGuestDelegate { | |
|
Fady Samuel
2015/01/26 12:52:02
Are you using this delegate for anything?
apacible
2015/01/26 22:12:33
Removed delegate.
| |
| 23 public: | |
| 24 explicit ExtensionViewGuestDelegate(ExtensionViewGuest* guest); | |
| 25 virtual ~ExtensionViewGuestDelegate(); | |
| 26 | |
| 27 virtual void DidInitialize() = 0; | |
| 28 | |
| 29 // Shows the context menu for the guest. | |
| 30 // Returns true if the context menu was handled. | |
| 31 virtual bool HandleContextMenu(const content::ContextMenuParams& params) = 0; | |
| 32 | |
| 33 virtual content::WebContents* OpenURLInNewTab( | |
| 34 const content::OpenURLParams& params) = 0; | |
| 35 | |
| 36 ExtensionViewGuest* extension_view_guest() const { return guest_; } | |
| 37 | |
| 38 private: | |
| 39 ExtensionViewGuest* const guest_; | |
| 40 | |
| 41 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGuestDelegate); | |
| 42 }; | |
| 43 | |
| 44 } // namespace extensions | |
| 45 | |
| 46 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_DEL EGATE_H_ | |
| OLD | NEW |