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

Side by Side Diff: ash/app_list/app_list_item_model.cc

Issue 9033007: Rename the aura_shell namespace to ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 12 months 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 #include "ash/app_list/app_list_item_model.h" 5 #include "ash/app_list/app_list_item_model.h"
6 6
7 #include "ash/app_list/app_list_item_model_observer.h" 7 #include "ash/app_list/app_list_item_model_observer.h"
8 8
9 namespace aura_shell { 9 namespace ash {
10 10
11 AppListItemModel::AppListItemModel() { 11 AppListItemModel::AppListItemModel() {
12 } 12 }
13 13
14 AppListItemModel::~AppListItemModel() { 14 AppListItemModel::~AppListItemModel() {
15 } 15 }
16 16
17 void AppListItemModel::SetIcon(const SkBitmap& icon) { 17 void AppListItemModel::SetIcon(const SkBitmap& icon) {
18 icon_ = icon; 18 icon_ = icon;
19 FOR_EACH_OBSERVER(AppListItemModelObserver, observers_, 19 FOR_EACH_OBSERVER(AppListItemModelObserver, observers_,
20 ItemIconChanged()); 20 ItemIconChanged());
21 } 21 }
22 22
23 void AppListItemModel::SetTitle(const std::string& title) { 23 void AppListItemModel::SetTitle(const std::string& title) {
24 title_ = title; 24 title_ = title;
25 FOR_EACH_OBSERVER(AppListItemModelObserver, observers_, 25 FOR_EACH_OBSERVER(AppListItemModelObserver, observers_,
26 ItemTitleChanged()); 26 ItemTitleChanged());
27 } 27 }
28 28
29 void AppListItemModel::AddObserver(AppListItemModelObserver* observer) { 29 void AppListItemModel::AddObserver(AppListItemModelObserver* observer) {
30 observers_.AddObserver(observer); 30 observers_.AddObserver(observer);
31 } 31 }
32 32
33 void AppListItemModel::RemoveObserver(AppListItemModelObserver* observer) { 33 void AppListItemModel::RemoveObserver(AppListItemModelObserver* observer) {
34 observers_.RemoveObserver(observer); 34 observers_.RemoveObserver(observer);
35 } 35 }
36 36
37 } // namespace aura_shell 37 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698