Index: core/workers/WorkerGlobalScope.idl |
diff --git a/core/workers/WorkerContext.idl b/core/workers/WorkerGlobalScope.idl |
similarity index 67% |
rename from core/workers/WorkerContext.idl |
rename to core/workers/WorkerGlobalScope.idl |
index 9c4ff2b27ffba21368093bfe629b76dd082dd3ea..e395d34d5074b104fee337f050f4c0fd818d976e 100644 |
--- a/core/workers/WorkerContext.idl |
+++ b/core/workers/WorkerGlobalScope.idl |
@@ -20,39 +20,29 @@ |
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
* |
*/ |
[ |
- NoInterfaceObject, |
- EventTarget, |
+ GlobalContext=WorkerGlobalScope, |
CustomToV8, |
DoNotGenerateWrap |
-] interface WorkerContext { |
+] interface WorkerGlobalScope : EventTarget { |
// WorkerGlobalScope |
- [Replaceable] readonly attribute WorkerContext self; |
- [Replaceable] readonly attribute WorkerLocation location; |
+ [Replaceable] readonly attribute WorkerGlobalScope self; |
+ [Replaceable] readonly attribute WorkerLocation location; |
void close(); |
- attribute EventListener onerror; |
+ attribute EventListener onerror; |
// WorkerUtils |
[Custom] void importScripts(/*[Variadic] in DOMString urls */); |
- [Replaceable] readonly attribute WorkerNavigator navigator; |
- |
- // EventTarget interface |
- void addEventListener(DOMString type, |
- EventListener listener, |
- optional boolean useCapture); |
- void removeEventListener(DOMString type, |
- EventListener listener, |
- optional boolean useCapture); |
- [RaisesException] boolean dispatchEvent(Event evt); |
+ [Replaceable] readonly attribute WorkerNavigator navigator; |
// Additional constructors |
attribute URLConstructor webkitURL; // FIXME: deprecate this. |
}; |
-WorkerContext implements WindowTimers; |
- |
+WorkerGlobalScope implements WindowBase64; |
+WorkerGlobalScope implements WindowTimers; |