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

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

Issue 10540016: indexedDB work (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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: lib/html/src/frog_IDBOpenDBRequestImplementation.dart
diff --git a/lib/html/src/frog_IDBOpenDBRequestImplementation.dart b/lib/html/src/frog_IDBOpenDBRequestImplementation.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ddc308f433d5cfb715057ec5f6db1f169618c300
--- /dev/null
+++ b/lib/html/src/frog_IDBOpenDBRequestImplementation.dart
@@ -0,0 +1,27 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// IDBOpenDBRequest. IDBFactory.open returns a plain IDBRequest on Chrome and
+// Dartium but an IDBOpenDBRequest on Firefox. Chrome/Dartium is expected to
+// change at some point as IDBOpenDBRequest is more standard. When it appears
+// in the WebKit IDL we can remove this hand-written file.
+//
+// See:
+// http://www.w3.org/TR/IndexedDB/#request-api
+// http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#request-api
+
+class _IDBOpenDBRequestImpl extends _IDBRequestImpl implements IDBOpenDBRequest
+ native "*IDBOpenDBRequest" {
+
+ _IDBOpenDBRequestEventsImpl get on() =>
+ new _IDBOpenDBRequestEventsImpl(this);
+}
+
+class _IDBOpenDBRequestEventsImpl extends _IDBRequestEventsImpl implements IDBOpenDBRequestEvents {
+ _IDBOpenDBRequestEventsImpl(_ptr) : super(_ptr);
+
+ EventListenerList get blocked() => _get('blocked');
+
+ EventListenerList get upgradeneeded() => _get('upgradeneeded');
+}

Powered by Google App Engine
This is Rietveld 408576698