type TCefBrowserSettings = record
Browser initialization settings. Specify NULL or 0 to get the recommended default values. The consequences of using custom values may not be well tested. Many of these and other settings can also configured using command- line switches.
<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_browser_settings_t))
| Public | size: NativeUInt; |
|
Size of this structure. | |
| Public | windowless_frame_rate: Integer; |
|
The maximum rate in frames per second (fps) that ICefRenderHandler.OnPaint will be called for a windowless browser. The actual fps may be lower if the browser cannot generate frames at the requested rate. The minimum value is 1 and the default value is 30. This value can also be changed dynamically via ICefBrowserHost.SetWindowlessFrameRate. | |
| Public | standard_font_family: TCefString; |
|
Font settings. | |
| Public | fixed_font_family: TCefString; |
|
This item has no description. | |
| Public | serif_font_family: TCefString; |
|
This item has no description. | |
| Public | sans_serif_font_family: TCefString; |
|
This item has no description. | |
| Public | cursive_font_family: TCefString; |
|
This item has no description. | |
| Public | fantasy_font_family: TCefString; |
|
This item has no description. | |
| Public | default_font_size: Integer; |
|
This item has no description. | |
| Public | default_fixed_font_size: Integer; |
|
This item has no description. | |
| Public | minimum_font_size: Integer; |
|
This item has no description. | |
| Public | minimum_logical_font_size: Integer; |
|
This item has no description. | |
| Public | default_encoding: TCefString; |
|
Default encoding for Web content. If empty "ISO-8859-1" will be used. Also configurable using the "default-encoding" command-line switch. | |
| Public | remote_fonts: TCefState; |
|
Controls the loading of fonts from remote sources. Also configurable using the "disable-remote-fonts" command-line switch. | |
| Public | javascript: TCefState; |
|
Controls whether JavaScript can be executed. Also configurable using the "disable-javascript" command-line switch. | |
| Public | javascript_close_windows: TCefState; |
|
Controls whether JavaScript can be used to close windows that were not opened via JavaScript. JavaScript can still be used to close windows that were opened via JavaScript or that have no back/forward history. Also configurable using the "disable-javascript-close-windows" command-line switch. | |
| Public | javascript_access_clipboard: TCefState; |
|
Controls whether JavaScript can access the clipboard. Also configurable using the "disable-javascript-access-clipboard" command-line switch. | |
| Public | javascript_dom_paste: TCefState; |
|
Controls whether DOM pasting is supported in the editor via execCommand("paste"). The |javascript_access_clipboard| setting must also be enabled. Also configurable using the "disable-javascript-dom-paste" command-line switch. | |
| Public | image_loading: TCefState; |
|
Controls whether image URLs will be loaded from the network. A cached image will still be rendered if requested. Also configurable using the "disable-image-loading" command-line switch. | |
| Public | image_shrink_standalone_to_fit: TCefState; |
|
Controls whether standalone images will be shrunk to fit the page. Also configurable using the "image-shrink-standalone-to-fit" command-line switch. | |
| Public | text_area_resize: TCefState; |
|
Controls whether text areas can be resized. Also configurable using the "disable-text-area-resize" command-line switch. | |
| Public | tab_to_links: TCefState; |
|
Controls whether the tab key can advance focus to links. Also configurable using the "disable-tab-to-links" command-line switch. | |
| Public | local_storage: TCefState; |
|
Controls whether local storage can be used. Also configurable using the "disable-local-storage" command-line switch. | |
| Public | databases_deprecated: TCefState; |
|
Controls whether databases can be used. Also configurable using the "disable-databases" command-line switch. | |
| Public | webgl: TCefState; |
|
Controls whether WebGL can be used. Note that WebGL requires hardware support and may not work on all systems even when enabled. Also configurable using the "disable-webgl" command-line switch. | |
| Public | background_color: TCefColor; |
|
Background color used for the browser before a document is loaded and when no document color is specified. The alpha component must be either fully opaque (0xFF) or fully transparent (0x00). If the alpha component is fully opaque then the RGB components will be used as the background color. If the alpha component is fully transparent for a windowed browser then the TCefSettings.background_color value will be used. If the alpha component is fully transparent for a windowless (off-screen) browser then transparent painting will be enabled. | |
| Public | chrome_status_bubble: TCefState; |
|
Controls whether the Chrome status bubble will be used. Only supported with Chrome style. For details about the status bubble see https://www.chromium.org/user-experience/status-bubble/ | |
| Public | chrome_zoom_bubble: TCefState; |
|
Controls whether the Chrome zoom bubble will be shown when zooming. Only supported with Chrome style. | |
| Public | ax_viewport_collapse: TCefState; |
|
Controls whether CDP accessibility tree serialization collapses off-screen nodes. When enabled, off-screen landmarks and headings are serialized as summaries (role + name only) and other off-screen nodes are pruned. This reduces snapshot size for AI agents using Playwright ariaSnapshot(). WARNING: This collapses the CDP accessibility tree and disables CDP dynamic tree updates (nodesUpdated events). The DevTools Accessibility panel will show an incomplete tree. Platform screen readers (NVDA, JAWS, VoiceOver) are unaffected — they use a separate code path. Can also be configured at runtime using CefBrowserHost::SetAxViewportCollapse. | |