electron/brightray/browser/win/notification_presenter_win7.h

30 lines
921 B
C
Raw Normal View History

#pragma once
#include "brightray/browser/notification_presenter.h"
#include "brightray/browser/win/win32_desktop_notifications/desktop_notification_controller.h"
namespace brightray {
class Win32Notification;
2018-04-18 01:46:27 +00:00
class NotificationPresenterWin7 : public NotificationPresenter,
public DesktopNotificationController {
public:
2018-04-18 01:46:27 +00:00
NotificationPresenterWin7() = default;
2018-04-18 01:46:27 +00:00
Win32Notification* GetNotificationObjectByRef(
const DesktopNotificationController::Notification& ref);
2018-04-18 01:46:27 +00:00
Win32Notification* GetNotificationObjectByTag(const std::string& tag);
private:
2018-04-18 01:46:27 +00:00
brightray::Notification* CreateNotificationObject(
NotificationDelegate* delegate) override;
2018-04-18 01:46:27 +00:00
void OnNotificationClicked(Notification& notification) override;
void OnNotificationDismissed(Notification& notification) override;
2018-04-18 01:46:27 +00:00
DISALLOW_COPY_AND_ASSIGN(NotificationPresenterWin7);
};
2018-04-18 01:46:27 +00:00
} // namespace brightray