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

Side by Side Diff: ui/app_list/app_list_model_view.cc

Issue 10388032: Move app list from ash to ui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync, add DEPS and fix missing OWNERS Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/app_list/app_list_model_view.h" 5 #include "ui/app_list/app_list_model_view.h"
6 6
7 #include "ash/app_list/app_list_item_view.h" 7 #include <algorithm>
8 #include "ash/app_list/app_list_model.h"
9 #include "ash/app_list/pagination_model.h"
10 8
11 namespace ash { 9 #include "ui/app_list/app_list_item_view.h"
10 #include "ui/app_list/app_list_model.h"
11 #include "ui/app_list/pagination_model.h"
12
13 namespace app_list {
12 14
13 AppListModelView::AppListModelView(views::ButtonListener* listener, 15 AppListModelView::AppListModelView(views::ButtonListener* listener,
14 PaginationModel* pagination_model) 16 PaginationModel* pagination_model)
15 : model_(NULL), 17 : model_(NULL),
16 listener_(listener), 18 listener_(listener),
17 pagination_model_(pagination_model), 19 pagination_model_(pagination_model),
18 fixed_layout_(false), 20 fixed_layout_(false),
19 cols_(0), 21 cols_(0),
20 rows_per_page_(0), 22 rows_per_page_(0),
21 selected_item_index_(-1) { 23 selected_item_index_(-1) {
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 NOTREACHED(); 299 NOTREACHED();
298 } 300 }
299 301
300 void AppListModelView::TotalPagesChanged() { 302 void AppListModelView::TotalPagesChanged() {
301 } 303 }
302 304
303 void AppListModelView::SelectedPageChanged(int old_selected, int new_selected) { 305 void AppListModelView::SelectedPageChanged(int old_selected, int new_selected) {
304 Layout(); 306 Layout();
305 } 307 }
306 308
307 } // namespace ash 309 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698