mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
LibWeb: Implement BarProp properties for Window
This commit is contained in:
parent
ad634897b8
commit
b66e7ac1ba
Notes:
github-actions[bot]
2025-03-29 02:36:35 +00:00
Author: https://github.com/Totto16
Commit: b66e7ac1ba
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3810
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/tcl3 ✅
13 changed files with 201 additions and 0 deletions
30
Libraries/LibWeb/HTML/BarProp.h
Normal file
30
Libraries/LibWeb/HTML/BarProp.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* Copyright (c) 2025, the Ladybird developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibGC/CellAllocator.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#barprop
|
||||
class BarProp : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(BarProp, Bindings::PlatformObject);
|
||||
GC_DECLARE_ALLOCATOR(BarProp);
|
||||
|
||||
public:
|
||||
BarProp(JS::Realm&);
|
||||
static GC::Ref<BarProp> create(JS::Realm&);
|
||||
|
||||
[[nodiscard]] bool visible() const;
|
||||
|
||||
private:
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue