bool NotificationPresenterClientQt::show(Notification* notification) { // FIXME: workers based notifications are not supported yet. if (notification->scriptExecutionContext()->isWorkerContext()) return false; notification->setPendingActivity(notification); if (!notification->tag().isEmpty()) removeReplacedNotificationFromQueue(notification); if (dumpNotification) dumpShowText(notification); displayNotification(notification); return true; }
bool NotificationPresenterClientQt::show(Notification* notification) { // FIXME: workers based notifications are not supported yet. if (notification->scriptExecutionContext()->isWorkerContext()) return false; notification->setPendingActivity(notification); if (!notification->replaceId().isEmpty()) removeReplacedNotificationFromQueue(notification); if (dumpNotification) dumpShowText(notification); QByteArray iconData; if (notification->iconData()) iconData = QByteArray::fromRawData(notification->iconData()->data(), notification->iconData()->size()); displayNotification(notification, iconData); notification->releaseIconData(); return true; }