OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |