Added desktop notifications implementation for Windows 7 (and earlier)
This commit is contained in:
parent
e6a30388da
commit
fe05b66a6c
10 changed files with 1674 additions and 4 deletions
28
brightray/browser/win/notification_presenter_win7.h
Normal file
28
brightray/browser/win/notification_presenter_win7.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue