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 16 matching lines...) Expand all Loading... |
27 // https://w3c.github.io/IndexedDB/#idl-def-IDBDatabase | 27 // https://w3c.github.io/IndexedDB/#idl-def-IDBDatabase |
28 | 28 |
29 [ | 29 [ |
30 Exposed=(Window,Worker), | 30 Exposed=(Window,Worker), |
31 ActiveDOMObject, | 31 ActiveDOMObject, |
32 GarbageCollected, | 32 GarbageCollected, |
33 ] interface IDBDatabase : EventTarget { | 33 ] interface IDBDatabase : EventTarget { |
34 readonly attribute DOMString name; | 34 readonly attribute DOMString name; |
35 // TODO(jsbell): DOMString version is non-standard, to support databases cre
ated with old API. | 35 // TODO(jsbell): DOMString version is non-standard, to support databases cre
ated with old API. |
36 readonly attribute (unsigned long long or DOMString) version; | 36 readonly attribute (unsigned long long or DOMString) version; |
37 readonly attribute DOMStringList objectStoreNames; | 37 [Measure] readonly attribute DOMStringList objectStoreNames; |
38 | 38 |
39 [RaisesException] IDBObjectStore createObjectStore(DOMString name, optional
IDBObjectStoreParameters options); | 39 [RaisesException] IDBObjectStore createObjectStore(DOMString name, optional
IDBObjectStoreParameters options); |
40 [RaisesException] void deleteObjectStore(DOMString name); | 40 [RaisesException] void deleteObjectStore(DOMString name); |
41 [CallWith=ScriptState, RaisesException] IDBTransaction transaction((DOMStrin
g or sequence<DOMString> or DOMStringList) storeNames, optional IDBTransactionMo
de mode = "readonly"); | 41 [CallWith=ScriptState, RaisesException] IDBTransaction transaction((DOMStrin
g or sequence<DOMString> or DOMStringList) storeNames, optional IDBTransactionMo
de mode = "readonly"); |
42 void close(); | 42 void close(); |
43 | 43 |
44 attribute EventHandler onabort; | 44 attribute EventHandler onabort; |
45 attribute EventHandler onclose; | 45 attribute EventHandler onclose; |
46 attribute EventHandler onerror; | 46 attribute EventHandler onerror; |
47 attribute EventHandler onversionchange; | 47 attribute EventHandler onversionchange; |
48 }; | 48 }; |
OLD | NEW |