OLD | NEW |
1 #library('html'); | 1 #library('html'); |
2 | 2 |
3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2012, 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:html library. | 8 // Auto-generated dart:html library. |
9 | 9 |
10 | 10 |
(...skipping 23977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23988 final int responseEnd; | 23988 final int responseEnd; |
23989 | 23989 |
23990 final int responseStart; | 23990 final int responseStart; |
23991 | 23991 |
23992 final int secureConnectionStart; | 23992 final int secureConnectionStart; |
23993 | 23993 |
23994 final int unloadEventEnd; | 23994 final int unloadEventEnd; |
23995 | 23995 |
23996 final int unloadEventStart; | 23996 final int unloadEventStart; |
23997 } | 23997 } |
23998 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 23998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23999 // for details. All rights reserved. Use of this source code is governed by a | 23999 // for details. All rights reserved. Use of this source code is governed by a |
24000 // BSD-style license that can be found in the LICENSE file. | 24000 // BSD-style license that can be found in the LICENSE file. |
24001 | 24001 |
24002 // WARNING: Do not edit - generated code. | 24002 // WARNING: Do not edit - generated code. |
24003 | 24003 |
24004 interface Point default _PointFactoryProvider { | 24004 interface Point default _PointFactoryProvider { |
24005 | 24005 |
24006 Point(num x, num y); | 24006 Point(num x, num y); |
24007 | 24007 |
24008 num x; | 24008 num x; |
(...skipping 5264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
29273 final bool overflow; | 29273 final bool overflow; |
29274 | 29274 |
29275 NodeList getRegionsByContentNode(Node contentNode); | 29275 NodeList getRegionsByContentNode(Node contentNode); |
29276 } | 29276 } |
29277 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 29277 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
29278 // for details. All rights reserved. Use of this source code is governed by a | 29278 // for details. All rights reserved. Use of this source code is governed by a |
29279 // BSD-style license that can be found in the LICENSE file. | 29279 // BSD-style license that can be found in the LICENSE file. |
29280 | 29280 |
29281 // WARNING: Do not edit - generated code. | 29281 // WARNING: Do not edit - generated code. |
29282 | 29282 |
29283 interface WebSocket extends EventTarget { | 29283 interface WebSocket extends EventTarget default _WebSocketFactoryProvider { |
| 29284 |
| 29285 WebSocket(String url); |
29284 | 29286 |
29285 WebSocketEvents get on(); | 29287 WebSocketEvents get on(); |
29286 | 29288 |
29287 static final int CLOSED = 3; | 29289 static final int CLOSED = 3; |
29288 | 29290 |
29289 static final int CLOSING = 2; | 29291 static final int CLOSING = 2; |
29290 | 29292 |
29291 static final int CONNECTING = 0; | 29293 static final int CONNECTING = 0; |
29292 | 29294 |
29293 static final int OPEN = 1; | 29295 static final int OPEN = 1; |
(...skipping 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
31078 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);'; | 31080 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);'; |
31079 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);'
; | 31081 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);'
; |
31080 | 31082 |
31081 static ensureNative(List list) => list; // TODO: make sure. | 31083 static ensureNative(List list) => list; // TODO: make sure. |
31082 } | 31084 } |
31083 | 31085 |
31084 class _PointFactoryProvider { | 31086 class _PointFactoryProvider { |
31085 | 31087 |
31086 factory Point(num x, num y) native 'return new WebKitPoint(x, y);'; | 31088 factory Point(num x, num y) native 'return new WebKitPoint(x, y);'; |
31087 } | 31089 } |
| 31090 |
| 31091 class _WebSocketFactoryProvider { |
| 31092 |
| 31093 factory WebSocket(String url) native '''return new WebSocket(url);'''; |
| 31094 } |
31088 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 31095 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
31089 // for details. All rights reserved. Use of this source code is governed by a | 31096 // for details. All rights reserved. Use of this source code is governed by a |
31090 // BSD-style license that can be found in the LICENSE file. | 31097 // BSD-style license that can be found in the LICENSE file. |
31091 | 31098 |
31092 // TODO(rnystrom): add a way to supress public classes from DartDoc output. | 31099 // TODO(rnystrom): add a way to supress public classes from DartDoc output. |
31093 /** | 31100 /** |
31094 * This class is intended for testing purposes only. | 31101 * This class is intended for testing purposes only. |
31095 */ | 31102 */ |
31096 class Testing { | 31103 class Testing { |
31097 static void addEventListener(EventTarget target, String type, EventListener li
stener, bool useCapture) { | 31104 static void addEventListener(EventTarget target, String type, EventListener li
stener, bool useCapture) { |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
31217 if (length < 0) throw new IllegalArgumentException('length'); | 31224 if (length < 0) throw new IllegalArgumentException('length'); |
31218 if (start < 0) throw new IndexOutOfRangeException(start); | 31225 if (start < 0) throw new IndexOutOfRangeException(start); |
31219 int end = start + length; | 31226 int end = start + length; |
31220 if (end > a.length) throw new IndexOutOfRangeException(end); | 31227 if (end > a.length) throw new IndexOutOfRangeException(end); |
31221 for (int i = start; i < end; i++) { | 31228 for (int i = start; i < end; i++) { |
31222 accumulator.add(a[i]); | 31229 accumulator.add(a[i]); |
31223 } | 31230 } |
31224 return accumulator; | 31231 return accumulator; |
31225 } | 31232 } |
31226 } | 31233 } |
OLD | NEW |