FIXME: DesktopNotificationDelegate has been removed

Related CL: https://codereview.chromium.org/2906883003
This commit is contained in:
Tony Ganch 2017-08-17 18:19:14 +02:00 committed by Cheng Zhao
parent fe431a9e58
commit f694b64d71
8 changed files with 57 additions and 84 deletions

View file

@ -7,14 +7,18 @@
#include <string>
#include "content/public/browser/desktop_notification_delegate.h"
#include "base/macros.h"
namespace brightray {
class NotificationDelegate : public content::DesktopNotificationDelegate {
class NotificationDelegate {
public:
explicit NotificationDelegate(const std::string& notification_id);
virtual ~NotificationDelegate() {}
// The native Notification object is destroyed.
virtual void NotificationDestroyed() {}
virtual void NotificationDestroyed();
// Failed to send the notification.
virtual void NotificationFailed() {}
@ -22,6 +26,15 @@ class NotificationDelegate : public content::DesktopNotificationDelegate {
// Notification was replied to
virtual void NotificationReplied(const std::string& reply) {}
virtual void NotificationAction(int index) {}
virtual void NotificationClick();
virtual void NotificationClosed();
virtual void NotificationDisplayed();
private:
const std::string& notification_id_;
DISALLOW_COPY_AND_ASSIGN(NotificationDelegate);
};
} // namespace brightray