1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:37:34 +00:00

WindowServer: Move the CPU monitor thingy to its own class.

This commit is contained in:
Andreas Kling 2019-04-14 04:33:43 +02:00
parent f1b58d8d8c
commit c2093ad994
6 changed files with 106 additions and 83 deletions

View file

@ -15,7 +15,7 @@
#include <WindowServer/WSWindow.h>
#include <WindowServer/WSCursor.h>
#include <WindowServer/WSMessage.h>
#include <AK/CircularQueue.h>
#include <WindowServer/WSCPUMonitor.h>
class WSAPIClientRequest;
class WSScreen;
@ -216,11 +216,11 @@ private:
WSWindowSwitcher m_switcher;
CircularQueue<float, 30> m_cpu_history;
String m_username;
WeakPtr<WSButton> m_cursor_tracking_button;
WeakPtr<WSButton> m_hovered_button;
WSCPUMonitor m_cpu_monitor;
};
template<typename Callback>