| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_MODEL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_MODEL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_MODEL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_MODEL_H_ |
| 7 | 7 |
| 8 #include "app/menus/simple_menu_model.h" | 8 #include "app/menus/simple_menu_model.h" |
| 9 #include "chrome/browser/extensions/extension_install_ui.h" | 9 #include "views/controls/menu/simple_menu_model.h" |
| 10 | 10 |
| 11 class Extension; | 11 class Extension; |
| 12 | 12 |
| 13 // The menu model for the context menu for extension action icons (browser and | 13 // The menu model for the context menu for extension action icons (browser and |
| 14 // page actions). | 14 // page actions). |
| 15 class ExtensionActionContextMenuModel | 15 class ExtensionActionContextMenuModel |
| 16 : public menus::SimpleMenuModel, | 16 : public menus::SimpleMenuModel, |
| 17 public menus::SimpleMenuModel::Delegate { | 17 public menus::SimpleMenuModel::Delegate { |
| 18 public: | 18 public: |
| 19 ExtensionActionContextMenuModel(Extension* extension, | 19 ExtensionActionContextMenuModel(Extension* extension, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 31 // The extension we are displaying the context menu for. | 31 // The extension we are displaying the context menu for. |
| 32 Extension* extension_; | 32 Extension* extension_; |
| 33 | 33 |
| 34 // The delegate that handles the extension Uninstall operation. | 34 // The delegate that handles the extension Uninstall operation. |
| 35 ExtensionInstallUI::Delegate* delegate_; | 35 ExtensionInstallUI::Delegate* delegate_; |
| 36 | 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(ExtensionActionContextMenuModel); | 37 DISALLOW_COPY_AND_ASSIGN(ExtensionActionContextMenuModel); |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_MODEL_H_ | 40 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_MODEL_H_ |
| OLD | NEW |