Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2528)

Unified Diff: content/renderer/service_worker/service_worker_context_client.h

Issue 2682353002: Mojoify the notificationclick and notificationclose events (Closed)
Patch Set: Mojoify the notificationclick and notificationclose events Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/service_worker/service_worker_context_client.h
diff --git a/content/renderer/service_worker/service_worker_context_client.h b/content/renderer/service_worker/service_worker_context_client.h
index 360ec52a91dafbeefbdd01d963c33f562b7b9f45..b410f0e934927c4b8de3b7ae86b26dd9cfcf3ded 100644
--- a/content/renderer/service_worker/service_worker_context_client.h
+++ b/content/renderer/service_worker/service_worker_context_client.h
@@ -219,6 +219,16 @@ class ServiceWorkerContextClient : public blink::WebServiceWorkerContextClient,
const ServiceWorkerFetchRequest& request,
mojom::FetchEventPreloadHandlePtr preload_handle,
const DispatchFetchEventCallback& callback) override;
+ void DispatchNotificationClickEvent(
+ const std::string& notification_id,
+ const PlatformNotificationData& notification_data,
+ int action_index,
+ const base::Optional<base::string16>& reply,
+ const DispatchNotificationClickEventCallback& callback) override;
+ void DispatchNotificationCloseEvent(
+ const std::string& notification_id,
+ const PlatformNotificationData& notification_data,
+ const DispatchNotificationCloseEventCallback& callback) override;
void DispatchPushEvent(const PushEventPayload& payload,
const DispatchPushEventCallback& callback) override;
void DispatchSyncEvent(

Powered by Google App Engine
This is Rietveld 408576698