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

Unified Diff: Source/modules/push_messaging/PushEvent.idl

Issue 318413002: Push API: define push event on Service Worker. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/push_messaging/PushEvent.idl
diff --git a/Source/modules/push_messaging/NavigatorPushManager.idl b/Source/modules/push_messaging/PushEvent.idl
similarity index 62%
copy from Source/modules/push_messaging/NavigatorPushManager.idl
copy to Source/modules/push_messaging/PushEvent.idl
index 26db0dddc171d946dab70ea59e2202a465f47803..a6a03ff8d7895445e68bfcec475fc5db9afcf71d 100644
--- a/Source/modules/push_messaging/NavigatorPushManager.idl
+++ b/Source/modules/push_messaging/PushEvent.idl
@@ -3,7 +3,8 @@
// found in the LICENSE file.
[
+ EventConstructor,
RuntimeEnabled=PushMessaging,
-] partial interface Navigator {
- readonly attribute PushManager push;
+] interface PushEvent : Event {
+ [InitializedByEventConstructor] readonly attribute DOMString data;
};
« no previous file with comments | « Source/modules/push_messaging/PushEvent.cpp ('k') | Source/modules/push_messaging/ServiceWorkerGlobalScopePush.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698