OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_APP_LIST_APP_LIST_SERVICE_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_VIEWS_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/ui/app_list/app_list_service_impl.h" | 9 #include "chrome/browser/ui/app_list/app_list_service_impl.h" |
10 #include "chrome/browser/ui/app_list/app_list_shower_delegate.h" | 10 #include "chrome/browser/ui/app_list/app_list_shower_delegate.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // view must be destroyed. | 31 // view must be destroyed. |
32 virtual void OnViewBeingDestroyed(); | 32 virtual void OnViewBeingDestroyed(); |
33 | 33 |
34 // AppListService overrides: | 34 // AppListService overrides: |
35 void Init(Profile* initial_profile) override; | 35 void Init(Profile* initial_profile) override; |
36 void ShowForProfile(Profile* requested_profile) override; | 36 void ShowForProfile(Profile* requested_profile) override; |
37 void ShowForAppInstall(Profile* profile, | 37 void ShowForAppInstall(Profile* profile, |
38 const std::string& extension_id, | 38 const std::string& extension_id, |
39 bool start_discovery_tracking) override; | 39 bool start_discovery_tracking) override; |
40 void ShowForCustomLauncherPage(Profile* profile) override; | 40 void ShowForCustomLauncherPage(Profile* profile) override; |
| 41 void HideCustomLauncherPage() override; |
41 void DismissAppList() override; | 42 void DismissAppList() override; |
42 bool IsAppListVisible() const override; | 43 bool IsAppListVisible() const override; |
43 gfx::NativeWindow GetAppListWindow() override; | 44 gfx::NativeWindow GetAppListWindow() override; |
44 Profile* GetCurrentAppListProfile() override; | 45 Profile* GetCurrentAppListProfile() override; |
45 AppListControllerDelegate* GetControllerDelegate() override; | 46 AppListControllerDelegate* GetControllerDelegate() override; |
46 | 47 |
47 // AppListServiceImpl overrides: | 48 // AppListServiceImpl overrides: |
48 void CreateForProfile(Profile* requested_profile) override; | 49 void CreateForProfile(Profile* requested_profile) override; |
49 void DestroyAppList() override; | 50 void DestroyAppList() override; |
50 | 51 |
51 // AppListShowerDelegate overrides: | 52 // AppListShowerDelegate overrides: |
52 AppListViewDelegate* GetViewDelegateForCreate() override; | 53 AppListViewDelegate* GetViewDelegateForCreate() override; |
53 | 54 |
54 private: | 55 private: |
55 // Switches to |state|, unless it is |INVALID_STATE| (in which case, opens on | 56 // Switches to |state|, unless it is |INVALID_STATE| (in which case, opens on |
56 // the default state). | 57 // the default state). |
57 void ShowForProfileInternal(Profile* profile, | 58 void ShowForProfileInternal(Profile* profile, |
58 app_list::AppListModel::State state); | 59 app_list::AppListModel::State state); |
59 | 60 |
60 // Responsible for creating the app list and responding to profile changes. | 61 // Responsible for creating the app list and responding to profile changes. |
61 AppListShower shower_; | 62 AppListShower shower_; |
62 | 63 |
63 bool can_dismiss_; | 64 bool can_dismiss_; |
64 scoped_ptr<AppListControllerDelegate> controller_delegate_; | 65 scoped_ptr<AppListControllerDelegate> controller_delegate_; |
65 | 66 |
66 DISALLOW_COPY_AND_ASSIGN(AppListServiceViews); | 67 DISALLOW_COPY_AND_ASSIGN(AppListServiceViews); |
67 }; | 68 }; |
68 | 69 |
69 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_VIEWS_H_ | 70 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_VIEWS_H_ |
OLD | NEW |