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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, |
65 Profile* launch_profile); | 65 Profile* launch_profile); |
66 | 66 |
67 // 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 |
68 // painted. | 68 // painted. |
69 virtual void SetAppListNextPaintCallback(void (*callback)()) = 0; | 69 virtual void SetAppListNextPaintCallback(void (*callback)()) = 0; |
70 | 70 |
71 virtual base::FilePath GetProfilePath( | 71 virtual base::FilePath GetProfilePath() = 0; |
72 const base::FilePath& user_data_dir) = 0; | |
73 virtual void SetProfilePath(const base::FilePath& profile_path) = 0; | 72 virtual void SetProfilePath(const base::FilePath& profile_path) = 0; |
74 | 73 |
75 // Show the app list for the profile configured in the user data dir for the | 74 // Show the app list for the profile configured in the user data dir for the |
76 // current browser process. | 75 // current browser process. |
77 virtual void Show() = 0; | 76 virtual void Show() = 0; |
78 | 77 |
79 // Show the app list for the given profile. If it differs from the profile the | 78 // Show the app list for the given profile. If it differs from the profile the |
80 // app list is currently showing, repopulate the app list and save the new | 79 // app list is currently showing, repopulate the app list and save the new |
81 // profile to local prefs as the default app list profile. | 80 // profile to local prefs as the default app list profile. |
82 virtual void ShowForProfile(Profile* requested_profile) = 0; | 81 virtual void ShowForProfile(Profile* requested_profile) = 0; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 virtual ~AppListService() {} | 131 virtual ~AppListService() {} |
133 | 132 |
134 // Do any once off initialization needed for the app list. | 133 // Do any once off initialization needed for the app list. |
135 virtual void Init(Profile* initial_profile) = 0; | 134 virtual void Init(Profile* initial_profile) = 0; |
136 | 135 |
137 private: | 136 private: |
138 DISALLOW_COPY_AND_ASSIGN(AppListService); | 137 DISALLOW_COPY_AND_ASSIGN(AppListService); |
139 }; | 138 }; |
140 | 139 |
141 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ | 140 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
OLD | NEW |