Update thorium_flag_entries.h

This commit is contained in:
Alexander David Frick 2022-07-24 10:04:50 -05:00 committed by GitHub
parent 353f247aca
commit 23e9af4500
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,8 +6,12 @@
#define CHROME_BROWSER_THORIUM_FLAG_ENTRIES_H_
{"force-dark-mode",
"Enable Dark Mode",
"Enables Dark Mode for all Thorium instances.",
kOsDesktop, SINGLE_VALUE_TYPE("force-dark-mode")},
"Enables dark mode for all Thorium instances.",
kOsDesktop, SINGLE_VALUE_TYPE(kForceDarkMode)},
{"force-high-contrast",
"Enable High Contrast Mode",
"Enables high contrast mode for all Thorium instances.",
kOsDesktop, SINGLE_VALUE_TYPE(kForceHighContrast)},
{"custom-ntp",
"Custom New Tab Page",
"Allows setting a custom URL for the New Tab Page (NTP). Value can be internal (e.g. `about:blank`), external (e.g. `example.com`), or local (e.g. `file:///tmp/startpage.html`). This applies for incognito windows as well when not set to a `chrome://` internal page.",
@ -16,28 +20,48 @@
"Hide Side Panel Button",
"Hides the Thorium Side Panel Button.",
kOsDesktop, SINGLE_VALUE_TYPE("hide-sidepanel-button")},
{"no-autoplay",
"Disable AutoPlay",
"Disables AutoPlay for all Thorium instances.",
kOsDesktop, SINGLE_VALUE_TYPE(switches::autoplay::kUserGestureRequiredPolicy)},
{"autoplay-policy",
"Disable/Enable AutoPlay",
"Disables or Enables AutoPlay for all Thorium instances.",
kOsDesktop, MULTI_VALUE_TYPE(kAutoplayPolicyChoices)},
{"show-avatar-button",
"Show/Hide the Avatar Button",
"Show the Avatar/People/Profile button in the browser toolbar: Always, Incognito|Guest only, or Never.",
kOsDesktop, MULTI_VALUE_TYPE(kShowAvatarButtonChoices)},
{"webgl-msaa-sample-count",
{"webgl-msaa-sample-count",
"WebGL MSAA Sample Count",
"Set a default sample count for WebGL if MSAA is enabled on the GPU.",
kOsDesktop, MULTI_VALUE_TYPE(kWebglMSAASampleCountChoices)},
{"gpu-rasterization-msaa-sample-count",
{"webgl-antialiasing-mode",
"WebGL Anti-Aliasing Mode",
"Set the antialiasing method used for WebGL. (None, Explicit, Implicit)",
kOsDesktop, MULTI_VALUE_TYPE(kWebglAntialiasingModeChoices)},
{"gpu-rasterization-msaa-sample-count",
"Native GPU Rasterization MSAA Sample Count",
"Set a default sample count for Native GPU Rasterization if MSAA is enabled on the GPU.",
"Set a default sample count for native GPU Rasterization if MSAA is enabled on the GPU.",
kOsDesktop, MULTI_VALUE_TYPE(kGpuRasterizationMSAASampleCountChoices)},
{"num-raster-threads",
{"num-raster-threads",
"Number of Raster Threads",
"Specify the number of worker threads used to rasterize content.",
kOsDesktop, MULTI_VALUE_TYPE(kNumRasterThreadsChoices)},
{"enable-ui-devtools",
{"enable-ui-devtools",
"Enable Native UI Inspection in DevTools",
"Enables inspection of Native UI elements in DevTools. Inspect at `chrome://inspect/#native-ui`",
"Enables inspection of native UI elements in devtools. Inspect at `chrome://inspect/#native-ui`",
kOsDesktop, SINGLE_VALUE_TYPE(ui_devtools::switches::kEnableUiDevTools)},
{"disable-webgl2",
"Disable WebGL 2",
"Disable WebGL 2. Useful for certain GPU/OS combinations.",
kOsDesktop, SINGLE_VALUE_TYPE(kDisableWebGL2)},
{"enable-local-file-accesses",
"Enable Local File Accesses",
"Enable local file accesses. Useful for web development.",
kOsDesktop, SINGLE_VALUE_TYPE(kEnableLocalFileAccesses)},
{"allow-file-access-from-files",
"Allow File URI Access from Files",
"By default, file:// URIs cannot read other file:// URIs. This is an override for web developers who need the old behavior for testing.",
kOsDesktop, SINGLE_VALUE_TYPE(kAllowFileAccessFromFiles)},
{"disable-web-security",
"Disable Web Security",
"Don't enforce the same-origin policy; meant for website testing only.",
kOsDesktop, SINGLE_VALUE_TYPE(kDisableWebSecurity)},
#endif // CHROME_BROWSER_THORIUM_FLAG_ENTRIES_H_