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

Unified Diff: lib/html/src/dartium_FactoryProviders.dart

Issue 10378004: 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, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/html/frog/html_frog.dart ('k') | lib/html/src/frog_IDBKeyRangeFactoryProvider.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/src/dartium_FactoryProviders.dart
diff --git a/lib/html/src/dartium_FactoryProviders.dart b/lib/html/src/dartium_FactoryProviders.dart
index 049baf8aca36d381fb5ebf2d8b75fc3d8cf7e7fc..d098d9df0bc0dd7c228a5204447f9f9f897eb109 100644
--- a/lib/html/src/dartium_FactoryProviders.dart
+++ b/lib/html/src/dartium_FactoryProviders.dart
@@ -6,6 +6,23 @@ class _AudioContextFactoryProvider {
factory AudioContext() => _wrap(new dom.AudioContext());
}
+class _IDBKeyRangeFactoryProvider {
+
+ factory IDBKeyRange.only(/*IDBKey*/ value) =>
+ _wrap(new dom.IDBKeyRange.only(_unwrap(value)));
+
+ factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) =>
+ _wrap(new dom.IDBKeyRange.lowerBound(_unwrap(bound), open));
+
+ factory IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open = false]) =>
+ _wrap(new dom.IDBKeyRange.upperBound(_unwrap(bound), open));
+
+ factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper,
+ [bool lowerOpen = false, bool upperOpen = false]) =>
+ _wrap(new dom.IDBKeyRange.bound(_unwrap(lower), _unwrap(upper),
+ lowerOpen, upperOpen));
+}
+
class _TypedArrayFactoryProvider {
factory Float32Array(int length) => _F32(length);
« 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