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" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
14 | 14 |
15 class AppListControllerDelegate; | 15 class AppListControllerDelegate; |
16 class CommandLine; | 16 class CommandLine; |
17 class PrefRegistrySimple; | 17 class PrefRegistrySimple; |
18 class Profile; | 18 class Profile; |
19 | 19 |
| 20 namespace app_list { |
| 21 class AppListModel; |
| 22 } |
| 23 |
20 namespace base { | 24 namespace base { |
21 class FilePath; | 25 class FilePath; |
22 } | 26 } |
23 | 27 |
24 namespace gfx { | 28 namespace gfx { |
25 class ImageSkia; | 29 class ImageSkia; |
26 } | 30 } |
27 | 31 |
28 class AppListService { | 32 class AppListService { |
29 public: | 33 public: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Enable the app list. What this does specifically will depend on the host | 77 // Enable the app list. What this does specifically will depend on the host |
74 // operating system and shell. | 78 // operating system and shell. |
75 virtual void EnableAppList(Profile* initial_profile) = 0; | 79 virtual void EnableAppList(Profile* initial_profile) = 0; |
76 | 80 |
77 // Get the window the app list is in, or NULL if the app list isn't visible. | 81 // Get the window the app list is in, or NULL if the app list isn't visible. |
78 virtual gfx::NativeWindow GetAppListWindow() = 0; | 82 virtual gfx::NativeWindow GetAppListWindow() = 0; |
79 | 83 |
80 // Exposed to allow testing of the controller delegate. | 84 // Exposed to allow testing of the controller delegate. |
81 virtual AppListControllerDelegate* CreateControllerDelegate() = 0; | 85 virtual AppListControllerDelegate* CreateControllerDelegate() = 0; |
82 | 86 |
| 87 // Retrieve the model, for use in integration testing. |
| 88 virtual app_list::AppListModel* GetAppListModelForTesting() = 0; |
| 89 |
83 protected: | 90 protected: |
84 AppListService() {} | 91 AppListService() {} |
85 virtual ~AppListService() {} | 92 virtual ~AppListService() {} |
86 | 93 |
87 // Do any once off initialization needed for the app list. | 94 // Do any once off initialization needed for the app list. |
88 virtual void Init(Profile* initial_profile) = 0; | 95 virtual void Init(Profile* initial_profile) = 0; |
89 | 96 |
90 private: | 97 private: |
91 DISALLOW_COPY_AND_ASSIGN(AppListService); | 98 DISALLOW_COPY_AND_ASSIGN(AppListService); |
92 }; | 99 }; |
93 | 100 |
94 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ | 101 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
OLD | NEW |