LibWebView+RequestServer: Add some UI for DNS settings

This commit is contained in:
Ali Mohammad Pur
2025-04-08 03:56:35 +02:00
committed by Tim Flynn
parent e1369aa7d6
commit 2c13504bfc
Notes: github-actions[bot] 2025-04-22 22:06:21 +00:00
12 changed files with 284 additions and 14 deletions

View File

@@ -26,7 +26,8 @@
namespace WebView {
class Application : public DevTools::DevToolsDelegate {
class Application : public DevTools::DevToolsDelegate
, public SettingsObserver {
AK_MAKE_NONCOPYABLE(Application);
public:
@@ -128,6 +129,9 @@ private:
virtual void stop_listening_for_console_messages(DevTools::TabDescription const&) const override;
virtual void request_console_messages(DevTools::TabDescription const&, i32) const override;
// ^SettingsObserver
virtual void dns_settings_changed() override;
static Application* s_the;
Settings m_settings;
@@ -152,7 +156,6 @@ private:
OwnPtr<DevTools::DevToolsServer> m_devtools;
} SWIFT_IMMORTAL_REFERENCE;
}
#define WEB_VIEW_APPLICATION(ApplicationType) \