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" |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
benwells
2013/11/15 02:13:59
Nit: not needed.
| |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "chrome/browser/ui/host_desktop.h" | 13 #include "chrome/browser/ui/host_desktop.h" |
14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
15 | 15 |
16 class AppListControllerDelegate; | 16 class AppListControllerDelegate; |
17 class CommandLine; | 17 class CommandLine; |
18 class PrefRegistrySimple; | 18 class PrefRegistrySimple; |
19 class Profile; | 19 class Profile; |
20 | 20 |
21 namespace base { | 21 namespace base { |
(...skipping 12 matching lines...) Expand all Loading... | |
34 | 34 |
35 // Call Init for all AppListService instances on this platform. | 35 // Call Init for all AppListService instances on this platform. |
36 static void InitAll(Profile* initial_profile); | 36 static void InitAll(Profile* initial_profile); |
37 | 37 |
38 static void RegisterPrefs(PrefRegistrySimple* registry); | 38 static void RegisterPrefs(PrefRegistrySimple* registry); |
39 | 39 |
40 static void RecordShowTimings(const CommandLine& command_line); | 40 static void RecordShowTimings(const CommandLine& command_line); |
41 | 41 |
42 // Indicates that |callback| should be called next time the app list is | 42 // Indicates that |callback| should be called next time the app list is |
43 // painted. | 43 // painted. |
44 virtual void SetAppListNextPaintCallback(const base::Closure& callback) = 0; | 44 virtual void SetAppListNextPaintCallback(void (*callback)()) = 0; |
45 | 45 |
46 // Perform Chrome first run logic. This is executed before Chrome's threads | 46 // Perform Chrome first run logic. This is executed before Chrome's threads |
47 // have been created. | 47 // have been created. |
48 virtual void HandleFirstRun() = 0; | 48 virtual void HandleFirstRun() = 0; |
49 | 49 |
50 virtual base::FilePath GetProfilePath( | 50 virtual base::FilePath GetProfilePath( |
51 const base::FilePath& user_data_dir) = 0; | 51 const base::FilePath& user_data_dir) = 0; |
52 virtual void SetProfilePath(const base::FilePath& profile_path) = 0; | 52 virtual void SetProfilePath(const base::FilePath& profile_path) = 0; |
53 | 53 |
54 // Show the app list for the profile configured in the user data dir for the | 54 // Show the app list for the profile configured in the user data dir for the |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 virtual ~AppListService() {} | 87 virtual ~AppListService() {} |
88 | 88 |
89 // Do any once off initialization needed for the app list. | 89 // Do any once off initialization needed for the app list. |
90 virtual void Init(Profile* initial_profile) = 0; | 90 virtual void Init(Profile* initial_profile) = 0; |
91 | 91 |
92 private: | 92 private: |
93 DISALLOW_COPY_AND_ASSIGN(AppListService); | 93 DISALLOW_COPY_AND_ASSIGN(AppListService); |
94 }; | 94 }; |
95 | 95 |
96 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ | 96 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
OLD | NEW |