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

Side by Side Diff: ui/aura_shell/app_list/app_list_model.cc

Issue 9023004: Revert 115515 - [Aura] Implement views-based applist. (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
« no previous file with comments | « ui/aura_shell/app_list/app_list_model.h ('k') | ui/aura_shell/app_list/app_list_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/aura_shell/app_list/app_list_model.h"
6
7 namespace aura_shell {
8
9 AppListModel::AppListModel() {
10 }
11
12 AppListModel::~AppListModel() {
13 }
14
15 void AppListModel::AddGroup(AppListItemGroupModel* group) {
16 groups_.Add(group);
17 }
18
19 AppListItemGroupModel* AppListModel::GetGroup(int index) {
20 DCHECK(index >= 0 && index < group_count());
21 return groups_.item_at(index);
22 }
23
24 void AppListModel::AddObserver(ui::ListModelObserver* observer) {
25 groups_.AddObserver(observer);
26 }
27
28 void AppListModel::RemoveObserver(ui::ListModelObserver* observer) {
29 groups_.RemoveObserver(observer);
30 }
31
32 } // namespace aura_shell
OLDNEW
« no previous file with comments | « ui/aura_shell/app_list/app_list_model.h ('k') | ui/aura_shell/app_list/app_list_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698