OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // These factory providers are for interfaces that do not have factory providers | 5 // These factory providers are for interfaces that do not have factory providers |
6 // generated automatically from a Constructor or NamedConstructor extended | 6 // generated automatically from a Constructor or NamedConstructor extended |
7 // attribute. | 7 // attribute. |
8 | 8 |
9 class _AudioContextFactoryProvider { | 9 class _AudioContextFactoryProvider { |
10 factory AudioContext() => FactoryProviderImplementation.createAudioContext(); | 10 factory AudioContext() => FactoryProviderImplementation.createAudioContext(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 => FactoryProviderImplementation.U32(buffer, byteOffset, length); | 52 => FactoryProviderImplementation.U32(buffer, byteOffset, length); |
53 } | 53 } |
54 | 54 |
55 class _WebKitPointFactoryProvider { | 55 class _WebKitPointFactoryProvider { |
56 factory WebKitPoint(num x, num y) => FactoryProviderImplementation.createWebKi
tPoint(x, y); | 56 factory WebKitPoint(num x, num y) => FactoryProviderImplementation.createWebKi
tPoint(x, y); |
57 } | 57 } |
58 | 58 |
59 class _WebSocketFactoryProvider { | 59 class _WebSocketFactoryProvider { |
60 factory WebSocket(String url) => FactoryProviderImplementation.createWebSocket
(url); | 60 factory WebSocket(String url) => FactoryProviderImplementation.createWebSocket
(url); |
61 } | 61 } |
| 62 |
| 63 class _IDBKeyRangeFactoryProvider { |
| 64 |
| 65 factory IDBKeyRange.only(/*IDBKey*/ value) => |
| 66 FactoryProviderImplementation.IDBKeyRange_only(value); |
| 67 |
| 68 factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) => |
| 69 FactoryProviderImplementation.IDBKeyRange_lowerBound(bound, open); |
| 70 |
| 71 factory IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open = false]) => |
| 72 FactoryProviderImplementation.IDBKeyRange_upperBound(bound, open); |
| 73 |
| 74 factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper, |
| 75 [bool lowerOpen = false, bool upperOpen = false]) => |
| 76 FactoryProviderImplementation.IDBKeyRange_bound(lower, upper, |
| 77 lowerOpen, upperOpen); |
| 78 } |
OLD | NEW |