| 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; | |
| 13 } | 12 } |
| 14 | 13 |
| 15 namespace ash { | 14 namespace ash { |
| 16 class Shell; | 15 class Shell; |
| 17 namespace internal { | 16 namespace internal { |
| 18 class AppListController; | 17 class AppListController; |
| 19 } | 18 } |
| 20 | 19 |
| 21 namespace test { | 20 namespace test { |
| 22 | 21 |
| 23 // Accesses private data from an AppListController for testing. | 22 // Accesses private data from an AppListController for testing. |
| 24 class AppListControllerTestApi { | 23 class AppListControllerTestApi { |
| 25 public: | 24 public: |
| 26 explicit AppListControllerTestApi(Shell* shell); | 25 explicit AppListControllerTestApi(Shell* shell); |
| 27 | 26 |
| 28 // Gets the root level apps grid view. | |
| 29 app_list::AppsGridView* GetRootGridView(); | |
| 30 | |
| 31 app_list::AppListView* view(); | 27 app_list::AppListView* view(); |
| 32 | 28 |
| 33 private: | 29 private: |
| 34 internal::AppListController* app_list_controller_; // Not owned. | 30 internal::AppListController* app_list_controller_; // Not owned. |
| 35 | 31 |
| 36 DISALLOW_COPY_AND_ASSIGN(AppListControllerTestApi); | 32 DISALLOW_COPY_AND_ASSIGN(AppListControllerTestApi); |
| 37 }; | 33 }; |
| 38 | 34 |
| 39 } // namespace test | 35 } // namespace test |
| 40 } // namespace ash | 36 } // namespace ash |
| 41 | 37 |
| 42 #endif // ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_ | 38 #endif // ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_ |
| OLD | NEW |