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.
5 #include "ui/app_list/views/test/apps_grid_view_test_api.h"
7 #include "ui/app_list/views/apps_grid_view.h"
12 AppsGridViewTestApi::AppsGridViewTestApi(AppsGridView* view)
16 AppsGridViewTestApi::~AppsGridViewTestApi() {
19 views::View* AppsGridViewTestApi::GetViewAtModelIndex(int index) const {
20 return view_->view_model_.view_at(index);
23 void AppsGridViewTestApi::LayoutToIdealBounds() {
24 view_->bounds_animator_.Cancel();
28 void AppsGridViewTestApi::SetPageFlipDelay(int page_flip_delay_in_ms) {
29 view_->page_flip_delay_in_ms_ = page_flip_delay_in_ms;
33 } // namespace app_list