diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/indexeddb/IDBObjectStore.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/Modules/indexeddb/IDBObjectStore.idl')
-rw-r--r-- | Source/WebCore/Modules/indexeddb/IDBObjectStore.idl | 55 |
1 files changed, 36 insertions, 19 deletions
diff --git a/Source/WebCore/Modules/indexeddb/IDBObjectStore.idl b/Source/WebCore/Modules/indexeddb/IDBObjectStore.idl index ae6350d57..96b00063d 100644 --- a/Source/WebCore/Modules/indexeddb/IDBObjectStore.idl +++ b/Source/WebCore/Modules/indexeddb/IDBObjectStore.idl @@ -23,30 +23,47 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// NOTE: This type is specified as 'any' in the IndexedDB specification, but is always +// constrained to this union. +typedef (DOMString or sequence<DOMString>) IDBKeyPath; + [ Conditional=INDEXED_DATABASE, - JSNoStaticTables, - ImplementationLacksVTable, + GenerateIsReachable=Impl, + JSCustomMarkFunction, + SkipVTableValidation, ] interface IDBObjectStore { - [TreatReturnedNullStringAs=Null] readonly attribute DOMString name; - [ImplementedAs=keyPathAny] readonly attribute IDBAny keyPath; + [SetterMayThrowException] attribute DOMString name; + readonly attribute IDBKeyPath? keyPath; readonly attribute DOMStringList indexNames; readonly attribute IDBTransaction transaction; readonly attribute boolean autoIncrement; - [CallWith=ScriptState, RaisesException] IDBRequest put(any value, optional any key); - [CallWith=ScriptState, RaisesException] IDBRequest add(any value, optional any key); - [CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction, RaisesException] IDBRequest delete(IDBKeyRange? keyRange); - [CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction, RaisesException] IDBRequest delete(any key); - [CallWith=ScriptExecutionContext, RaisesException] IDBRequest get(IDBKeyRange? key); - [CallWith=ScriptExecutionContext, RaisesException] IDBRequest get(any key); - [CallWith=ScriptExecutionContext, RaisesException] IDBRequest clear(); - [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor(optional IDBKeyRange? range, optional DOMString direction); - [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor(any key, optional DOMString direction); - [CallWith=ScriptExecutionContext, Custom, RaisesException] IDBIndex createIndex(DOMString name, sequence<DOMString> keyPath, optional Dictionary options); - [CallWith=ScriptExecutionContext, Custom, RaisesException] IDBIndex createIndex(DOMString name, DOMString keyPath, optional Dictionary options); - [RaisesException] IDBIndex index(DOMString name); - [RaisesException] void deleteIndex(DOMString name); - [CallWith=ScriptExecutionContext, RaisesException] IDBRequest count(optional IDBKeyRange? range); - [CallWith=ScriptExecutionContext, RaisesException] IDBRequest count(any key); + [CallWith=ScriptState, MayThrowException] IDBRequest put(any value, optional any key); + [CallWith=ScriptState, MayThrowException] IDBRequest add(any value, optional any key); + [CallWith=ScriptState, ImplementedAs=deleteFunction, MayThrowException] IDBRequest delete(IDBKeyRange? keyRange); + [CallWith=ScriptState, ImplementedAs=deleteFunction, MayThrowException] IDBRequest delete(any key); + [CallWith=ScriptState, MayThrowException] IDBRequest get(IDBKeyRange? key); + [CallWith=ScriptState, MayThrowException] IDBRequest get(any key); + [CallWith=ScriptState, MayThrowException] IDBRequest getKey(IDBKeyRange? key); + [CallWith=ScriptState, MayThrowException] IDBRequest getKey(any key); + [CallWith=ScriptState, MayThrowException] IDBRequest clear(); + [CallWith=ScriptState, MayThrowException] IDBRequest openCursor(optional IDBKeyRange? range = null, optional IDBCursorDirection direction = "next"); + [CallWith=ScriptState, MayThrowException] IDBRequest openCursor(any key, optional IDBCursorDirection direction = "next"); + [CallWith=ScriptState, MayThrowException] IDBRequest openKeyCursor(optional IDBKeyRange? range = null, optional IDBCursorDirection direction = "next"); + [CallWith=ScriptState, MayThrowException] IDBRequest openKeyCursor(any key, optional IDBCursorDirection direction = "next"); + [CallWith=ScriptState, MayThrowException] IDBRequest getAll(optional IDBKeyRange? range = null, [EnforceRange] optional unsigned long count); + [CallWith=ScriptState, MayThrowException] IDBRequest getAll(any key, [EnforceRange] optional unsigned long count); + [CallWith=ScriptState, MayThrowException] IDBRequest getAllKeys(optional IDBKeyRange? range = null, [EnforceRange] optional unsigned long count); + [CallWith=ScriptState, MayThrowException] IDBRequest getAllKeys(any key, [EnforceRange] optional unsigned long count); + [CallWith=ScriptState, MayThrowException] IDBIndex createIndex(DOMString name, (DOMString or sequence<DOMString>) keyPath, optional IDBIndexParameters options); + [MayThrowException] IDBIndex index(DOMString name); + [MayThrowException] void deleteIndex(DOMString name); + [CallWith=ScriptState, MayThrowException] IDBRequest count(optional IDBKeyRange? range = null); + [CallWith=ScriptState, MayThrowException] IDBRequest count(any key); +}; + +dictionary IDBIndexParameters { + boolean unique = false; + boolean multiEntry = false; }; |