
This commit un-deprecates DeprecatedString, and repurposes it as a byte string. As the null state has already been removed, there are no other particularly hairy blockers in repurposing this type as a byte string (what it _really_ is). This commit is auto-generated: $ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \ Meta Ports Ladybird Tests Kernel) $ perl -pie 's/\bDeprecatedString\b/ByteString/g; s/deprecated_string/byte_string/g' $xs $ clang-format --style=file -i \ $(git diff --name-only | grep \.cpp\|\.h) $ gn format $(git ls-files '*.gn' '*.gni')
45 lines
1.8 KiB
C++
45 lines
1.8 KiB
C++
/*
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
* Copyright (c) 2023, David Ganz <david.g.ganz@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibIPC/ConnectionToServer.h>
|
|
#include <WindowServer/ScreenLayout.h>
|
|
#include <WindowServer/WindowManagerClientEndpoint.h>
|
|
#include <WindowServer/WindowManagerServerEndpoint.h>
|
|
|
|
namespace GUI {
|
|
|
|
class ConnectionToWindowManagerServer final
|
|
: public IPC::ConnectionToServer<WindowManagerClientEndpoint, WindowManagerServerEndpoint>
|
|
, public WindowManagerClientEndpoint {
|
|
IPC_CLIENT_CONNECTION(ConnectionToWindowManagerServer, "/tmp/portal/wm"sv)
|
|
|
|
public:
|
|
static ConnectionToWindowManagerServer& the();
|
|
|
|
private:
|
|
ConnectionToWindowManagerServer(NonnullOwnPtr<Core::LocalSocket> socket)
|
|
: IPC::ConnectionToServer<WindowManagerClientEndpoint, WindowManagerServerEndpoint>(*this, move(socket))
|
|
{
|
|
}
|
|
|
|
virtual void window_removed(i32, i32, i32) override;
|
|
virtual void window_state_changed(i32, i32, i32, u32, u32, bool, bool, bool, bool, i32, ByteString const&, Gfx::IntRect const&, Optional<i32> const&) override;
|
|
virtual void window_icon_bitmap_changed(i32, i32, i32, Gfx::ShareableBitmap const&) override;
|
|
virtual void window_rect_changed(i32, i32, i32, Gfx::IntRect const&) override;
|
|
virtual void applet_area_size_changed(i32, Gfx::IntSize) override;
|
|
virtual void super_key_pressed(i32) override;
|
|
virtual void super_space_key_pressed(i32) override;
|
|
virtual void super_d_key_pressed(i32) override;
|
|
virtual void super_digit_key_pressed(i32, u8) override;
|
|
virtual void workspace_changed(i32, u32, u32) override;
|
|
virtual void keymap_changed(i32, ByteString const&) override;
|
|
virtual void add_to_quick_launch(i32, pid_t) override;
|
|
};
|
|
|
|
}
|