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

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 sky/msw comments + rebase. Created 7 years, 10 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 | « chrome/chrome_tests.gypi ('k') | ui/message_center/message_center.gyp » ('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 (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/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
13 #include "ui/message_center/message_center_export.h" 13 #include "ui/message_center/message_center_export.h"
14 #include "ui/message_center/notification_list.h" 14 #include "ui/message_center/notification_list.h"
15 #include "ui/notifications/notification_types.h" 15 #include "ui/notifications/notification_types.h"
16 16
17 template <typename T> struct DefaultSingletonTraits;
18
19 namespace base { 17 namespace base {
20 class DictionaryValue; 18 class DictionaryValue;
21 } 19 }
22 20
23 // Class for managing the NotificationList. The client (e.g. Chrome) calls 21 // Class for managing the NotificationList. The client (e.g. Chrome) calls
24 // [Add|Remove|Update]Notification to create and update notifications in the 22 // [Add|Remove|Update]Notification to create and update notifications in the
25 // list. It can also implement Delegate to receive callbacks when a 23 // list. It can also implement Delegate to receive callbacks when a
26 // notification is removed (closed), or clicked on. 24 // notification is removed (closed), or clicked on.
27 // If an Observer is provided, it will be informed when the notification list 25 // If an Observer is provided, it will be informed when the notification list
28 // changes, and is expected to handle creating, showing, and hiding of any 26 // changes, and is expected to handle creating, showing, and hiding of any
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 scoped_ptr<NotificationList> notification_list_; 157 scoped_ptr<NotificationList> notification_list_;
160 ObserverList<Observer> observer_list_; 158 ObserverList<Observer> observer_list_;
161 Delegate* delegate_; 159 Delegate* delegate_;
162 160
163 DISALLOW_COPY_AND_ASSIGN(MessageCenter); 161 DISALLOW_COPY_AND_ASSIGN(MessageCenter);
164 }; 162 };
165 163
166 } // namespace message_center 164 } // namespace message_center
167 165
168 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 166 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | ui/message_center/message_center.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698