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

Side by Side Diff: client/html/src/WindowWrappingImplementation.dart

Issue 8548019: Add a script for determining which DOM methods correspond to which HTML methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use "Window" instead of "DOMWindow". Created 9 years, 1 month 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
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « client/html/src/TouchEventWrappingImplementation.dart ('k') | client/html/src/XMLHttpRequestWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698