mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
31c0d00ab1
This implementation uses a really basic WebView to update stats once a second. In the future it might make more sense to both move the details into LibWebView, and to create a native widget for each platform to remove the overhead of having an extra WebView.
31 lines
549 B
C++
31 lines
549 B
C++
/*
|
|
* Copyright (c) 2024, Andrew Kaster <akaster@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "WebContentView.h"
|
|
#include <QTimer>
|
|
#include <QWidget>
|
|
|
|
namespace Ladybird {
|
|
|
|
class TaskManagerWindow : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TaskManagerWindow(QWidget* parent);
|
|
|
|
private:
|
|
virtual void showEvent(QShowEvent*) override;
|
|
virtual void hideEvent(QHideEvent*) override;
|
|
|
|
void update_statistics();
|
|
|
|
WebContentView* m_web_view { nullptr };
|
|
QTimer m_update_timer;
|
|
};
|
|
|
|
}
|