Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify MiniBrowser settings menu construction
https://bugs.webkit.org/show_bug.cgi?id=247305 Reviewed by Simon Fraser. * Tools/MiniBrowser/mac/SettingsController.m: (-[SettingsController initWithMenu:]): (addItemToMenuWithTarget): (addSeparatorToMenu): (addSubmenuToMenu): (-[SettingsController _populateMenu:]): (-[SettingsController buildUserAgentsMenu:]): (-[SettingsController validateMenuItem:]): (-[SettingsController changeCustomUserAgent:]): (-[SettingsController dealloc]): Deleted. (-[SettingsController _addItemWithTitle:action:indented:]): Deleted. (-[SettingsController _addHeaderWithTitle:]): Deleted. (-[SettingsController _populateMenu]): Deleted. (-[SettingsController changeCutomUserAgent:]): Deleted. Simplify the menu construction with some more helper functions. Move the resource usage overlays into the overlay submenu. Remove the empty WebKit1-only settings section. Fix some typos. Canonical link: https://commits.webkit.org/256195@main
- Loading branch information
1 parent
b802e43
commit d8123ac
Showing
1 changed file
with
104 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters