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

Side by Side Diff: lib/dom/frog/dom_frog.dart

Issue 10636021: Blob constructor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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/dom/dom.dart ('k') | lib/dom/idl/dart/dart.idl » ('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('dom'); 1 #library('dom');
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 11920 matching lines...) Expand 10 before | Expand all | Expand 10 after
11931 void setParameter(String namespaceURI, String localName, String value) native; 11931 void setParameter(String namespaceURI, String localName, String value) native;
11932 11932
11933 _DocumentJs transformToDocument(_NodeJs source) native; 11933 _DocumentJs transformToDocument(_NodeJs source) native;
11934 11934
11935 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na tive; 11935 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na tive;
11936 } 11936 }
11937 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11937 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11938 // for details. All rights reserved. Use of this source code is governed by a 11938 // for details. All rights reserved. Use of this source code is governed by a
11939 // BSD-style license that can be found in the LICENSE file. 11939 // BSD-style license that can be found in the LICENSE file.
11940 11940
11941 class _BlobFactoryProvider {
11942 factory Blob(List blobParts, [String type = null, String endings = null]) nati ve
11943 '''return new Blob(blobParts, type, endings);''';
11944 }
11945 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11946 // for details. All rights reserved. Use of this source code is governed by a
11947 // BSD-style license that can be found in the LICENSE file.
11948
11941 class _DOMParserFactoryProvider { 11949 class _DOMParserFactoryProvider {
11942 factory DOMParser() native 11950 factory DOMParser() native
11943 '''return new DOMParser();'''; 11951 '''return new DOMParser();''';
11944 } 11952 }
11945 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11953 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11946 // for details. All rights reserved. Use of this source code is governed by a 11954 // for details. All rights reserved. Use of this source code is governed by a
11947 // BSD-style license that can be found in the LICENSE file. 11955 // BSD-style license that can be found in the LICENSE file.
11948 11956
11949 class _DOMURLFactoryProvider { 11957 class _DOMURLFactoryProvider {
11950 factory DOMURL() native 11958 factory DOMURL() native
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
12613 int type; 12621 int type;
12614 12622
12615 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse); 12623 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse);
12616 } 12624 }
12617 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12625 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12618 // for details. All rights reserved. Use of this source code is governed by a 12626 // for details. All rights reserved. Use of this source code is governed by a
12619 // BSD-style license that can be found in the LICENSE file. 12627 // BSD-style license that can be found in the LICENSE file.
12620 12628
12621 // WARNING: Do not edit - generated code. 12629 // WARNING: Do not edit - generated code.
12622 12630
12623 interface Blob { 12631 interface Blob default _BlobFactoryProvider {
12632
12633 Blob(List blobParts, [String type, String endings]);
12624 12634
12625 final int size; 12635 final int size;
12626 12636
12627 final String type; 12637 final String type;
12628 12638
12629 Blob slice([int start, int end, String contentType]); 12639 Blob slice([int start, int end, String contentType]);
12630 12640
12631 Blob webkitSlice([int start, int end, String contentType]); 12641 Blob webkitSlice([int start, int end, String contentType]);
12632 } 12642 }
12633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12643 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 12615 matching lines...) Expand 10 before | Expand all | Expand 10 after
25249 if (length < 0) throw new IllegalArgumentException('length'); 25259 if (length < 0) throw new IllegalArgumentException('length');
25250 if (start < 0) throw new IndexOutOfRangeException(start); 25260 if (start < 0) throw new IndexOutOfRangeException(start);
25251 int end = start + length; 25261 int end = start + length;
25252 if (end > a.length) throw new IndexOutOfRangeException(end); 25262 if (end > a.length) throw new IndexOutOfRangeException(end);
25253 for (int i = start; i < end; i++) { 25263 for (int i = start; i < end; i++) {
25254 accumulator.add(a[i]); 25264 accumulator.add(a[i]);
25255 } 25265 }
25256 return accumulator; 25266 return accumulator;
25257 } 25267 }
25258 } 25268 }
OLDNEW
« no previous file with comments | « lib/dom/dom.dart ('k') | lib/dom/idl/dart/dart.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698