| 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 Profile* GetCurrentAppListProfile() OVERRIDE; | |
| 28 virtual AppListControllerDelegate* CreateControllerDelegate() OVERRIDE; | |
| 29 | |
| 30 // AppListServiceImpl overrides: | |
| 31 virtual void CreateShortcut() OVERRIDE; | |
| 32 | |
| 33 private: | |
| 34 friend struct DefaultSingletonTraits<AppListServiceLinux>; | |
| 35 | |
| 36 AppListServiceLinux(); | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(AppListServiceLinux); | |
| 39 }; | |
| 40 | |
| 41 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_LINUX_H_ | |
| OLD | NEW |