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

Side by Side Diff: ui/app_list/shower/test/app_list_shower_impl_test_api.h

Issue 1830293002: AppListController refactoring part 1: AppListShower implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing target names in .isolate. 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 unified diff | Download patch
« no previous file with comments | « ui/app_list/shower/test/DEPS ('k') | ui/app_list/shower/test/app_list_shower_impl_test_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 UI_APP_LIST_SHOWER_TEST_APP_LIST_SHOWER_IMPL_TEST_API_H_
6 #define ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_ 6 #define UI_APP_LIST_SHOWER_TEST_APP_LIST_SHOWER_IMPL_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 AppListShowerDelegate;
12 class AppListShowerImpl;
11 class AppListView; 13 class AppListView;
12 class AppsGridView;
13 class StartPageView;
14 }
15
16 namespace ash {
17 class AppListController;
18 class Shell;
19 14
20 namespace test { 15 namespace test {
21 16
22 // Accesses private data from an AppListController for testing. 17 // Accesses private data from an AppListController for testing.
23 class AppListControllerTestApi { 18 class AppListShowerImplTestApi {
24 public: 19 public:
25 explicit AppListControllerTestApi(Shell* shell); 20 explicit AppListShowerImplTestApi(AppListShowerImpl* shower);
26 21
27 // Gets the root level apps grid view. 22 AppListView* view();
28 app_list::AppsGridView* GetRootGridView() const; 23 AppListShowerDelegate* shower_delegate();
29
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();
37 24
38 private: 25 private:
39 AppListController* app_list_controller_; // Not owned. 26 AppListShowerImpl* const shower_;
40 27
41 DISALLOW_COPY_AND_ASSIGN(AppListControllerTestApi); 28 DISALLOW_COPY_AND_ASSIGN(AppListShowerImplTestApi);
42 }; 29 };
43 30
44 } // namespace test 31 } // namespace test
45 } // namespace ash 32 } // namespace app_list
46 33
47 #endif // ASH_TEST_APP_LIST_CONTROLLER_TEST_API_H_ 34 #endif // UI_APP_LIST_SHOWER_TEST_APP_LIST_SHOWER_IMPL_TEST_API_H_
OLDNEW
« no previous file with comments | « ui/app_list/shower/test/DEPS ('k') | ui/app_list/shower/test/app_list_shower_impl_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698