| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_UTIL_H_ | |
| 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_UTIL_H_ | |
| 7 | |
| 8 #include "base/file_path.h" | |
| 9 | |
| 10 class PrefRegistrySimple; | |
| 11 class Profile; | |
| 12 | |
| 13 namespace gfx { | |
| 14 class ImageSkia; | |
| 15 } | |
| 16 | |
| 17 namespace chrome { | |
| 18 | |
| 19 // TODO(koz/benwells): These functions should be put on an AppList class that | |
| 20 // can be accessed as a global. | |
| 21 | |
| 22 // Do any once off initialization needed for the app list. | |
| 23 void InitAppList(Profile* profile); | |
| 24 | |
| 25 // Show the app list. | |
| 26 void ShowAppList(Profile* profile); | |
| 27 | |
| 28 // Register local state preferences for the app list. | |
| 29 void RegisterAppListPrefs(PrefRegistrySimple* registry); | |
| 30 | |
| 31 // Change the profile that the app list is showing. | |
| 32 void SetAppListProfile(const base::FilePath& profile_file_path); | |
| 33 | |
| 34 // Get the path of the profile to be used with the app list. | |
| 35 base::FilePath GetAppListProfilePath(const base::FilePath& user_data_dir); | |
| 36 | |
| 37 // Dismiss the app list. | |
| 38 void DismissAppList(); | |
| 39 | |
| 40 // Get the profile the app list is currently showing. | |
| 41 Profile* GetCurrentAppListProfile(); | |
| 42 | |
| 43 // Returns true if the app list is visible. | |
| 44 bool IsAppListVisible(); | |
| 45 | |
| 46 // Notify the app list that an extension has started downloading. | |
| 47 void NotifyAppListOfBeginExtensionInstall( | |
| 48 Profile* profile, | |
| 49 const std::string& extension_id, | |
| 50 const std::string& extension_name, | |
| 51 const gfx::ImageSkia& installing_icon); | |
| 52 | |
| 53 void NotifyAppListOfDownloadProgress( | |
| 54 Profile* profile, | |
| 55 const std::string& extension_id, | |
| 56 int percent_downloaded); | |
| 57 | |
| 58 void NotifyAppListOfExtensionInstallFailure( | |
| 59 Profile* profile, | |
| 60 const std::string& extension_id); | |
| 61 | |
| 62 } // namespace chrome | |
| 63 | |
| 64 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_UTIL_H_ | |
| OLD | NEW |