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

Side by Side Diff: ash/app_list/app_list_item_group_model.h

Issue 9033007: Rename the aura_shell namespace to ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_APP_LIST_APP_LIST_ITEM_GROUP_MODEL_H_ 5 #ifndef ASH_APP_LIST_APP_LIST_ITEM_GROUP_MODEL_H_
6 #define ASH_APP_LIST_APP_LIST_ITEM_GROUP_MODEL_H_ 6 #define ASH_APP_LIST_APP_LIST_ITEM_GROUP_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "ash/app_list/app_list_item_model.h" 11 #include "ash/app_list/app_list_item_model.h"
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "ash/ash_export.h" 13 #include "ash/ash_export.h"
14 #include "ui/base/models/list_model.h" 14 #include "ui/base/models/list_model.h"
15 15
16 namespace aura_shell { 16 namespace ash {
17 17
18 // AppListItemGroupModel holds a list of AppListItemModels. 18 // AppListItemGroupModel holds a list of AppListItemModels.
19 class ASH_EXPORT AppListItemGroupModel { 19 class ASH_EXPORT AppListItemGroupModel {
20 public: 20 public:
21 typedef ui::ListModel<AppListItemModel> Items; 21 typedef ui::ListModel<AppListItemModel> Items;
22 22
23 explicit AppListItemGroupModel(const std::string& title); 23 explicit AppListItemGroupModel(const std::string& title);
24 virtual ~AppListItemGroupModel(); 24 virtual ~AppListItemGroupModel();
25 25
26 void AddItem(AppListItemModel* item); 26 void AddItem(AppListItemModel* item);
27 AppListItemModel* GetItem(int index); 27 AppListItemModel* GetItem(int index);
28 28
29 const std::string& title() const { 29 const std::string& title() const {
30 return title_; 30 return title_;
31 } 31 }
32 32
33 int item_count() const { 33 int item_count() const {
34 return items_.item_count(); 34 return items_.item_count();
35 } 35 }
36 36
37 private: 37 private:
38 const std::string title_; 38 const std::string title_;
39 Items items_; 39 Items items_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(AppListItemGroupModel); 41 DISALLOW_COPY_AND_ASSIGN(AppListItemGroupModel);
42 }; 42 };
43 43
44 } // namespace aura_shell 44 } // namespace ash
45 45
46 #endif // ASH_APP_LIST_APP_LIST_ITEM_GROUP_MODEL_H_ 46 #endif // ASH_APP_LIST_APP_LIST_ITEM_GROUP_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698