mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
Tear out or duplicate what's unique for WindowServer from Widgets.
This turned into a huge refactoring that somehow also includes making locks recursive/reentrant.
This commit is contained in:
parent
e655aebd70
commit
f7ca6d254d
30 changed files with 757 additions and 308 deletions
16
Kernel/GUIEventDevice.h
Normal file
16
Kernel/GUIEventDevice.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#pragma once
|
||||
|
||||
#include <VirtualFileSystem/CharacterDevice.h>
|
||||
|
||||
class GUIEventDevice final : public CharacterDevice {
|
||||
public:
|
||||
GUIEventDevice();
|
||||
virtual ~GUIEventDevice() override;
|
||||
|
||||
private:
|
||||
// ^CharacterDevice
|
||||
virtual ssize_t read(Process&, byte* buffer, size_t bufferSize) override;
|
||||
virtual ssize_t write(Process&, const byte* buffer, size_t bufferSize) override;
|
||||
virtual bool can_read(Process&) const override;
|
||||
virtual bool can_write(Process&) const override { return true; }
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue