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

Unified Diff: client/html/generated/html/dartium/IDBIndex.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/IDBIndex.dart
diff --git a/client/html/generated/html/dartium/IDBIndex.dart b/client/html/generated/html/dartium/IDBIndex.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5ee2081af33d06658a9c616bd2e625ba473f0b41
--- /dev/null
+++ b/client/html/generated/html/dartium/IDBIndex.dart
@@ -0,0 +1,60 @@
+
+class _IDBIndexImpl extends _DOMTypeBase implements IDBIndex {
+ _IDBIndexImpl._wrap(ptr) : super._wrap(ptr);
+
+ String get keyPath() => _wrap(_ptr.keyPath);
+
+ bool get multiEntry() => _wrap(_ptr.multiEntry);
+
+ String get name() => _wrap(_ptr.name);
+
+ IDBObjectStore get objectStore() => _wrap(_ptr.objectStore);
+
+ bool get unique() => _wrap(_ptr.unique);
+
+ IDBRequest count([IDBKeyRange range = null]) {
+ if (range === null) {
+ return _wrap(_ptr.count());
+ } else {
+ return _wrap(_ptr.count(_unwrap(range)));
+ }
+ }
+
+ IDBRequest getObject(IDBKey key) {
+ return _wrap(_ptr.getObject(_unwrap(key)));
+ }
+
+ IDBRequest getKey(IDBKey key) {
+ return _wrap(_ptr.getKey(_unwrap(key)));
+ }
+
+ IDBRequest openCursor([IDBKeyRange range = null, int direction = null]) {
+ if (range === null) {
+ if (direction === null) {
+ return _wrap(_ptr.openCursor());
+ }
+ } else {
+ if (direction === null) {
+ return _wrap(_ptr.openCursor(_unwrap(range)));
+ } else {
+ return _wrap(_ptr.openCursor(_unwrap(range), _unwrap(direction)));
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+
+ IDBRequest openKeyCursor([IDBKeyRange range = null, int direction = null]) {
+ if (range === null) {
+ if (direction === null) {
+ return _wrap(_ptr.openKeyCursor());
+ }
+ } else {
+ if (direction === null) {
+ return _wrap(_ptr.openKeyCursor(_unwrap(range)));
+ } else {
+ return _wrap(_ptr.openKeyCursor(_unwrap(range), _unwrap(direction)));
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698