mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-02 16:33:13 +00:00
30 lines
681 B
C++
30 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;
|
|
};
|
|
}
|