mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 17:30:27 +03:00
LibWebView+Ladybird: Move preferred color scheme to ViewImplementation
This commit is contained in:
parent
5bf5697f16
commit
f183745f4e
Notes:
sideshowbarker
2024-07-17 04:21:32 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/f183745f4e Pull-request: https://github.com/SerenityOS/serenity/pull/16983
@ -517,11 +517,6 @@ void WebContentView::show_inspector()
|
||||
inspect_dom_tree();
|
||||
}
|
||||
|
||||
void WebContentView::set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme)
|
||||
{
|
||||
client().async_set_preferred_color_scheme(color_scheme);
|
||||
}
|
||||
|
||||
void WebContentView::update_zoom()
|
||||
{
|
||||
client().async_set_device_pixels_per_css_pixel(m_device_pixel_ratio * m_zoom_level);
|
||||
|
@ -95,8 +95,6 @@ public:
|
||||
Gfx::IntPoint to_content(Gfx::IntPoint) const;
|
||||
Gfx::IntPoint to_widget(Gfx::IntPoint) const;
|
||||
|
||||
void set_preferred_color_scheme(Web::CSS::PreferredColorScheme);
|
||||
|
||||
virtual void notify_server_did_layout(Badge<WebContentClient>, Gfx::IntSize content_size) override;
|
||||
virtual void notify_server_did_paint(Badge<WebContentClient>, i32 bitmap_id) override;
|
||||
virtual void notify_server_did_invalidate_content_rect(Badge<WebContentClient>, Gfx::IntRect const&) override;
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user