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 { |
| 16 public: |
| 17 virtual ~NotificationChangeObserver() {}; |
| 18 |
| 19 virtual void OnRemoveNotification(const std::string& id, bool by_user) {}; |
| 20 virtual void OnRemoveAllNotifications(bool by_user) {}; |
| 21 |
| 22 virtual void OnDisableNotificationsByExtension(const std::string& id) {}; |
| 23 virtual void OnDisableNotificationsByUrl(const std::string& id) {}; |
| 24 |
| 25 virtual void OnShowNotificationSettings(const std::string& id) {}; |
| 26 virtual void OnShowNotificationSettingsDialog(gfx::NativeView context) {}; |
| 27 |
| 28 virtual void OnExpanded(const std::string& id) {}; |
| 29 virtual void OnClicked(const std::string& id) {}; |
| 30 virtual void OnButtonClicked(const std::string& id, int button_index) {}; |
| 31 }; |
| 32 |
| 33 } // namespace message_center |
| 34 |
| 35 #endif // UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_OBSERVER_H_ |
OLD | NEW |