mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 08:03:21 +00:00
31 lines
681 B
C
31 lines
681 B
C
![]() |
/*
|
||
|
* 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;
|
||
|
};
|
||
|
}
|