Lines Matching refs:notification

47 static WebString identifierForNotification(const WebNotification& notification)
49 if (notification.isHTML())
50 return notification.url().spec().utf16();
51 return notification.title();
56 WebNotification* notification = static_cast<WebNotification*>(context);
57 notification->dispatchDisplayEvent();
58 delete notification;
74 const WebNotification& notification = m_activeNotifications.find(id)->second;
75 WebNotification eventTarget(notification);
81 bool NotificationPresenter::show(const WebNotification& notification)
83 WebString identifier = identifierForNotification(notification);
84 if (!notification.replaceId().isEmpty()) {
85 WTF::String replaceId(notification.replaceId().data(), notification.replaceId().length());
93 if (notification.isHTML()) {
95 notification.url().spec().data());
98 notification.direction() == WebTextDirectionRightToLeft ? "(RTL)" : "",
99 notification.iconURL().isEmpty() ? "" :
100 notification.iconURL().spec().data(),
101 notification.title().isEmpty() ? "" :
102 notification.title().utf8().data(),
103 notification.body().isEmpty() ? "" :
104 notification.body().utf8().data());
108 m_activeNotifications.set(id, notification);
110 webKitClient()->callOnMainThread(deferredDisplayDispatch, new WebNotification(notification));
114 void NotificationPresenter::cancel(const WebNotification& notification)
116 WebString identifier = identifierForNotification(notification);
118 WebNotification eventTarget(notification);
125 void NotificationPresenter::objectDestroyed(const WebKit::WebNotification& notification)
127 WebString identifier = identifierForNotification(notification);