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

Unified Diff: lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
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, 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:
Download patch
« no previous file with comments | « lib/dom/templates/html/interface/interface_IDBKeyRange.darttemplate ('k') | lib/html/frog/html_frog.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index d0439ec2fa2634bade292b14780b052fd6dfa29c..081c22b10fd43da51d11a777821915cbc1117d7a 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -29795,7 +29795,29 @@ interface IDBKey {
// WARNING: Do not edit - generated code.
/// @domName IDBKeyRange
-interface IDBKeyRange {
+interface IDBKeyRange default _IDBKeyRangeFactoryProvider {
+
+ /**
+ * @domName IDBKeyRange.only
+ */
+ IDBKeyRange.only(/*IDBKey*/ value);
+
+ /**
+ * @domName IDBKeyRange.lowerBound
+ */
+ IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open]);
+
+ /**
+ * @domName IDBKeyRange.upperBound
+ */
+ IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open]);
+
+ /**
+ * @domName IDBKeyRange.bound
+ */
+ IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper,
+ [bool lowerOpen, bool upperOpen]);
+
/** @domName IDBKeyRange.lower */
final Dynamic lower;
@@ -41547,6 +41569,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/dom/templates/html/interface/interface_IDBKeyRange.darttemplate ('k') | lib/html/frog/html_frog.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698