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/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "ui/gfx/native_widget_types.h" |
12 | 13 |
13 class AppListControllerDelegate; | 14 class AppListControllerDelegate; |
14 class CommandLine; | 15 class CommandLine; |
15 class PrefRegistrySimple; | 16 class PrefRegistrySimple; |
16 class Profile; | 17 class Profile; |
17 | 18 |
18 namespace base { | 19 namespace base { |
19 class FilePath; | 20 class FilePath; |
20 } | 21 } |
21 | 22 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Get the profile the app list is currently showing. | 55 // Get the profile the app list is currently showing. |
55 virtual Profile* GetCurrentAppListProfile() = 0; | 56 virtual Profile* GetCurrentAppListProfile() = 0; |
56 | 57 |
57 // Returns true if the app list is visible. | 58 // Returns true if the app list is visible. |
58 virtual bool IsAppListVisible() const = 0; | 59 virtual bool IsAppListVisible() const = 0; |
59 | 60 |
60 // Enable the app list. What this does specifically will depend on the host | 61 // Enable the app list. What this does specifically will depend on the host |
61 // operating system and shell. | 62 // operating system and shell. |
62 virtual void EnableAppList() = 0; | 63 virtual void EnableAppList() = 0; |
63 | 64 |
| 65 // Get the window the app list is in, or NULL if the app list isn't visible. |
| 66 virtual gfx::NativeWindow GetAppListWindow() = 0; |
| 67 |
64 // Exposed to allow testing of the controller delegate. | 68 // Exposed to allow testing of the controller delegate. |
65 virtual AppListControllerDelegate* CreateControllerDelegate() = 0; | 69 virtual AppListControllerDelegate* CreateControllerDelegate() = 0; |
66 | 70 |
67 protected: | 71 protected: |
68 AppListService() {} | 72 AppListService() {} |
69 virtual ~AppListService() {} | 73 virtual ~AppListService() {} |
70 | 74 |
71 // Do any once off initialization needed for the app list. | 75 // Do any once off initialization needed for the app list. |
72 virtual void Init(Profile* initial_profile) = 0; | 76 virtual void Init(Profile* initial_profile) = 0; |
73 | 77 |
74 private: | 78 private: |
75 DISALLOW_COPY_AND_ASSIGN(AppListService); | 79 DISALLOW_COPY_AND_ASSIGN(AppListService); |
76 }; | 80 }; |
77 | 81 |
78 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ | 82 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
OLD | NEW |