LibWeb: Add IDBCursor

This commit is contained in:
stelar7 2024-11-07 18:49:31 +01:00 committed by Jelle Raaijmakers
commit 71772d97dc
Notes: github-actions[bot] 2024-11-26 13:53:08 +00:00
8 changed files with 88 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#import <IndexedDB/IDBRequest.idl>
[Exposed=(Window,Worker)]
interface IDBCursor {
[FIXME] readonly attribute (IDBObjectStore or IDBIndex) source;
[FIXME] readonly attribute IDBCursorDirection direction;
[FIXME] readonly attribute any key;
[FIXME] readonly attribute any primaryKey;
[FIXME, SameObject] readonly attribute IDBRequest request;
[FIXME] undefined advance([EnforceRange] unsigned long count);
[FIXME] undefined continue(optional any key);
[FIXME] undefined continuePrimaryKey(any key, any primaryKey);
[FIXME, NewObject] IDBRequest update(any value);
[FIXME, NewObject] IDBRequest delete();
};
enum IDBCursorDirection {
"next",
"nextunique",
"prev",
"prevunique"
};