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 #include "ui/app_list/views/test/app_list_view_test_api.h" |
| 6 |
| 7 #include "ui/app_list/views/app_list_view.h" |
| 8 |
| 9 namespace app_list { |
| 10 namespace test { |
| 11 |
| 12 AppListViewTestApi::AppListViewTestApi(app_list::AppListView* view) |
| 13 : view_(view) {} |
| 14 |
| 15 bool AppListViewTestApi::is_overlay_visible() { |
| 16 DCHECK(view_->overlay_view_); |
| 17 return view_->overlay_view_->visible(); |
| 18 } |
| 19 |
| 20 void AppListViewTestApi::SetNextPaintCallback(const base::Closure& callback) { |
| 21 view_->next_paint_callback_ = callback; |
| 22 } |
| 23 |
| 24 } // namespace test |
| 25 } // namespace app_list |
OLD | NEW |