Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 13901019: Fixing error event type of Workers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev'; 6 import 'dart:_collection-dev';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // for details. All rights reserved. Use of this source code is governed by a 68 // for details. All rights reserved. Use of this source code is governed by a
69 // BSD-style license that can be found in the LICENSE file. 69 // BSD-style license that can be found in the LICENSE file.
70 70
71 71
72 @DocsEditable 72 @DocsEditable
73 @DomName('AbstractWorker') 73 @DomName('AbstractWorker')
74 class AbstractWorker extends EventTarget native "AbstractWorker" { 74 class AbstractWorker extends EventTarget native "AbstractWorker" {
75 75
76 @DomName('AbstractWorker.errorEvent') 76 @DomName('AbstractWorker.errorEvent')
77 @DocsEditable 77 @DocsEditable
78 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 78 static const EventStreamProvider<ErrorEvent> errorEvent = const EventStreamPro vider<ErrorEvent>('error');
79 79
80 @JSName('addEventListener') 80 @JSName('addEventListener')
81 @DomName('AbstractWorker.addEventListener') 81 @DomName('AbstractWorker.addEventListener')
82 @DocsEditable 82 @DocsEditable
83 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 83 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
84 84
85 @DomName('AbstractWorker.dispatchEvent') 85 @DomName('AbstractWorker.dispatchEvent')
86 @DocsEditable 86 @DocsEditable
87 bool dispatchEvent(Event evt) native; 87 bool dispatchEvent(Event evt) native;
88 88
89 @JSName('removeEventListener') 89 @JSName('removeEventListener')
90 @DomName('AbstractWorker.removeEventListener') 90 @DomName('AbstractWorker.removeEventListener')
91 @DocsEditable 91 @DocsEditable
92 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 92 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
93 93
94 @DomName('AbstractWorker.onerror') 94 @DomName('AbstractWorker.onerror')
95 @DocsEditable 95 @DocsEditable
96 Stream<Event> get onError => errorEvent.forTarget(this); 96 Stream<ErrorEvent> get onError => errorEvent.forTarget(this);
97 } 97 }
98 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 98 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
99 // for details. All rights reserved. Use of this source code is governed by a 99 // for details. All rights reserved. Use of this source code is governed by a
100 // BSD-style license that can be found in the LICENSE file. 100 // BSD-style license that can be found in the LICENSE file.
101 101
102 102
103 @DocsEditable 103 @DocsEditable
104 @DomName('HTMLAnchorElement') 104 @DomName('HTMLAnchorElement')
105 class AnchorElement extends Element native "HTMLAnchorElement" { 105 class AnchorElement extends Element native "HTMLAnchorElement" {
106 106
(...skipping 29485 matching lines...) Expand 10 before | Expand all | Expand 10 after
29592 _position = nextPosition; 29592 _position = nextPosition;
29593 return true; 29593 return true;
29594 } 29594 }
29595 _current = null; 29595 _current = null;
29596 _position = _array.length; 29596 _position = _array.length;
29597 return false; 29597 return false;
29598 } 29598 }
29599 29599
29600 T get current => _current; 29600 T get current => _current;
29601 } 29601 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698