2025-03-24 11:22:38 -03:00
|
|
|
/*
|
2026-02-05 14:25:14 -03:00
|
|
|
* Copyright (c) 2025-2026, Tim Flynn <trflynn89@ladybird.org>
|
2025-03-24 11:22:38 -03:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2025-07-02 00:55:11 -03:00
|
|
|
#include <LibWebView/Forward.h>
|
2025-03-24 11:22:38 -03:00
|
|
|
#include <LibWebView/WebUI.h>
|
|
|
|
|
|
|
|
|
|
namespace WebView {
|
|
|
|
|
|
2025-07-02 00:55:11 -03:00
|
|
|
class WEBVIEW_API SettingsUI : public WebUI {
|
2025-03-24 11:22:38 -03:00
|
|
|
WEB_UI(SettingsUI);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
virtual void register_interfaces() override;
|
|
|
|
|
|
|
|
|
|
void load_current_settings();
|
2025-03-30 17:21:24 -03:00
|
|
|
|
2025-03-24 11:22:38 -03:00
|
|
|
void set_new_tab_page_url(JsonValue const&);
|
2025-08-23 13:15:31 -03:00
|
|
|
void set_default_zoom_level_factor(JsonValue const&);
|
2025-04-03 14:42:39 -03:00
|
|
|
void set_languages(JsonValue const&);
|
2026-04-13 11:55:24 -03:00
|
|
|
void set_browsing_behavior(JsonValue const&);
|
2025-03-30 17:21:24 -03:00
|
|
|
|
|
|
|
|
void load_available_engines();
|
2025-03-24 11:22:38 -03:00
|
|
|
void set_search_engine(JsonValue const&);
|
2025-04-04 19:12:32 -03:00
|
|
|
void add_custom_search_engine(JsonValue const&);
|
|
|
|
|
void remove_custom_search_engine(JsonValue const&);
|
2025-03-30 17:21:24 -03:00
|
|
|
void set_autocomplete_engine(JsonValue const&);
|
|
|
|
|
|
2025-03-28 14:00:05 -03:00
|
|
|
void load_forcibly_enabled_site_settings();
|
|
|
|
|
void set_site_setting_enabled_globally(JsonValue const&);
|
|
|
|
|
void add_site_setting_filter(JsonValue const&);
|
|
|
|
|
void remove_site_setting_filter(JsonValue const&);
|
|
|
|
|
void remove_all_site_setting_filters(JsonValue const&);
|
2025-04-02 10:47:44 -03:00
|
|
|
|
2025-11-02 20:44:17 -03:00
|
|
|
void estimate_browsing_data_sizes(JsonValue const&);
|
2026-02-05 14:25:14 -03:00
|
|
|
void set_browsing_data_settings(JsonValue const&);
|
2025-11-02 20:44:17 -03:00
|
|
|
void clear_browsing_data(JsonValue const&);
|
2025-04-02 10:30:34 -03:00
|
|
|
void set_global_privacy_control(JsonValue const&);
|
2025-04-07 22:56:35 -03:00
|
|
|
|
|
|
|
|
void set_dns_settings(JsonValue const&);
|
2025-03-24 11:22:38 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|