mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 11:55:12 +00:00
LibWebView+Ladybird: Move page loading to ViewImplementation
This commit is contained in:
parent
2428e3e675
commit
de1c0c87fe
6 changed files with 25 additions and 43 deletions
|
@ -22,6 +22,23 @@ WebContentClient const& ViewImplementation::client() const
|
|||
return *m_client_state.client;
|
||||
}
|
||||
|
||||
void ViewImplementation::load(AK::URL const& url)
|
||||
{
|
||||
m_url = url;
|
||||
client().async_load_url(url);
|
||||
}
|
||||
|
||||
void ViewImplementation::load_html(StringView html, AK::URL const& url)
|
||||
{
|
||||
m_url = url;
|
||||
client().async_load_html(html, url);
|
||||
}
|
||||
|
||||
void ViewImplementation::load_empty_document()
|
||||
{
|
||||
load_html(""sv, {});
|
||||
}
|
||||
|
||||
void ViewImplementation::zoom_in()
|
||||
{
|
||||
if (m_zoom_level >= ZOOM_MAX_LEVEL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue