mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
LibWeb: Add the Web::URL namespace and move URLEncoder to it
This namespace will be used for all interfaces defined in the URL specification, like URL and URLSearchParams. This has the unfortunate side-effect of requiring us to use the fully qualified AK::URL name whenever we want to refer to the AK class, so this commit also fixes all such references.
This commit is contained in:
parent
2b78e227f2
commit
4629f2e4ad
54 changed files with 236 additions and 225 deletions
|
@ -28,7 +28,7 @@ void WebContentClient::did_paint(const Gfx::IntRect&, i32 bitmap_id)
|
|||
m_view.notify_server_did_paint({}, bitmap_id);
|
||||
}
|
||||
|
||||
void WebContentClient::did_finish_loading(URL const& url)
|
||||
void WebContentClient::did_finish_loading(AK::URL const& url)
|
||||
{
|
||||
m_view.notify_server_did_finish_loading({}, url);
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ void WebContentClient::did_leave_tooltip_area()
|
|||
m_view.notify_server_did_leave_tooltip_area({});
|
||||
}
|
||||
|
||||
void WebContentClient::did_hover_link(URL const& url)
|
||||
void WebContentClient::did_hover_link(AK::URL const& url)
|
||||
{
|
||||
dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidHoverLink! url={}", url);
|
||||
m_view.notify_server_did_hover_link({}, url);
|
||||
|
@ -106,17 +106,17 @@ void WebContentClient::did_unhover_link()
|
|||
m_view.notify_server_did_unhover_link({});
|
||||
}
|
||||
|
||||
void WebContentClient::did_click_link(URL const& url, String const& target, unsigned modifiers)
|
||||
void WebContentClient::did_click_link(AK::URL const& url, String const& target, unsigned modifiers)
|
||||
{
|
||||
m_view.notify_server_did_click_link({}, url, target, modifiers);
|
||||
}
|
||||
|
||||
void WebContentClient::did_middle_click_link(URL const& url, String const& target, unsigned modifiers)
|
||||
void WebContentClient::did_middle_click_link(AK::URL const& url, String const& target, unsigned modifiers)
|
||||
{
|
||||
m_view.notify_server_did_middle_click_link({}, url, target, modifiers);
|
||||
}
|
||||
|
||||
void WebContentClient::did_start_loading(URL const& url)
|
||||
void WebContentClient::did_start_loading(AK::URL const& url)
|
||||
{
|
||||
m_view.notify_server_did_start_loading({}, url);
|
||||
}
|
||||
|
@ -126,17 +126,17 @@ void WebContentClient::did_request_context_menu(Gfx::IntPoint const& content_pos
|
|||
m_view.notify_server_did_request_context_menu({}, content_position);
|
||||
}
|
||||
|
||||
void WebContentClient::did_request_link_context_menu(Gfx::IntPoint const& content_position, URL const& url, String const& target, unsigned modifiers)
|
||||
void WebContentClient::did_request_link_context_menu(Gfx::IntPoint const& content_position, AK::URL const& url, String const& target, unsigned modifiers)
|
||||
{
|
||||
m_view.notify_server_did_request_link_context_menu({}, content_position, url, target, modifiers);
|
||||
}
|
||||
|
||||
void WebContentClient::did_request_image_context_menu(Gfx::IntPoint const& content_position, URL const& url, String const& target, unsigned modifiers, Gfx::ShareableBitmap const& bitmap)
|
||||
void WebContentClient::did_request_image_context_menu(Gfx::IntPoint const& content_position, AK::URL const& url, String const& target, unsigned modifiers, Gfx::ShareableBitmap const& bitmap)
|
||||
{
|
||||
m_view.notify_server_did_request_image_context_menu({}, content_position, url, target, modifiers, bitmap);
|
||||
}
|
||||
|
||||
void WebContentClient::did_get_source(URL const& url, String const& source)
|
||||
void WebContentClient::did_get_source(AK::URL const& url, String const& source)
|
||||
{
|
||||
m_view.notify_server_did_get_source(url, source);
|
||||
}
|
||||
|
@ -185,12 +185,12 @@ void WebContentClient::did_change_favicon(Gfx::ShareableBitmap const& favicon)
|
|||
m_view.notify_server_did_change_favicon(*favicon.bitmap());
|
||||
}
|
||||
|
||||
Messages::WebContentClient::DidRequestCookieResponse WebContentClient::did_request_cookie(URL const& url, u8 source)
|
||||
Messages::WebContentClient::DidRequestCookieResponse WebContentClient::did_request_cookie(AK::URL const& url, u8 source)
|
||||
{
|
||||
return m_view.notify_server_did_request_cookie({}, url, static_cast<Cookie::Source>(source));
|
||||
}
|
||||
|
||||
void WebContentClient::did_set_cookie(URL const& url, Web::Cookie::ParsedCookie const& cookie, u8 source)
|
||||
void WebContentClient::did_set_cookie(AK::URL const& url, Web::Cookie::ParsedCookie const& cookie, u8 source)
|
||||
{
|
||||
m_view.notify_server_did_set_cookie({}, url, cookie, static_cast<Cookie::Source>(source));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue