Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(584)

Side by Side Diff: lib/html/src/dartium_FactoryProviders.dart

Issue 10382002: Revert "Add IDBKeyRange to dart:html, port two indexeddb tests" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/html/frog/html_frog.dart ('k') | lib/html/src/frog_IDBKeyRangeFactoryProvider.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 class _AudioContextFactoryProvider { 5 class _AudioContextFactoryProvider {
6 factory AudioContext() => _wrap(new dom.AudioContext()); 6 factory AudioContext() => _wrap(new dom.AudioContext());
7 } 7 }
8 8
9 class _IDBKeyRangeFactoryProvider {
10
11 factory IDBKeyRange.only(/*IDBKey*/ value) =>
12 _wrap(new dom.IDBKeyRange.only(_unwrap(value)));
13
14 factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) =>
15 _wrap(new dom.IDBKeyRange.lowerBound(_unwrap(bound), open));
16
17 factory IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open = false]) =>
18 _wrap(new dom.IDBKeyRange.upperBound(_unwrap(bound), open));
19
20 factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper,
21 [bool lowerOpen = false, bool upperOpen = false]) =>
22 _wrap(new dom.IDBKeyRange.bound(_unwrap(lower), _unwrap(upper),
23 lowerOpen, upperOpen));
24 }
25
26 class _TypedArrayFactoryProvider { 9 class _TypedArrayFactoryProvider {
27 10
28 factory Float32Array(int length) => _F32(length); 11 factory Float32Array(int length) => _F32(length);
29 factory Float32Array.fromList(List<num> list) => _F32_1(ensureNative(list)); 12 factory Float32Array.fromList(List<num> list) => _F32_1(ensureNative(list));
30 factory Float32Array.fromBuffer(ArrayBuffer buffer, 13 factory Float32Array.fromBuffer(ArrayBuffer buffer,
31 [int byteOffset = 0, int length]) { 14 [int byteOffset = 0, int length]) {
32 if (length == null) return _F32_2(buffer, byteOffset); 15 if (length == null) return _F32_2(buffer, byteOffset);
33 return _F32_3(buffer, byteOffset, length); 16 return _F32_3(buffer, byteOffset, length);
34 } 17 }
35 18
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 129 }
147 130
148 class _WebSocketFactoryProvider { 131 class _WebSocketFactoryProvider {
149 132
150 factory WebSocket(String url) => _wrap(new dom.WebSocket(url)); 133 factory WebSocket(String url) => _wrap(new dom.WebSocket(url));
151 } 134 }
152 135
153 class _TextFactoryProvider { 136 class _TextFactoryProvider {
154 factory Text(String data) => _document.$dom_createTextNode(data); 137 factory Text(String data) => _document.$dom_createTextNode(data);
155 } 138 }
OLDNEW
« no previous file with comments | « lib/html/frog/html_frog.dart ('k') | lib/html/src/frog_IDBKeyRangeFactoryProvider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698