2017-03-15 12:56:06 +00:00
|
|
|
#pragma once
|
|
|
|
#include "browser/notification.h"
|
|
|
|
#include "browser/win/notification_presenter_win7.h"
|
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
|
2017-04-03 10:11:39 +00:00
|
|
|
class Win32Notification : public brightray::Notification {
|
2017-03-15 12:56: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
|
|
|
}
|
|
|
|
void Show(const base::string16& title, const base::string16& msg,
|
|
|
|
const std::string& tag, const GURL& icon_url,
|
|
|
|
const SkBitmap& icon, const bool silent) 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
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(Win32Notification);
|
2017-03-17 13:41:22 +00:00
|
|
|
DesktopNotificationController::Notification notification_ref_;
|
|
|
|
std::string tag_;
|
2017-03-15 12:56:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|