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

Side by Side Diff: ui/message_center/notification_blocker.cc

Issue 2198363002: Pass Notification into NotificationBlocker ShouldShow* methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ash build errors Created 4 years, 4 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
« no previous file with comments | « ui/message_center/notification_blocker.h ('k') | ui/message_center/notification_list.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/message_center/notification_blocker.h" 5 #include "ui/message_center/notification_blocker.h"
6 6
7 #include "ui/message_center/message_center.h" 7 #include "ui/message_center/message_center.h"
8 8
9 namespace message_center { 9 namespace message_center {
10 10
(...skipping 11 matching lines...) Expand all
22 void NotificationBlocker::AddObserver(NotificationBlocker::Observer* observer) { 22 void NotificationBlocker::AddObserver(NotificationBlocker::Observer* observer) {
23 observers_.AddObserver(observer); 23 observers_.AddObserver(observer);
24 } 24 }
25 25
26 void NotificationBlocker::RemoveObserver( 26 void NotificationBlocker::RemoveObserver(
27 NotificationBlocker::Observer* observer) { 27 NotificationBlocker::Observer* observer) {
28 observers_.RemoveObserver(observer); 28 observers_.RemoveObserver(observer);
29 } 29 }
30 30
31 bool NotificationBlocker::ShouldShowNotification( 31 bool NotificationBlocker::ShouldShowNotification(
32 const NotifierId& notifier_id) const { 32 const Notification& notification) const {
33 return true; 33 return true;
34 } 34 }
35 35
36 void NotificationBlocker::NotifyBlockingStateChanged() { 36 void NotificationBlocker::NotifyBlockingStateChanged() {
37 FOR_EACH_OBSERVER( 37 FOR_EACH_OBSERVER(
38 NotificationBlocker::Observer, observers_, OnBlockingStateChanged(this)); 38 NotificationBlocker::Observer, observers_, OnBlockingStateChanged(this));
39 } 39 }
40 40
41 } // namespace message_center 41 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/message_center/notification_blocker.h ('k') | ui/message_center/notification_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698