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