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 |