/* * Copyright (c) 2023, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "ContentFilterSettingsWidget.h" #include #include #include #include #include #include #include class AutoplayAllowlistModel : public DomainListModel { public: virtual ErrorOr filter_list_file_path() const override; virtual void reset_default_values() override; }; namespace BrowserSettings { class AutoplaySettingsWidget : public GUI::SettingsWindow::Tab { C_OBJECT_ABSTRACT(AutoplaySettingsWidget) public: static ErrorOr> try_create(); ErrorOr initialize(); virtual void apply_settings() override; virtual void reset_default_values() override; private: AutoplaySettingsWidget() = default; void set_allowlist_model(NonnullRefPtr model); RefPtr m_entry_context_menu; RefPtr m_allow_autoplay_on_all_websites_checkbox; RefPtr m_add_website_button; RefPtr m_allowlist_view; RefPtr m_allowlist_model; }; }