1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 17:07:47 +00:00

Userland: Use snake case names in .ipc files

This updates all .ipc files to have snake case names for IPC methods.
This commit is contained in:
Gunnar Beutner 2021-05-03 15:52:56 +02:00 committed by Andreas Kling
parent eb21aa65d1
commit 9e22e9ce88
36 changed files with 296 additions and 287 deletions

View file

@ -59,7 +59,7 @@ static LaunchServerConnection& connection()
bool Launcher::add_allowed_url(const URL& url)
{
auto response = connection().send_sync_but_allow_failure<Messages::LaunchServer::AddAllowedURL>(url);
auto response = connection().send_sync_but_allow_failure<Messages::LaunchServer::AddAllowedUrl>(url);
if (!response) {
dbgln("Launcher::add_allowed_url: Failed");
return false;
@ -69,7 +69,7 @@ bool Launcher::add_allowed_url(const URL& url)
bool Launcher::add_allowed_handler_with_any_url(const String& handler)
{
auto response = connection().send_sync_but_allow_failure<Messages::LaunchServer::AddAllowedHandlerWithAnyURL>(handler);
auto response = connection().send_sync_but_allow_failure<Messages::LaunchServer::AddAllowedHandlerWithAnyUrl>(handler);
if (!response) {
dbgln("Launcher::add_allowed_handler_with_any_url: Failed");
return false;
@ -79,7 +79,7 @@ bool Launcher::add_allowed_handler_with_any_url(const String& handler)
bool Launcher::add_allowed_handler_with_only_specific_urls(const String& handler, const Vector<URL>& urls)
{
auto response = connection().send_sync_but_allow_failure<Messages::LaunchServer::AddAllowedHandlerWithOnlySpecificURLs>(handler, urls);
auto response = connection().send_sync_but_allow_failure<Messages::LaunchServer::AddAllowedHandlerWithOnlySpecificUrls>(handler, urls);
if (!response) {
dbgln("Launcher::add_allowed_handler_with_only_specific_urls: Failed");
return false;

View file

@ -391,12 +391,12 @@ void OutOfProcessWebView::get_source()
void OutOfProcessWebView::js_console_initialize()
{
client().async_jsconsole_initialize();
client().async_js_console_initialize();
}
void OutOfProcessWebView::js_console_input(const String& js_source)
{
client().async_jsconsole_input(js_source);
client().async_js_console_input(js_source);
}
}

View file

@ -142,7 +142,7 @@ void WebContentClient::did_get_source(URL const& url, String const& source)
m_view.notify_server_did_get_source(url, source);
}
void WebContentClient::did_jsconsole_output(String const& method, String const& line)
void WebContentClient::did_js_console_output(String const& method, String const& line)
{
m_view.notify_server_did_js_console_output(method, line);
}

View file

@ -51,7 +51,7 @@ private:
virtual void did_request_link_context_menu(Gfx::IntPoint const&, URL const&, String const&, unsigned) override;
virtual void did_request_image_context_menu(Gfx::IntPoint const&, URL const&, String const&, unsigned, Gfx::ShareableBitmap const&) override;
virtual void did_get_source(URL const&, String const&) override;
virtual void did_jsconsole_output(String const&, String const&) override;
virtual void did_js_console_output(String const&, String const&) override;
virtual void did_change_favicon(Gfx::ShareableBitmap const&) override;
virtual void did_request_alert(String const&) override;
virtual Messages::WebContentClient::DidRequestConfirmResponse did_request_confirm(String const&) override;