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 | 44 |
45 // Get the AppListService for the current platform and specified | 45 // Get the AppListService for the current platform and specified |
46 // |desktop_type|. | 46 // |desktop_type|. |
47 static AppListService* Get(chrome::HostDesktopType desktop_type); | 47 static AppListService* Get(chrome::HostDesktopType desktop_type); |
48 | 48 |
49 // Call Init for all AppListService instances on this platform. | 49 // Call Init for all AppListService instances on this platform. |
50 static void InitAll(Profile* initial_profile); | 50 static void InitAll(Profile* initial_profile); |
51 | 51 |
52 static void RegisterPrefs(PrefRegistrySimple* registry); | 52 static void RegisterPrefs(PrefRegistrySimple* registry); |
53 | 53 |
54 static void RecordShowTimings(const base::CommandLine& command_line); | 54 // Initializes the AppListService, and returns true if |command_line| is for |
| 55 // showing the app list. |
| 56 static bool HandleLaunchCommandLine(const base::CommandLine& command_line, |
| 57 Profile* launch_profile); |
55 | 58 |
56 // Indicates that |callback| should be called next time the app list is | 59 // Indicates that |callback| should be called next time the app list is |
57 // painted. | 60 // painted. |
58 virtual void SetAppListNextPaintCallback(void (*callback)()) = 0; | 61 virtual void SetAppListNextPaintCallback(void (*callback)()) = 0; |
59 | 62 |
60 // Perform Chrome first run logic. This is executed before Chrome's threads | 63 // Perform Chrome first run logic. This is executed before Chrome's threads |
61 // have been created. | 64 // have been created. |
62 virtual void HandleFirstRun() = 0; | 65 virtual void HandleFirstRun() = 0; |
63 | 66 |
64 virtual base::FilePath GetProfilePath( | 67 virtual base::FilePath GetProfilePath( |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 virtual ~AppListService() {} | 114 virtual ~AppListService() {} |
112 | 115 |
113 // Do any once off initialization needed for the app list. | 116 // Do any once off initialization needed for the app list. |
114 virtual void Init(Profile* initial_profile) = 0; | 117 virtual void Init(Profile* initial_profile) = 0; |
115 | 118 |
116 private: | 119 private: |
117 DISALLOW_COPY_AND_ASSIGN(AppListService); | 120 DISALLOW_COPY_AND_ASSIGN(AppListService); |
118 }; | 121 }; |
119 | 122 |
120 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ | 123 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
OLD | NEW |