diff options
author | Linus Groh <mail@linusgroh.de> | 2023-01-12 20:44:42 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-12 23:39:36 +0100 |
commit | f183745f4e14d2c6d6b3da354d8d1e0d782836e1 (patch) | |
tree | 1ae6db7e1c253c99479ab00e562276baf5d15249 /Userland/Libraries/LibWebView | |
parent | 5bf5697f16249954a55be564c944325057f49027 (diff) | |
download | serenity-f183745f4e14d2c6d6b3da354d8d1e0d782836e1.zip |
LibWebView+Ladybird: Move preferred color scheme to ViewImplementation
Diffstat (limited to 'Userland/Libraries/LibWebView')
4 files changed, 7 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp index 2ea58fa4f4..6c69e01e54 100644 --- a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp +++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp @@ -577,11 +577,6 @@ void OutOfProcessWebView::set_proxy_mappings(Vector<DeprecatedString> proxies, H client().async_set_proxy_mappings(move(proxies), move(mappings)); } -void OutOfProcessWebView::set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme) -{ - client().async_set_preferred_color_scheme(color_scheme); -} - void OutOfProcessWebView::connect_to_webdriver(DeprecatedString const& webdriver_ipc_path) { client().async_connect_to_webdriver(webdriver_ipc_path); diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.h b/Userland/Libraries/LibWebView/OutOfProcessWebView.h index b9911930a5..f212ba5528 100644 --- a/Userland/Libraries/LibWebView/OutOfProcessWebView.h +++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.h @@ -43,7 +43,6 @@ public: void set_content_filters(Vector<DeprecatedString>); void set_proxy_mappings(Vector<DeprecatedString> proxies, HashMap<DeprecatedString, size_t> mappings); - void set_preferred_color_scheme(Web::CSS::PreferredColorScheme); void connect_to_webdriver(DeprecatedString const& webdriver_ipc_path); void set_window_position(Gfx::IntPoint); diff --git a/Userland/Libraries/LibWebView/ViewImplementation.cpp b/Userland/Libraries/LibWebView/ViewImplementation.cpp index 3e55943b1f..e547191e81 100644 --- a/Userland/Libraries/LibWebView/ViewImplementation.cpp +++ b/Userland/Libraries/LibWebView/ViewImplementation.cpp @@ -61,6 +61,11 @@ void ViewImplementation::reset_zoom() update_zoom(); } +void ViewImplementation::set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme) +{ + client().async_set_preferred_color_scheme(color_scheme); +} + DeprecatedString ViewImplementation::selected_text() { return client().get_selected_text(); diff --git a/Userland/Libraries/LibWebView/ViewImplementation.h b/Userland/Libraries/LibWebView/ViewImplementation.h index 5ab594e90e..6ebbe7ce3b 100644 --- a/Userland/Libraries/LibWebView/ViewImplementation.h +++ b/Userland/Libraries/LibWebView/ViewImplementation.h @@ -38,6 +38,8 @@ public: void zoom_out(); void reset_zoom(); + void set_preferred_color_scheme(Web::CSS::PreferredColorScheme); + DeprecatedString selected_text(); void select_all(); |