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

Side by Side Diff: ash/app_list/app_list_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_MODEL_H_ 5 #ifndef ASH_APP_LIST_APP_LIST_MODEL_H_
6 #define ASH_APP_LIST_APP_LIST_MODEL_H_ 6 #define ASH_APP_LIST_APP_LIST_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/app_list/app_list_item_group_model.h" 9 #include "ash/app_list/app_list_item_group_model.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 #include "ui/base/models/list_model.h" 12 #include "ui/base/models/list_model.h"
13 13
14 namespace aura_shell { 14 namespace ash {
15 15
16 // Model for AppListView. It is consisted of a list of AppListItemGroupModels, 16 // Model for AppListView. It is consisted of a list of AppListItemGroupModels,
17 // which in turn owns a list of AppListItemModels. 17 // which in turn owns a list of AppListItemModels.
18 class ASH_EXPORT AppListModel { 18 class ASH_EXPORT AppListModel {
19 public: 19 public:
20 AppListModel(); 20 AppListModel();
21 virtual ~AppListModel(); 21 virtual ~AppListModel();
22 22
23 void AddGroup(AppListItemGroupModel* group); 23 void AddGroup(AppListItemGroupModel* group);
24 AppListItemGroupModel* GetGroup(int index); 24 AppListItemGroupModel* GetGroup(int index);
25 25
26 void AddObserver(ui::ListModelObserver* observer); 26 void AddObserver(ui::ListModelObserver* observer);
27 void RemoveObserver(ui::ListModelObserver* observer); 27 void RemoveObserver(ui::ListModelObserver* observer);
28 28
29 int group_count() const { 29 int group_count() const {
30 return groups_.item_count(); 30 return groups_.item_count();
31 } 31 }
32 32
33 private: 33 private:
34 ui::ListModel<AppListItemGroupModel> groups_; 34 ui::ListModel<AppListItemGroupModel> groups_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(AppListModel); 36 DISALLOW_COPY_AND_ASSIGN(AppListModel);
37 }; 37 };
38 38
39 } // namespace aura_shell 39 } // namespace ash
40 40
41 #endif // ASH_APP_LIST_APP_LIST_MODEL_H_ 41 #endif // ASH_APP_LIST_APP_LIST_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698