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

Unified Diff: client/html/generated/html/dartium/IDBObjectStore.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/IDBObjectStore.dart
diff --git a/client/html/generated/html/dartium/IDBObjectStore.dart b/client/html/generated/html/dartium/IDBObjectStore.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7ff8bdfecac73b3a21a12d89343274c7378c90e7
--- /dev/null
+++ b/client/html/generated/html/dartium/IDBObjectStore.dart
@@ -0,0 +1,76 @@
+
+class _IDBObjectStoreImpl extends _DOMTypeBase implements IDBObjectStore {
+ _IDBObjectStoreImpl._wrap(ptr) : super._wrap(ptr);
+
+ List<String> get indexNames() => _wrap(_ptr.indexNames);
+
+ String get keyPath() => _wrap(_ptr.keyPath);
+
+ String get name() => _wrap(_ptr.name);
+
+ IDBTransaction get transaction() => _wrap(_ptr.transaction);
+
+ IDBRequest add(Dynamic value, [IDBKey key = null]) {
+ if (key === null) {
+ return _wrap(_ptr.add(_unwrap(value)));
+ } else {
+ return _wrap(_ptr.add(_unwrap(value), _unwrap(key)));
+ }
+ }
+
+ IDBRequest clear() {
+ return _wrap(_ptr.clear());
+ }
+
+ IDBRequest count([IDBKeyRange range = null]) {
+ if (range === null) {
+ return _wrap(_ptr.count());
+ } else {
+ return _wrap(_ptr.count(_unwrap(range)));
+ }
+ }
+
+ IDBIndex createIndex(String name, String keyPath) {
+ return _wrap(_ptr.createIndex(_unwrap(name), _unwrap(keyPath)));
+ }
+
+ IDBRequest delete(IDBKey key) {
+ return _wrap(_ptr.delete(_unwrap(key)));
+ }
+
+ void deleteIndex(String name) {
+ _ptr.deleteIndex(_unwrap(name));
+ return;
+ }
+
+ IDBRequest getObject(IDBKey key) {
+ return _wrap(_ptr.getObject(_unwrap(key)));
+ }
+
+ IDBIndex index(String name) {
+ return _wrap(_ptr.index(_unwrap(name)));
+ }
+
+ 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 put(Dynamic value, [IDBKey key = null]) {
+ if (key === null) {
+ return _wrap(_ptr.put(_unwrap(value)));
+ } else {
+ return _wrap(_ptr.put(_unwrap(value), _unwrap(key)));
+ }
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698