/* * Copyright (c) 2023, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "ContentFilterSettingsWidget.h" #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; }; class AutoplaySettingsWidget : public GUI::SettingsWindow::Tab { C_OBJECT_ABSTRACT(AutoplaySettingsWidget) public: static ErrorOr> create(); virtual void apply_settings() override; virtual void reset_default_values() override; private: explicit AutoplaySettingsWidget(NonnullRefPtr); RefPtr m_entry_context_menu; RefPtr m_allow_autoplay_on_all_websites_checkbox; RefPtr m_add_website_button; RefPtr m_allowlist_view; NonnullRefPtr m_allowlist_model; };