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

Side by Side Diff: ui/message_center/message_center.h

Issue 11819048: Implement message center on Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address petewil & stevenjb comments. Move MessageCenterTrayDelegate to its own class. Created 7 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "ui/message_center/message_center_export.h" 12 #include "ui/message_center/message_center_export.h"
13 #include "ui/message_center/notification_list.h" 13 #include "ui/message_center/notification_list.h"
14 #include "ui/notifications/notification_types.h" 14 #include "ui/notifications/notification_types.h"
15 15
16 template <typename T> struct DefaultSingletonTraits;
17
18 namespace base { 16 namespace base {
19 class DictionaryValue; 17 class DictionaryValue;
20 } 18 }
21 19
22 // Class for managing the NotificationList. The client (e.g. Chrome) calls 20 // Class for managing the NotificationList. The client (e.g. Chrome) calls
23 // [Add|Remove|Update]Notification to create and update notifications in the 21 // [Add|Remove|Update]Notification to create and update notifications in the
24 // list. It can also implement Delegate to receive callbacks when a 22 // list. It can also implement Delegate to receive callbacks when a
25 // notification is removed (closed), or clicked on. 23 // notification is removed (closed), or clicked on.
26 // If an Observer is provided, it will be informed when the notification list 24 // If an Observer is provided, it will be informed when the notification list
27 // changes, and is expected to handle creating, showing, and hiding of any 25 // changes, and is expected to handle creating, showing, and hiding of any
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 scoped_ptr<NotificationList> notification_list_; 151 scoped_ptr<NotificationList> notification_list_;
154 ObserverList<Observer> observer_list_; 152 ObserverList<Observer> observer_list_;
155 Delegate* delegate_; 153 Delegate* delegate_;
156 154
157 DISALLOW_COPY_AND_ASSIGN(MessageCenter); 155 DISALLOW_COPY_AND_ASSIGN(MessageCenter);
158 }; 156 };
159 157
160 } // namespace message_center 158 } // namespace message_center
161 159
162 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 160 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698