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

Side by Side Diff: lib/dom/dart2js/dom_dart2js.dart

Issue 10887016: Reapply DOMFormData => FormData rename. (this time with a fix for Dartium) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months 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
« no previous file with comments | « lib/compiler/implementation/lib/native_helper.dart ('k') | lib/dom/dom.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('dart:dom_deprecated'); 1 #library('dart:dom_deprecated');
2 2
3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 6
7 // DO NOT EDIT 7 // DO NOT EDIT
8 // Auto-generated Dart DOM library. 8 // Auto-generated Dart DOM library.
9 9
10 10
(...skipping 12046 matching lines...) Expand 10 before | Expand all | Expand 10 after
12057 // BSD-style license that can be found in the LICENSE file. 12057 // BSD-style license that can be found in the LICENSE file.
12058 12058
12059 class _BlobFactoryProvider { 12059 class _BlobFactoryProvider {
12060 factory Blob(List blobParts, [String type, String endings]) native 12060 factory Blob(List blobParts, [String type, String endings]) native
12061 '''return new Blob(blobParts, type, endings);'''; 12061 '''return new Blob(blobParts, type, endings);''';
12062 } 12062 }
12063 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12063 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12064 // for details. All rights reserved. Use of this source code is governed by a 12064 // for details. All rights reserved. Use of this source code is governed by a
12065 // BSD-style license that can be found in the LICENSE file. 12065 // BSD-style license that can be found in the LICENSE file.
12066 12066
12067 class _DOMFormDataFactoryProvider {
12068 factory DOMFormData([FormElement form]) native
12069 '''return new DOMFormData(form);''';
12070 }
12071 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12072 // for details. All rights reserved. Use of this source code is governed by a
12073 // BSD-style license that can be found in the LICENSE file.
12074
12067 class _DOMParserFactoryProvider { 12075 class _DOMParserFactoryProvider {
12068 factory DOMParser() native 12076 factory DOMParser() native
12069 '''return new DOMParser();'''; 12077 '''return new DOMParser();''';
12070 } 12078 }
12071 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12079 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12072 // for details. All rights reserved. Use of this source code is governed by a 12080 // for details. All rights reserved. Use of this source code is governed by a
12073 // BSD-style license that can be found in the LICENSE file. 12081 // BSD-style license that can be found in the LICENSE file.
12074 12082
12075 class _DOMURLFactoryProvider { 12083 class _DOMURLFactoryProvider {
12076 factory DOMURL() native 12084 factory DOMURL() native
(...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after
13616 final String name; 13624 final String name;
13617 13625
13618 final DirectoryEntrySync root; 13626 final DirectoryEntrySync root;
13619 } 13627 }
13620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13621 // for details. All rights reserved. Use of this source code is governed by a 13629 // for details. All rights reserved. Use of this source code is governed by a
13622 // BSD-style license that can be found in the LICENSE file. 13630 // BSD-style license that can be found in the LICENSE file.
13623 13631
13624 // WARNING: Do not edit - generated code. 13632 // WARNING: Do not edit - generated code.
13625 13633
13626 interface FormData { 13634 interface FormData default _FormDataFactoryProvider {
13635
13636 FormData([FormElement form]);
13627 13637
13628 void append(String name, String value, String filename); 13638 void append(String name, String value, String filename);
13629 } 13639 }
13630 13640
13631 interface DOMFormData extends FormData { 13641 interface DOMFormData extends FormData {
13632 } 13642 }
13633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13643 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13634 // for details. All rights reserved. Use of this source code is governed by a 13644 // for details. All rights reserved. Use of this source code is governed by a
13635 // BSD-style license that can be found in the LICENSE file. 13645 // BSD-style license that can be found in the LICENSE file.
13636 13646
(...skipping 11567 matching lines...) Expand 10 before | Expand all | Expand 10 after
25204 // BSD-style license that can be found in the LICENSE file. 25214 // BSD-style license that can be found in the LICENSE file.
25205 25215
25206 class _AudioContextFactoryProvider { 25216 class _AudioContextFactoryProvider {
25207 25217
25208 factory AudioContext() native ''' 25218 factory AudioContext() native '''
25209 var constructor = window.AudioContext || window.webkitAudioContext; 25219 var constructor = window.AudioContext || window.webkitAudioContext;
25210 return new constructor(); 25220 return new constructor();
25211 '''; 25221 ''';
25212 } 25222 }
25213 25223
25224 class _FormDataFactoryProvider {
25225
25226 factory FormData([FormElement form = null]) native '''
25227 if (form == null) return new FormData();
25228 return new FormData(form);
25229 ''';
25230
25231 }
25232
25214 class _WebKitPointFactoryProvider { 25233 class _WebKitPointFactoryProvider {
25215 25234
25216 factory WebKitPoint(num x, num y) native '''return new WebKitPoint(x, y);'''; 25235 factory WebKitPoint(num x, num y) native '''return new WebKitPoint(x, y);''';
25217 } 25236 }
25218 25237
25219 class _WebSocketFactoryProvider { 25238 class _WebSocketFactoryProvider {
25220 25239
25221 factory WebSocket(String url) native '''return new WebSocket(url);'''; 25240 factory WebSocket(String url) native '''return new WebSocket(url);''';
25222 } 25241 }
25223 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25242 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
25526 if (length < 0) throw new IllegalArgumentException('length'); 25545 if (length < 0) throw new IllegalArgumentException('length');
25527 if (start < 0) throw new IndexOutOfRangeException(start); 25546 if (start < 0) throw new IndexOutOfRangeException(start);
25528 int end = start + length; 25547 int end = start + length;
25529 if (end > a.length) throw new IndexOutOfRangeException(end); 25548 if (end > a.length) throw new IndexOutOfRangeException(end);
25530 for (int i = start; i < end; i++) { 25549 for (int i = start; i < end; i++) {
25531 accumulator.add(a[i]); 25550 accumulator.add(a[i]);
25532 } 25551 }
25533 return accumulator; 25552 return accumulator;
25534 } 25553 }
25535 } 25554 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/lib/native_helper.dart ('k') | lib/dom/dom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698