Chromium Code Reviews| 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" | |
| 9 | |
| 10 namespace content { | |
| 11 class BrowserContext; | |
| 12 class WebContents; | |
| 13 } | |
| 14 | |
| 15 namespace extensions { | |
| 16 class Extension; | |
| 17 | |
| 18 class AppViewGuestDelegate { | |
| 19 public: | |
| 20 AppViewGuestDelegate(); | |
| 21 virtual ~AppViewGuestDelegate(); | |
| 22 | |
| 23 // Shows the context menu for the guest | |
| 24 virtual bool HandleContextMenu(content::WebContents* web_contents, | |
|
Xi Han
2014/08/18 21:29:11
Please rename to OnHandleContextMenu(). Thanks.
| |
| 25 const content::ContextMenuParams& params); | |
| 26 | |
| 27 // Gets the Extension that matches the id | |
| 28 virtual const Extension* GetExtensionById(content::BrowserContext* context, | |
|
Xi Han
2014/08/18 21:29:11
Please remove this function.
| |
| 29 const std::string& id, | |
| 30 bool include_disabled) const; | |
| 31 | |
| 32 private: | |
| 33 DISALLOW_COPY_AND_ASSIGN(AppViewGuestDelegate); | |
| 34 }; | |
| 35 | |
| 36 } // namespace extensions | |
| 37 | |
| 38 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_ | |
| OLD | NEW |