OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // Unused since detecting a reinstall and | 44 // Unused since detecting a reinstall and |
45 // detecting a pref are mutually exclusive. | 45 // detecting a pref are mutually exclusive. |
46 ENABLE_SHOWN_UNDISCOVERED, // This overrides a prior ENABLE_FOR_APP_INSTALL | 46 ENABLE_SHOWN_UNDISCOVERED, // This overrides a prior ENABLE_FOR_APP_INSTALL |
47 // when the launcher is auto-shown without | 47 // when the launcher is auto-shown without |
48 // being "discovered" beforehand. | 48 // being "discovered" beforehand. |
49 ENABLE_NUM_ENABLE_SOURCES | 49 ENABLE_NUM_ENABLE_SOURCES |
50 }; | 50 }; |
51 | 51 |
52 // Get the AppListService for the current platform and specified | 52 // Get the AppListService for the current platform and specified |
53 // |desktop_type|. | 53 // |desktop_type|. |
54 static AppListService* Get(chrome::HostDesktopType desktop_type); | 54 static AppListService* Get(ui::HostDesktopType desktop_type); |
55 | 55 |
56 // Call Init for all AppListService instances on this platform. | 56 // Call Init for all AppListService instances on this platform. |
57 static void InitAll(Profile* initial_profile, | 57 static void InitAll(Profile* initial_profile, |
58 const base::FilePath& profile_path); | 58 const base::FilePath& profile_path); |
59 | 59 |
60 static void RegisterPrefs(PrefRegistrySimple* registry); | 60 static void RegisterPrefs(PrefRegistrySimple* registry); |
61 | 61 |
62 // Initializes the AppListService, and returns true if |command_line| is for | 62 // Initializes the AppListService, and returns true if |command_line| is for |
63 // showing the app list. | 63 // showing the app list. |
64 static bool HandleLaunchCommandLine(const base::CommandLine& command_line, | 64 static bool HandleLaunchCommandLine(const base::CommandLine& command_line, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 virtual ~AppListService() {} | 132 virtual ~AppListService() {} |
133 | 133 |
134 // Do any once off initialization needed for the app list. | 134 // Do any once off initialization needed for the app list. |
135 virtual void Init(Profile* initial_profile) = 0; | 135 virtual void Init(Profile* initial_profile) = 0; |
136 | 136 |
137 private: | 137 private: |
138 DISALLOW_COPY_AND_ASSIGN(AppListService); | 138 DISALLOW_COPY_AND_ASSIGN(AppListService); |
139 }; | 139 }; |
140 | 140 |
141 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ | 141 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
OLD | NEW |