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_DELEGATE_H_ | |
6 #define UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_DELEGATE_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 NotificationChangeDelegate { | |
Jun Mukai
2013/03/02 02:23:58
Sorry I didn't saying this, but I still don't like
dharcourt
2013/03/04 21:17:52
Yes, you're right, and "delegate" is wrong for thi
| |
16 public: | |
17 virtual ~NotificationChangeDelegate() {}; | |
18 | |
19 virtual void RemoveNotification(const std::string& id, bool by_user) = 0; | |
20 virtual void RemoveAllNotifications(bool by_user) = 0; | |
21 | |
22 virtual void DisableNotificationsByExtension(const std::string& id) = 0; | |
23 virtual void DisableNotificationsByUrl(const std::string& id) = 0; | |
24 | |
25 virtual void ShowNotificationSettings(const std::string& id) = 0; | |
26 virtual void ShowNotificationSettingsDialog(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_DELEGATE_H_ | |
OLD | NEW |