Roll src/third_party/WebKit c8d1660:ae3684d (svn 197337:197343)
[chromium-blink-merge.git] / ash / test / app_list_controller_test_api.h
blob6d59bca08272db15a0dddf2dc70630b534f4c702
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
3 // found in the LICENSE file.
5 #ifndef ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_
6 #define ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_
8 #include "base/basictypes.h"
10 namespace app_list {
11 class AppListView;
12 class AppsGridView;
13 class StartPageView;
16 namespace ash {
17 class AppListController;
18 class Shell;
20 namespace test {
22 // Accesses private data from an AppListController for testing.
23 class AppListControllerTestApi {
24 public:
25 explicit AppListControllerTestApi(Shell* shell);
27 // Gets the root level apps grid view.
28 app_list::AppsGridView* GetRootGridView() const;
30 // Gets the start page view.
31 app_list::StartPageView* GetStartPageView() const;
33 app_list::AppListView* view() const;
35 // Calls Layout() on the ContentsView.
36 void LayoutContentsView();
38 private:
39 AppListController* app_list_controller_; // Not owned.
41 DISALLOW_COPY_AND_ASSIGN(AppListControllerTestApi);
44 } // namespace test
45 } // namespace ash
47 #endif // ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_