mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
28 lines
595 B
C++
28 lines
595 B
C++
#pragma once
|
|
|
|
#include <AK/ByteBuffer.h>
|
|
#include <LibCore/CEventLoop.h>
|
|
#include <LibCore/CLocalServer.h>
|
|
#include <LibCore/CNotifier.h>
|
|
|
|
class WSClientConnection;
|
|
struct WSAPI_ClientMessage;
|
|
|
|
class WSEventLoop {
|
|
public:
|
|
WSEventLoop();
|
|
virtual ~WSEventLoop();
|
|
|
|
int exec() { return m_event_loop.exec(); }
|
|
|
|
private:
|
|
void drain_mouse();
|
|
void drain_keyboard();
|
|
|
|
CEventLoop m_event_loop;
|
|
int m_keyboard_fd { -1 };
|
|
ObjectPtr<CNotifier> m_keyboard_notifier;
|
|
int m_mouse_fd { -1 };
|
|
ObjectPtr<CNotifier> m_mouse_notifier;
|
|
ObjectPtr<CLocalServer> m_server;
|
|
};
|