mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb+LibWebView+WebContent: Convert about:settings to a WebUI
This commit is contained in:
Notes:
github-actions[bot]
2025-03-28 11:32:05 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/f05b0bfd5f8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4068
26
Libraries/LibWebView/WebUI/SettingsUI.h
Normal file
26
Libraries/LibWebView/WebUI/SettingsUI.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWebView/WebUI.h>
|
||||
|
||||
namespace WebView {
|
||||
|
||||
class SettingsUI : public WebUI {
|
||||
WEB_UI(SettingsUI);
|
||||
|
||||
private:
|
||||
virtual void register_interfaces() override;
|
||||
|
||||
void load_current_settings();
|
||||
void restore_default_settings();
|
||||
void set_new_tab_page_url(JsonValue const&);
|
||||
void load_available_search_engines();
|
||||
void set_search_engine(JsonValue const&);
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user