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

Side by Side Diff: ui/app_list/views/contents_view.cc

Issue 2143893002: Purge the App Launcher code from Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comment Created 4 years, 4 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
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 "ui/app_list/views/contents_view.h" 5 #include "ui/app_list/views/contents_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 } 321 }
322 322
323 PaginationModel* ContentsView::GetAppsPaginationModel() { 323 PaginationModel* ContentsView::GetAppsPaginationModel() {
324 return apps_container_view_->apps_grid_view()->pagination_model(); 324 return apps_container_view_->apps_grid_view()->pagination_model();
325 } 325 }
326 326
327 void ContentsView::ShowFolderContent(AppListFolderItem* item) { 327 void ContentsView::ShowFolderContent(AppListFolderItem* item) {
328 apps_container_view_->ShowActiveFolder(item); 328 apps_container_view_->ShowActiveFolder(item);
329 } 329 }
330 330
331 void ContentsView::Prerender() {
332 apps_container_view_->apps_grid_view()->Prerender();
333 }
334
335 AppListPage* ContentsView::GetPageView(int index) const { 331 AppListPage* ContentsView::GetPageView(int index) const {
336 DCHECK_GT(static_cast<int>(app_list_pages_.size()), index); 332 DCHECK_GT(static_cast<int>(app_list_pages_.size()), index);
337 return app_list_pages_[index]; 333 return app_list_pages_[index];
338 } 334 }
339 335
340 SearchBoxView* ContentsView::GetSearchBoxView() const { 336 SearchBoxView* ContentsView::GetSearchBoxView() const {
341 return app_list_main_view_->search_box_view(); 337 return app_list_main_view_->search_box_view();
342 } 338 }
343 339
344 int ContentsView::AddLauncherPage(AppListPage* view) { 340 int ContentsView::AddLauncherPage(AppListPage* view) {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 } 476 }
481 477
482 void ContentsView::TransitionStarted() { 478 void ContentsView::TransitionStarted() {
483 } 479 }
484 480
485 void ContentsView::TransitionChanged() { 481 void ContentsView::TransitionChanged() {
486 UpdatePageBounds(); 482 UpdatePageBounds();
487 } 483 }
488 484
489 } // namespace app_list 485 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698