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

Unified 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, 2 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/all_apps_tile_item_view.cc
diff --git a/ui/app_list/views/all_apps_tile_item_view.cc b/ui/app_list/views/all_apps_tile_item_view.cc
new file mode 100644
index 0000000000000000000000000000000000000000..acb527b1bf6d12d4eb5a180b28a68a134fcf90e1
--- /dev/null
+++ b/ui/app_list/views/all_apps_tile_item_view.cc
@@ -0,0 +1,28 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/app_list/views/all_apps_tile_item_view.h"
+
+#include "ui/app_list/views/contents_view.h"
+#include "ui/base/l10n/l10n_util.h"
+#include "ui/strings/grit/ui_strings.h"
+
+namespace app_list {
+
+AllAppsTileItemView::AllAppsTileItemView(ContentsView* contents_view)
+ : contents_view_(contents_view) {
+ SetTitle(l10n_util::GetStringUTF16(IDS_APP_LIST_ALL_APPS));
+ // TODO(mgiuca): Set the button's icon.
+}
+
+AllAppsTileItemView::~AllAppsTileItemView() {
+}
+
+void AllAppsTileItemView::ButtonPressed(views::Button* sender,
+ const ui::Event& event) {
+ contents_view_->SetActivePage(
+ contents_view_->GetPageIndexForState(AppListModel::STATE_APPS));
+}
+
+} // namespace app_list
« 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