OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 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/test/apps_grid_view_test_api.h" | |
6 | |
7 #include "ui/app_list/apps_grid_view.h" | |
8 | |
9 namespace app_list { | |
10 namespace test { | |
11 | |
12 AppsGridViewTestApi::AppsGridViewTestApi(AppsGridView* view) | |
13 : view_(view) { | |
14 } | |
15 | |
16 AppsGridViewTestApi::~AppsGridViewTestApi() { | |
17 } | |
18 | |
19 views::View* AppsGridViewTestApi::GetViewAtModelIndex(int index) const { | |
20 return view_->view_model_.view_at(index); | |
21 } | |
22 | |
23 void AppsGridViewTestApi::LayoutToIdealBounds() { | |
24 view_->bounds_animator_.Cancel(); | |
25 view_->Layout(); | |
26 } | |
27 | |
28 void AppsGridViewTestApi::SetPageFlipDelay(int page_flip_delay_in_ms) { | |
29 view_->page_flip_delay_in_ms_ = page_flip_delay_in_ms; | |
30 } | |
31 | |
32 } // namespace test; | |
33 } // namespace app_list | |
OLD | NEW |