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 // TODO(jacobr): define a base class containing the overlap between | 5 // TODO(jacobr): define a base class containing the overlap between |
6 // this class and ElementEvents. | 6 // this class and ElementEvents. |
7 class WindowEventsImplementation extends EventsImplementation | 7 class WindowEventsImplementation extends EventsImplementation |
8 implements WindowEvents { | 8 implements WindowEvents { |
9 WindowEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | 9 WindowEventsImplementation._wrap(_ptr) : super._wrap(_ptr); |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 EventListenerList get unLoad() => _get('unload'); | 77 EventListenerList get unLoad() => _get('unload'); |
78 EventListenerList get volumeChange() => _get('volumechange'); | 78 EventListenerList get volumeChange() => _get('volumechange'); |
79 EventListenerList get waiting() => _get('waiting'); | 79 EventListenerList get waiting() => _get('waiting'); |
80 EventListenerList get animationEnd() => _get('webkitAnimationEnd'); | 80 EventListenerList get animationEnd() => _get('webkitAnimationEnd'); |
81 EventListenerList get animationIteration() => _get('webkitAnimationIteration')
; | 81 EventListenerList get animationIteration() => _get('webkitAnimationIteration')
; |
82 EventListenerList get animationStart() => _get('webkitAnimationStart'); | 82 EventListenerList get animationStart() => _get('webkitAnimationStart'); |
83 EventListenerList get transitionEnd() => _get('webkitTransitionEnd'); | 83 EventListenerList get transitionEnd() => _get('webkitTransitionEnd'); |
84 EventListenerList get contentLoaded() => _get('DOMContentLoaded'); | 84 EventListenerList get contentLoaded() => _get('DOMContentLoaded'); |
85 } | 85 } |
86 | 86 |
| 87 /** @domName Window */ |
87 class WindowWrappingImplementation extends EventTargetWrappingImplementation imp
lements Window { | 88 class WindowWrappingImplementation extends EventTargetWrappingImplementation imp
lements Window { |
88 WindowWrappingImplementation._wrap(ptr) : super._wrap(ptr); | 89 WindowWrappingImplementation._wrap(ptr) : super._wrap(ptr); |
89 | 90 |
90 DOMApplicationCache get applicationCache() => LevelDom.wrapDOMApplicationCache
(_ptr.applicationCache); | 91 DOMApplicationCache get applicationCache() => LevelDom.wrapDOMApplicationCache
(_ptr.applicationCache); |
91 | 92 |
92 Navigator get clientInformation() => LevelDom.wrapNavigator(_ptr.clientInforma
tion); | 93 Navigator get clientInformation() => LevelDom.wrapNavigator(_ptr.clientInforma
tion); |
93 | 94 |
94 void set clientInformation(Navigator value) { _ptr.clientInformation = LevelDo
m.unwrap(value); } | 95 void set clientInformation(Navigator value) { _ptr.clientInformation = LevelDo
m.unwrap(value); } |
95 | 96 |
96 bool get closed() => _ptr.closed; | 97 bool get closed() => _ptr.closed; |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 _addMeasurementFrameCallback(callback); | 845 _addMeasurementFrameCallback(callback); |
845 } | 846 } |
846 | 847 |
847 WindowEvents get on() { | 848 WindowEvents get on() { |
848 if (_on === null) { | 849 if (_on === null) { |
849 _on = new WindowEventsImplementation._wrap(_ptr); | 850 _on = new WindowEventsImplementation._wrap(_ptr); |
850 } | 851 } |
851 return _on; | 852 return _on; |
852 } | 853 } |
853 } | 854 } |
OLD | NEW |