mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb: Implement UserActivation
This commit is contained in:
parent
227151b881
commit
01bd179eef
Notes:
sideshowbarker
2024-07-17 11:34:34 +09:00
Author: https://github.com/jamierocks
Commit: 01bd179eef
Pull-request: https://github.com/SerenityOS/serenity/pull/24437
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/mattco98
Reviewed-by: https://github.com/tcl3
11 changed files with 104 additions and 0 deletions
30
Userland/Libraries/LibWeb/HTML/UserActivation.h
Normal file
30
Userland/Libraries/LibWeb/HTML/UserActivation.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* 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);
|
||||
JS_DECLARE_ALLOCATOR(UserActivation);
|
||||
|
||||
public:
|
||||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<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;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue