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:
|
2018-04-18 01:46:27 +00:00
|
|
|
Win32Notification(NotificationDelegate* delegate,
|
|
|
|
NotificationPresenterWin7* presenter)
|
|
|
|
: Notification(delegate, presenter) {}
|
|
|
|
void Show(const NotificationOptions& options) override;
|
|
|
|
void Dismiss() override;
|
2017-03-15 12:56:06 +00:00
|
|
|
|
2018-04-18 01:46:27 +00:00
|
|
|
const DesktopNotificationController::Notification& GetRef() const {
|
|
|
|
return notification_ref_;
|
|
|
|
}
|
2017-03-15 12:56:06 +00:00
|
|
|
|
2018-04-18 01:46:27 +00:00
|
|
|
const std::string& GetTag() const { return tag_; }
|
2017-03-15 12:56:06 +00:00
|
|
|
|
2017-04-05 11:15:06 +00:00
|
|
|
private:
|
2018-04-18 01:46:27 +00:00
|
|
|
DesktopNotificationController::Notification notification_ref_;
|
|
|
|
std::string tag_;
|
2017-04-05 11:16:41 +00:00
|
|
|
|
2018-04-18 01:46:27 +00:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(Win32Notification);
|
2017-03-15 12:56:06 +00:00
|
|
|
};
|
|
|
|
|
2018-04-18 01:46:27 +00:00
|
|
|
} // namespace brightray
|