OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_PANELS_PANEL_SETTINGS_MENU_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_SETTINGS_MENU_MODEL_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_SETTINGS_MENU_MODEL_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_SETTINGS_MENU_MODEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/extensions/extension_uninstall_dialog.h" | 9 #include "chrome/browser/extensions/extension_uninstall_dialog.h" |
10 #include "ui/base/models/simple_menu_model.h" | 10 #include "ui/base/models/simple_menu_model.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 private: | 22 private: |
23 // Overridden from ui::SimpleMenuModel::Delegate: | 23 // Overridden from ui::SimpleMenuModel::Delegate: |
24 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 24 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
25 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 25 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
26 virtual bool GetAcceleratorForCommandId( | 26 virtual bool GetAcceleratorForCommandId( |
27 int command_id, ui::Accelerator* accelerator) OVERRIDE; | 27 int command_id, ui::Accelerator* accelerator) OVERRIDE; |
28 virtual void ExecuteCommand(int command_id) OVERRIDE; | 28 virtual void ExecuteCommand(int command_id) OVERRIDE; |
29 | 29 |
30 // ExtensionUninstallDialog::Delegate: | 30 // ExtensionUninstallDialog::Delegate: |
31 virtual void ExtensionDialogAccepted() OVERRIDE; | 31 virtual void ExtensionUninstallAccepted() OVERRIDE; |
32 virtual void ExtensionDialogCanceled() OVERRIDE; | 32 virtual void ExtensionUninstallCanceled() OVERRIDE; |
33 | 33 |
34 private: | 34 private: |
35 friend class PanelBrowserTest; | 35 friend class PanelBrowserTest; |
36 | 36 |
37 enum { | 37 enum { |
38 COMMAND_NAME = 0, | 38 COMMAND_NAME = 0, |
39 COMMAND_CONFIGURE, | 39 COMMAND_CONFIGURE, |
40 COMMAND_DISABLE, | 40 COMMAND_DISABLE, |
41 COMMAND_UNINSTALL, | 41 COMMAND_UNINSTALL, |
42 COMMAND_MANAGE | 42 COMMAND_MANAGE |
43 }; | 43 }; |
44 | 44 |
45 Panel* panel_; | 45 Panel* panel_; |
46 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; | 46 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(PanelSettingsMenuModel); | 48 DISALLOW_COPY_AND_ASSIGN(PanelSettingsMenuModel); |
49 }; | 49 }; |
50 | 50 |
51 #endif // CHROME_BROWSER_UI_PANELS_PANEL_SETTINGS_MENU_MODEL_H_ | 51 #endif // CHROME_BROWSER_UI_PANELS_PANEL_SETTINGS_MENU_MODEL_H_ |
OLD | NEW |