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

Unified Diff: Source/modules/notifications/NotificationEvent.h

Issue 1262893005: Add NotificationEvent.action property in SW events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@actions3_fix
Patch Set: Created 5 years, 4 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: Source/modules/notifications/NotificationEvent.h
diff --git a/Source/modules/notifications/NotificationEvent.h b/Source/modules/notifications/NotificationEvent.h
index e20c4f4db4827b1e1bd1eadd1fe7f990434d3cf7..210a943ee75632bf8ad78c969f166c0545f52dff 100644
--- a/Source/modules/notifications/NotificationEvent.h
+++ b/Source/modules/notifications/NotificationEvent.h
@@ -33,6 +33,7 @@ public:
~NotificationEvent() override;
Notification* notification() const { return m_notification.get(); }
+ String action() const { return m_action; }
const AtomicString& interfaceName() const override;
@@ -44,6 +45,7 @@ private:
NotificationEvent(const AtomicString& type, const NotificationEventInit&, WaitUntilObserver*);
PersistentWillBeMember<Notification> m_notification;
+ String m_action;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698