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

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

Issue 11968034: Enable profile switching for standalone App Launcher via the Settings App. (Closed) Base URL: git://nomatter.syd/chromium/src.git@master
Patch Set: respond to comments Created 7 years, 11 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_APP_LIST_UTIL_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_UTIL_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_UTIL_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_UTIL_H_
7 7
8 class FilePath;
9 class PrefServiceSimple;
10 class Profile;
11
8 namespace chrome { 12 namespace chrome {
9 13
14 // TODO(koz/benwells): These functions need to be put somewhere more
15 // specific than the chrome namespace.
16
10 // Do any once off initialization needed for the app list. 17 // Do any once off initialization needed for the app list.
11 void InitAppList(); 18 void InitAppList(Profile* profile);
12 19
13 // Show the app list. 20 // Show the app list.
14 void ShowAppList(); 21 void ShowAppList(Profile* profile);
22
23 // Register local state preferences for the app list.
24 void RegisterAppListPrefs(PrefServiceSimple* prefs);
25
26 // Change the profile that the app list is showing.
27 void SetAppListProfile(const FilePath& profile_file_path);
28
29 // Get the path of the profile to be used with the app list.
30 FilePath GetAppListProfilePath(const FilePath& user_data_dir);
31
32 // Dismiss the app list.
33 void DismissAppList();
34
35 // Get the profile the app list is currently showing.
36 Profile* GetCurrentAppListProfile();
37
38 // Returns true if the app list is visible.
tapted 2013/01/26 01:10:08 perhaps a note that this is only used for tests
koz (OOO until 15th September) 2013/01/29 00:34:11 I think it might have uses outside testing later s
39 bool IsAppListVisible();
15 40
16 } // namespace chrome 41 } // namespace chrome
17 42
18 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_UTIL_H_ 43 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698