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
30
brightray/browser/win/win32_notification.h
Normal file
30
brightray/browser/win/win32_notification.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
#include "browser/notification.h"
|
||||
#include "browser/win/notification_presenter_win7.h"
|
||||
|
||||
namespace brightray {
|
||||
|
||||
class Win32Notification : public brightray::Notification
|
||||
{
|
||||
public:
|
||||
Win32Notification(NotificationDelegate* delegate, NotificationPresenterWin7* presenter) : Notification(delegate, presenter) {}
|
||||
void Show(const base::string16& title, const base::string16& msg, const std::string& tag, const GURL& icon_url, const SkBitmap& icon, const bool silent) override;
|
||||
void Dismiss() override;
|
||||
|
||||
const DesktopNotificationController::Notification& GetRef() const
|
||||
{
|
||||
return notificationRef;
|
||||
}
|
||||
|
||||
const std::string& GetTag() const
|
||||
{
|
||||
return tag;
|
||||
}
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(Win32Notification);
|
||||
DesktopNotificationController::Notification notificationRef;
|
||||
std::string tag;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue