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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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(chrome::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); | |
xiyuan
2015/01/16 20:31:52
app_list_service_ash.cc and app_list_service_linux
Mike Lerman
2015/01/19 21:08:56
Ah, I did? Those files just aren't in the same sub
| |
58 | 59 |
59 static void RegisterPrefs(PrefRegistrySimple* registry); | 60 static void RegisterPrefs(PrefRegistrySimple* registry); |
60 | 61 |
61 // Initializes the AppListService, and returns true if |command_line| is for | 62 // Initializes the AppListService, and returns true if |command_line| is for |
62 // showing the app list. | 63 // showing the app list. |
63 static bool HandleLaunchCommandLine(const base::CommandLine& command_line, | 64 static bool HandleLaunchCommandLine(const base::CommandLine& command_line, |
64 Profile* launch_profile); | 65 Profile* launch_profile); |
65 | 66 |
66 // Indicates that |callback| should be called next time the app list is | 67 // Indicates that |callback| should be called next time the app list is |
67 // painted. | 68 // painted. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 virtual ~AppListService() {} | 128 virtual ~AppListService() {} |
128 | 129 |
129 // Do any once off initialization needed for the app list. | 130 // Do any once off initialization needed for the app list. |
130 virtual void Init(Profile* initial_profile) = 0; | 131 virtual void Init(Profile* initial_profile) = 0; |
131 | 132 |
132 private: | 133 private: |
133 DISALLOW_COPY_AND_ASSIGN(AppListService); | 134 DISALLOW_COPY_AND_ASSIGN(AppListService); |
134 }; | 135 }; |
135 | 136 |
136 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ | 137 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
OLD | NEW |