OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_APP_LIST_LINUX_APP_LIST_SERVICE_LINUX_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APP_LIST_LINUX_APP_LIST_SERVICE_LINUX_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_APP_LIST_LINUX_APP_LIST_SERVICE_LINUX_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APP_LIST_LINUX_APP_LIST_SERVICE_LINUX_H_ |
7 | 7 |
8 #include "chrome/browser/ui/app_list/app_list_service_views.h" | 8 #include "chrome/browser/ui/app_list/app_list_service_views.h" |
9 #include "ui/app_list/views/app_list_view_observer.h" | 9 #include "ui/app_list/views/app_list_view_observer.h" |
10 | 10 |
11 template <typename T> struct DefaultSingletonTraits; | 11 template <typename T> struct DefaultSingletonTraits; |
12 | 12 |
13 // AppListServiceLinux manages global resources needed for the app list to | 13 // AppListServiceLinux manages global resources needed for the app list to |
14 // operate, and controls when the app list is opened and closed. | 14 // operate, and controls when the app list is opened and closed. |
15 class AppListServiceLinux : public AppListServiceViews, | 15 class AppListServiceLinux : public AppListServiceViews, |
16 public app_list::AppListViewObserver { | 16 public app_list::AppListViewObserver { |
17 public: | 17 public: |
18 virtual ~AppListServiceLinux(); | 18 virtual ~AppListServiceLinux(); |
19 | 19 |
20 static AppListServiceLinux* GetInstance(); | 20 static AppListServiceLinux* GetInstance(); |
21 | 21 |
22 // AppListService overrides: | 22 // AppListService overrides: |
23 virtual void CreateShortcut() OVERRIDE; | 23 virtual void CreateShortcut() override; |
24 | 24 |
25 // app_list::AppListViewObserver overrides: | 25 // app_list::AppListViewObserver overrides: |
26 virtual void OnActivationChanged(views::Widget* widget, bool active) OVERRIDE; | 26 virtual void OnActivationChanged(views::Widget* widget, bool active) override; |
27 | 27 |
28 private: | 28 private: |
29 friend struct DefaultSingletonTraits<AppListServiceLinux>; | 29 friend struct DefaultSingletonTraits<AppListServiceLinux>; |
30 | 30 |
31 // AppListShowerDelegate overrides: | 31 // AppListShowerDelegate overrides: |
32 virtual void OnViewCreated() OVERRIDE; | 32 virtual void OnViewCreated() override; |
33 virtual void OnViewBeingDestroyed() OVERRIDE; | 33 virtual void OnViewBeingDestroyed() override; |
34 virtual void OnViewDismissed() OVERRIDE; | 34 virtual void OnViewDismissed() override; |
35 virtual void MoveNearCursor(app_list::AppListView* view) OVERRIDE; | 35 virtual void MoveNearCursor(app_list::AppListView* view) override; |
36 | 36 |
37 AppListServiceLinux(); | 37 AppListServiceLinux(); |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(AppListServiceLinux); | 39 DISALLOW_COPY_AND_ASSIGN(AppListServiceLinux); |
40 }; | 40 }; |
41 | 41 |
42 #endif // CHROME_BROWSER_UI_VIEWS_APP_LIST_LINUX_APP_LIST_SERVICE_LINUX_H_ | 42 #endif // CHROME_BROWSER_UI_VIEWS_APP_LIST_LINUX_APP_LIST_SERVICE_LINUX_H_ |
OLD | NEW |