Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / ash / test / app_list_controller_test_api.cc
blob6201e9ba4bd05919db1e979cd061f11c0d7d73f6
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.
5 #include "ash/test/app_list_controller_test_api.h"
7 #include "ash/test/shell_test_api.h"
8 #include "ash/wm/app_list_controller.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"
16 namespace ash {
17 namespace test {
19 AppListControllerTestApi::AppListControllerTestApi(Shell* shell)
20 : app_list_controller_(ShellTestApi(shell).app_list_controller()) {}
22 app_list::AppsGridView* AppListControllerTestApi::GetRootGridView() const {
23 return view()->app_list_main_view()->contents_view()->
24 apps_container_view()->apps_grid_view();
27 app_list::StartPageView* AppListControllerTestApi::GetStartPageView() const {
28 return view()->app_list_main_view()->contents_view()->start_page_view();
31 app_list::AppListView* AppListControllerTestApi::view() const {
32 return app_list_controller_->view_;
35 void AppListControllerTestApi::LayoutContentsView() {
36 view()->app_list_main_view()->contents_view()->Layout();
39 } // namespace test
40 } // namespace ash