OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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. | |
4 | |
5 #ifndef UI_APP_LIST_VIEWS_TEST_APP_LIST_VIEW_TEST_API_H_ | |
6 #define UI_APP_LIST_VIEWS_TEST_APP_LIST_VIEW_TEST_API_H_ | |
7 | |
8 #include "base/callback.h" | |
9 #include "base/macros.h" | |
10 | |
11 namespace app_list { | |
12 class AppListView; | |
13 } // namespace app_list | |
tapted
2016/07/26 01:34:42
this should enclose AppListViewTestApi so we can r
calamity
2016/07/26 08:38:39
Done.
| |
14 | |
15 namespace test { | |
16 | |
17 // Allow access to private variables of the AppListView for testing. | |
18 class AppListViewTestApi { | |
19 public: | |
20 explicit AppListViewTestApi(app_list::AppListView* view); | |
21 virtual ~AppListViewTestApi(); | |
tapted
2016/07/26 01:34:42
this doesn't need to be virtual. But also it can p
calamity
2016/07/26 08:38:39
Done.
| |
22 | |
23 bool is_overlay_visible(); | |
24 void SetNextPaintCallback(const base::Closure& callback); | |
25 | |
26 private: | |
27 app_list::AppListView* view_; | |
28 | |
29 DISALLOW_COPY_AND_ASSIGN(AppListViewTestApi); | |
30 }; | |
31 | |
32 } // namespace test | |
33 | |
34 #endif // UI_APP_LIST_VIEWS_TEST_APP_LIST_VIEW_TEST_API_H_ | |
OLD | NEW |