electron/brightray/browser/win/win32_notification.h

29 lines
785 B
C
Raw Normal View History

#pragma once
#include "brightray/browser/notification.h"
#include "brightray/browser/win/notification_presenter_win7.h"
namespace brightray {
class Win32Notification : public brightray::Notification {
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;
2018-04-18 01:46:27 +00:00
const DesktopNotificationController::Notification& GetRef() const {
return notification_ref_;
}
2018-04-18 01:46:27 +00:00
const std::string& GetTag() const { return tag_; }
private:
2018-04-18 01:46:27 +00:00
DesktopNotificationController::Notification notification_ref_;
std::string tag_;
2018-04-18 01:46:27 +00:00
DISALLOW_COPY_AND_ASSIGN(Win32Notification);
};
2018-04-18 01:46:27 +00:00
} // namespace brightray