| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // IDBOpenDBRequest. IDBFactory.open returns a plain IDBRequest on Chrome and | |
| 6 // Dartium but an IDBOpenDBRequest on Firefox. Chrome/Dartium is expected to | |
| 7 // change at some point as IDBOpenDBRequest is more standard. When it appears | |
| 8 // in the WebKit IDL we can remove this hand-written file. | |
| 9 // | |
| 10 // See: | |
| 11 // http://www.w3.org/TR/IndexedDB/#request-api | |
| 12 // http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#request-api | |
| 13 | |
| 14 class _IDBOpenDBRequestImpl extends _IDBRequestImpl implements IDBOpenDBRequest | |
| 15 native "*IDBOpenDBRequest" { | |
| 16 | |
| 17 _IDBOpenDBRequestEventsImpl get on() => | |
| 18 new _IDBOpenDBRequestEventsImpl(this); | |
| 19 } | |
| 20 | |
| 21 class _IDBOpenDBRequestEventsImpl extends _IDBRequestEventsImpl implements IDBOp
enDBRequestEvents { | |
| 22 _IDBOpenDBRequestEventsImpl(_ptr) : super(_ptr); | |
| 23 | |
| 24 EventListenerList get blocked() => _get('blocked'); | |
| 25 | |
| 26 EventListenerList get upgradeneeded() => _get('upgradeneeded'); | |
| 27 } | |
| OLD | NEW |