LibWeb/IDB: Implement iterate_a_cursor

This commit is contained in:
stelar7 2025-04-29 17:37:16 +02:00 committed by Jelle Raaijmakers
commit 98d08b27e4
Notes: github-actions[bot] 2025-05-06 09:18:19 +00:00
7 changed files with 391 additions and 1 deletions

View file

@ -40,6 +40,13 @@ public:
[[nodiscard]] bool key_only() const { return m_key_only; }
[[nodiscard]] bool got_value() const { return m_got_value; }
void set_request(GC::Ptr<IDBRequest> request) { m_request = request; }
void set_position(GC::Ptr<Key> position) { m_position = position; }
void set_got_value(bool got_value) { m_got_value = got_value; }
void set_key(GC::Ptr<Key> key) { m_key = key; }
void set_value(JS::Value value) { m_value = value; }
void set_object_store_position(GC::Ptr<Key> object_store_position) { m_object_store_position = object_store_position; }
protected:
explicit IDBCursor(JS::Realm&, GC::Ref<IDBTransaction>, GC::Ptr<Key>, Bindings::IDBCursorDirection, bool, GC::Ptr<Key>, JS::Value, CursorSource, GC::Ref<IDBKeyRange>, bool);
virtual void initialize(JS::Realm&) override;