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

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

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix double registration in Chrome Frame test. Created 7 years, 10 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
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 #include "base/file_path.h" 8 #include "base/file_path.h"
9 9
10 class PrefServiceSimple; 10 class PrefRegistrySimple;
11 class Profile; 11 class Profile;
12 12
13 namespace chrome { 13 namespace chrome {
14 14
15 // TODO(koz/benwells): These functions need to be put somewhere more 15 // TODO(koz/benwells): These functions need to be put somewhere more
16 // specific than the chrome namespace. 16 // specific than the chrome namespace.
17 17
18 // Do any once off initialization needed for the app list. 18 // Do any once off initialization needed for the app list.
19 void InitAppList(Profile* profile); 19 void InitAppList(Profile* profile);
20 20
21 // Show the app list. 21 // Show the app list.
22 void ShowAppList(Profile* profile); 22 void ShowAppList(Profile* profile);
23 23
24 // Register local state preferences for the app list. 24 // Register local state preferences for the app list.
25 void RegisterAppListPrefs(PrefServiceSimple* prefs); 25 void RegisterAppListPrefs(PrefRegistrySimple* registry);
26 26
27 // Change the profile that the app list is showing. 27 // Change the profile that the app list is showing.
28 void SetAppListProfile(const FilePath& profile_file_path); 28 void SetAppListProfile(const FilePath& profile_file_path);
29 29
30 // Get the path of the profile to be used with the app list. 30 // Get the path of the profile to be used with the app list.
31 FilePath GetAppListProfilePath(const FilePath& user_data_dir); 31 FilePath GetAppListProfilePath(const FilePath& user_data_dir);
32 32
33 // Dismiss the app list. 33 // Dismiss the app list.
34 void DismissAppList(); 34 void DismissAppList();
35 35
36 // Get the profile the app list is currently showing. 36 // Get the profile the app list is currently showing.
37 Profile* GetCurrentAppListProfile(); 37 Profile* GetCurrentAppListProfile();
38 38
39 // Returns true if the app list is visible. 39 // Returns true if the app list is visible.
40 bool IsAppListVisible(); 40 bool IsAppListVisible();
41 41
42 } // namespace chrome 42 } // namespace chrome
43 43
44 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_UTIL_H_ 44 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_controller_browsertest.cc ('k') | chrome/browser/ui/app_list/app_list_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698