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

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

Issue 14735009: mac: Minor tweaks to notifications code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tweak text metrics Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/message_center/message_center.h ('k') | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_
7 7
8 #include <string>
9
8 #include "ui/message_center/message_center_export.h" 10 #include "ui/message_center/message_center_export.h"
9 11
10 namespace message_center { 12 namespace message_center {
11 13
12 // An observer class for the change of notifications in the MessageCenter. 14 // An observer class for the change of notifications in the MessageCenter.
13 class MESSAGE_CENTER_EXPORT MessageCenterObserver { 15 class MESSAGE_CENTER_EXPORT MessageCenterObserver {
14 public: 16 public:
15 virtual ~MessageCenterObserver() {} 17 virtual ~MessageCenterObserver() {}
16 18
17 // Called when the notification associated with |notification_id| is added 19 // Called when the notification associated with |notification_id| is added
(...skipping 19 matching lines...) Expand all
37 int button_index) {} 39 int button_index) {}
38 40
39 // Called when the notification associated with |notification_id| is actually 41 // Called when the notification associated with |notification_id| is actually
40 // displayed. 42 // displayed.
41 virtual void OnNotificationDisplayed(const std::string& notification_id) {} 43 virtual void OnNotificationDisplayed(const std::string& notification_id) {}
42 }; 44 };
43 45
44 } // namespace message_center 46 } // namespace message_center
45 47
46 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_ 48 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_center.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698