2017-03-15 13:56:06 +01:00
|
|
|
#pragma once
|
2017-05-18 15:58:12 -07:00
|
|
|
#include "brightray/browser/notification_presenter.h"
|
|
|
|
#include "brightray/browser/win/win32_desktop_notifications/desktop_notification_controller.h"
|
2017-03-15 13:56:06 +01:00
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
class Win32Notification;
|
|
|
|
|
|
|
|
class NotificationPresenterWin7 :
|
|
|
|
public NotificationPresenter,
|
2017-04-03 12:11:39 +02:00
|
|
|
public DesktopNotificationController {
|
2017-04-05 13:15:06 +02:00
|
|
|
public:
|
2017-03-15 13:56:06 +01:00
|
|
|
NotificationPresenterWin7() = default;
|
|
|
|
|
2017-04-03 10:38:21 +02:00
|
|
|
Win32Notification* GetNotificationObjectByRef(
|
|
|
|
const DesktopNotificationController::Notification& ref);
|
|
|
|
|
2017-03-15 13:56:06 +01:00
|
|
|
Win32Notification* GetNotificationObjectByTag(const std::string& tag);
|
|
|
|
|
2017-04-05 13:15:06 +02:00
|
|
|
private:
|
2017-04-03 10:38:21 +02:00
|
|
|
brightray::Notification* CreateNotificationObject(
|
|
|
|
NotificationDelegate* delegate) override;
|
2017-03-15 13:56:06 +01:00
|
|
|
|
|
|
|
void OnNotificationClicked(Notification& notification) override;
|
|
|
|
void OnNotificationDismissed(Notification& notification) override;
|
2017-04-05 13:16:41 +02:00
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(NotificationPresenterWin7);
|
2017-03-15 13:56:06 +01:00
|
|
|
};
|
|
|
|
|
2017-04-05 13:10:28 +02:00
|
|
|
} // namespace brightray
|