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