OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_LINUX_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_LINUX_H_ |
| 7 |
| 8 #include "chrome/browser/ui/app_list/app_list_service_impl.h" |
| 9 |
| 10 template <typename T> struct DefaultSingletonTraits; |
| 11 |
| 12 // AppListServiceLinux manages global resources needed for the app list to |
| 13 // operate, and controls when the app list is opened and closed. |
| 14 class AppListServiceLinux : public AppListServiceImpl { |
| 15 public: |
| 16 virtual ~AppListServiceLinux(); |
| 17 |
| 18 static AppListServiceLinux* GetInstance(); |
| 19 |
| 20 // AppListService overrides: |
| 21 virtual void Init(Profile* initial_profile) OVERRIDE; |
| 22 virtual void CreateForProfile(Profile* requested_profile) OVERRIDE; |
| 23 virtual void ShowForProfile(Profile* requested_profile) OVERRIDE; |
| 24 virtual void DismissAppList() OVERRIDE; |
| 25 virtual bool IsAppListVisible() const OVERRIDE; |
| 26 virtual gfx::NativeWindow GetAppListWindow() OVERRIDE; |
| 27 virtual AppListControllerDelegate* CreateControllerDelegate() OVERRIDE; |
| 28 |
| 29 // AppListServiceImpl overrides: |
| 30 virtual void CreateShortcut() OVERRIDE; |
| 31 |
| 32 private: |
| 33 friend struct DefaultSingletonTraits<AppListServiceLinux>; |
| 34 |
| 35 AppListServiceLinux(); |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(AppListServiceLinux); |
| 38 }; |
| 39 |
| 40 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_LINUX_H_ |
OLD | NEW |