| OLD | NEW |
| 1 library html; | 1 library html; |
| 2 | 2 |
| 3 import 'dart:isolate'; | 3 import 'dart:isolate'; |
| 4 import 'dart:json'; | 4 import 'dart:json'; |
| 5 import 'dart:svg' as svg; | 5 import 'dart:svg' as svg; |
| 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7 // for details. All rights reserved. Use of this source code is governed by a | 7 // for details. All rights reserved. Use of this source code is governed by a |
| 8 // BSD-style license that can be found in the LICENSE file. | 8 // BSD-style license that can be found in the LICENSE file. |
| 9 | 9 |
| 10 // DO NOT EDIT | 10 // DO NOT EDIT |
| (...skipping 6765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6776 bool get frozen => true; | 6776 bool get frozen => true; |
| 6777 } | 6777 } |
| 6778 | 6778 |
| 6779 class DocumentFragment extends Node native "*DocumentFragment" { | 6779 class DocumentFragment extends Node native "*DocumentFragment" { |
| 6780 factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentF
ragment(); | 6780 factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentF
ragment(); |
| 6781 | 6781 |
| 6782 factory DocumentFragment.html(String html) => | 6782 factory DocumentFragment.html(String html) => |
| 6783 _DocumentFragmentFactoryProvider.createDocumentFragment_html(html); | 6783 _DocumentFragmentFactoryProvider.createDocumentFragment_html(html); |
| 6784 | 6784 |
| 6785 factory DocumentFragment.svg(String svgContent) => | 6785 factory DocumentFragment.svg(String svgContent) => |
| 6786 new _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent
); | 6786 _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent); |
| 6787 | 6787 |
| 6788 List<Element> _elements; | 6788 List<Element> _elements; |
| 6789 | 6789 |
| 6790 List<Element> get elements { | 6790 List<Element> get elements { |
| 6791 if (_elements == null) { | 6791 if (_elements == null) { |
| 6792 _elements = new FilteredElementList(this); | 6792 _elements = new FilteredElementList(this); |
| 6793 } | 6793 } |
| 6794 return _elements; | 6794 return _elements; |
| 6795 } | 6795 } |
| 6796 | 6796 |
| (...skipping 3009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9807 // for details. All rights reserved. Use of this source code is governed by a | 9807 // for details. All rights reserved. Use of this source code is governed by a |
| 9808 // BSD-style license that can be found in the LICENSE file. | 9808 // BSD-style license that can be found in the LICENSE file. |
| 9809 | 9809 |
| 9810 | 9810 |
| 9811 class HttpRequest extends EventTarget native "*XMLHttpRequest" { | 9811 class HttpRequest extends EventTarget native "*XMLHttpRequest" { |
| 9812 factory HttpRequest.get(String url, onSuccess(HttpRequest request)) => | 9812 factory HttpRequest.get(String url, onSuccess(HttpRequest request)) => |
| 9813 _HttpRequestFactoryProvider.createHttpRequest_get(url, onSuccess); | 9813 _HttpRequestFactoryProvider.createHttpRequest_get(url, onSuccess); |
| 9814 | 9814 |
| 9815 factory HttpRequest.getWithCredentials(String url, onSuccess(HttpRequest reque
st)) => | 9815 factory HttpRequest.getWithCredentials(String url, onSuccess(HttpRequest reque
st)) => |
| 9816 _HttpRequestFactoryProvider.createHttpRequestgetWithCredentials(url, onSuc
cess); | 9816 _HttpRequestFactoryProvider.createHttpRequest_getWithCredentials(url, onSu
ccess); |
| 9817 | 9817 |
| 9818 | 9818 |
| 9819 factory HttpRequest() => _HttpRequestFactoryProvider.createHttpRequest(); | 9819 factory HttpRequest() => _HttpRequestFactoryProvider.createHttpRequest(); |
| 9820 | 9820 |
| 9821 /** | 9821 /** |
| 9822 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent | 9822 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
| 9823 */ | 9823 */ |
| 9824 HttpRequestEvents get on => | 9824 HttpRequestEvents get on => |
| 9825 new HttpRequestEvents(this); | 9825 new HttpRequestEvents(this); |
| 9826 | 9826 |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10431 } | 10431 } |
| 10432 if (?lowerOpen) { | 10432 if (?lowerOpen) { |
| 10433 var lower_3 = _convertDartToNative_IDBKey(lower); | 10433 var lower_3 = _convertDartToNative_IDBKey(lower); |
| 10434 var upper_4 = _convertDartToNative_IDBKey(upper); | 10434 var upper_4 = _convertDartToNative_IDBKey(upper); |
| 10435 return _bound__2(lower_3, upper_4, lowerOpen); | 10435 return _bound__2(lower_3, upper_4, lowerOpen); |
| 10436 } | 10436 } |
| 10437 var lower_5 = _convertDartToNative_IDBKey(lower); | 10437 var lower_5 = _convertDartToNative_IDBKey(lower); |
| 10438 var upper_6 = _convertDartToNative_IDBKey(upper); | 10438 var upper_6 = _convertDartToNative_IDBKey(upper); |
| 10439 return _bound__3(lower_5, upper_6); | 10439 return _bound__3(lower_5, upper_6); |
| 10440 } | 10440 } |
| 10441 IDBKeyRange _bound__1(lower, upper, lowerOpen, upperOpen) native "bound"; | 10441 static IDBKeyRange _bound__1(lower, upper, lowerOpen, upperOpen) native "bound
"; |
| 10442 IDBKeyRange _bound__2(lower, upper, lowerOpen) native "bound"; | 10442 static IDBKeyRange _bound__2(lower, upper, lowerOpen) native "bound"; |
| 10443 IDBKeyRange _bound__3(lower, upper) native "bound"; | 10443 static IDBKeyRange _bound__3(lower, upper) native "bound"; |
| 10444 | 10444 |
| 10445 /** @domName IDBKeyRange.lowerBound_ */ | 10445 /** @domName IDBKeyRange.lowerBound_ */ |
| 10446 static IDBKeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) { | 10446 static IDBKeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) { |
| 10447 if (?open) { | 10447 if (?open) { |
| 10448 var bound_1 = _convertDartToNative_IDBKey(bound); | 10448 var bound_1 = _convertDartToNative_IDBKey(bound); |
| 10449 return _lowerBound__1(bound_1, open); | 10449 return _lowerBound__1(bound_1, open); |
| 10450 } | 10450 } |
| 10451 var bound_2 = _convertDartToNative_IDBKey(bound); | 10451 var bound_2 = _convertDartToNative_IDBKey(bound); |
| 10452 return _lowerBound__2(bound_2); | 10452 return _lowerBound__2(bound_2); |
| 10453 } | 10453 } |
| 10454 IDBKeyRange _lowerBound__1(bound, open) native "lowerBound"; | 10454 static IDBKeyRange _lowerBound__1(bound, open) native "lowerBound"; |
| 10455 IDBKeyRange _lowerBound__2(bound) native "lowerBound"; | 10455 static IDBKeyRange _lowerBound__2(bound) native "lowerBound"; |
| 10456 | 10456 |
| 10457 /** @domName IDBKeyRange.only_ */ | 10457 /** @domName IDBKeyRange.only_ */ |
| 10458 static IDBKeyRange only_(/*IDBKey*/ value) { | 10458 static IDBKeyRange only_(/*IDBKey*/ value) { |
| 10459 var value_1 = _convertDartToNative_IDBKey(value); | 10459 var value_1 = _convertDartToNative_IDBKey(value); |
| 10460 return _only__1(value_1); | 10460 return _only__1(value_1); |
| 10461 } | 10461 } |
| 10462 IDBKeyRange _only__1(value) native "only"; | 10462 static IDBKeyRange _only__1(value) native "only"; |
| 10463 | 10463 |
| 10464 /** @domName IDBKeyRange.upperBound_ */ | 10464 /** @domName IDBKeyRange.upperBound_ */ |
| 10465 static IDBKeyRange upperBound_(/*IDBKey*/ bound, [bool open]) { | 10465 static IDBKeyRange upperBound_(/*IDBKey*/ bound, [bool open]) { |
| 10466 if (?open) { | 10466 if (?open) { |
| 10467 var bound_1 = _convertDartToNative_IDBKey(bound); | 10467 var bound_1 = _convertDartToNative_IDBKey(bound); |
| 10468 return _upperBound__1(bound_1, open); | 10468 return _upperBound__1(bound_1, open); |
| 10469 } | 10469 } |
| 10470 var bound_2 = _convertDartToNative_IDBKey(bound); | 10470 var bound_2 = _convertDartToNative_IDBKey(bound); |
| 10471 return _upperBound__2(bound_2); | 10471 return _upperBound__2(bound_2); |
| 10472 } | 10472 } |
| 10473 IDBKeyRange _upperBound__1(bound, open) native "upperBound"; | 10473 static IDBKeyRange _upperBound__1(bound, open) native "upperBound"; |
| 10474 IDBKeyRange _upperBound__2(bound) native "upperBound"; | 10474 static IDBKeyRange _upperBound__2(bound) native "upperBound"; |
| 10475 | 10475 |
| 10476 } | 10476 } |
| 10477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10478 // for details. All rights reserved. Use of this source code is governed by a | 10478 // for details. All rights reserved. Use of this source code is governed by a |
| 10479 // BSD-style license that can be found in the LICENSE file. | 10479 // BSD-style license that can be found in the LICENSE file. |
| 10480 | 10480 |
| 10481 | 10481 |
| 10482 /// @domName IDBObjectStore | 10482 /// @domName IDBObjectStore |
| 10483 class IDBObjectStore native "*IDBObjectStore" { | 10483 class IDBObjectStore native "*IDBObjectStore" { |
| 10484 | 10484 |
| (...skipping 11572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22057 /** @domName StyleSheetList.item */ | 22057 /** @domName StyleSheetList.item */ |
| 22058 StyleSheet item(int index) native; | 22058 StyleSheet item(int index) native; |
| 22059 } | 22059 } |
| 22060 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22060 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22061 // for details. All rights reserved. Use of this source code is governed by a | 22061 // for details. All rights reserved. Use of this source code is governed by a |
| 22062 // BSD-style license that can be found in the LICENSE file. | 22062 // BSD-style license that can be found in the LICENSE file. |
| 22063 | 22063 |
| 22064 | 22064 |
| 22065 class _TextTrackCueFactoryProvider { | 22065 class _TextTrackCueFactoryProvider { |
| 22066 static TextTrackCue createTextTrackCue( | 22066 static TextTrackCue createTextTrackCue( |
| 22067 String id, num startTime, num endTime, String text, | 22067 num startTime, num endTime, String text, |
| 22068 [String settings, bool pauseOnExit]) { | 22068 [String settings, bool pauseOnExit]) { |
| 22069 if (settings == null) { | 22069 if (settings == null) { |
| 22070 return JS('TextTrackCue', | 22070 return JS('TextTrackCue', |
| 22071 'new TextTrackCue(#,#,#,#)', | 22071 'new TextTrackCue(#,#,#)', |
| 22072 id, startTime, endTime, text); | 22072 startTime, endTime, text); |
| 22073 } | 22073 } |
| 22074 if (pauseOnExit == null) { | 22074 if (pauseOnExit == null) { |
| 22075 return JS('TextTrackCue', | 22075 return JS('TextTrackCue', |
| 22076 'new TextTrackCue(#,#,#,#,#)', | 22076 'new TextTrackCue(#,#,#,#)', |
| 22077 id, startTime, endTime, text, settings); | 22077 startTime, endTime, text, settings); |
| 22078 } | 22078 } |
| 22079 return JS('TextTrackCue', | 22079 return JS('TextTrackCue', |
| 22080 'new TextTrackCue(#,#,#,#,#,#)', | 22080 'new TextTrackCue(#,#,#,#,#)', |
| 22081 id, startTime, endTime, text, settings, pauseOnExit); | 22081 startTime, endTime, text, settings, pauseOnExit); |
| 22082 } | 22082 } |
| 22083 } | 22083 } |
| 22084 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22084 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22085 // for details. All rights reserved. Use of this source code is governed by a | 22085 // for details. All rights reserved. Use of this source code is governed by a |
| 22086 // BSD-style license that can be found in the LICENSE file. | 22086 // BSD-style license that can be found in the LICENSE file. |
| 22087 | 22087 |
| 22088 | 22088 |
| 22089 /// @domName WebKitAnimationList | 22089 /// @domName WebKitAnimationList |
| 22090 class _WebKitAnimationList implements JavaScriptIndexingBehavior, List<Animation
> native "*WebKitAnimationList" { | 22090 class _WebKitAnimationList implements JavaScriptIndexingBehavior, List<Animation
> native "*WebKitAnimationList" { |
| 22091 | 22091 |
| (...skipping 2994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25086 if (length < 0) throw new ArgumentError('length'); | 25086 if (length < 0) throw new ArgumentError('length'); |
| 25087 if (start < 0) throw new RangeError.value(start); | 25087 if (start < 0) throw new RangeError.value(start); |
| 25088 int end = start + length; | 25088 int end = start + length; |
| 25089 if (end > a.length) throw new RangeError.value(end); | 25089 if (end > a.length) throw new RangeError.value(end); |
| 25090 for (int i = start; i < end; i++) { | 25090 for (int i = start; i < end; i++) { |
| 25091 accumulator.add(a[i]); | 25091 accumulator.add(a[i]); |
| 25092 } | 25092 } |
| 25093 return accumulator; | 25093 return accumulator; |
| 25094 } | 25094 } |
| 25095 } | 25095 } |
| OLD | NEW |