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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6 // for details. All rights reserved. Use of this source code is governed by a | 6 // for details. All rights reserved. Use of this source code is governed by a |
7 // BSD-style license that can be found in the LICENSE file. | 7 // BSD-style license that can be found in the LICENSE file. |
8 | 8 |
9 // DO NOT EDIT | 9 // DO NOT EDIT |
10 // Auto-generated dart:html library. | 10 // Auto-generated dart:html library. |
(...skipping 4197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4208 } | 4208 } |
4209 return _Elements.createCanvasElement(width, height); | 4209 return _Elements.createCanvasElement(width, height); |
4210 } | 4210 } |
4211 | 4211 |
4212 /** @domName HTMLCanvasElement.height */ | 4212 /** @domName HTMLCanvasElement.height */ |
4213 int height; | 4213 int height; |
4214 | 4214 |
4215 /** @domName HTMLCanvasElement.width */ | 4215 /** @domName HTMLCanvasElement.width */ |
4216 int width; | 4216 int width; |
4217 | 4217 |
4218 /** @domName HTMLCanvasElement.getContext */ | |
4219 Object getContext(String contextId) native; | |
4220 | |
4221 /** @domName HTMLCanvasElement.toDataURL */ | 4218 /** @domName HTMLCanvasElement.toDataURL */ |
4222 String toDataURL(String type, [num quality]) native; | 4219 String toDataURL(String type, [num quality]) native; |
4223 | 4220 |
4224 | 4221 |
| 4222 CanvasRenderingContext getContext(String contextId) native; |
4225 CanvasRenderingContext2D get context2d => getContext('2d'); | 4223 CanvasRenderingContext2D get context2d => getContext('2d'); |
4226 } | 4224 } |
4227 | 4225 |
4228 /// @domName CanvasGradient | 4226 /// @domName CanvasGradient |
4229 class CanvasGradient native "*CanvasGradient" { | 4227 class CanvasGradient native "*CanvasGradient" { |
4230 | 4228 |
4231 /** @domName CanvasGradient.addColorStop */ | 4229 /** @domName CanvasGradient.addColorStop */ |
4232 void addColorStop(num offset, String color) native; | 4230 void addColorStop(num offset, String color) native; |
4233 } | 4231 } |
4234 | 4232 |
(...skipping 8322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12557 'subtree': true, | 12555 'subtree': true, |
12558 'attributeOldValue': true, | 12556 'attributeOldValue': true, |
12559 'characterDataOldValue': true }; | 12557 'characterDataOldValue': true }; |
12560 | 12558 |
12561 | 12559 |
12562 static _createDict() => JS('var', '{}'); | 12560 static _createDict() => JS('var', '{}'); |
12563 static _add(m, String key, value) { JS('void', '#[#] = #', m, key, value); } | 12561 static _add(m, String key, value) { JS('void', '#[#] = #', m, key, value); } |
12564 static _fixupList(list) => list; // TODO: Ensure is a JavaScript Array. | 12562 static _fixupList(list) => list; // TODO: Ensure is a JavaScript Array. |
12565 | 12563 |
12566 // Call native function with no conversions. | 12564 // Call native function with no conversions. |
12567 _call(target, options) native 'observe'; | 12565 void _call(target, options) native 'observe'; |
12568 } | 12566 } |
12569 | 12567 |
12570 /// @domName MutationRecord | 12568 /// @domName MutationRecord |
12571 class MutationRecord native "*MutationRecord" { | 12569 class MutationRecord native "*MutationRecord" { |
12572 | 12570 |
12573 /** @domName MutationRecord.addedNodes */ | 12571 /** @domName MutationRecord.addedNodes */ |
12574 final List<Node> addedNodes; | 12572 final List<Node> addedNodes; |
12575 | 12573 |
12576 /** @domName MutationRecord.attributeName */ | 12574 /** @domName MutationRecord.attributeName */ |
12577 final String attributeName; | 12575 final String attributeName; |
(...skipping 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14057 | 14055 |
14058 /** @domName WebKitPoint.y */ | 14056 /** @domName WebKitPoint.y */ |
14059 num y; | 14057 num y; |
14060 | 14058 |
14061 } | 14059 } |
14062 | 14060 |
14063 /// @domName PopStateEvent | 14061 /// @domName PopStateEvent |
14064 class PopStateEvent extends Event native "*PopStateEvent" { | 14062 class PopStateEvent extends Event native "*PopStateEvent" { |
14065 | 14063 |
14066 /** @domName PopStateEvent.state */ | 14064 /** @domName PopStateEvent.state */ |
14067 final Object state; | 14065 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state); |
| 14066 dynamic get _state => JS("dynamic", "#.state", this); |
14068 } | 14067 } |
14069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14070 // for details. All rights reserved. Use of this source code is governed by a | 14069 // for details. All rights reserved. Use of this source code is governed by a |
14071 // BSD-style license that can be found in the LICENSE file. | 14070 // BSD-style license that can be found in the LICENSE file. |
14072 | 14071 |
14073 // WARNING: Do not edit - generated code. | 14072 // WARNING: Do not edit - generated code. |
14074 | 14073 |
14075 | 14074 |
14076 typedef void PositionCallback(Geoposition position); | 14075 typedef void PositionCallback(Geoposition position); |
14077 | 14076 |
(...skipping 14725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
28803 if (length < 0) throw new ArgumentError('length'); | 28802 if (length < 0) throw new ArgumentError('length'); |
28804 if (start < 0) throw new RangeError.value(start); | 28803 if (start < 0) throw new RangeError.value(start); |
28805 int end = start + length; | 28804 int end = start + length; |
28806 if (end > a.length) throw new RangeError.value(end); | 28805 if (end > a.length) throw new RangeError.value(end); |
28807 for (int i = start; i < end; i++) { | 28806 for (int i = start; i < end; i++) { |
28808 accumulator.add(a[i]); | 28807 accumulator.add(a[i]); |
28809 } | 28808 } |
28810 return accumulator; | 28809 return accumulator; |
28811 } | 28810 } |
28812 } | 28811 } |
OLD | NEW |