• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/WebKit-7537.78.2/blackberry/WebKitSupport/

Lines Matching defs:notification

53 bool NotificationManager::show(Notification* notification)
56 m_notificationMap.set(notification, notificationID);
57 m_notificationIDMap.set(notificationID, notification);
59 NotificationContextMap::iterator it = m_notificationContextMap.add(notification->scriptExecutionContext(), Vector<String>()).iterator;
62 m_webPagePrivate->client()->showNotification(notificationID, notification->title(), notification->body(), notification->iconURL().string(), notification->tag(), notification->scriptExecutionContext()->securityOrigin()->toString());
66 void NotificationManager::cancel(Notification* notification)
68 String notificationID = m_notificationMap.get(notification);
86 RefPtr<Notification> notification = m_notificationIDMap.take(notificationIDs[i]);
87 if (!notification)
90 notification->finalize();
91 m_notificationMap.remove(notification);
98 void NotificationManager::notificationObjectDestroyed(Notification* notification)
100 String notificationID = m_notificationMap.take(notification);
105 removeNotificationFromContextMap(notificationID, notification);
178 RefPtr<Notification> notification = m_notificationIDMap.get(notificationID);
179 if (!notification)
182 // Indicate that this event is being dispatched in reaction to a user's interaction with a platform notification.
184 notification->dispatchClickEvent();
189 RefPtr<Notification> notification = m_notificationIDMap.take(notificationID);
190 if (!notification)
193 m_notificationMap.remove(notification);
194 removeNotificationFromContextMap(notificationID, notification.get());
195 notification->dispatchCloseEvent();
200 RefPtr<Notification> notification = m_notificationIDMap.take(notificationID);
201 if (!notification)
204 notification->dispatchErrorEvent();
209 RefPtr<Notification> notification = m_notificationIDMap.get(notificationID);
210 if (!notification)
213 notification->dispatchShowEvent();
216 void NotificationManager::removeNotificationFromContextMap(const String& notificationID, Notification* notification)
219 NotificationContextMap::iterator it = m_notificationContextMap.find(notification->scriptExecutionContext());