| OLD | NEW |
| 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. |
| 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_ |
| OLD | NEW |