| OLD | NEW |
| 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 9194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9205 | 9205 |
| 9206 class _SharedWorkerContextJs extends _WorkerContextJs implements SharedWorkerCon
text native "*SharedWorkerContext" { | 9206 class _SharedWorkerContextJs extends _WorkerContextJs implements SharedWorkerCon
text native "*SharedWorkerContext" { |
| 9207 | 9207 |
| 9208 final String name; | 9208 final String name; |
| 9209 | 9209 |
| 9210 EventListener onconnect; | 9210 EventListener onconnect; |
| 9211 } | 9211 } |
| 9212 | 9212 |
| 9213 class _SpeechGrammarJs extends _DOMTypeJs implements SpeechGrammar native "*Spee
chGrammar" { | 9213 class _SpeechGrammarJs extends _DOMTypeJs implements SpeechGrammar native "*Spee
chGrammar" { |
| 9214 | 9214 |
| 9215 String src; |
| 9216 |
| 9215 num weight; | 9217 num weight; |
| 9216 } | 9218 } |
| 9217 | 9219 |
| 9218 class _SpeechGrammarListJs extends _DOMTypeJs implements SpeechGrammarList nativ
e "*SpeechGrammarList" { | 9220 class _SpeechGrammarListJs extends _DOMTypeJs implements SpeechGrammarList nativ
e "*SpeechGrammarList" { |
| 9219 | 9221 |
| 9220 final int length; | 9222 final int length; |
| 9221 | 9223 |
| 9222 void addFromString(String string, [num weight = null]) native; | 9224 void addFromString(String string, [num weight = null]) native; |
| 9223 | 9225 |
| 9224 void addFromUri(String src, [num weight = null]) native; | 9226 void addFromUri(String src, [num weight = null]) native; |
| (...skipping 11881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21106 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21108 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21107 // for details. All rights reserved. Use of this source code is governed by a | 21109 // for details. All rights reserved. Use of this source code is governed by a |
| 21108 // BSD-style license that can be found in the LICENSE file. | 21110 // BSD-style license that can be found in the LICENSE file. |
| 21109 | 21111 |
| 21110 // WARNING: Do not edit - generated code. | 21112 // WARNING: Do not edit - generated code. |
| 21111 | 21113 |
| 21112 interface SpeechGrammar default _SpeechGrammarFactoryProvider { | 21114 interface SpeechGrammar default _SpeechGrammarFactoryProvider { |
| 21113 | 21115 |
| 21114 SpeechGrammar(); | 21116 SpeechGrammar(); |
| 21115 | 21117 |
| 21118 String src; |
| 21119 |
| 21116 num weight; | 21120 num weight; |
| 21117 } | 21121 } |
| 21118 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21119 // for details. All rights reserved. Use of this source code is governed by a | 21123 // for details. All rights reserved. Use of this source code is governed by a |
| 21120 // BSD-style license that can be found in the LICENSE file. | 21124 // BSD-style license that can be found in the LICENSE file. |
| 21121 | 21125 |
| 21122 // WARNING: Do not edit - generated code. | 21126 // WARNING: Do not edit - generated code. |
| 21123 | 21127 |
| 21124 interface SpeechGrammarList default _SpeechGrammarListFactoryProvider { | 21128 interface SpeechGrammarList default _SpeechGrammarListFactoryProvider { |
| 21125 | 21129 |
| (...skipping 3316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24442 if (length < 0) throw new IllegalArgumentException('length'); | 24446 if (length < 0) throw new IllegalArgumentException('length'); |
| 24443 if (start < 0) throw new IndexOutOfRangeException(start); | 24447 if (start < 0) throw new IndexOutOfRangeException(start); |
| 24444 int end = start + length; | 24448 int end = start + length; |
| 24445 if (end > a.length) throw new IndexOutOfRangeException(end); | 24449 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 24446 for (int i = start; i < end; i++) { | 24450 for (int i = start; i < end; i++) { |
| 24447 accumulator.add(a[i]); | 24451 accumulator.add(a[i]); |
| 24448 } | 24452 } |
| 24449 return accumulator; | 24453 return accumulator; |
| 24450 } | 24454 } |
| 24451 } | 24455 } |
| OLD | NEW |