OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_OBSERVER_H_ | |
6 #define UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_OBSERVER_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "ui/gfx/native_widget_types.h" | |
11 | |
12 namespace message_center { | |
13 | |
14 // For classes that need to handle or propagate notification changes. | |
15 class MESSAGE_CENTER_EXPORT NotificationChangeObserver { | |
miket_OOO
2013/03/05 18:41:32
If you anticipate both that (1) this observer clas
| |
16 public: | |
17 virtual ~NotificationChangeObserver() {}; | |
18 | |
19 virtual void OnRemoveNotification(const std::string& id, bool by_user) = 0; | |
20 virtual void OnRemoveAllNotifications(bool by_user) = 0; | |
21 | |
22 virtual void OnDisableNotificationsByExtension(const std::string& id) = 0; | |
23 virtual void OnDisableNotificationsByUrl(const std::string& id) = 0; | |
24 | |
25 virtual void OnShowNotificationSettings(const std::string& id) = 0; | |
26 virtual void OnShowNotificationSettingsDialog(gfx::NativeView context) = 0; | |
27 | |
28 virtual void OnExpanded(const std::string& id) = 0; | |
29 virtual void OnClicked(const std::string& id) = 0; | |
30 virtual void OnButtonClicked(const std::string& id, int button_index) = 0; | |
31 }; | |
32 | |
33 } // namespace message_center | |
34 | |
35 #endif // UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_OBSERVER_H_ | |
OLD | NEW |