Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Unified Diff: ash/test/app_list_controller_test_api.cc

Issue 1866403006: Revert of AppListController refactoring part 3: Switching over to use AppListShower in Ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus_chrome_delegates_ash_impl
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/test/app_list_controller_test_api.h ('k') | ash/test/shell_test_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/app_list_controller_test_api.cc
diff --git a/ash/test/app_list_controller_test_api.cc b/ash/test/app_list_controller_test_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6201e9ba4bd05919db1e979cd061f11c0d7d73f6
--- /dev/null
+++ b/ash/test/app_list_controller_test_api.cc
@@ -0,0 +1,40 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ash/test/app_list_controller_test_api.h"
+
+#include "ash/test/shell_test_api.h"
+#include "ash/wm/app_list_controller.h"
+#include "ui/app_list/views/app_list_main_view.h"
+#include "ui/app_list/views/app_list_view.h"
+#include "ui/app_list/views/apps_container_view.h"
+#include "ui/app_list/views/apps_grid_view.h"
+#include "ui/app_list/views/contents_view.h"
+#include "ui/app_list/views/start_page_view.h"
+
+namespace ash {
+namespace test {
+
+AppListControllerTestApi::AppListControllerTestApi(Shell* shell)
+ : app_list_controller_(ShellTestApi(shell).app_list_controller()) {}
+
+app_list::AppsGridView* AppListControllerTestApi::GetRootGridView() const {
+ return view()->app_list_main_view()->contents_view()->
+ apps_container_view()->apps_grid_view();
+}
+
+app_list::StartPageView* AppListControllerTestApi::GetStartPageView() const {
+ return view()->app_list_main_view()->contents_view()->start_page_view();
+}
+
+app_list::AppListView* AppListControllerTestApi::view() const {
+ return app_list_controller_->view_;
+}
+
+void AppListControllerTestApi::LayoutContentsView() {
+ view()->app_list_main_view()->contents_view()->Layout();
+}
+
+} // namespace test
+} // namespace ash
« no previous file with comments | « ash/test/app_list_controller_test_api.h ('k') | ash/test/shell_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698