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

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

Issue 665233002: Experimental app list: Added "All apps" button on start page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/app-list-factor-folderimagesource
Patch Set: Rebase. Created 6 years, 1 month 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
(Empty)
1 // Copyright 2014 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/views/all_apps_tile_item_view.h"
6
7 #include "ui/app_list/views/contents_view.h"
8 #include "ui/base/l10n/l10n_util.h"
9 #include "ui/strings/grit/ui_strings.h"
10
11 namespace app_list {
12
13 AllAppsTileItemView::AllAppsTileItemView(ContentsView* contents_view)
14 : contents_view_(contents_view) {
15 SetTitle(l10n_util::GetStringUTF16(IDS_APP_LIST_ALL_APPS));
16 // TODO(mgiuca): Set the button's icon.
17 }
18
19 AllAppsTileItemView::~AllAppsTileItemView() {
20 }
21
22 void AllAppsTileItemView::ButtonPressed(views::Button* sender,
23 const ui::Event& event) {
24 contents_view_->SetActivePage(
25 contents_view_->GetPageIndexForState(AppListModel::STATE_APPS));
26 }
27
28 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/views/all_apps_tile_item_view.h ('k') | ui/app_list/views/app_list_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698