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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerClient.idl

Issue 778703004: Implement ServiceWorkerClient attributes [3/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@properties-step1
Patch Set: Protect by a runtime flag Created 6 years 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/serviceworkers/ServiceWorkerClient.idl
diff --git a/Source/modules/serviceworkers/ServiceWorkerClient.idl b/Source/modules/serviceworkers/ServiceWorkerClient.idl
index a83cbb131cd6bfca2045945c8dda3c91678e117a..925ebb5af1af458e5518eb48c1a6989ae47964b7 100644
--- a/Source/modules/serviceworkers/ServiceWorkerClient.idl
+++ b/Source/modules/serviceworkers/ServiceWorkerClient.idl
@@ -9,6 +9,10 @@
GarbageCollected,
TypeChecking=Interface,
] interface ServiceWorkerClient {
+ [RuntimeEnabled=ServiceWorkerClientAttributes] readonly attribute DOMString visibilityState;
+ [RuntimeEnabled=ServiceWorkerClientAttributes] readonly attribute boolean focused;
+ [RuntimeEnabled=ServiceWorkerClientAttributes] readonly attribute USVString url;
+ [RuntimeEnabled=ServiceWorkerClientAttributes] readonly attribute DOMString frameType;
[Custom, RaisesException, CallWith=ExecutionContext] void postMessage(SerializedScriptValue message, optional sequence<Transferable> transfer);
[RuntimeEnabled=PushMessaging, CallWith=ScriptState] Promise<boolean> focus();
};
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerClient.cpp ('k') | Source/modules/serviceworkers/ServiceWorkerClients.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698