| 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(); | |
| 18 | |
| 19 void set onerror(EventListener value); | |
| 20 | |
| 21 WorkerContext get self(); | 17 WorkerContext get self(); |
| 22 | 18 |
| 23 void set self(WorkerContext value); | 19 void set self(WorkerContext value); |
| 24 | 20 |
| 25 NotificationCenter get webkitNotifications(); | 21 NotificationCenter get webkitNotifications(); |
| 26 | 22 |
| 27 DOMURL get webkitURL(); | 23 DOMURL get webkitURL(); |
| 28 | 24 |
| 29 void addEventListener(String type, EventListener listener, [bool useCapture]); | 25 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 30 | 26 |
| 31 void clearInterval(int handle); | 27 void clearInterval(int handle); |
| 32 | 28 |
| 33 void clearTimeout(int handle); | 29 void clearTimeout(int handle); |
| 34 | 30 |
| 35 void close(); | 31 void close(); |
| 36 | 32 |
| 37 bool dispatchEvent(Event evt); | 33 bool dispatchEvent(Event evt); |
| 38 | 34 |
| 39 void importScripts(); | 35 void importScripts(); |
| 40 | 36 |
| 41 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 37 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 42 | 38 |
| 43 int setInterval(TimeoutHandler handler, int timeout); | 39 int setInterval(TimeoutHandler handler, int timeout); |
| 44 | 40 |
| 45 int setTimeout(TimeoutHandler handler, int timeout); | 41 int setTimeout(TimeoutHandler handler, int timeout); |
| 46 } | 42 } |
| 47 | 43 |
| 48 interface WorkerContext extends WorkerGlobalScope { | 44 interface WorkerContext extends WorkerGlobalScope { |
| 49 } | 45 } |
| OLD | NEW |