mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
f87041bf3a
Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
30 lines
676 B
C++
30 lines
676 B
C++
/*
|
|
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Bindings/PlatformObject.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
class UserActivation final : public Bindings::PlatformObject {
|
|
WEB_PLATFORM_OBJECT(UserActivation, Bindings::PlatformObject);
|
|
GC_DECLARE_ALLOCATOR(UserActivation);
|
|
|
|
public:
|
|
static WebIDL::ExceptionOr<GC::Ref<UserActivation>> construct_impl(JS::Realm&);
|
|
virtual ~UserActivation() override = default;
|
|
|
|
bool has_been_active() const;
|
|
bool is_active() const;
|
|
|
|
private:
|
|
UserActivation(JS::Realm&);
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
};
|
|
|
|
}
|