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 |