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 #include "chrome/browser/ui/ash/app_list/test/app_list_service_ash_test_api.h" | |
6 | |
7 #include "chrome/browser/ui/ash/app_list/app_list_service_ash.h" | |
8 #include "ui/app_list/shower/test/app_list_shower_impl_test_api.h" | |
9 #include "ui/app_list/views/app_list_main_view.h" | |
10 #include "ui/app_list/views/app_list_view.h" | |
11 #include "ui/app_list/views/apps_container_view.h" | |
12 #include "ui/app_list/views/apps_grid_view.h" | |
13 #include "ui/app_list/views/contents_view.h" | |
14 #include "ui/app_list/views/start_page_view.h" | |
15 | |
16 AppListServiceAshTestApi::AppListServiceAshTestApi() {} | |
17 | |
18 app_list::AppListShowerImpl* AppListServiceAshTestApi::GetAppListShower() | |
19 const { | |
20 return AppListServiceAsh::GetInstance()->app_list_shower_.get(); | |
21 } | |
22 | |
23 app_list::AppListView* AppListServiceAshTestApi::GetAppListView() const { | |
24 app_list::test::AppListShowerImplTestApi shower_test_api(GetAppListShower()); | |
25 return shower_test_api.view(); | |
26 } | |
27 | |
28 app_list::AppsGridView* AppListServiceAshTestApi::GetRootGridView() const { | |
29 return GetAppListView() | |
30 ->app_list_main_view() | |
31 ->contents_view() | |
32 ->apps_container_view() | |
33 ->apps_grid_view(); | |
34 } | |
35 | |
36 app_list::StartPageView* AppListServiceAshTestApi::GetStartPageView() const { | |
37 return GetAppListView() | |
38 ->app_list_main_view() | |
39 ->contents_view() | |
40 ->start_page_view(); | |
41 } | |
42 | |
43 void AppListServiceAshTestApi::LayoutContentsView() { | |
44 GetAppListView()->app_list_main_view()->contents_view()->Layout(); | |
45 } | |
OLD | NEW |