2024-05-25 12:40:44 +01:00
|
|
|
/*
|
|
|
|
* 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);
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DECLARE_ALLOCATOR(UserActivation);
|
2024-05-25 12:40:44 +01:00
|
|
|
|
|
|
|
public:
|
2024-11-15 04:01:23 +13:00
|
|
|
static WebIDL::ExceptionOr<GC::Ref<UserActivation>> construct_impl(JS::Realm&);
|
2024-05-25 12:40:44 +01:00
|
|
|
virtual ~UserActivation() override = default;
|
|
|
|
|
|
|
|
bool has_been_active() const;
|
|
|
|
bool is_active() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
UserActivation(JS::Realm&);
|
|
|
|
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|