Use NotificationPresenter - macOS
This commit is contained in:
parent
193c561815
commit
058bdfbced
17 changed files with 93 additions and 80 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "brightray/browser/platform_notification_service.h"
|
||||
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "brightray/browser/browser_client.h"
|
||||
#include "brightray/browser/notification.h"
|
||||
#include "brightray/browser/notification_delegate_adapter.h"
|
||||
|
@ -30,7 +31,7 @@ void OnWebNotificationAllowed(base::WeakPtr<Notification> notification,
|
|||
return;
|
||||
if (allowed)
|
||||
notification->Show(data.title, data.body, data.tag, data.icon, icon,
|
||||
audio_muted ? true : data.silent);
|
||||
audio_muted ? true : data.silent, false, base::UTF8ToUTF16(""));
|
||||
else
|
||||
notification->Destroy();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue