Added desktop notifications implementation for Windows 7 (and earlier)

This commit is contained in:
Ales Pergl 2017-03-15 13:56:06 +01:00
parent e6a30388da
commit fe05b66a6c
10 changed files with 1674 additions and 4 deletions

View file

@ -0,0 +1,28 @@
#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,
public DesktopNotificationController
{
public:
NotificationPresenterWin7() = default;
Win32Notification* GetNotificationObjectByRef(const DesktopNotificationController::Notification& ref);
Win32Notification* GetNotificationObjectByTag(const std::string& tag);
private:
DISALLOW_COPY_AND_ASSIGN(NotificationPresenterWin7);
brightray::Notification* CreateNotificationObject(NotificationDelegate* delegate) override;
void OnNotificationClicked(Notification& notification) override;
void OnNotificationDismissed(Notification& notification) override;
};
} // namespace