Chromium Embedded Framework (CEF)
115.2.0+g096e3eb+chromium-115.0.5790.13
|
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_string_t | accept_language_list |
Comma delimited ordered list of language codes without any whitespace that will be used in the "Accept-Language" HTTP header. More... | |
cef_state_t | chrome_status_bubble |
Controls whether the Chrome status bubble will be used. More... | |
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.
cef_string_t cef_browser_settings_t::accept_language_list |
Comma delimited ordered list of language codes without any whitespace that will be used in the "Accept-Language" HTTP header.
May be set globally using the CefSettings.accept_language_list value. If both values are empty then "en-US,en" will be used.
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.
cef_state_t cef_browser_settings_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/
cef_string_t cef_browser_settings_t::cursive_font_family |
cef_state_t cef_browser_settings_t::databases |
Controls whether databases can be used.
Also configurable using the "disable-databases" command-line switch.
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.
int cef_browser_settings_t::default_fixed_font_size |
int cef_browser_settings_t::default_font_size |
cef_string_t cef_browser_settings_t::fantasy_font_family |
cef_string_t cef_browser_settings_t::fixed_font_family |
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.
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.
cef_state_t cef_browser_settings_t::javascript |
Controls whether JavaScript can be executed.
Also configurable using the "disable-javascript" command-line switch.
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.
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.
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.
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.
int cef_browser_settings_t::minimum_font_size |
int cef_browser_settings_t::minimum_logical_font_size |
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.
cef_string_t cef_browser_settings_t::sans_serif_font_family |
cef_string_t cef_browser_settings_t::serif_font_family |
size_t cef_browser_settings_t::size |
Size of this structure.
cef_string_t cef_browser_settings_t::standard_font_family |
BEGIN values that map to WebPreferences settings.
Font settings.
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.
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.
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.
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.