Chromium Code Reviews| Index: chrome/browser/ui/ash/app_list/app_list_controller_ash.h |
| diff --git a/chrome/browser/ui/ash/app_list/app_list_controller_ash.h b/chrome/browser/ui/ash/app_list/app_list_controller_ash.h |
| index b8a50f5f4efd6ba831e4071ad688812ee7ccf237..13c778f6b4089b9f7be3c8779f70efcb48823ef6 100644 |
| --- a/chrome/browser/ui/ash/app_list/app_list_controller_ash.h |
| +++ b/chrome/browser/ui/ash/app_list/app_list_controller_ash.h |
| @@ -8,6 +8,9 @@ |
| #include "base/basictypes.h" |
| #include "base/compiler_specific.h" |
| #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
| +#include "chrome/browser/ui/app_list_service.h" |
| + |
| +template <typename T> struct DefaultSingletonTraits; |
|
benwells
2013/02/18 08:31:30
Why is this here?
tapted
2013/02/18 10:27:55
It's needed for the friend declaration in AppListS
benwells
2013/02/18 10:36:17
Oh, of course :)
|
| class AppListControllerDelegateAsh : public AppListControllerDelegate { |
| public: |
| @@ -34,4 +37,21 @@ class AppListControllerDelegateAsh : public AppListControllerDelegate { |
| DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateAsh); |
| }; |
| +class AppListServiceAsh : public AppListService { |
| + public: |
| + static AppListServiceAsh* GetInstance(); |
| + |
| + // AppListService overrides: |
| + virtual void ShowAppList(Profile* default_profile) OVERRIDE; |
| + virtual bool IsAppListVisible() OVERRIDE; |
| + virtual void DismissAppList() OVERRIDE; |
| + |
| + private: |
| + AppListServiceAsh() {} |
| + |
| + friend struct DefaultSingletonTraits<AppListServiceAsh>; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(AppListServiceAsh); |
| +}; |
| + |
| #endif // CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_ |