mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWeb/IDB: Implement iterate_a_cursor
This commit is contained in:
parent
93d7a29306
commit
98d08b27e4
Notes:
github-actions[bot]
2025-05-06 09:18:19 +00:00
Author: https://github.com/stelar7
Commit: 98d08b27e4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4524
Reviewed-by: https://github.com/gmta ✅
7 changed files with 391 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue