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

Unified Diff: chrome/browser/ui/ash/app_list/test/app_list_service_ash_test_api.cc

Issue 1770993002: wip: Refactoring Ash's AppListController, moving the bulk of the logic to chrome/browser/ui/ash/app… Base URL: https://chromium.googlesource.com/chromium/src.git@small_5_apps
Patch Set: AppListShower to new component: //ui/app_list/shower, GetViewDelegate() in GetViewDelegate(), test … 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
Index: chrome/browser/ui/ash/app_list/test/app_list_service_ash_test_api.cc
diff --git a/chrome/browser/ui/ash/app_list/test/app_list_service_ash_test_api.cc b/chrome/browser/ui/ash/app_list/test/app_list_service_ash_test_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2bf51972aa15a07e2655fce630da6e9de1dd98fb
--- /dev/null
+++ b/chrome/browser/ui/ash/app_list/test/app_list_service_ash_test_api.cc
@@ -0,0 +1,45 @@
+// 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 "chrome/browser/ui/ash/app_list/test/app_list_service_ash_test_api.h"
+
+#include "chrome/browser/ui/ash/app_list/app_list_service_ash.h"
+#include "ui/app_list/shower/test/app_list_shower_impl_test_api.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"
+
+AppListServiceAshTestApi::AppListServiceAshTestApi() {}
+
+app_list::AppListShowerImpl* AppListServiceAshTestApi::GetAppListShower()
+ const {
+ return AppListServiceAsh::GetInstance()->app_list_shower_.get();
+}
+
+app_list::AppListView* AppListServiceAshTestApi::GetAppListView() const {
+ app_list::test::AppListShowerImplTestApi shower_test_api(GetAppListShower());
+ return shower_test_api.view();
+}
+
+app_list::AppsGridView* AppListServiceAshTestApi::GetRootGridView() const {
+ return GetAppListView()
+ ->app_list_main_view()
+ ->contents_view()
+ ->apps_container_view()
+ ->apps_grid_view();
+}
+
+app_list::StartPageView* AppListServiceAshTestApi::GetStartPageView() const {
+ return GetAppListView()
+ ->app_list_main_view()
+ ->contents_view()
+ ->start_page_view();
+}
+
+void AppListServiceAshTestApi::LayoutContentsView() {
+ GetAppListView()->app_list_main_view()->contents_view()->Layout();
+}
« no previous file with comments | « chrome/browser/ui/ash/app_list/test/app_list_service_ash_test_api.h ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698