mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-01 13:49:05 +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:
parent
c04b14d0cb
commit
83b1db785a
Notes:
github-actions[bot]
2024-11-13 19:37:50 +00:00
Author: https://github.com/trflynn89
Commit: 83b1db785a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2318
11 changed files with 28 additions and 24 deletions
|
@ -1,6 +1,6 @@
|
|||
#include <LibURL/URL.h>
|
||||
#include <LibIPC/File.h>
|
||||
#include <LibGfx/Rect.h>
|
||||
#include <LibIPC/File.h>
|
||||
#include <LibURL/URL.h>
|
||||
#include <LibWeb/CSS/PreferredColorScheme.h>
|
||||
#include <LibWeb/CSS/PreferredContrast.h>
|
||||
#include <LibWeb/CSS/PreferredMotion.h>
|
||||
|
@ -8,6 +8,7 @@
|
|||
#include <LibWeb/CSS/StyleSheetIdentifier.h>
|
||||
#include <LibWeb/HTML/ColorPickerUpdateState.h>
|
||||
#include <LibWeb/HTML/SelectedFile.h>
|
||||
#include <LibWeb/HTML/VisibilityState.h>
|
||||
#include <LibWeb/Page/InputEvent.h>
|
||||
#include <LibWeb/WebDriver/ExecuteScript.h>
|
||||
#include <LibWebView/Attribute.h>
|
||||
|
@ -97,7 +98,7 @@ endpoint WebContentServer
|
|||
|
||||
handle_file_return(u64 page_id, i32 error, Optional<IPC::File> file, i32 request_id) =|
|
||||
|
||||
set_system_visibility_state(u64 page_id, bool visible) =|
|
||||
set_system_visibility_state(u64 page_id, Web::HTML::VisibilityState visibility_state) =|
|
||||
|
||||
alert_closed(u64 page_id) =|
|
||||
confirm_closed(u64 page_id, bool accepted) =|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue