Chromium Code Reviews| Index: ui/message_center/notification_change_delegate.h |
| diff --git a/ui/message_center/notification_change_delegate.h b/ui/message_center/notification_change_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7a8f9645497e2c434d4c7b5e97a504fe21ec1539 |
| --- /dev/null |
| +++ b/ui/message_center/notification_change_delegate.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_DELEGATE_H_ |
| +#define UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_DELEGATE_H_ |
| + |
| +#include <string> |
| + |
| +#include "ui/gfx/native_widget_types.h" |
| + |
| +namespace message_center { |
| + |
| +// For classes that need to handle or propagate notification changes. |
| +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
|
| + public: |
| + virtual ~NotificationChangeDelegate() {}; |
| + |
| + virtual void RemoveNotification(const std::string& id, bool by_user) = 0; |
| + virtual void RemoveAllNotifications(bool by_user) = 0; |
| + |
| + virtual void DisableNotificationsByExtension(const std::string& id) = 0; |
| + virtual void DisableNotificationsByUrl(const std::string& id) = 0; |
| + |
| + virtual void ShowNotificationSettings(const std::string& id) = 0; |
| + virtual void ShowNotificationSettingsDialog(gfx::NativeView context) = 0; |
| + |
| + virtual void OnExpanded(const std::string& id) = 0; |
| + virtual void OnClicked(const std::string& id) = 0; |
| + virtual void OnButtonClicked(const std::string& id, int button_index) = 0; |
| +}; |
| + |
| +} // namespace message_center |
| + |
| +#endif // UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_DELEGATE_H_ |