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