| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ui/app_list/app_list_view_delegate.h" | 5 #include "ui/app_list/app_list_view_delegate.h" |
| 6 | 6 |
| 7 #include "ui/app_list/app_list_view_delegate_observer.h" |
| 8 |
| 7 namespace app_list { | 9 namespace app_list { |
| 8 | 10 |
| 9 AppListViewDelegate::User::User() : active(false) { | 11 AppListViewDelegate::User::User() : active(false) { |
| 10 } | 12 } |
| 11 | 13 |
| 12 AppListViewDelegate::User::~User() { | 14 AppListViewDelegate::User::~User() { |
| 13 } | 15 } |
| 14 | 16 |
| 17 const AppListViewDelegate::Users& AppListViewDelegate::GetUsers() const { |
| 18 return users_; |
| 19 } |
| 20 |
| 21 void AppListViewDelegate::AddObserver(AppListViewDelegateObserver* observer) { |
| 22 observers_.AddObserver(observer); |
| 23 } |
| 24 |
| 25 void AppListViewDelegate::RemoveObserver( |
| 26 AppListViewDelegateObserver* observer) { |
| 27 observers_.RemoveObserver(observer); |
| 28 } |
| 29 |
| 30 void AppListViewDelegate::NotifyUsersChanged() { |
| 31 FOR_EACH_OBSERVER(AppListViewDelegateObserver, |
| 32 observers_, |
| 33 OnUsersChanged()); |
| 34 } |
| 35 |
| 15 } // app_list | 36 } // app_list |
| OLD | NEW |