2024-03-26 17:38:12 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2024, Andrew Kaster <akaster@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-11-09 17:50:33 +00:00
|
|
|
#include <UI/Qt/WebContentView.h>
|
|
|
|
|
2024-03-26 17:38:12 +00:00
|
|
|
#include <QTimer>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Ladybird {
|
|
|
|
|
|
|
|
class TaskManagerWindow : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2024-07-30 18:01:05 +00:00
|
|
|
explicit TaskManagerWindow(QWidget* parent);
|
2024-03-26 17:38:12 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
virtual void showEvent(QShowEvent*) override;
|
|
|
|
virtual void hideEvent(QHideEvent*) override;
|
|
|
|
|
|
|
|
void update_statistics();
|
|
|
|
|
|
|
|
WebContentView* m_web_view { nullptr };
|
|
|
|
QTimer m_update_timer;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|