W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2011

Vestiges of [Supplemental]

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 20 Jul 2011 22:03:43 +0000 (UTC)
To: public-script-coord@w3.org
Message-ID: <Pine.LNX.4.64.1107202125370.3775@ps20323.dreamhostps.com>

Dedicated workers and shared workers have a global scope called 
WorkerGlobalScope. However, dedicated workers also implement 
DedicatedWorkerGlobalScope; shared workers also implement 
SharedWorkerGlobalScope. In the prose, to avoid having really awkward 
phrasing, I refer to these three interfaces by those names; for example, I 
talk about the global scope being a SharedWorkerGlobalScope object, or 
creating a new SharedWorkerGlobalScope object.

Currently I do this by having DedicatedWorkerGlobalScope and 
SharedWorkerGlobalScope be marked [Supplemental, NoInterfaceObject] and 
having them inherit from WorkerGlobalScope, so that they appear to just be 
simple WorkerGlobalScope objects to scripts.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 20 July 2011 22:04:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:04 UTC