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 ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_ |
6 #define ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_ | 6 #define ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 namespace app_list { | 10 namespace app_list { |
11 class AppListView; | 11 class AppListView; |
12 class AppsGridView; | 12 class AppsGridView; |
| 13 class StartPageView; |
13 } | 14 } |
14 | 15 |
15 namespace ash { | 16 namespace ash { |
16 class AppListController; | 17 class AppListController; |
17 class Shell; | 18 class Shell; |
18 | 19 |
19 namespace test { | 20 namespace test { |
20 | 21 |
21 // Accesses private data from an AppListController for testing. | 22 // Accesses private data from an AppListController for testing. |
22 class AppListControllerTestApi { | 23 class AppListControllerTestApi { |
23 public: | 24 public: |
24 explicit AppListControllerTestApi(Shell* shell); | 25 explicit AppListControllerTestApi(Shell* shell); |
25 | 26 |
26 // Gets the root level apps grid view. | 27 // Gets the root level apps grid view. |
27 app_list::AppsGridView* GetRootGridView(); | 28 app_list::AppsGridView* GetRootGridView() const; |
28 | 29 |
29 app_list::AppListView* view(); | 30 // Gets the start page view. |
| 31 app_list::StartPageView* GetStartPageView() const; |
| 32 |
| 33 app_list::AppListView* view() const; |
| 34 |
| 35 // Calls Layout() on the ContentsView. |
| 36 void LayoutContentsView(); |
30 | 37 |
31 private: | 38 private: |
32 AppListController* app_list_controller_; // Not owned. | 39 AppListController* app_list_controller_; // Not owned. |
33 | 40 |
34 DISALLOW_COPY_AND_ASSIGN(AppListControllerTestApi); | 41 DISALLOW_COPY_AND_ASSIGN(AppListControllerTestApi); |
35 }; | 42 }; |
36 | 43 |
37 } // namespace test | 44 } // namespace test |
38 } // namespace ash | 45 } // namespace ash |
39 | 46 |
40 #endif // ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_ | 47 #endif // ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_ |
OLD | NEW |