Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Side by Side Diff: ui/app_list/test/apps_grid_view_test_api.cc

Issue 11784034: Skeleton for app_list on OSX, and refactoring for enable_app_list=1 on OS=="mac". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase for 175876 and 175961 Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/app_list/test/apps_grid_view_test_api.h ('k') | ui/app_list/views/app_list_background.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « ui/app_list/test/apps_grid_view_test_api.h ('k') | ui/app_list/views/app_list_background.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698