Chromium Embedded Framework (CEF)  131.2.1+ge081753+chromium-131.0.6778.13
cef_browser_settings_t Struct Reference

Browser initialization settings. More...

#include "include/internal/cef_types.h"

Public Attributes

size_t size
 Size of this structure. More...
 
int windowless_frame_rate
 The maximum rate in frames per second (fps) that CefRenderHandler::OnPaint will be called for a windowless browser. More...
 
cef_string_t standard_font_family
 BEGIN values that map to WebPreferences settings. More...
 
cef_string_t fixed_font_family
 
cef_string_t serif_font_family
 
cef_string_t sans_serif_font_family
 
cef_string_t cursive_font_family
 
cef_string_t fantasy_font_family
 
int default_font_size
 
int default_fixed_font_size
 
int minimum_font_size
 
int minimum_logical_font_size
 
cef_string_t default_encoding
 Default encoding for Web content. More...
 
cef_state_t remote_fonts
 Controls the loading of fonts from remote sources. More...
 
cef_state_t javascript
 Controls whether JavaScript can be executed. More...
 
cef_state_t javascript_close_windows
 Controls whether JavaScript can be used to close windows that were not opened via JavaScript. More...
 
cef_state_t javascript_access_clipboard
 Controls whether JavaScript can access the clipboard. More...
 
cef_state_t javascript_dom_paste
 Controls whether DOM pasting is supported in the editor via execCommand("paste"). More...
 
cef_state_t image_loading
 Controls whether image URLs will be loaded from the network. More...
 
cef_state_t image_shrink_standalone_to_fit
 Controls whether standalone images will be shrunk to fit the page. More...
 
cef_state_t text_area_resize
 Controls whether text areas can be resized. More...
 
cef_state_t tab_to_links
 Controls whether the tab key can advance focus to links. More...
 
cef_state_t local_storage
 Controls whether local storage can be used. More...
 
cef_state_t databases
 Controls whether databases can be used. More...
 
cef_state_t webgl
 Controls whether WebGL can be used. More...
 
cef_color_t background_color
 END values that map to WebPreferences settings. More...
 
cef_state_t chrome_status_bubble
 Controls whether the Chrome status bubble will be used. More...
 
cef_state_t chrome_zoom_bubble
 Controls whether the Chrome zoom bubble will be shown when zooming. More...
 

Detailed Description

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.

Member Data Documentation

◆ background_color

cef_color_t cef_browser_settings_t::background_color

END values that map to WebPreferences settings.

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 CefSettings.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.

◆ chrome_status_bubble

cef_state_t cef_browser_settings_t::chrome_status_bubble

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/

◆ chrome_zoom_bubble

cef_state_t cef_browser_settings_t::chrome_zoom_bubble

Controls whether the Chrome zoom bubble will be shown when zooming.

Only supported with Chrome style.

◆ cursive_font_family

cef_string_t cef_browser_settings_t::cursive_font_family

◆ databases

cef_state_t cef_browser_settings_t::databases

Controls whether databases can be used.

Also configurable using the "disable-databases" command-line switch.

◆ default_encoding

cef_string_t cef_browser_settings_t::default_encoding

Default encoding for Web content.

If empty "ISO-8859-1" will be used. Also configurable using the "default-encoding" command-line switch.

◆ default_fixed_font_size

int cef_browser_settings_t::default_fixed_font_size

◆ default_font_size

int cef_browser_settings_t::default_font_size

◆ fantasy_font_family

cef_string_t cef_browser_settings_t::fantasy_font_family

◆ fixed_font_family

cef_string_t cef_browser_settings_t::fixed_font_family

◆ image_loading

cef_state_t cef_browser_settings_t::image_loading

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.

◆ image_shrink_standalone_to_fit

cef_state_t cef_browser_settings_t::image_shrink_standalone_to_fit

Controls whether standalone images will be shrunk to fit the page.

Also configurable using the "image-shrink-standalone-to-fit" command-line switch.

◆ javascript

cef_state_t cef_browser_settings_t::javascript

Controls whether JavaScript can be executed.

Also configurable using the "disable-javascript" command-line switch.

◆ javascript_access_clipboard

cef_state_t cef_browser_settings_t::javascript_access_clipboard

Controls whether JavaScript can access the clipboard.

Also configurable using the "disable-javascript-access-clipboard" command-line switch.

◆ javascript_close_windows

cef_state_t cef_browser_settings_t::javascript_close_windows

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.

◆ javascript_dom_paste

cef_state_t cef_browser_settings_t::javascript_dom_paste

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.

◆ local_storage

cef_state_t cef_browser_settings_t::local_storage

Controls whether local storage can be used.

Also configurable using the "disable-local-storage" command-line switch.

◆ minimum_font_size

int cef_browser_settings_t::minimum_font_size

◆ minimum_logical_font_size

int cef_browser_settings_t::minimum_logical_font_size

◆ remote_fonts

cef_state_t cef_browser_settings_t::remote_fonts

Controls the loading of fonts from remote sources.

Also configurable using the "disable-remote-fonts" command-line switch.

◆ sans_serif_font_family

cef_string_t cef_browser_settings_t::sans_serif_font_family

◆ serif_font_family

cef_string_t cef_browser_settings_t::serif_font_family

◆ size

size_t cef_browser_settings_t::size

Size of this structure.

◆ standard_font_family

cef_string_t cef_browser_settings_t::standard_font_family

BEGIN values that map to WebPreferences settings.

Font settings.

◆ tab_to_links

cef_state_t cef_browser_settings_t::tab_to_links

Controls whether the tab key can advance focus to links.

Also configurable using the "disable-tab-to-links" command-line switch.

◆ text_area_resize

cef_state_t cef_browser_settings_t::text_area_resize

Controls whether text areas can be resized.

Also configurable using the "disable-text-area-resize" command-line switch.

◆ webgl

cef_state_t cef_browser_settings_t::webgl

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.

◆ windowless_frame_rate

int cef_browser_settings_t::windowless_frame_rate

The maximum rate in frames per second (fps) that CefRenderHandler::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 maximum value is 60 (default 30). This value can also be changed dynamically via CefBrowserHost::SetWindowlessFrameRate.


The documentation for this struct was generated from the following file: