summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/OutOfProcessWebView.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-10-26 17:00:10 +0100
committerLinus Groh <mail@linusgroh.de>2021-10-31 18:39:13 +0100
commit53edaa3b2699df6558df9dea3843ffd32201917d (patch)
tree5891399e198347cf5f731ac665ffea8c21d39bee /Userland/Libraries/LibWeb/OutOfProcessWebView.h
parentc8550da9c54d819b8c436a7fd69685415e0a1f5f (diff)
downloadserenity-53edaa3b2699df6558df9dea3843ffd32201917d.zip
LibWeb+WebContent: Add set_preferred_color_scheme IPC call
This allows the owner of a WebView to override whether to use a dark theme or not, instead of just using the system theme's IsDark property.
Diffstat (limited to 'Userland/Libraries/LibWeb/OutOfProcessWebView.h')
-rw-r--r--Userland/Libraries/LibWeb/OutOfProcessWebView.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/OutOfProcessWebView.h b/Userland/Libraries/LibWeb/OutOfProcessWebView.h
index 818edb2bdf..6acdbfce56 100644
--- a/Userland/Libraries/LibWeb/OutOfProcessWebView.h
+++ b/Userland/Libraries/LibWeb/OutOfProcessWebView.h
@@ -9,6 +9,7 @@
#include <AK/URL.h>
#include <LibGUI/AbstractScrollableWidget.h>
#include <LibGUI/Widget.h>
+#include <LibWeb/Page/Page.h>
#include <LibWeb/WebViewHooks.h>
namespace Web {
@@ -52,6 +53,7 @@ public:
String dump_layout_tree();
void set_content_filters(Vector<String>);
+ void set_preferred_color_scheme(Web::CSS::PreferredColorScheme);
void notify_server_did_layout(Badge<WebContentClient>, const Gfx::IntSize& content_size);
void notify_server_did_paint(Badge<WebContentClient>, i32 bitmap_id);