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

Side by Side Diff: client/html/src/XMLHttpRequestWrappingImplementation.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 class XMLHttpRequestEventsImplementation extends EventsImplementation 5 class XMLHttpRequestEventsImplementation extends EventsImplementation
6 implements XMLHttpRequestEvents { 6 implements XMLHttpRequestEvents {
7 XMLHttpRequestEventsImplementation._wrap(_ptr) : super._wrap(_ptr); 7 XMLHttpRequestEventsImplementation._wrap(_ptr) : super._wrap(_ptr);
8 8
9 EventListenerList get abort() => _get('abort'); 9 EventListenerList get abort() => _get('abort');
10 EventListenerList get error() => _get('error'); 10 EventListenerList get error() => _get('error');
11 EventListenerList get load() => _get('load'); 11 EventListenerList get load() => _get('load');
12 EventListenerList get loadStart() => _get('loadstart'); 12 EventListenerList get loadStart() => _get('loadstart');
13 EventListenerList get progress() => _get('progress'); 13 EventListenerList get progress() => _get('progress');
14 EventListenerList get readyStateChange() => _get('readystatechange'); 14 EventListenerList get readyStateChange() => _get('readystatechange');
15 } 15 }
16 16
17 class XMLHttpRequestWrappingImplementation extends EventTargetWrappingImplementa tion implements XMLHttpRequest { 17 class XMLHttpRequestWrappingImplementation extends EventTargetWrappingImplementa tion implements XMLHttpRequest {
18 XMLHttpRequestWrappingImplementation._wrap( 18 XMLHttpRequestWrappingImplementation._wrap(
19 dom.XMLHttpRequest ptr) : super._wrap(ptr); 19 dom.XMLHttpRequest ptr) : super._wrap(ptr);
20 20
21 /** @domName Window.createXMLHttpRequest */
21 factory XMLHttpRequestWrappingImplementation() { 22 factory XMLHttpRequestWrappingImplementation() {
22 return new XMLHttpRequestWrappingImplementation._wrap( 23 return new XMLHttpRequestWrappingImplementation._wrap(
23 new dom.XMLHttpRequest()); 24 new dom.XMLHttpRequest());
24 } 25 }
25 26
26 factory XMLHttpRequestWrappingImplementation.getTEMPNAME(String url, 27 factory XMLHttpRequestWrappingImplementation.getTEMPNAME(String url,
27 onSuccess(XMLHttpRequest request)) { 28 onSuccess(XMLHttpRequest request)) {
28 final request = new XMLHttpRequest(); 29 final request = new XMLHttpRequest();
29 request.open('GET', url, true); 30 request.open('GET', url, true);
30 31
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 _ptr.setRequestHeader(header, value); 123 _ptr.setRequestHeader(header, value);
123 } 124 }
124 125
125 XMLHttpRequestEvents get on() { 126 XMLHttpRequestEvents get on() {
126 if (_on === null) { 127 if (_on === null) {
127 _on = new XMLHttpRequestEventsImplementation._wrap(_ptr); 128 _on = new XMLHttpRequestEventsImplementation._wrap(_ptr);
128 } 129 }
129 return _on; 130 return _on;
130 } 131 }
131 } 132 }
OLDNEW
« no previous file with comments | « client/html/src/WindowWrappingImplementation.dart ('k') | client/html/src/_FactoryProviders.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698