OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 part of html; | 5 part of html; |
6 | 6 |
7 /** | 7 /** |
8 * A factory to expose DOM events as Streams. | 8 * A factory to expose DOM events as Streams. |
9 */ | 9 */ |
10 class EventStreamProvider<T extends Event> { | 10 class EventStreamProvider<T extends Event> { |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 } | 421 } |
422 | 422 |
423 ElementStream<T> _forElementList(ElementList e, | 423 ElementStream<T> _forElementList(ElementList e, |
424 {bool useCapture: false}) { | 424 {bool useCapture: false}) { |
425 return new _ElementListEventStreamImpl(e, _eventTypeGetter(e), useCapture); | 425 return new _ElementListEventStreamImpl(e, _eventTypeGetter(e), useCapture); |
426 } | 426 } |
427 | 427 |
428 String getEventType(EventTarget target) { | 428 String getEventType(EventTarget target) { |
429 return _eventTypeGetter(target); | 429 return _eventTypeGetter(target); |
430 } | 430 } |
431 | |
432 String get _eventType => | |
433 throw new UnsupportedError('Access type through getEventType method.'); | |
434 } | 431 } |
OLD | NEW |