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

Side by Side Diff: client/dom/generated/src/wrapping/_XMLHttpRequestWrappingImplementation.dart

Issue 8574040: Support DOMString[] and regenerate from IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix Window.postMessage 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 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 class _XMLHttpRequestWrappingImplementation extends DOMWrapperBase implements XM LHttpRequest { 7 class _XMLHttpRequestWrappingImplementation extends DOMWrapperBase implements XM LHttpRequest {
8 _XMLHttpRequestWrappingImplementation() : super() {} 8 _XMLHttpRequestWrappingImplementation() : super() {}
9 9
10 static create__XMLHttpRequestWrappingImplementation() native { 10 static create__XMLHttpRequestWrappingImplementation() native {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 String getAllResponseHeaders() { 112 String getAllResponseHeaders() {
113 return _getAllResponseHeaders(this); 113 return _getAllResponseHeaders(this);
114 } 114 }
115 static String _getAllResponseHeaders(receiver) native; 115 static String _getAllResponseHeaders(receiver) native;
116 116
117 String getResponseHeader(String header) { 117 String getResponseHeader(String header) {
118 return _getResponseHeader(this, header); 118 return _getResponseHeader(this, header);
119 } 119 }
120 static String _getResponseHeader(receiver, header) native; 120 static String _getResponseHeader(receiver, header) native;
121 121
122 void open(String method, String url, bool async, [String user = null, String p assword = null]) { 122 void open(String method, String url, [bool async = null, String user = null, S tring password = null]) {
123 if (user === null) { 123 if (async === null) {
124 if (password === null) { 124 if (user === null) {
125 _open(this, method, url, async); 125 if (password === null) {
126 return; 126 _open(this, method, url);
127 return;
128 }
127 } 129 }
128 } else { 130 } else {
129 if (password === null) { 131 if (user === null) {
130 _open_2(this, method, url, async, user); 132 if (password === null) {
131 return; 133 _open_2(this, method, url, async);
134 return;
135 }
132 } else { 136 } else {
133 _open_3(this, method, url, async, user, password); 137 if (password === null) {
134 return; 138 _open_3(this, method, url, async, user);
139 return;
140 } else {
141 _open_4(this, method, url, async, user, password);
142 return;
143 }
135 } 144 }
136 } 145 }
137 throw "Incorrect number or type of arguments"; 146 throw "Incorrect number or type of arguments";
138 } 147 }
139 static void _open(receiver, method, url, async) native; 148 static void _open(receiver, method, url) native;
140 static void _open_2(receiver, method, url, async, user) native; 149 static void _open_2(receiver, method, url, async) native;
141 static void _open_3(receiver, method, url, async, user, password) native; 150 static void _open_3(receiver, method, url, async, user) native;
151 static void _open_4(receiver, method, url, async, user, password) native;
142 152
143 void overrideMimeType(String override) { 153 void overrideMimeType(String override) {
144 _overrideMimeType(this, override); 154 _overrideMimeType(this, override);
145 return; 155 return;
146 } 156 }
147 static void _overrideMimeType(receiver, override) native; 157 static void _overrideMimeType(receiver, override) native;
148 158
149 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) { 159 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) {
150 if (useCapture === null) { 160 if (useCapture === null) {
151 _removeEventListener(this, type, listener); 161 _removeEventListener(this, type, listener);
152 return; 162 return;
153 } else { 163 } else {
154 _removeEventListener_2(this, type, listener, useCapture); 164 _removeEventListener_2(this, type, listener, useCapture);
155 return; 165 return;
156 } 166 }
157 } 167 }
158 static void _removeEventListener(receiver, type, listener) native; 168 static void _removeEventListener(receiver, type, listener) native;
159 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ e; 169 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ e;
160 170
161 void send([var data = null]) { 171 void send([var data = null]) {
162 if (data === null) { 172 if (data === null) {
163 _send(this); 173 _send(this);
164 return; 174 return;
165 } else { 175 } else {
166 if (data is String) { 176 if (data is ArrayBuffer) {
167 _send_2(this, data); 177 _send_2(this, data);
168 return; 178 return;
169 } else { 179 } else {
170 if (data is Document) { 180 if (data is Blob) {
171 _send_3(this, data); 181 _send_3(this, data);
172 return; 182 return;
183 } else {
184 if (data is Document) {
185 _send_4(this, data);
186 return;
187 } else {
188 if (data is String) {
189 _send_5(this, data);
190 return;
191 } else {
192 if (data is DOMFormData) {
193 _send_6(this, data);
194 return;
195 }
196 }
197 }
173 } 198 }
174 } 199 }
175 } 200 }
176 throw "Incorrect number or type of arguments"; 201 throw "Incorrect number or type of arguments";
177 } 202 }
178 static void _send(receiver) native; 203 static void _send(receiver) native;
179 static void _send_2(receiver, data) native; 204 static void _send_2(receiver, data) native;
180 static void _send_3(receiver, data) native; 205 static void _send_3(receiver, data) native;
206 static void _send_4(receiver, data) native;
207 static void _send_5(receiver, data) native;
208 static void _send_6(receiver, data) native;
181 209
182 void setRequestHeader(String header, String value) { 210 void setRequestHeader(String header, String value) {
183 _setRequestHeader(this, header, value); 211 _setRequestHeader(this, header, value);
184 return; 212 return;
185 } 213 }
186 static void _setRequestHeader(receiver, header, value) native; 214 static void _setRequestHeader(receiver, header, value) native;
187 215
188 String get typeName() { return "XMLHttpRequest"; } 216 String get typeName() { return "XMLHttpRequest"; }
189 } 217 }
OLDNEW
« no previous file with comments | « client/dom/generated/src/wrapping/_WheelEventWrappingImplementation.dart ('k') | client/dom/generated/wrapping_dom.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698