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

Side by Side Diff: chrome/browser/ui/app_list/apps_model_builder.h

Issue 20656002: Add profile selector menu to app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove junk from list_model.h Created 7 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_APP_LIST_APPS_MODEL_BUILDER_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 app_list::AppListModel::Apps* model, 34 app_list::AppListModel::Apps* model,
35 AppListControllerDelegate* controller); 35 AppListControllerDelegate* controller);
36 virtual ~AppsModelBuilder(); 36 virtual ~AppsModelBuilder();
37 37
38 // Populates the model. 38 // Populates the model.
39 void Build(); 39 void Build();
40 40
41 // Returns app instance with id |extension_id|. 41 // Returns app instance with id |extension_id|.
42 ExtensionAppItem* GetApp(const std::string& extension_id); 42 ExtensionAppItem* GetApp(const std::string& extension_id);
43 43
44 // Sets the profile that this builder will use to build the model.
45 void SetProfile(Profile* profile);
46
44 private: 47 private:
45 typedef std::vector<ExtensionAppItem*> Apps; 48 typedef std::vector<ExtensionAppItem*> Apps;
46 49
47 // Overridden from extensions::InstallObserver: 50 // Overridden from extensions::InstallObserver:
48 virtual void OnBeginExtensionInstall(const std::string& extension_id, 51 virtual void OnBeginExtensionInstall(const std::string& extension_id,
49 const std::string& extension_name, 52 const std::string& extension_name,
50 const gfx::ImageSkia& installing_icon, 53 const gfx::ImageSkia& installing_icon,
51 bool is_app, 54 bool is_app,
52 bool is_platform_app) OVERRIDE; 55 bool is_platform_app) OVERRIDE;
53 56
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // True to ignore |model_| changes. 121 // True to ignore |model_| changes.
119 bool ignore_changes_; 122 bool ignore_changes_;
120 123
121 // We listen to this to show app installing progress. 124 // We listen to this to show app installing progress.
122 extensions::InstallTracker* tracker_; 125 extensions::InstallTracker* tracker_;
123 126
124 DISALLOW_COPY_AND_ASSIGN(AppsModelBuilder); 127 DISALLOW_COPY_AND_ASSIGN(AppsModelBuilder);
125 }; 128 };
126 129
127 #endif // CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_ 130 #endif // CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698