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

Unified Diff: client/html/generated/html/dartium/IDBKeyRange.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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
Index: client/html/generated/html/dartium/IDBKeyRange.dart
diff --git a/client/html/generated/html/dartium/IDBKeyRange.dart b/client/html/generated/html/dartium/IDBKeyRange.dart
new file mode 100644
index 0000000000000000000000000000000000000000..56496d79b60cea05e03993b40af202614236aa6e
--- /dev/null
+++ b/client/html/generated/html/dartium/IDBKeyRange.dart
@@ -0,0 +1,47 @@
+
+class _IDBKeyRangeImpl extends _DOMTypeBase implements IDBKeyRange {
+ _IDBKeyRangeImpl._wrap(ptr) : super._wrap(ptr);
+
+ IDBKey get lower() => _wrap(_ptr.lower);
+
+ bool get lowerOpen() => _wrap(_ptr.lowerOpen);
+
+ IDBKey get upper() => _wrap(_ptr.upper);
+
+ bool get upperOpen() => _wrap(_ptr.upperOpen);
+
+ IDBKeyRange bound(IDBKey lower, IDBKey upper, [bool lowerOpen = null, bool upperOpen = null]) {
+ if (lowerOpen === null) {
+ if (upperOpen === null) {
+ return _wrap(_ptr.bound(_unwrap(lower), _unwrap(upper)));
+ }
+ } else {
+ if (upperOpen === null) {
+ return _wrap(_ptr.bound(_unwrap(lower), _unwrap(upper), _unwrap(lowerOpen)));
+ } else {
+ return _wrap(_ptr.bound(_unwrap(lower), _unwrap(upper), _unwrap(lowerOpen), _unwrap(upperOpen)));
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+
+ IDBKeyRange lowerBound(IDBKey bound, [bool open = null]) {
+ if (open === null) {
+ return _wrap(_ptr.lowerBound(_unwrap(bound)));
+ } else {
+ return _wrap(_ptr.lowerBound(_unwrap(bound), _unwrap(open)));
+ }
+ }
+
+ IDBKeyRange only(IDBKey value) {
+ return _wrap(_ptr.only(_unwrap(value)));
+ }
+
+ IDBKeyRange upperBound(IDBKey bound, [bool open = null]) {
+ if (open === null) {
+ return _wrap(_ptr.upperBound(_unwrap(bound)));
+ } else {
+ return _wrap(_ptr.upperBound(_unwrap(bound), _unwrap(open)));
+ }
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698