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 #include "chrome/browser/ui/app_list/app_list_service_views.h" | 5 #include "chrome/browser/ui/app_list/app_list_service_views.h" |
6 | 6 |
7 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" | 7 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
8 #include "chrome/browser/ui/app_list/scoped_keep_alive.h" | 8 #include "chrome/browser/ui/app_list/scoped_keep_alive.h" |
9 | 9 |
10 AppListServiceViews::AppListServiceViews( | 10 AppListServiceViews::AppListServiceViews( |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 } | 50 } |
51 | 51 |
52 bool AppListServiceViews::IsAppListVisible() const { | 52 bool AppListServiceViews::IsAppListVisible() const { |
53 return shower_.IsAppListVisible(); | 53 return shower_.IsAppListVisible(); |
54 } | 54 } |
55 | 55 |
56 gfx::NativeWindow AppListServiceViews::GetAppListWindow() { | 56 gfx::NativeWindow AppListServiceViews::GetAppListWindow() { |
57 return shower_.GetWindow(); | 57 return shower_.GetWindow(); |
58 } | 58 } |
59 | 59 |
| 60 app_list::AppListView* AppListServiceViews::GetAppListView() { |
| 61 return shower_.app_list(); |
| 62 } |
| 63 |
60 Profile* AppListServiceViews::GetCurrentAppListProfile() { | 64 Profile* AppListServiceViews::GetCurrentAppListProfile() { |
61 return shower_.profile(); | 65 return shower_.profile(); |
62 } | 66 } |
63 | 67 |
64 AppListControllerDelegate* AppListServiceViews::GetControllerDelegate() { | 68 AppListControllerDelegate* AppListServiceViews::GetControllerDelegate() { |
65 return controller_delegate_.get(); | 69 return controller_delegate_.get(); |
66 } | 70 } |
67 | 71 |
68 AppListControllerDelegate* | 72 AppListControllerDelegate* |
69 AppListServiceViews::GetControllerDelegateForCreate() { | 73 AppListServiceViews::GetControllerDelegateForCreate() { |
70 return controller_delegate_.get(); | 74 return controller_delegate_.get(); |
71 } | 75 } |
OLD | NEW |