| 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 class Profile; | 
|  | 12 | 
| 11 // ProfileMenuModel | 13 // ProfileMenuModel | 
| 12 // | 14 // | 
| 13 // Menu for the multi-profile button displayed on the browser frame when the | 15 // 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): | 16 // user is in a multi-profile-enabled account. Stub for now. TODO(mirandac): | 
| 15 // enable and fill in as part of multi-profile work. | 17 // enable and fill in as part of multi-profile work. | 
| 16 class ProfileMenuModel : public ui::SimpleMenuModel, | 18 class ProfileMenuModel : public ui::SimpleMenuModel, | 
| 17                          public ui::SimpleMenuModel::Delegate { | 19                          public ui::SimpleMenuModel::Delegate { | 
| 18  public: | 20  public: | 
| 19   explicit ProfileMenuModel(); | 21   explicit ProfileMenuModel(Profile* profile); | 
| 20   virtual ~ProfileMenuModel(); | 22   virtual ~ProfileMenuModel(); | 
| 21 | 23 | 
| 22   // ui::SimpleMenuModel::Delegate implementation | 24   // ui::SimpleMenuModel::Delegate implementation | 
| 23   virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 25   virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 
| 24   virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 26   virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 
| 25   virtual bool GetAcceleratorForCommandId( | 27   virtual bool GetAcceleratorForCommandId( | 
| 26       int command_id, ui::Accelerator* accelerator) OVERRIDE; | 28       int command_id, ui::Accelerator* accelerator) OVERRIDE; | 
| 27   virtual void ExecuteCommand(int command_id) OVERRIDE; | 29   virtual void ExecuteCommand(int command_id) OVERRIDE; | 
| 28 | 30 | 
| 29  private: | 31  private: | 
| 30   enum { | 32   enum { | 
| 31     COMMAND_CREATE_NEW_PROFILE, | 33     COMMAND_CREATE_NEW_PROFILE, | 
|  | 34     COMMAND_DELETE_PROFILE, | 
| 32   }; | 35   }; | 
| 33 | 36 | 
|  | 37   Profile* profile_; | 
|  | 38 | 
| 34   DISALLOW_COPY_AND_ASSIGN(ProfileMenuModel); | 39   DISALLOW_COPY_AND_ASSIGN(ProfileMenuModel); | 
| 35 }; | 40 }; | 
| 36 | 41 | 
| 37 #endif  // CHROME_BROWSER_UI_PROFILE_MENU_MODEL_H_ | 42 #endif  // CHROME_BROWSER_UI_PROFILE_MENU_MODEL_H_ | 
| 38 | 43 | 
| 39 | 44 | 
| OLD | NEW | 
|---|