apps_grid_view_test_api.h revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
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#ifndef UI_APP_LIST_VIEWS_TEST_APPS_GRID_VIEW_TEST_API_H_ 6#define UI_APP_LIST_VIEWS_TEST_APPS_GRID_VIEW_TEST_API_H_ 7 8#include "base/basictypes.h" 9 10namespace views { 11class View; 12} 13 14namespace app_list { 15 16class AppsGridView; 17 18namespace test { 19 20class AppsGridViewTestApi { 21 public: 22 explicit AppsGridViewTestApi(AppsGridView* view); 23 ~AppsGridViewTestApi(); 24 25 views::View* GetViewAtModelIndex(int index) const; 26 27 void LayoutToIdealBounds(); 28 29 void SetPageFlipDelay(int page_flip_delay_in_ms); 30 31 private: 32 AppsGridView* view_; 33 34 DISALLOW_COPY_AND_ASSIGN(AppsGridViewTestApi); 35}; 36 37} // namespace test 38} // namespace app_list 39 40#endif // UI_APP_LIST_VIEWS_TEST_APPS_GRID_VIEW_TEST_API_H_ 41