Index: Source/web/ServiceWorkerGlobalScopeProxy.cpp |
diff --git a/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
index 3b6af820d0060bb96d13e2d323c7473e0302c103..fb6044a0ddf2b5a8f8fd18548974489f6ab04c8a 100644 |
--- a/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
+++ b/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
@@ -131,6 +131,16 @@ void ServiceWorkerGlobalScopeProxy::dispatchMessageEvent(const WebString& messag |
m_workerGlobalScope->dispatchEvent(MessageEvent::create(ports.release(), value)); |
} |
+void ServiceWorkerGlobalScopeProxy::dispatchNotificationClickEvent(int eventID, int64_t notificationID, const WebNotificationData& data) |
+{ |
+ ASSERT(m_workerGlobalScope); |
+ WaitUntilObserver* observer = WaitUntilObserver::create(m_workerGlobalScope, WaitUntilObserver::NotificationClick, eventID); |
+ NotificationEventInit eventInit; |
+ eventInit.setNotification(Notification::create(m_workerGlobalScope, notificationID, data)); |
+ RefPtrWillBeRawPtr<Event> event(NotificationEvent::create(EventTypeNames::notificationclick, eventInit, observer)); |
+ m_workerGlobalScope->dispatchExtendableEvent(event.release(), observer); |
+} |
+ |
void ServiceWorkerGlobalScopeProxy::dispatchNotificationClickEvent(int eventID, const WebString& notificationID, const WebNotificationData& data) |
{ |
ASSERT(m_workerGlobalScope); |