OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_
DELEGATE_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_
DELEGATE_H_ |
| 7 |
| 8 namespace content { |
| 9 struct ContextMenuParams; |
| 10 struct OpenURLParams; |
| 11 class WebContents; |
| 12 } |
| 13 |
| 14 namespace extensions { |
| 15 // Interface to handle communication between ExtensionOptionsGuest (in |
| 16 // extensions) with the browser. |
| 17 class ExtensionOptionsGuestDelegate { |
| 18 public: |
| 19 virtual ~ExtensionOptionsGuestDelegate(); |
| 20 |
| 21 virtual void CreateChromeExtensionWebContentsObserver( |
| 22 content::WebContents* web_contents) = 0; |
| 23 |
| 24 // Shows the context menu for the guest. |
| 25 // Returns true if the context menu was handled. |
| 26 virtual bool HandleContextMenu(content::WebContents* web_contents, |
| 27 const content::ContextMenuParams& params) = 0; |
| 28 |
| 29 virtual content::WebContents* OpenURLInNewTab( |
| 30 content::WebContents* embedder_web_contents, |
| 31 const content::OpenURLParams& params) = 0; |
| 32 }; |
| 33 |
| 34 } // namespace extensions |
| 35 |
| 36 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE
ST_DELEGATE_H_ |
OLD | NEW |