| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_SERVICE_ASH_H_ |
| #define CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_SERVICE_ASH_H_ |
| |
| #include "base/memory/scoped_ptr.h" |
| #include "chrome/browser/ui/app_list/app_list_service_impl.h" |
| |
| class AppListControllerDelegateAsh; |
| template <typename T> struct DefaultSingletonTraits; |
| |
| // AppListServiceAsh wraps functionality in ChromeLauncherController and the Ash |
| // Shell for showing and hiding the app list on the Ash desktop. |
| class AppListServiceAsh : public AppListServiceImpl { |
| public: |
| static AppListServiceAsh* GetInstance(); |
| |
| private: |
| friend struct DefaultSingletonTraits<AppListServiceAsh>; |
| |
| AppListServiceAsh(); |
| virtual ~AppListServiceAsh(); |
| |
| // AppListService overrides: |
| virtual base::FilePath GetProfilePath( |
| const base::FilePath& user_data_dir) override; |
| virtual void ShowForProfile(Profile* default_profile) override; |
| virtual bool IsAppListVisible() const override; |
| virtual void DismissAppList() override; |
| virtual void EnableAppList(Profile* initial_profile, |
| AppListEnableSource enable_source) override; |
| virtual gfx::NativeWindow GetAppListWindow() override; |
| virtual Profile* GetCurrentAppListProfile() override; |
| virtual AppListControllerDelegate* GetControllerDelegate() override; |
| |
| // ApplistServiceImpl overrides: |
| virtual void CreateForProfile(Profile* default_profile) override; |
| virtual void DestroyAppList() override; |
| |
| scoped_ptr<AppListControllerDelegateAsh> controller_delegate_; |
| |
| DISALLOW_COPY_AND_ASSIGN(AppListServiceAsh); |
| }; |
| |
| #endif // CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_SERVICE_ASH_H_ |