OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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: | 5 // WARNING: |
6 // This file contains documentation that is merged into the real source. | 6 // This file contains documentation that is merged into the real source. |
7 // Do not make code changes here. | 7 // Do not make code changes here. |
8 | 8 |
9 /// @domName AbstractWorker | 9 /// An HTML5 Abstract Worker. |
10 interface AbstractWorker extends EventTarget { | 10 interface AbstractWorker extends EventTarget { |
11 | 11 |
12 /** | 12 /** |
13 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent | 13 * The valid events associated with an AbstractWorker. |
14 */ | 14 */ |
15 AbstractWorkerEvents get on(); | 15 AbstractWorkerEvents get on(); |
16 | 16 |
17 /** @domName AbstractWorker.addEventListener */ | 17 /** @domName AbstractWorker.addEventListener */ |
18 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); | 18 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
19 | 19 |
20 /** @domName AbstractWorker.dispatchEvent */ | 20 /** @domName AbstractWorker.dispatchEvent */ |
21 bool $dom_dispatchEvent(Event evt); | 21 bool $dom_dispatchEvent(Event evt); |
22 | 22 |
23 /** @domName AbstractWorker.removeEventListener */ | 23 /** @domName AbstractWorker.removeEventListener */ |
24 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); | 24 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
25 } | 25 } |
26 | 26 |
27 interface AbstractWorkerEvents extends Events { | 27 interface AbstractWorkerEvents extends Events { |
28 | 28 |
29 EventListenerList get error(); | 29 EventListenerList get error(); |
30 } | 30 } |
OLD | NEW |