2017-03-15 13:56:06 +01:00
|
|
|
#pragma once
|
2017-05-18 15:58:12 -07:00
|
|
|
#include "brightray/browser/notification.h"
|
|
|
|
#include "brightray/browser/win/notification_presenter_win7.h"
|
2017-03-15 13:56:06 +01:00
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
|
2017-04-03 12:11:39 +02:00
|
|
|
class Win32Notification : public brightray::Notification {
|
2017-04-05 13:15:06 +02:00
|
|
|
public:
|
2017-04-03 10:38:21 +02:00
|
|
|
Win32Notification(NotificationDelegate* delegate,
|
|
|
|
NotificationPresenterWin7* presenter) :
|
2017-04-03 12:11:39 +02:00
|
|
|
Notification(delegate, presenter) {
|
2017-04-03 10:38:21 +02:00
|
|
|
}
|
2017-06-24 21:03:27 +10:00
|
|
|
void Show(const NotificationOptions& options) override;
|
2017-03-15 13:56:06 +01:00
|
|
|
void Dismiss() override;
|
|
|
|
|
2017-04-03 12:11:39 +02:00
|
|
|
const DesktopNotificationController::Notification& GetRef() const {
|
2017-03-17 14:41:22 +01:00
|
|
|
return notification_ref_;
|
2017-03-15 13:56:06 +01:00
|
|
|
}
|
|
|
|
|
2017-04-03 12:11:39 +02:00
|
|
|
const std::string& GetTag() const {
|
2017-03-17 14:41:22 +01:00
|
|
|
return tag_;
|
2017-03-15 13:56:06 +01:00
|
|
|
}
|
|
|
|
|
2017-04-05 13:15:06 +02:00
|
|
|
private:
|
2017-03-17 14:41:22 +01:00
|
|
|
DesktopNotificationController::Notification notification_ref_;
|
|
|
|
std::string tag_;
|
2017-04-05 13:16:41 +02:00
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(Win32Notification);
|
2017-03-15 13:56:06 +01:00
|
|
|
};
|
|
|
|
|
2017-04-05 13:10:28 +02:00
|
|
|
} // namespace brightray
|