LibWebView: Add autoplay settings to about:settings

The idea with the UI here is that it will serve as a generic component
for all site settings, such as autoplay, notifications, etc. When the
site settings dialog is opened, it is filled with the requested setting
data, and messages sent to the browser process are based on the setting.

This patch only implements the UI and persisted settings. It does not
apply autoplay changes to the WebContent process.
This commit is contained in:
Timothy Flynn 2025-03-28 13:00:05 -04:00 committed by Tim Ledbetter
commit 223b04f087
Notes: github-actions[bot] 2025-03-30 15:20:14 +00:00
6 changed files with 614 additions and 10 deletions

View file

@ -21,6 +21,11 @@ private:
void set_new_tab_page_url(JsonValue const&);
void load_available_search_engines();
void set_search_engine(JsonValue const&);
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&);
};
}