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 |
| 13 class AppListView; |
| 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 |
| 22 bool is_overlay_visible(); |
| 23 void SetNextPaintCallback(const base::Closure& callback); |
| 24 |
| 25 private: |
| 26 app_list::AppListView* view_; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(AppListViewTestApi); |
| 29 }; |
| 30 |
| 31 } // namespace test |
| 32 } // namespace app_list |
| 33 |
| 34 #endif // UI_APP_LIST_VIEWS_TEST_APP_LIST_VIEW_TEST_API_H_ |
OLD | NEW |