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

Unified Diff: ui/aura_shell/app_list/app_list_item_group_model.cc

Issue 8890049: [Aura] Implement views-based applist. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura Created 9 years 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
Index: ui/aura_shell/app_list/app_list_item_group_model.cc
diff --git a/ui/aura_shell/app_list/app_list_item_group_model.cc b/ui/aura_shell/app_list/app_list_item_group_model.cc
new file mode 100644
index 0000000000000000000000000000000000000000..61e3b9e9b287abfedf132978a157e8e0a03389d4
--- /dev/null
+++ b/ui/aura_shell/app_list/app_list_item_group_model.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2011 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/aura_shell/app_list/app_list_item_group_model.h"
+
+namespace aura_shell {
+
+AppListItemGroupModel::AppListItemGroupModel(const std::string& title)
+ : title_(title) {
+}
+
+AppListItemGroupModel::~AppListItemGroupModel() {
+}
+
+void AppListItemGroupModel::AddItem(AppListItemModel* item) {
+ items_.Add(item);
+}
+
+AppListItemModel* AppListItemGroupModel::GetItem(int index) {
+ DCHECK(index >= 0 && index < item_count());
+ return items_.item_at(index);
+}
+
+} // namespace aura_shell
« no previous file with comments | « ui/aura_shell/app_list/app_list_item_group_model.h ('k') | ui/aura_shell/app_list/app_list_item_group_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698