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

Side by Side Diff: chrome/browser/app_menu_model.h

Issue 500030: Factor tab context menu into a shared model and fix mac and win to use it. Im... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_APP_MENU_MODEL_H_ 5 #ifndef CHROME_BROWSER_APP_MENU_MODEL_H_
6 #define CHROME_BROWSER_APP_MENU_MODEL_H_ 6 #define CHROME_BROWSER_APP_MENU_MODEL_H_
7 7
8 #include "app/menus/simple_menu_model.h" 8 #include "app/menus/simple_menu_model.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 10 matching lines...) Expand all
21 Browser* browser); 21 Browser* browser);
22 virtual ~AppMenuModel(); 22 virtual ~AppMenuModel();
23 23
24 // Overridden from GetProfilesHelper::Delegate 24 // Overridden from GetProfilesHelper::Delegate
25 virtual void OnGetProfilesDone( 25 virtual void OnGetProfilesDone(
26 const std::vector<std::wstring>& profiles); 26 const std::vector<std::wstring>& profiles);
27 27
28 private: 28 private:
29 void Build(); 29 void Build();
30 30
31 // The top-level model.
32 scoped_ptr<menus::SimpleMenuModel> model_;
33 // Contents of the profiles menu to populate with profile names. 31 // Contents of the profiles menu to populate with profile names.
34 scoped_ptr<menus::SimpleMenuModel> profiles_menu_contents_; 32 scoped_ptr<menus::SimpleMenuModel> profiles_menu_contents_;
35 33
36 // Helper class to enumerate profiles information on the file thread. 34 // Helper class to enumerate profiles information on the file thread.
37 scoped_refptr<GetProfilesHelper> profiles_helper_; 35 scoped_refptr<GetProfilesHelper> profiles_helper_;
38 36
39 Browser* browser_; // weak 37 Browser* browser_; // weak
40 38
41 DISALLOW_COPY_AND_ASSIGN(AppMenuModel); 39 DISALLOW_COPY_AND_ASSIGN(AppMenuModel);
42 }; 40 };
43 41
44 #endif // CHROME_BROWSER_APP_MENU_MODEL_H_ 42 #endif // CHROME_BROWSER_APP_MENU_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698