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_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_ | |
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_ | |
7 | |
8 #include "content/public/common/context_menu_params.h" | |
Fady Samuel
2014/08/20 14:33:25
Is this necessary? We are passing ContextMenuParam
| |
9 | |
10 namespace content { | |
11 class BrowserContext; | |
Fady Samuel
2014/08/20 14:33:25
Is this forward declaration necessary?
| |
12 class WebContents; | |
13 } | |
14 | |
15 namespace extensions { | |
16 class Extension; | |
Fady Samuel
2014/08/20 14:33:25
Is this forward declaration necessary?
| |
17 | |
18 // Interface to handle communication between AppView (in extensions) with the | |
19 // browser. | |
20 class AppViewGuestDelegate { | |
21 public: | |
22 virtual ~AppViewGuestDelegate(); | |
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 | |
30 } // namespace extensions | |
31 | |
32 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_ | |
OLD | NEW |