mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-24 19:28:48 +00:00
LibWeb+LibWebView+WebContent: Convert about:processes to a WebUI
This commit is contained in:
parent
41aeb9e63a
commit
c75e40180c
Notes:
github-actions[bot]
2025-03-28 11:32:11 +00:00
Author: https://github.com/trflynn89
Commit: c75e40180c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4068
22 changed files with 96 additions and 140 deletions
|
@ -1,35 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibJS/Runtime/VM.h>
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/Bindings/ProcessesPrototype.h>
|
||||
#include <LibWeb/Internals/Processes.h>
|
||||
#include <LibWeb/Page/Page.h>
|
||||
|
||||
namespace Web::Internals {
|
||||
|
||||
GC_DEFINE_ALLOCATOR(Processes);
|
||||
|
||||
Processes::Processes(JS::Realm& realm)
|
||||
: InternalsBase(realm)
|
||||
{
|
||||
}
|
||||
|
||||
Processes::~Processes() = default;
|
||||
|
||||
void Processes::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
WEB_SET_PROTOTYPE_FOR_INTERFACE(Processes);
|
||||
}
|
||||
|
||||
void Processes::update_process_statistics()
|
||||
{
|
||||
page().client().update_process_statistics();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Internals/InternalsBase.h>
|
||||
|
||||
namespace Web::Internals {
|
||||
|
||||
class Processes final : public InternalsBase {
|
||||
WEB_PLATFORM_OBJECT(Processes, InternalsBase);
|
||||
GC_DECLARE_ALLOCATOR(Processes);
|
||||
|
||||
public:
|
||||
virtual ~Processes() override;
|
||||
|
||||
void update_process_statistics();
|
||||
|
||||
private:
|
||||
explicit Processes(JS::Realm&);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
[Exposed=Nobody]
|
||||
interface Processes {
|
||||
undefined updateProcessStatistics();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue