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

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

Issue 10892010: Revert change 11459 and 11464. (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 | « no previous file | 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 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 final _DirectoryEntryJs root; 1004 final _DirectoryEntryJs root;
1005 } 1005 }
1006 1006
1007 class _DOMFileSystemSyncJs extends _DOMTypeJs implements DOMFileSystemSync nativ e "*DOMFileSystemSync" { 1007 class _DOMFileSystemSyncJs extends _DOMTypeJs implements DOMFileSystemSync nativ e "*DOMFileSystemSync" {
1008 1008
1009 final String name; 1009 final String name;
1010 1010
1011 final _DirectoryEntrySyncJs root; 1011 final _DirectoryEntrySyncJs root;
1012 } 1012 }
1013 1013
1014 class _DOMFormDataJs extends _DOMTypeJs implements DOMFormData native "*DOMFormD ata" {
1015
1016 void append(String name, String value, String filename) native;
1017 }
1018
1014 class _DOMImplementationJs extends _DOMTypeJs implements DOMImplementation nativ e "*DOMImplementation" { 1019 class _DOMImplementationJs extends _DOMTypeJs implements DOMImplementation nativ e "*DOMImplementation" {
1015 1020
1016 _CSSStyleSheetJs createCSSStyleSheet(String title, String media) native; 1021 _CSSStyleSheetJs createCSSStyleSheet(String title, String media) native;
1017 1022
1018 _DocumentJs createDocument(String namespaceURI, String qualifiedName, _Documen tTypeJs doctype) native; 1023 _DocumentJs createDocument(String namespaceURI, String qualifiedName, _Documen tTypeJs doctype) native;
1019 1024
1020 _DocumentTypeJs createDocumentType(String qualifiedName, String publicId, Stri ng systemId) native; 1025 _DocumentTypeJs createDocumentType(String qualifiedName, String publicId, Stri ng systemId) native;
1021 1026
1022 _HTMLDocumentJs createHTMLDocument(String title) native; 1027 _HTMLDocumentJs createHTMLDocument(String title) native;
1023 1028
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after
2575 List<num> getRange(int start, int rangeLength) => 2580 List<num> getRange(int start, int rangeLength) =>
2576 _Lists.getRange(this, start, rangeLength, <num>[]); 2581 _Lists.getRange(this, start, rangeLength, <num>[]);
2577 2582
2578 // -- end List<num> mixins. 2583 // -- end List<num> mixins.
2579 2584
2580 void setElements(Object array, [int offset]) native 'set'; 2585 void setElements(Object array, [int offset]) native 'set';
2581 2586
2582 _Float64ArrayJs subarray(int start, [int end]) native; 2587 _Float64ArrayJs subarray(int start, [int end]) native;
2583 } 2588 }
2584 2589
2585 class _FormDataJs extends _DOMTypeJs implements FormData native "*FormData" {
2586
2587 void append(String name, String value, String filename) native;
2588 }
2589
2590 class _GamepadJs extends _DOMTypeJs implements Gamepad native "*Gamepad" { 2590 class _GamepadJs extends _DOMTypeJs implements Gamepad native "*Gamepad" {
2591 2591
2592 final List<num> axes; 2592 final List<num> axes;
2593 2593
2594 final List<num> buttons; 2594 final List<num> buttons;
2595 2595
2596 final String id; 2596 final String id;
2597 2597
2598 final int index; 2598 final int index;
2599 2599
(...skipping 9505 matching lines...) Expand 10 before | Expand all | Expand 10 after
12105 // BSD-style license that can be found in the LICENSE file. 12105 // BSD-style license that can be found in the LICENSE file.
12106 12106
12107 class _FileReaderSyncFactoryProvider { 12107 class _FileReaderSyncFactoryProvider {
12108 factory FileReaderSync() native 12108 factory FileReaderSync() native
12109 '''return new FileReaderSync();'''; 12109 '''return new FileReaderSync();''';
12110 } 12110 }
12111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12112 // for details. All rights reserved. Use of this source code is governed by a 12112 // for details. All rights reserved. Use of this source code is governed by a
12113 // BSD-style license that can be found in the LICENSE file. 12113 // BSD-style license that can be found in the LICENSE file.
12114 12114
12115 class _FormDataFactoryProvider {
12116 factory FormData([FormElement form]) native
12117 '''return new FormData(form);''';
12118 }
12119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12120 // for details. All rights reserved. Use of this source code is governed by a
12121 // BSD-style license that can be found in the LICENSE file.
12122
12123 class _HTMLAudioElementFactoryProvider { 12115 class _HTMLAudioElementFactoryProvider {
12124 factory HTMLAudioElement([String src = null]) native 12116 factory HTMLAudioElement([String src = null]) native
12125 ''' 12117 '''
12126 if (src == null) return new Audio(); 12118 if (src == null) return new Audio();
12127 return new Audio(src); 12119 return new Audio(src);
12128 '''; 12120 ''';
12129 } 12121 }
12130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12131 // for details. All rights reserved. Use of this source code is governed by a 12123 // for details. All rights reserved. Use of this source code is governed by a
12132 // BSD-style license that can be found in the LICENSE file. 12124 // BSD-style license that can be found in the LICENSE file.
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
13624 final String name; 13616 final String name;
13625 13617
13626 final DirectoryEntrySync root; 13618 final DirectoryEntrySync root;
13627 } 13619 }
13628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13629 // for details. All rights reserved. Use of this source code is governed by a 13621 // for details. All rights reserved. Use of this source code is governed by a
13630 // BSD-style license that can be found in the LICENSE file. 13622 // BSD-style license that can be found in the LICENSE file.
13631 13623
13632 // WARNING: Do not edit - generated code. 13624 // WARNING: Do not edit - generated code.
13633 13625
13626 interface FormData {
13627
13628 void append(String name, String value, String filename);
13629 }
13630
13631 interface DOMFormData extends FormData {
13632 }
13633 // 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
13635 // BSD-style license that can be found in the LICENSE file.
13636
13637 // WARNING: Do not edit - generated code.
13638
13634 interface DOMImplementation { 13639 interface DOMImplementation {
13635 13640
13636 CSSStyleSheet createCSSStyleSheet(String title, String media); 13641 CSSStyleSheet createCSSStyleSheet(String title, String media);
13637 13642
13638 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype); 13643 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype);
13639 13644
13640 DocumentType createDocumentType(String qualifiedName, String publicId, String systemId); 13645 DocumentType createDocumentType(String qualifiedName, String publicId, String systemId);
13641 13646
13642 HTMLDocument createHTMLDocument(String title); 13647 HTMLDocument createHTMLDocument(String title);
13643 13648
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after
15242 void setElements(Object array, [int offset]); 15247 void setElements(Object array, [int offset]);
15243 15248
15244 Float64Array subarray(int start, [int end]); 15249 Float64Array subarray(int start, [int end]);
15245 } 15250 }
15246 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15247 // for details. All rights reserved. Use of this source code is governed by a 15252 // for details. All rights reserved. Use of this source code is governed by a
15248 // BSD-style license that can be found in the LICENSE file. 15253 // BSD-style license that can be found in the LICENSE file.
15249 15254
15250 // WARNING: Do not edit - generated code. 15255 // WARNING: Do not edit - generated code.
15251 15256
15252 interface FormData default _FormDataFactoryProvider {
15253
15254 FormData([FormElement form]);
15255
15256 void append(String name, String value, String filename);
15257 }
15258 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15259 // for details. All rights reserved. Use of this source code is governed by a
15260 // BSD-style license that can be found in the LICENSE file.
15261
15262 // WARNING: Do not edit - generated code.
15263
15264 interface Gamepad { 15257 interface Gamepad {
15265 15258
15266 final List<num> axes; 15259 final List<num> axes;
15267 15260
15268 final List<num> buttons; 15261 final List<num> buttons;
15269 15262
15270 final String id; 15263 final String id;
15271 15264
15272 final int index; 15265 final int index;
15273 15266
(...skipping 10259 matching lines...) Expand 10 before | Expand all | Expand 10 after
25533 if (length < 0) throw new IllegalArgumentException('length'); 25526 if (length < 0) throw new IllegalArgumentException('length');
25534 if (start < 0) throw new IndexOutOfRangeException(start); 25527 if (start < 0) throw new IndexOutOfRangeException(start);
25535 int end = start + length; 25528 int end = start + length;
25536 if (end > a.length) throw new IndexOutOfRangeException(end); 25529 if (end > a.length) throw new IndexOutOfRangeException(end);
25537 for (int i = start; i < end; i++) { 25530 for (int i = start; i < end; i++) {
25538 accumulator.add(a[i]); 25531 accumulator.add(a[i]);
25539 } 25532 }
25540 return accumulator; 25533 return accumulator;
25541 } 25534 }
25542 } 25535 }
OLDNEW
« no previous file with comments | « no previous file | lib/dom/dom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698