mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibGUI: Rename ClipboardServerConnection=>ConnectionToClipboardServer
This was done with CLion's automatic rename feature.
This commit is contained in:
parent
2bc8e32af0
commit
2f61d32f99
Notes:
sideshowbarker
2024-07-17 22:41:14 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/2f61d32f99 Pull-request: https://github.com/SerenityOS/serenity/pull/12760
@ -13,13 +13,13 @@
|
||||
|
||||
namespace GUI {
|
||||
|
||||
class ClipboardServerConnection final
|
||||
class ConnectionToClipboardServer final
|
||||
: public IPC::ConnectionToServer<ClipboardClientEndpoint, ClipboardServerEndpoint>
|
||||
, public ClipboardClientEndpoint {
|
||||
IPC_CLIENT_CONNECTION(ClipboardServerConnection, "/tmp/portal/clipboard")
|
||||
IPC_CLIENT_CONNECTION(ConnectionToClipboardServer, "/tmp/portal/clipboard")
|
||||
|
||||
private:
|
||||
ClipboardServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
|
||||
ConnectionToClipboardServer(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
|
||||
: IPC::ConnectionToServer<ClipboardClientEndpoint, ClipboardServerEndpoint>(*this, move(socket))
|
||||
{
|
||||
}
|
||||
@ -30,16 +30,16 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
static RefPtr<ClipboardServerConnection> s_connection;
|
||||
static RefPtr<ConnectionToClipboardServer> s_connection;
|
||||
|
||||
static ClipboardServerConnection& connection()
|
||||
static ConnectionToClipboardServer& connection()
|
||||
{
|
||||
return *s_connection;
|
||||
}
|
||||
|
||||
void Clipboard::initialize(Badge<Application>)
|
||||
{
|
||||
s_connection = ClipboardServerConnection::try_create().release_value_but_fixme_should_propagate_errors();
|
||||
s_connection = ConnectionToClipboardServer::try_create().release_value_but_fixme_should_propagate_errors();
|
||||
}
|
||||
|
||||
Clipboard& Clipboard::the()
|
||||
@ -153,7 +153,7 @@ void Clipboard::clear()
|
||||
connection().async_set_clipboard_data({}, {}, {});
|
||||
}
|
||||
|
||||
void Clipboard::clipboard_data_changed(Badge<ClipboardServerConnection>, String const& mime_type)
|
||||
void Clipboard::clipboard_data_changed(Badge<ConnectionToClipboardServer>, String const& mime_type)
|
||||
{
|
||||
if (on_change)
|
||||
on_change(mime_type);
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
namespace GUI {
|
||||
|
||||
class ClipboardServerConnection;
|
||||
class ConnectionToClipboardServer;
|
||||
|
||||
class Clipboard {
|
||||
public:
|
||||
@ -47,7 +47,7 @@ public:
|
||||
void set_bitmap(Gfx::Bitmap const&);
|
||||
void clear();
|
||||
|
||||
void clipboard_data_changed(Badge<ClipboardServerConnection>, String const& mime_type);
|
||||
void clipboard_data_changed(Badge<ConnectionToClipboardServer>, String const& mime_type);
|
||||
|
||||
void register_client(Badge<ClipboardClient>, ClipboardClient& client) { m_clients.set(&client); }
|
||||
void unregister_client(Badge<ClipboardClient>, ClipboardClient& client) { m_clients.remove(&client); }
|
||||
|
Loading…
Reference in New Issue
Block a user