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 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
6 | 6 |
7 @DocsEditable() | 7 @DocsEditable() |
8 $if DART2JS | 8 $if DART2JS |
9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Wind
ow,DOMWindow" { | 9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Wind
ow,DOMWindow" { |
10 $else | 10 $else |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 | 387 |
388 return controller.stream; | 388 return controller.stream; |
389 $else | 389 $else |
390 return stream; | 390 return stream; |
391 $endif | 391 $endif |
392 } | 392 } |
393 | 393 |
394 String getEventType(EventTarget target) { | 394 String getEventType(EventTarget target) { |
395 return _eventType; | 395 return _eventType; |
396 } | 396 } |
397 | |
398 ElementStream<BeforeUnloadEvent> forElement(Element e, {bool useCapture: false
}) { | |
399 return new _ElementEventStreamImpl(e, _eventType, useCapture); | |
400 } | |
401 | |
402 ElementStream<BeforeUnloadEvent> _forElementList(ElementList e, | |
403 {bool useCapture: false}) { | |
404 return new _ElementListEventStreamImpl(e, _eventType, useCapture); | |
405 } | |
406 } | 397 } |
OLD | NEW |