Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: chrome/browser/ui/profile_menu_model.h

Issue 7328005: Multi-Profile: Move multi-profile commands from wrench menu to avatar menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/chrome_command_ids.h ('k') | chrome/browser/ui/profile_menu_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 11 matching lines...) Expand all
22 virtual ~ProfileMenuModel(); 22 virtual ~ProfileMenuModel();
23 23
24 // ui::SimpleMenuModel::Delegate implementation 24 // ui::SimpleMenuModel::Delegate implementation
25 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; 25 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
26 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 26 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
27 virtual bool GetAcceleratorForCommandId( 27 virtual bool GetAcceleratorForCommandId(
28 int command_id, ui::Accelerator* accelerator) OVERRIDE; 28 int command_id, ui::Accelerator* accelerator) OVERRIDE;
29 virtual void ExecuteCommand(int command_id) OVERRIDE; 29 virtual void ExecuteCommand(int command_id) OVERRIDE;
30 30
31 private: 31 private:
32 enum {
33 COMMAND_CUSTOMIZE_PROFILE,
34 COMMAND_CREATE_NEW_PROFILE,
35 COMMAND_DELETE_PROFILE,
36 };
37
38 Browser* browser_; 32 Browser* browser_;
33 scoped_ptr<ui::SimpleMenuModel> switch_profiles_sub_menu_model_;
39 34
40 DISALLOW_COPY_AND_ASSIGN(ProfileMenuModel); 35 DISALLOW_COPY_AND_ASSIGN(ProfileMenuModel);
41 }; 36 };
42 37
43 #endif // CHROME_BROWSER_UI_PROFILE_MENU_MODEL_H_ 38 #endif // CHROME_BROWSER_UI_PROFILE_MENU_MODEL_H_
44
45
OLDNEW
« no previous file with comments | « chrome/app/chrome_command_ids.h ('k') | chrome/browser/ui/profile_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698