# Class TChromiumOptions

Description
Hierarchy
Fields
Methods
Properties

## Unit

uCEFChromiumOptions

## Declaration

`type TChromiumOptions = class(TPersistent)`

## Description

The TChromiumOptions properties used to fill the TCefBrowserSettings record which is used during the browser creation.

## Hierarchy

- TObject
- TPersistent
- TChromiumOptions

## Overview

### Fields

Protected | `FWindowlessFrameRate: Integer;`
Protected | `FJavascript: TCefState;`
Protected | `FJavascriptCloseWindows: TCefState;`
Protected | `FJavascriptAccessClipboard: TCefState;`
Protected | `FJavascriptDomPaste: TCefState;`
Protected | `FImageLoading: TCefState;`
Protected | `FImageShrinkStandaloneToFit: TCefState;`
Protected | `FTextAreaResize: TCefState;`
Protected | `FTabToLinks: TCefState;`
Protected | `FLocalStorage: TCefState;`
Protected | `FDatabases: TCefState;`
Protected | `FWebgl: TCefState;`
Protected | `FBackgroundColor: TCefColor;`
Protected | `FChromeStatusBubble: TCefState;`
Protected | `FChromeZoomBubble: TCefState;`
Protected | `FAxViewportCollapse: TCefState;`

### Methods

Public | `constructor Create; virtual;`

### Properties

Published | `property Javascript : TCefState read FJavascript write FJavascript default STATE_DEFAULT;`
Published | `property JavascriptCloseWindows : TCefState read FJavascriptCloseWindows write FJavascriptCloseWindows default STATE_DEFAULT;`
Published | `property JavascriptAccessClipboard : TCefState read FJavascriptAccessClipboard write FJavascriptAccessClipboard default STATE_DEFAULT;`
Published | `property JavascriptDomPaste : TCefState read FJavascriptDomPaste write FJavascriptDomPaste default STATE_DEFAULT;`
Published | `property ImageLoading : TCefState read FImageLoading write FImageLoading default STATE_DEFAULT;`
Published | `property ImageShrinkStandaloneToFit : TCefState read FImageShrinkStandaloneToFit write FImageShrinkStandaloneToFit default STATE_DEFAULT;`
Published | `property TextAreaResize : TCefState read FTextAreaResize write FTextAreaResize default STATE_DEFAULT;`
Published | `property TabToLinks : TCefState read FTabToLinks write FTabToLinks default STATE_DEFAULT;`
Published | `property LocalStorage : TCefState read FLocalStorage write FLocalStorage default STATE_DEFAULT;`
Published | `property Databases : TCefState read FDatabases write FDatabases default STATE_DEFAULT;`
Published | `property Webgl : TCefState read FWebgl write FWebgl default STATE_DEFAULT;`
Published | `property BackgroundColor : TCefColor read FBackgroundColor write FBackgroundColor default 0;`
Published | `property WindowlessFrameRate : Integer read FWindowlessFrameRate write FWindowlessFrameRate default CEF_OSR_FRAMERATE_DEFAULT;`
Published | `property ChromeStatusBubble : TCefState read FChromeStatusBubble write FChromeStatusBubble default STATE_DEFAULT;`
Published | `property ChromeZoomBubble : TCefState read FChromeZoomBubble write FChromeZoomBubble default STATE_DEFAULT;`
Published | `property AxViewportCollapse : TCefState read FAxViewportCollapse write FAxViewportCollapse default STATE_DEFAULT;`

## Description

### Fields

Protected | `FWindowlessFrameRate: Integer;`
This item has no description.

Protected | `FJavascript: TCefState;`
This item has no description.

Protected | `FJavascriptCloseWindows: TCefState;`
This item has no description.

Protected | `FJavascriptAccessClipboard: TCefState;`
This item has no description.

Protected | `FJavascriptDomPaste: TCefState;`
This item has no description.

Protected | `FImageLoading: TCefState;`
This item has no description.

Protected | `FImageShrinkStandaloneToFit: TCefState;`
This item has no description.

Protected | `FTextAreaResize: TCefState;`
This item has no description.

Protected | `FTabToLinks: TCefState;`
This item has no description.

Protected | `FLocalStorage: TCefState;`
This item has no description.

Protected | `FDatabases: TCefState;`
This item has no description.

Protected | `FWebgl: TCefState;`
This item has no description.

Protected | `FBackgroundColor: TCefColor;`
This item has no description.

Protected | `FChromeStatusBubble: TCefState;`
This item has no description.

Protected | `FChromeZoomBubble: TCefState;`
This item has no description.

Protected | `FAxViewportCollapse: TCefState;`
This item has no description.

### Methods

Public | `constructor Create; virtual;`
Constructor of TChromiumOptions

### Properties

Published | `property Javascript : TCefState read FJavascript write FJavascript default STATE_DEFAULT;`
Controls whether JavaScript can be executed. Also configurable using the "disable-javascript" command-line switch.

Published | `property JavascriptCloseWindows : TCefState read FJavascriptCloseWindows write FJavascriptCloseWindows default STATE_DEFAULT;`
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.

Published | `property JavascriptAccessClipboard : TCefState read FJavascriptAccessClipboard write FJavascriptAccessClipboard default STATE_DEFAULT;`
Controls whether JavaScript can access the clipboard. Also configurable using the "disable-javascript-access-clipboard" command-line switch.

Published | `property JavascriptDomPaste : TCefState read FJavascriptDomPaste write FJavascriptDomPaste default STATE_DEFAULT;`
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.

Published | `property ImageLoading : TCefState read FImageLoading write FImageLoading default STATE_DEFAULT;`
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.

Published | `property ImageShrinkStandaloneToFit : TCefState read FImageShrinkStandaloneToFit write FImageShrinkStandaloneToFit default STATE_DEFAULT;`
Controls whether standalone images will be shrunk to fit the page. Also configurable using the "image-shrink-standalone-to-fit" command-line switch.

Published | `property TextAreaResize : TCefState read FTextAreaResize write FTextAreaResize default STATE_DEFAULT;`
Controls whether text areas can be resized. Also configurable using the "disable-text-area-resize" command-line switch.

Published | `property TabToLinks : TCefState read FTabToLinks write FTabToLinks default STATE_DEFAULT;`
Controls whether the tab key can advance focus to links. Also configurable using the "disable-tab-to-links" command-line switch.

Published | `property LocalStorage : TCefState read FLocalStorage write FLocalStorage default STATE_DEFAULT;`
Controls whether local storage can be used. Also configurable using the "disable-local-storage" command-line switch.

Published | `property Databases : TCefState read FDatabases write FDatabases default STATE_DEFAULT;`
Controls whether databases can be used. Also configurable using the "disable-databases" command-line switch. Deprecated since CEF 138

Published | `property Webgl : TCefState read FWebgl write FWebgl default STATE_DEFAULT;`
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.

Published | `property BackgroundColor : TCefColor read FBackgroundColor write FBackgroundColor default 0;`
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.

Published | `property WindowlessFrameRate : Integer read FWindowlessFrameRate write FWindowlessFrameRate default CEF_OSR_FRAMERATE_DEFAULT;`
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. Use CEF_OSR_SHARED_TEXTURES_FRAMERATE_DEFAULT as default value if the shared textures are enabled. Use CEF_OSR_FRAMERATE_DEFAULT as default value if the shared textures are disabled.

Published | `property ChromeStatusBubble : TCefState read FChromeStatusBubble write FChromeStatusBubble default STATE_DEFAULT;`
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/

Published | `property ChromeZoomBubble : TCefState read FChromeZoomBubble write FChromeZoomBubble default STATE_DEFAULT;`
Controls whether the Chrome zoom bubble will be shown when zooming. Only supported with Chrome style.

Published | `property AxViewportCollapse : TCefState read FAxViewportCollapse write FAxViewportCollapse default STATE_DEFAULT;`
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 ICefBrowserHost.SetAxViewportCollapse.

Generated by PasDoc 1.0.4.