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

Side by Side Diff: ui/app_list/app_list_view_delegate.cc

Issue 79773005: Update app list search box menu when Users changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add AppListViewDelegateObserver Created 7 years, 1 month 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698