🏁 🍎 Add Silent Notification Support

* Implements support for silent notifications on Windows and OS X
 * Exposes bool `silent` to Linux notification presenters
This commit is contained in:
Felix Rieseberg 2016-01-20 16:36:41 -08:00
parent c9993ccc26
commit 728f0f985b
8 changed files with 95 additions and 10 deletions

View file

@ -57,7 +57,7 @@ void PlatformNotificationService::DisplayNotification(
auto notification = presenter->CreateNotification(adapter.get());
if (notification) {
ignore_result(adapter.release()); // it will release itself automatically.
notification->Show(data.title, data.body, data.icon, icon);
notification->Show(data.title, data.body, data.icon, icon, data.silent);
*cancel_callback = base::Bind(&RemoveNotification, notification);
}
}