OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_APP_LIST_TEST_APP_LIST_SERVICE_ASH_TEST_API_H_ |
6 #define ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_ | 6 #define CHROME_BROWSER_UI_ASH_APP_LIST_TEST_APP_LIST_SERVICE_ASH_TEST_API_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 | 9 |
10 namespace app_list { | 10 namespace app_list { |
| 11 class AppListShowerImpl; |
11 class AppListView; | 12 class AppListView; |
12 class AppsGridView; | 13 class AppsGridView; |
13 class StartPageView; | 14 class StartPageView; |
14 } | 15 } |
15 | 16 |
16 namespace ash { | 17 // Accesses private data from an AppListServiceAsh and AppListShowerImpl |
17 class AppListController; | 18 // for testing. |
18 class Shell; | 19 class AppListServiceAshTestApi { |
| 20 public: |
| 21 AppListServiceAshTestApi(); |
19 | 22 |
20 namespace test { | 23 app_list::AppListShowerImpl* GetAppListShower() const; |
21 | 24 |
22 // Accesses private data from an AppListController for testing. | 25 app_list::AppListView* GetAppListView() const; |
23 class AppListControllerTestApi { | |
24 public: | |
25 explicit AppListControllerTestApi(Shell* shell); | |
26 | 26 |
27 // Gets the root level apps grid view. | 27 // Gets the root level apps grid view. |
28 app_list::AppsGridView* GetRootGridView() const; | 28 app_list::AppsGridView* GetRootGridView() const; |
29 | 29 |
30 // Gets the start page view. | 30 // Gets the start page view. |
31 app_list::StartPageView* GetStartPageView() const; | 31 app_list::StartPageView* GetStartPageView() const; |
32 | 32 |
33 app_list::AppListView* view() const; | 33 // Calls Layout() on the app_list::ContentsView. |
34 | |
35 // Calls Layout() on the ContentsView. | |
36 void LayoutContentsView(); | 34 void LayoutContentsView(); |
37 | 35 |
38 private: | 36 private: |
39 AppListController* app_list_controller_; // Not owned. | 37 DISALLOW_COPY_AND_ASSIGN(AppListServiceAshTestApi); |
40 | |
41 DISALLOW_COPY_AND_ASSIGN(AppListControllerTestApi); | |
42 }; | 38 }; |
43 | 39 |
44 } // namespace test | 40 #endif // CHROME_BROWSER_UI_ASH_APP_LIST_TEST_APP_LIST_SERVICE_ASH_TEST_API_H_ |
45 } // namespace ash | |
46 | |
47 #endif // ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_ | |
OLD | NEW |