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_PROFILE_MENU_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_PROFILE_MENU_MODEL_H_ |
6 #define CHROME_BROWSER_UI_PROFILE_MENU_MODEL_H_ | 6 #define CHROME_BROWSER_UI_PROFILE_MENU_MODEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/base/models/simple_menu_model.h" | 9 #include "ui/base/models/simple_menu_model.h" |
10 | 10 |
11 // ProfileMenuModel | 11 // ProfileMenuModel |
12 // | 12 // |
13 // Menu for the multi-profile button displayed on the browser frame when the | 13 // Menu for the multi-profile button displayed on the browser frame when the |
14 // user is in a multi-profile-enabled account. Stub for now. TODO(mirandac): | 14 // user is in a multi-profile-enabled account. Stub for now. TODO(mirandac): |
15 // enable and fill in as part of multi-profile work. | 15 // enable and fill in as part of multi-profile work. |
16 class ProfileMenuModel : public ui::SimpleMenuModel { | 16 class ProfileMenuModel : public ui::SimpleMenuModel, |
17 public ui::SimpleMenuModel::Delegate { | |
17 public: | 18 public: |
19 explicit ProfileMenuModel(); | |
sky
2011/05/23 14:44:38
nit: no explicit
| |
20 virtual ~ProfileMenuModel(); | |
21 | |
22 // ui::SimpleMenuModel::Delegate implementation | |
23 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | |
24 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | |
25 virtual bool GetAcceleratorForCommandId( | |
26 int command_id, ui::Accelerator* accelerator) OVERRIDE; | |
27 virtual void ExecuteCommand(int command_id) OVERRIDE; | |
28 | |
29 private: | |
18 enum { | 30 enum { |
19 COMMAND_CREATE_NEW_PROFILE, | 31 COMMAND_CREATE_NEW_PROFILE, |
20 }; | 32 }; |
21 | 33 |
22 explicit ProfileMenuModel(ui::SimpleMenuModel::Delegate* delegate); | |
23 virtual ~ProfileMenuModel(); | |
24 | |
25 private: | |
26 DISALLOW_COPY_AND_ASSIGN(ProfileMenuModel); | 34 DISALLOW_COPY_AND_ASSIGN(ProfileMenuModel); |
27 }; | 35 }; |
28 | 36 |
29 #endif // CHROME_BROWSER_UI_PROFILE_MENU_MODEL_H_ | 37 #endif // CHROME_BROWSER_UI_PROFILE_MENU_MODEL_H_ |
30 | 38 |
31 | 39 |
OLD | NEW |