notification->setBody(argument);
if (options.get("tag", argument))
notification->setTag(argument);
+#if ENABLE(TIZEN_NOTIFICATIONS)
+ if (options.get("iconUrl", argument)) {
+ KURL iconURI = argument.isEmpty() ? KURL() : context->completeURL(argument);
+ if (!iconURI.isEmpty() && iconURI.isValid())
+ notification->setIconURL(iconURI);
+ }
+#endif
getAndAddEventListener(eventNames().showEvent, "onshow", options, notification.get());
getAndAddEventListener(eventNames().closeEvent, "onclose", options, notification.get());
getAndAddEventListener(eventNames().errorEvent, "onerror", options, notification.get());
void setURL(KURL url) { m_notificationURL = url; }
KURL iconURL() const { return m_icon; }
+#if ENABLE(TIZEN_NOTIFICATIONS)
+ void setIconURL(const KURL& url) { m_icon = url; }
+#endif
String title() const { return m_title; }
String body() const { return m_body; }