mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
LibWebView+WebContent+UI: Remember the current system visibility state
We will want to re-inform WebContent of the system visibility state when we create a new process after a crash. This changes the IPC to just send the enum value directly, instead of a boolean, so that we can just store that enum value directly on the ViewImplementation class.
This commit is contained in:
committed by
Andreas Kling
parent
c04b14d0cb
commit
83b1db785a
@@ -92,6 +92,12 @@ void ViewImplementation::did_update_window_rect()
|
||||
client().async_did_update_window_rect(m_client_state.page_index);
|
||||
}
|
||||
|
||||
void ViewImplementation::set_system_visibility_state(Web::HTML::VisibilityState visibility_state)
|
||||
{
|
||||
m_system_visibility_state = visibility_state;
|
||||
client().async_set_system_visibility_state(m_client_state.page_index, m_system_visibility_state);
|
||||
}
|
||||
|
||||
void ViewImplementation::load(URL::URL const& url)
|
||||
{
|
||||
m_url = url;
|
||||
|
||||
Reference in New Issue
Block a user