mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb: Add IDBKeyRange
This commit is contained in:
parent
20a92a81c4
commit
48fae7b64f
Notes:
github-actions[bot]
2024-11-26 13:52:44 +00:00
Author: https://github.com/stelar7
Commit: 48fae7b64f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2236
Reviewed-by: https://github.com/gmta ✅
8 changed files with 80 additions and 0 deletions
28
Libraries/LibWeb/IndexedDB/IDBKeyRange.h
Normal file
28
Libraries/LibWeb/IndexedDB/IDBKeyRange.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Copyright (c) 2024, stelar7 <dudedbz@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibGC/Heap.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
|
||||
namespace Web::IndexedDB {
|
||||
|
||||
// https://w3c.github.io/IndexedDB/#keyrange
|
||||
class IDBKeyRange : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(IDBKeyRange, Bindings::PlatformObject);
|
||||
GC_DECLARE_ALLOCATOR(IDBKeyRange);
|
||||
|
||||
public:
|
||||
virtual ~IDBKeyRange() override;
|
||||
[[nodiscard]] static GC::Ref<IDBKeyRange> create(JS::Realm&);
|
||||
|
||||
protected:
|
||||
explicit IDBKeyRange(JS::Realm&);
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue