mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 14:57:34 +00:00
BrowserSettings: Use new GML compiler
This commit is contained in:
parent
6f554af9c5
commit
182126dfda
11 changed files with 59 additions and 32 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <AK/RefPtr.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibGUI/Forward.h>
|
||||
#include <LibGUI/Menu.h>
|
||||
#include <LibGUI/SettingsWindow.h>
|
||||
|
||||
class AutoplayAllowlistModel : public DomainListModel {
|
||||
|
@ -20,6 +21,8 @@ public:
|
|||
virtual void reset_default_values() override;
|
||||
};
|
||||
|
||||
namespace BrowserSettings {
|
||||
|
||||
class AutoplaySettingsWidget : public GUI::SettingsWindow::Tab {
|
||||
C_OBJECT_ABSTRACT(AutoplaySettingsWidget)
|
||||
|
||||
|
@ -30,11 +33,16 @@ public:
|
|||
virtual void reset_default_values() override;
|
||||
|
||||
private:
|
||||
explicit AutoplaySettingsWidget(NonnullRefPtr<AutoplayAllowlistModel>);
|
||||
static ErrorOr<NonnullRefPtr<AutoplaySettingsWidget>> try_create();
|
||||
AutoplaySettingsWidget() = default;
|
||||
|
||||
void set_allowlist_model(NonnullRefPtr<AutoplayAllowlistModel> model);
|
||||
|
||||
RefPtr<GUI::Menu> m_entry_context_menu;
|
||||
RefPtr<GUI::CheckBox> m_allow_autoplay_on_all_websites_checkbox;
|
||||
RefPtr<GUI::Button> m_add_website_button;
|
||||
RefPtr<GUI::ListView> m_allowlist_view;
|
||||
NonnullRefPtr<AutoplayAllowlistModel> m_allowlist_model;
|
||||
RefPtr<AutoplayAllowlistModel> m_allowlist_model;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue