Chromium Code Reviews| Index: chrome/browser/ui/app_list/app_list_service_linux.h |
| diff --git a/chrome/browser/ui/app_list/app_list_service_linux.h b/chrome/browser/ui/app_list/app_list_service_linux.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a0f4eb8b1a77a603b182f7592c98903b61ef7b3a |
| --- /dev/null |
| +++ b/chrome/browser/ui/app_list/app_list_service_linux.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright 2013 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_APP_LIST_APP_LIST_SERVICE_LINUX_H_ |
| +#define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_LINUX_H_ |
| + |
| +#include "chrome/browser/ui/app_list/app_list_service_impl.h" |
| + |
| +template <typename T> struct DefaultSingletonTraits; |
| + |
| +// AppListServiceLinux manages global resources needed for the app list to |
| +// operate, and controls when the app list is opened and closed. |
|
koz (OOO until 15th September)
2013/09/26 04:42:34
It would be more accurate to say that it opens and
|
| +class AppListServiceLinux : public AppListServiceImpl { |
| + public: |
| + virtual ~AppListServiceLinux(); |
| + |
| + static AppListServiceLinux* GetInstance(); |
| + |
| + // AppListService overrides: |
| + virtual void Init(Profile* initial_profile) OVERRIDE; |
| + virtual void CreateForProfile(Profile* requested_profile) OVERRIDE; |
| + virtual void ShowForProfile(Profile* requested_profile) OVERRIDE; |
| + virtual void DismissAppList() OVERRIDE; |
| + virtual bool IsAppListVisible() const OVERRIDE; |
| + virtual gfx::NativeWindow GetAppListWindow() OVERRIDE; |
| + virtual AppListControllerDelegate* CreateControllerDelegate() OVERRIDE; |
| + |
| + // AppListServiceImpl overrides: |
| + virtual void CreateShortcut() OVERRIDE; |
| + |
| + private: |
| + friend struct DefaultSingletonTraits<AppListServiceLinux>; |
| + |
| + AppListServiceLinux(); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(AppListServiceLinux); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_LINUX_H_ |