Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: f076fdf8692a441dce2b82f193b8976d4436d424 https://github.com/WebKit/WebKit/commit/f076fdf8692a441dce2b82f193b8976d4436d424 Author: Patrick Griffis <pgrif...@igalia.com> Date: 2024-10-25 (Fri, 25 Oct 2024)
Changed paths: M Source/WebKit/WPEPlatform/CMakeLists.txt M Source/WebKit/WPEPlatform/wpe/WPEDisplay.cpp M Source/WebKit/WPEPlatform/wpe/WPEDisplay.h A Source/WebKit/WPEPlatform/wpe/WPESettings.cpp A Source/WebKit/WPEPlatform/wpe/WPESettings.h M Tools/Scripts/run-wpe-tests A Tools/TestWebKitAPI/Tests/WPEPlatform/TestSettings.cpp M Tools/TestWebKitAPI/glib/CMakeLists.txt Log Message: ----------- [WPE] WPE Platform: Add WPESettings API https://bugs.webkit.org/show_bug.cgi?id=280618 Reviewed by Carlos Garcia Campos. This adds an API to store generic settings similar to GSettings. Each setting has a known type and default value. These settings can be saved and loaded from key files. * Source/WebKit/WPEPlatform/CMakeLists.txt: * Source/WebKit/WPEPlatform/wpe/WPEDisplay.cpp: (wpe_display_get_settings): * Source/WebKit/WPEPlatform/wpe/WPEDisplay.h: * Source/WebKit/WPEPlatform/wpe/WPESettings.cpp: Added. (SettingEntry::SettingEntry): (SettingEntry::value const): (wpe_settings_get_default): (makeKeyPath): (wpe_settings_register): (wpe_settings_load_from_keyfile): (wpe_settings_save_to_keyfile): (wpe_settings_set_value): (wpe_settings_get_value): * Source/WebKit/WPEPlatform/wpe/WPESettings.h: Added. * Tools/Scripts/run-wpe-tests: (WPETestRunner): (WPETestRunner.is_glib_test): * Tools/TestWebKitAPI/Tests/WPEPlatform/TestSettings.cpp: Added. (testSettingsRegistration): (testSettingsSaveKeyFiles): (testSettingsLoadKeyFiles): (testSettingsChangedSignal): (testSettingsHelperAPI): (beforeAll): (afterAll): * Tools/TestWebKitAPI/glib/CMakeLists.txt: Canonical link: https://commits.webkit.org/285702@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes