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

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

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.h
diff --git a/chrome/browser/ui/ash/app_list/test/app_list_service_ash_test_api.h b/chrome/browser/ui/ash/app_list/test/app_list_service_ash_test_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..f51bb83750cce763d3917b80e69671882478cdb0
--- /dev/null
+++ b/chrome/browser/ui/ash/app_list/test/app_list_service_ash_test_api.h
@@ -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.
+
+#ifndef CHROME_BROWSER_UI_ASH_APP_LIST_TEST_APP_LIST_SERVICE_ASH_TEST_API_H_
+#define CHROME_BROWSER_UI_ASH_APP_LIST_TEST_APP_LIST_SERVICE_ASH_TEST_API_H_
+
+#include "base/macros.h"
+
+namespace app_list {
+class AppListShowerImpl;
+class AppListView;
+class AppsGridView;
+class StartPageView;
+}
+
+// Accesses private data from an AppListServiceAsh and AppListShowerImpl
+// for testing.
+class AppListServiceAshTestApi {
+ public:
+ AppListServiceAshTestApi();
+
+ app_list::AppListShowerImpl* GetAppListShower() const;
+
+ app_list::AppListView* GetAppListView() const;
+
+ // Gets the root level apps grid view.
+ app_list::AppsGridView* GetRootGridView() const;
+
+ // Gets the start page view.
+ app_list::StartPageView* GetStartPageView() const;
+
+ // Calls Layout() on the app_list::ContentsView.
+ void LayoutContentsView();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AppListServiceAshTestApi);
+};
+
+#endif // CHROME_BROWSER_UI_ASH_APP_LIST_TEST_APP_LIST_SERVICE_ASH_TEST_API_H_

Powered by Google App Engine
This is Rietveld 408576698