cef_browser_settings_t

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.

Members

Variables

background_color
cef_color_t background_color;

END values that map to WebPreferences settings.

chrome_status_bubble
cef_state_t chrome_status_bubble;

Controls whether the Chrome status bubble will be used. Only supported with the Chrome runtime. For details about the status bubble see https://www.chromium.org/user-experience/status-bubble/

chrome_zoom_bubble
cef_state_t chrome_zoom_bubble;

Controls whether the Chrome zoom bubble will be shown when zooming. Only supported with the Chrome runtime.

databases
cef_state_t databases;

Controls whether databases can be used. Also configurable using the "disable-databases" command-line switch.

default_encoding
cef_string_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.

image_loading
cef_state_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 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 javascript;

Controls whether JavaScript can be executed. Also configurable using the "disable-javascript" command-line switch.

javascript_access_clipboard
cef_state_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 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 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 local_storage;

Controls whether local storage can be used. Also configurable using the "disable-local-storage" command-line switch.

remote_fonts
cef_state_t remote_fonts;

Controls the loading of fonts from remote sources. Also configurable using the "disable-remote-fonts" command-line switch.

size
size_t size;

Size of this structure.

standard_font_family
cef_string_t standard_font_family;

BEGIN values that map to WebPreferences settings.

tab_to_links
cef_state_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 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 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 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.

Meta