[Title] Support iconUrl of w3c Notification
[Issue#] N/A
[Problem] iconUrl of w3c Notification is not working
[Cause] iconUrl is not saved when creating Notification
[Solution] save iconUrl when creating Notification
Change-Id: I6ed31bb94b3fb9fd71324d98a5b0e3d413c8ef76
notification->setBody(argument);
if (options.get("tag", argument))
notification->setTag(argument);
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());
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; }
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; }
String title() const { return m_title; }
String body() const { return m_body; }