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

Unified Diff: modules/serviceworkers/ServiceWorkerGlobalScope.idl

Issue 540533002: Roll IDL to Dartium37 (r181268) (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 6 years, 3 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
« no previous file with comments | « modules/serviceworkers/ServiceWorkerContainer.idl ('k') | modules/speech/SpeechGrammar.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/serviceworkers/ServiceWorkerGlobalScope.idl
diff --git a/modules/serviceworkers/ServiceWorkerGlobalScope.idl b/modules/serviceworkers/ServiceWorkerGlobalScope.idl
index 3db592745d72a1a2e517c36087f6d19977ecaa38..07d2dbfde12dae6981f050f3a5d05b78b40df4d4 100644
--- a/modules/serviceworkers/ServiceWorkerGlobalScope.idl
+++ b/modules/serviceworkers/ServiceWorkerGlobalScope.idl
@@ -27,12 +27,23 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-global-scope-interface
[
- GlobalContext=ServiceWorkerGlobalScope,
+ Exposed=ServiceWorker,
+ Global=Worker&ServiceWorker,
RuntimeEnabled=ServiceWorker,
] interface ServiceWorkerGlobalScope : WorkerGlobalScope {
- attribute EventHandler oninstall;
+
+ readonly attribute ServiceWorkerClients clients;
+ [CallWith=ExecutionContext, Unforgeable] readonly attribute ScalarValueString scope;
+
+ [CallWith=ScriptState] Promise fetch(ScalarValueString request);
+ [CallWith=ScriptState] Promise fetch(Request request);
+
attribute EventHandler onactivate;
attribute EventHandler onfetch;
+ attribute EventHandler oninstall;
+ attribute EventHandler onmessage;
+ attribute EventHandler onsync;
};
-
« no previous file with comments | « modules/serviceworkers/ServiceWorkerContainer.idl ('k') | modules/speech/SpeechGrammar.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698