| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 interface WorkerGlobalScope { | 7 interface WorkerGlobalScope { |
| 8 | 8 |
| 9 WorkerLocation get location(); | 9 WorkerLocation get location(); |
| 10 | 10 |
| 11 void set location(WorkerLocation value); | 11 void set location(WorkerLocation value); |
| 12 | 12 |
| 13 WorkerNavigator get navigator(); | 13 WorkerNavigator get navigator(); |
| 14 | 14 |
| 15 void set navigator(WorkerNavigator value); | 15 void set navigator(WorkerNavigator value); |
| 16 | 16 |
| 17 EventListener get onerror(); | 17 EventListener get onerror(); |
| 18 | 18 |
| 19 void set onerror(EventListener value); | 19 void set onerror(EventListener value); |
| 20 | 20 |
| 21 WorkerContext get self(); |
| 22 |
| 23 void set self(WorkerContext value); |
| 24 |
| 21 NotificationCenter get webkitNotifications(); | 25 NotificationCenter get webkitNotifications(); |
| 22 | 26 |
| 23 DOMURL get webkitURL(); | 27 DOMURL get webkitURL(); |
| 24 | 28 |
| 25 void addEventListener(String type, EventListener listener, [bool useCapture]); | 29 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 26 | 30 |
| 27 void clearInterval(int handle); | 31 void clearInterval(int handle); |
| 28 | 32 |
| 29 void clearTimeout(int handle); | 33 void clearTimeout(int handle); |
| 30 | 34 |
| 31 void close(); | 35 void close(); |
| 32 | 36 |
| 33 bool dispatchEvent(Event evt); | 37 bool dispatchEvent(Event evt); |
| 34 | 38 |
| 35 void importScripts(); | 39 void importScripts(); |
| 36 | 40 |
| 37 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 41 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 38 | 42 |
| 39 int setInterval(TimeoutHandler handler, int timeout); | 43 int setInterval(TimeoutHandler handler, int timeout); |
| 40 | 44 |
| 41 int setTimeout(TimeoutHandler handler, int timeout); | 45 int setTimeout(TimeoutHandler handler, int timeout); |
| 42 } | 46 } |
| 43 | 47 |
| 44 interface WorkerContext extends WorkerGlobalScope { | 48 interface WorkerContext extends WorkerGlobalScope { |
| 45 } | 49 } |
| OLD | NEW |