OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 10 matching lines...) Expand all Loading... |
21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 [ | 27 [ |
28 ActiveDOMObject | 28 ActiveDOMObject |
29 ] interface IDBDatabase : EventTarget { | 29 ] interface IDBDatabase : EventTarget { |
30 readonly attribute DOMString name; | 30 readonly attribute DOMString name; |
31 readonly attribute IDBAny version; | 31 [CallWith=ExecutionContext] readonly attribute any version; |
32 readonly attribute DOMStringList objectStoreNames; | 32 readonly attribute DOMStringList objectStoreNames; |
33 | 33 |
34 attribute EventHandler onabort; | 34 attribute EventHandler onabort; |
35 attribute EventHandler onclose; | 35 attribute EventHandler onclose; |
36 attribute EventHandler onerror; | 36 attribute EventHandler onerror; |
37 attribute EventHandler onversionchange; | 37 attribute EventHandler onversionchange; |
38 | 38 |
39 [RaisesException] IDBObjectStore createObjectStore(DOMString name, optional
Dictionary options); | 39 [RaisesException] IDBObjectStore createObjectStore(DOMString name, optional
Dictionary options); |
40 [RaisesException] void deleteObjectStore(DOMString name); | 40 [RaisesException] void deleteObjectStore(DOMString name); |
41 [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(DOMS
tringList storeNames, [Default=NullString] optional DOMString mode); | 41 [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(DOMS
tringList storeNames, [Default=NullString] optional DOMString mode); |
42 [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(sequ
ence<DOMString> storeNames, [Default=NullString] optional DOMString mode); | 42 [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(sequ
ence<DOMString> storeNames, [Default=NullString] optional DOMString mode); |
43 [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(DOMS
tring storeName, [Default=NullString] optional DOMString mode); | 43 [CallWith=ExecutionContext, RaisesException] IDBTransaction transaction(DOMS
tring storeName, [Default=NullString] optional DOMString mode); |
44 | 44 |
45 void close(); | 45 void close(); |
46 }; | 46 }; |
OLD | NEW |