consts

package
v2.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

Package consts CEF const

Index

Constants

View Source
const (
	ClClSysNone  = 0x1FFFFFFF
	ClSysDefault = 0x20000000
	// Actual colors
	ClAliceblue            = 0xFFF8F0
	ClAntiquewhite         = 0xD7EBFA
	ClAqua                 = 0xFFFF00
	ClAquamarine           = 0xD4FF7F
	ClAzure                = 0xFFFFF0
	ClBeige                = 0xDCF5F5
	ClBisque               = 0xC4E4FF
	ClBlack                = 0x000000
	ClBlanchedalmond       = 0xCDEBFF
	ClBlue                 = 0xFF0000
	ClBlueviolet           = 0xE22B8A
	ClBrown                = 0x2A2AA5
	ClBurlywood            = 0x87B8DE
	ClCadetblue            = 0xA09E5F
	ClChartreuse           = 0x00FF7F
	ClChocolate            = 0x1E69D2
	ClCoral                = 0x507FFF
	ClCornflowerblue       = 0xED9564
	ClCornsilk             = 0xDCF8FF
	ClCrimson              = 0x3C14DC
	ClCyan                 = 0xFFFF00
	ClDarkblue             = 0x8B0000
	ClDarkcyan             = 0x8B8B00
	ClDarkgoldenrod        = 0x0B86B8
	ClDarkgray             = 0xA9A9A9
	ClDarkgreen            = 0x006400
	ClDarkgrey             = 0xA9A9A9
	ClDarkkhaki            = 0x6BB7BD
	ClDarkmagenta          = 0x8B008B
	ClDarkolivegreen       = 0x2F6B55
	ClDarkorange           = 0x008CFF
	ClDarkorchid           = 0xCC3299
	ClDarkred              = 0x00008B
	ClDarksalmon           = 0x7A96E9
	ClDarkseagreen         = 0x8FBC8F
	ClDarkslateblue        = 0x8B3D48
	ClDarkslategray        = 0x4F4F2F
	ClDarkslategrey        = 0x4F4F2F
	ClDarkturquoise        = 0xD1CE00
	ClDarkviolet           = 0xD30094
	ClDeeppink             = 0x9314FF
	ClDeepskyblue          = 0xFFBF00
	ClDimgray              = 0x696969
	ClDimgrey              = 0x696969
	ClDodgerblue           = 0xFF901E
	ClFirebrick            = 0x2222B2
	ClFloralwhite          = 0xF0FAFF
	ClForestgreen          = 0x228B22
	ClFuchsia              = 0xFF00FF
	ClGainsboro            = 0xDCDCDC
	ClGhostwhite           = 0xFFF8F8
	ClGold                 = 0x00D7FF
	ClGoldenrod            = 0x20A5DA
	ClGray                 = 0x808080
	ClGreen                = 0x008000
	ClGreenyellow          = 0x2FFFAD
	ClGrey                 = 0x808080
	ClHoneydew             = 0xF0FFF0
	ClHotpink              = 0xB469FF
	ClIndianred            = 0x5C5CCD
	ClIndigo               = 0x82004B
	ClIvory                = 0xF0FFFF
	ClKhaki                = 0x8CE6F0
	ClLavender             = 0xFAE6E6
	ClLavenderblush        = 0xF5F0FF
	ClLawngreen            = 0x00FC7C
	ClLemonchiffon         = 0xCDFAFF
	ClLightblue            = 0xE6D8AD
	ClLightcoral           = 0x8080F0
	ClLightcyan            = 0xFFFFE0
	ClLightgoldenrodyellow = 0xD2FAFA
	ClLightgray            = 0xD3D3D3
	ClLightgreen           = 0x90EE90
	ClLightgrey            = 0xD3D3D3
	ClLightpink            = 0xC1B6FF
	ClLightsalmon          = 0x7AA0FF
	ClLightseagreen        = 0xAAB220
	ClLightskyblue         = 0xFACE87
	ClLightslategray       = 0x998877
	ClLightslategrey       = 0x998877
	ClLightsteelblue       = 0xDEC4B0
	ClLightyellow          = 0xE0FFFF
	ClLtGray               = 0xC0C0C0
	ClMedGray              = 0xA4A0A0
	ClDkGray               = 0x808080
	ClMoneyGreen           = 0xC0DCC0
	ClLegacySkyBlue        = 0xF0CAA6
	ClCream                = 0xF0FBFF
	ClLime                 = 0x00FF00
	ClLimegreen            = 0x32CD32
	ClLinen                = 0xE6F0FA
	ClMagenta              = 0xFF00FF
	ClMaroon               = 0x000080
	ClMediumaquamarine     = 0xAACD66
	ClMediumblue           = 0xCD0000
	ClMediumorchid         = 0xD355BA
	ClMediumpurple         = 0xDB7093
	ClMediumseagreen       = 0x71B33C
	ClMediumslateblue      = 0xEE687B
	ClMediumspringgreen    = 0x9AFA00
	ClMediumturquoise      = 0xCCD148
	ClMediumvioletred      = 0x8515C7
	ClMidnightblue         = 0x701919
	ClMintcream            = 0xFAFFF5
	ClMistyrose            = 0xE1E4FF
	ClMoccasin             = 0xB5E4FF
	ClNavajowhite          = 0xADDEFF
	ClNavy                 = 0x800000
	ClOldlace              = 0xE6F5FD
	ClOlive                = 0x008080
	ClOlivedrab            = 0x238E6B
	ClOrange               = 0x00A5FF
	ClOrangered            = 0x0045FF
	ClOrchid               = 0xD670DA
	ClPalegoldenrod        = 0xAAE8EE
	ClPalegreen            = 0x98FB98
	ClPaleturquoise        = 0xEEEEAF
	ClPalevioletred        = 0x9370DB
	ClPapayawhip           = 0xD5EFFF
	ClPeachpuff            = 0xB9DAFF
	ClPeru                 = 0x3F85CD
	ClPink                 = 0xCBC0FF
	ClPlum                 = 0xDDA0DD
	ClPowderblue           = 0xE6E0B0
	ClPurple               = 0x800080
	ClRed                  = 0x0000FF
	ClRosybrown            = 0x8F8FBC
	ClRoyalblue            = 0xE16941
	ClSaddlebrown          = 0x13458B
	ClSalmon               = 0x7280FA
	ClSandybrown           = 0x60A4F4
	ClSeagreen             = 0x578B2E
	ClSeashell             = 0xEEF5FF
	ClSienna               = 0x2D52A0
	ClSilver               = 0xC0C0C0
	ClSkyblue              = 0xEBCE87
	ClSlateblue            = 0xCD5A6A
	ClSlategray            = 0x908070
	ClSlategrey            = 0x908070
	ClSnow                 = 0xFAFAFF
	ClSpringgreen          = 0x7FFF00
	ClSteelblue            = 0xB48246
	ClTan                  = 0x8CB4D2
	ClTeal                 = 0x808000
	ClThistle              = 0xD8BFD8
	ClTomato               = 0x4763FF
	ClTurquoise            = 0xD0E040
	ClViolet               = 0xEE82EE
	ClWheat                = 0xB3DEF5
	ClWhite                = 0xFFFFFF
	ClWhitesmoke           = 0xF5F5F5
	ClYellow               = 0x00FFFF
	ClYellowgreen          = 0x32CD9A
	ClBtnFace              = 0xFF00000F
	ClNull                 = 0x00000000
)
View Source
const (
	ENERGY_HOME_KEY = "ENERGY_HOME"
	MemoryNetwork   = "unix"
)
View Source
const (
	GetValue uintptr = 0
	SetValue uintptr = 1
)

Proc Get value and Set value

View Source
const (
	IPCT_NET = IPC_TYPE(iota)
	IPCT_UNIX
)
View Source
const (
	Ct_Server = ChannelType(iota)
	Ct_Client
)
View Source
const (
	SV_INVALID = SpecificVersion(-1)  // 无效
	SV_CEF     = SpecificVersion(0)   // 非特定版本,当前版本或当前最新版本
	SV_CEF49   = SpecificVersion(49)  // 特定 WindowsXP
	SV_CEF87   = SpecificVersion(87)  // 特定 Flash
	SV_CEF106  = SpecificVersion(106) // 特定 Linux GTK2
	SV_CEF109  = SpecificVersion(109) // 特定 Windows 7, 8/8.1 and Windows Server 2012
)
View Source
const (
	WM_APP                   = 0x008000
	MINIBROWSER_SHOWDEVTOOLS = WM_APP + 0x00101 //开发工具展示
	MINIBROWSER_HIDEDEVTOOLS = WM_APP + 0x00102 //开发工具隐藏
)

功能和消息常量

View Source
const (
	ZOOM_RESET = ZOOM(iota)
	ZOOM_INC
	ZOOM_DEC
)
View Source
const (
	TS_ABNORMAL_TERMINATION = TCefTerminationStatus(iota)
	TS_PROCESS_WAS_KILLED
	TS_PROCESS_CRASHED
	TS_PROCESS_OOM
)
View Source
const (
	BF_GOBACK = BF(iota)
	BF_GOFORWARD
)
View Source
const (
	CbaClose = TCefCloseBrowserAction(iota)
	CbaDelay
	CbaCancel
)
View Source
const (
	PID_BROWSER = CefProcessId(iota)
	PID_RENDER
)
View Source
const (
	SLICE_BYTE reflect.Kind = iota + 30 // []byte
	JD                                  // JsonData
	NIL                                 // nil
)

Go Kind 扩展常量

View Source
const (
	FN_TYPE_COMMON = FN_TYPE(iota) //普通函数,直接定义的
	FN_TYPE_OBJECT                 //对象函数,所属对象
)
View Source
const (
	IS_COMMON = IS_CO(iota)
	IS_OBJECT
)
View Source
const (
	PMT_JS_CODE = PROCESS_MESSAGE_TYPE(iota) //执行JS代码消息
	PMT_TEXT                                 //文本传递消息
	PMT_BINARY                               //二进制消息
)
View Source
const (
	Ccss_CEF_COOKIE_SAME_SITE_UNSPECIFIED = TCefCookieSameSite(iota)
	Ccss_CEF_COOKIE_SAME_SITE_NO_RESTRICTION
	Ccss_CEF_COOKIE_SAME_SITE_LAX_MODE
	Ccss_CEF_COOKIE_SAME_SITE_STRICT_MODE
)
View Source
const (
	PtDirect       = TCefProxyType(iota) // mode dict => direct
	PtAutodetect                         // mode dict => auto_detect
	PtSystem                             // mode dict => system
	PtFixedServers                       // mode dict => fixed_servers
	PtPACScript                          // mode dict => pac_script
)
View Source
const (
	PsHTTP = TCefProxyScheme(iota)
	PsSOCKS4
	PsSOCKS5
)
View Source
const (
	CMT_NONE = TCefContextMenuType(iota)
	CMT_CHECK
	CMT_RADIO
)
View Source
const (
	CM_MEDIATYPE_NONE = TCefContextMenuMediaType(iota)
	CM_MEDIATYPE_IMAGE
	CM_MEDIATYPE_VIDEO
	CM_MEDIATYPE_AUDIO
	CM_MEDIATYPE_CANVAS
	CM_MEDIATYPE_FILE
	CM_MEDIATYPE_PLUGIN
)
View Source
const (
	CEF_MENU_COLOR_TEXT = TCefMenuColorType(iota)
	CEF_MENU_COLOR_TEXT_HOVERED
	CEF_MENU_COLOR_TEXT_ACCELERATOR
	CEF_MENU_COLOR_TEXT_ACCELERATOR_HOVERED
	CEF_MENU_COLOR_BACKGROUND
	CEF_MENU_COLOR_BACKGROUND_HOVERED
	CEF_MENU_COLOR_COUNT
)
View Source
const (
	KEYEVENT_RAW_KEYDOWN = TCefKeyEventType(iota)
	KEYEVENT_KEYDOWN
	KEYEVENT_KEYUP
	KEYEVENT_CHAR
)
View Source
const (
	EVENTFLAG_NONE                TCefEventFlags = 0
	EVENTFLAG_CAPS_LOCK_ON                       = 1 << 0
	EVENTFLAG_SHIFT_DOWN                         = 1 << 1
	EVENTFLAG_CONTROL_DOWN                       = 1 << 2
	EVENTFLAG_ALT_DOWN                           = 1 << 3
	EVENTFLAG_LEFT_MOUSE_BUTTON                  = 1 << 4
	EVENTFLAG_MIDDLE_MOUSE_BUTTON                = 1 << 5
	EVENTFLAG_RIGHT_MOUSE_BUTTON                 = 1 << 6
)
View Source
const (
	EVENTFLAG_COMMAND_DOWN TCefEventFlags = 1 << 7
	EVENTFLAG_NUM_LOCK_ON                 = 1 << 8
	EVENTFLAG_IS_KEY_PAD                  = 1 << 9
	EVENTFLAG_IS_LEFT                     = 1 << 10
	EVENTFLAG_IS_RIGHT                    = 1 << 11
	EVENTFLAG_ALTGR_DOWN                  = 1 << 12
	EVENTFLAG_IS_REPEAT                   = 1 << 13
)

Mac OS-X command key

View Source
const (
	Wht_WindowParent = TCefWindowHandleType(iota)
	Wht_LinkedWindowParent
)
View Source
const (
	RV_CANCEL = TCefReturnValue(iota)
	RV_CONTINUE
	RV_CONTINUE_ASYNC
)
View Source
const (
	REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE = TCefReferrerPolicy(iota) // same value as REFERRER_POLICY_DEFAULT
	REFERRER_POLICY_REDUCE_REFERRER_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN
	REFERRER_POLICY_ORIGIN_ONLY_ON_TRANSITION_CROSS_ORIGIN
	REFERRER_POLICY_NEVER_CLEAR_REFERRER
	REFERRER_POLICY_ORIGIN
	REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_CROSS_ORIGIN
	REFERRER_POLICY_ORIGIN_CLEAR_ON_TRANSITION_FROM_SECURE_TO_INSECURE
	REFERRER_POLICY_NO_REFERRER // REFERRER_POLICY_LAST_VALUE = REFERRER_POLICY_NO_REFERRER
)
View Source
const (
	RT_MAIN_FRAME                    = TCefResourceType(iota) // Top level page.
	RT_SUB_FRAME                                              // Frame or iframe.
	RT_STYLESHEET                                             // CSS stylesheet.
	RT_SCRIPT                                                 // External script.
	RT_IMAGE                                                  // Image (jpg/gif/png/etc).
	RT_FONT_RESOURCE                                          // Font.
	RT_SUB_RESOURCE                                           // Some other subresource. This is the default type if the actual type is unknown
	RT_OBJECT                                                 // Object (or embed) tag for a plugin, or a resource that a plugin requested.
	RT_MEDIA                                                  // Media resource.
	RT_WORKER                                                 // Main resource of a dedicated worker.
	RT_SHARED_WORKER                                          // Main resource of a shared worker.
	RT_PREFETCH                                               // Explicitly requested prefetch.
	RT_FAVICON                                                // Favicon
	RT_XHR                                                    // XMLHttpRequest
	RT_PING                                                   // A request for a "<ping>".
	RT_SERVICE_WORKER                                         // Main resource of a service worker.
	RT_CSP_REPORT                                             // A report of Content Security Policy violations.
	RT_PLUGIN_RESOURCE                                        // A resource that a plugin requested.
	RT_EMPTY_FILLER_TYPE_DO_NOT_USE                           // This type doesn't exist in CEF and it's here just to fill this position.
	RT_NAVIGATION_PRELOAD_MAIN_FRAME                          // A main-frame service worker navigation preload request.This type must have a value of 19
	RT_NAVIGATION_PRELOAD_SUB_FRAME                           // A sub-frame service worker navigation preload request.
)
View Source
const (
	UR_UNKNOWN = TCefUrlRequestStatus(iota)
	UR_SUCCESS
	UR_IO_PENDING
	UR_CANCELED
	UR_FAILED
)
View Source
const (
	// <summary>
	// Use the default state for the setting.
	// </summary>
	STATE_DEFAULT = TCefState(iota)
	// <summary>
	// Enable or allow the setting.
	// </summary>
	STATE_ENABLED
	// <summary>
	// Disable or disallow the setting.
	// </summary>
	STATE_DISABLED
)
View Source
const (
	CEF_TET_RELEASED = TCefTouchEeventType(iota)
	CEF_TET_PRESSED
	CEF_TET_MOVED
	CEF_TET_CANCELLED
)
View Source
const (
	CEF_POINTER_TYPE_TOUCH = TCefPointerType(iota)
	CEF_POINTER_TYPE_MOUSE
	CEF_POINTER_TYPE_PEN
	CEF_POINTER_TYPE_ERASER
	CEF_POINTER_TYPE_UNKNOWN
)
View Source
const (
	MBT_LEFT = TCefMouseButtonType(iota)
	MBT_MIDDLE
	MBT_RIGHT
)
View Source
const (
	WOD_UNKNOWN = TCefWindowOpenDisposition(iota)
	WOD_CURRENT_TAB
	WOD_SINGLETON_TAB
	WOD_NEW_FOREGROUND_TAB
	WOD_NEW_BACKGROUND_TAB
	WOD_NEW_POPUP
	WOD_NEW_WINDOW
	WOD_SAVE_TO_DISK
	WOD_OFF_THE_RECORD
	WOD_IGNORE_ACTION
	WOD_SWITCH_TO_TAB
	WOD_NEW_PICTURE_IN_PICTURE
)
View Source
const (
	WT_MAIN_BROWSER      = WINDOW_TYPE(iota) // 主窗口 只允许有一个, 如果自己创建窗口需要设置为 WT_POPUP_SUB_BROWSER 子窗口选项
	WT_POPUP_SUB_BROWSER                     // 子窗口 允许有多个
	WT_DEV_TOOLS                             // 开发者工具窗口
	WT_VIEW_SOURCE                           // 显示源代码窗口
)
View Source
const (
	// No node is selected.
	CM_TYPEFLAG_NONE TCefContextMenuTypeFlags = 0
	// The top page is selected.
	CM_TYPEFLAG_PAGE = 1 << 0
	// A subframe page is selected.
	CM_TYPEFLAG_FRAME = 1 << 1
	// A link is selected.
	CM_TYPEFLAG_LINK = 1 << 2
	// A media node is selected.
	CM_TYPEFLAG_MEDIA = 1 << 3
	// There is a textual or mixed selection that is selected.
	CM_TYPEFLAG_SELECTION = 1 << 4
	// An editable element is selected.
	CM_TYPEFLAG_EDITABLE = 1 << 5
)
View Source
const (
	CM_MEDIAFLAG_NONE                   TCefContextMenuMediaStateFlags = 0
	CM_MEDIAFLAG_IN_ERROR                                              = 1 << 0
	CM_MEDIAFLAG_PAUSED                                                = 1 << 1
	CM_MEDIAFLAG_MUTED                                                 = 1 << 2
	CM_MEDIAFLAG_LOOP                                                  = 1 << 3
	CM_MEDIAFLAG_CAN_SAVE                                              = 1 << 4
	CM_MEDIAFLAG_HAS_AUDIO                                             = 1 << 5
	CM_MEDIAFLAG_CAN_TOGGLE_CONTROLS                                   = 1 << 6
	CM_MEDIAFLAG_CONTROLS                                              = 1 << 7
	CM_MEDIAFLAG_CAN_PRINT                                             = 1 << 8
	CM_MEDIAFLAG_CAN_ROTATE                                            = 1 << 9
	CM_MEDIAFLAG_CAN_PICTURE_IN_PICTURE                                = 1 << 10
	CM_MEDIAFLAG_PICTURE_IN_PICTURE                                    = 1 << 11
	CM_MEDIAFLAG_CAN_LOOP                                              = 1 << 12
)
View Source
const (
	CM_EDITFLAG_NONE            TCefContextMenuEditStateFlags = 0
	CM_EDITFLAG_CAN_UNDO                                      = 1 << 0
	CM_EDITFLAG_CAN_REDO                                      = 1 << 1
	CM_EDITFLAG_CAN_CUT                                       = 1 << 2
	CM_EDITFLAG_CAN_COPY                                      = 1 << 3
	CM_EDITFLAG_CAN_PASTE                                     = 1 << 4
	CM_EDITFLAG_CAN_DELETE                                    = 1 << 5
	CM_EDITFLAG_CAN_SELECT_ALL                                = 1 << 6
	CM_EDITFLAG_CAN_TRANSLATE                                 = 1 << 7
	CM_EDITFLAG_CAN_EDIT_RICHLY                               = 1 << 8
)
View Source
const (
	CEF_MENU_ANCHOR_TOPLEFT = TCefMenuAnchorPosition(iota)
	CEF_MENU_ANCHOR_TOPRIGHT
	CEF_MENU_ANCHOR_BOTTOMCENTER
)
View Source
const (
	CEF_SHOW_STATE_NORMAL     = TCefShowState(1)
	CEF_SHOW_STATE_MINIMIZED  = TCefShowState(2)
	CEF_SHOW_STATE_MAXIMIZED  = TCefShowState(3)
	CEF_SHOW_STATE_FULLSCREEN = TCefShowState(4)
)
View Source
const (
	CEF_CTT_NONE     = TCefChromeToolbarType(1)
	CEF_CTT_NORMAL   = TCefChromeToolbarType(2)
	CEF_CTT_LOCATION = TCefChromeToolbarType(3)
)
View Source
const (
	CEF_SCHEME_OPTION_NONE CefSchemeOption = 0

	// CEF_SCHEME_OPTION_STANDARD
	//  If CEF_SCHEME_OPTION_STANDARD is set the scheme will be treated as a
	//  standard scheme. Standard schemes are subject to URL canonicalization and
	//  parsing rules as defined in the Common Internet Scheme Syntax RFC 1738
	//  Section 3.1 available at http://www.ietf.org/rfc/rfc1738.txt
	//
	//  In particular, the syntax for standard scheme URLs must be of the form:
	//  <pre>
	//   [scheme]://[username]:[password]@[host]:[port]/[url-path]
	//  </pre> Standard scheme URLs must have a host component that is a fully
	//  qualified domain name as defined in Section 3.5 of RFC 1034 [13] and
	//  Section 2.1 of RFC 1123. These URLs will be canonicalized to
	//  "scheme://host/path" in the simplest case and
	//  "scheme://username:password@host:port/path" in the most explicit case. For
	//  example, "scheme:host/path" and "scheme://host/path" will both be
	//  canonicalized to "scheme://host/path". The origin of a standard scheme URL
	//  is the combination of scheme, host and port (i.e., "scheme://host:port" in
	//  the most explicit case).
	//
	//  For non-standard scheme URLs only the "scheme:" component is parsed and
	//  canonicalized. The remainder of the URL will be passed to the handler as-
	//  is. For example, "scheme://some%20text" will remain the same.
	//  Non-standard scheme URLs cannot be used as a target for form submission.
	CEF_SCHEME_OPTION_STANDARD = 1 << 0

	// CEF_SCHEME_OPTION_LOCAL
	//  If CEF_SCHEME_OPTION_LOCAL is set the scheme will be treated with the same
	//  security rules as those applied to "file" URLs. Normal pages cannot link
	//  to or access local URLs. Also, by default, local URLs can only perform
	//  XMLHttpRequest calls to the same URL (origin + path) that originated the
	//  request. To allow XMLHttpRequest calls from a local URL to other URLs with
	//  the same origin set the CefSettings.file_access_from_file_urls_allowed
	//  value to true (1). To allow XMLHttpRequest calls from a local URL to all
	//  origins set the CefSettings.universal_access_from_file_urls_allowed value
	//  to true (1).
	CEF_SCHEME_OPTION_LOCAL = 1 << 1

	// CEF_SCHEME_OPTION_DISPLAY_ISOLATED
	//  If CEF_SCHEME_OPTION_DISPLAY_ISOLATED is set the scheme can only be
	//  displayed from other content hosted with the same scheme. For example,
	//  pages in other origins cannot create iframes or hyperlinks to URLs with
	//  the scheme. For schemes that must be accessible from other schemes don't
	//  set this, set CEF_SCHEME_OPTION_CORS_ENABLED, and use CORS
	//  "Access-Control-Allow-Origin" headers to further restrict access.
	CEF_SCHEME_OPTION_DISPLAY_ISOLATED = 1 << 2

	// CEF_SCHEME_OPTION_SECURE
	//  If CEF_SCHEME_OPTION_SECURE is set the scheme will be treated with the
	//  same security rules as those applied to "https" URLs. For example, loading
	//  this scheme from other secure schemes will not trigger mixed content
	//  warnings.
	CEF_SCHEME_OPTION_SECURE = 1 << 3

	// CEF_SCHEME_OPTION_CORS_ENABLED
	//  If CEF_SCHEME_OPTION_CORS_ENABLED is set the scheme can be sent CORS
	//  requests. This value should be set in most cases where
	//  CEF_SCHEME_OPTION_STANDARD is set.
	CEF_SCHEME_OPTION_CORS_ENABLED = 1 << 4

	// CEF_SCHEME_OPTION_CSP_BYPASSING
	//  If CEF_SCHEME_OPTION_CSP_BYPASSING is set the scheme can bypass Content-
	//  Security-Policy (CSP) checks. This value should not be set in most cases
	//  where CEF_SCHEME_OPTION_STANDARD is set.
	CEF_SCHEME_OPTION_CSP_BYPASSING = 1 << 5

	// CEF_SCHEME_OPTION_FETCH_ENABLED
	//  If CEF_SCHEME_OPTION_FETCH_ENABLED is set the scheme can perform Fetch API requests.
	CEF_SCHEME_OPTION_FETCH_ENABLED = 1 << 6
)
View Source
const (
	MB_OK               = 0x00000000
	MB_OKCANCEL         = 0x00000001
	MB_ABORTRETRYIGNORE = 0x00000002
	MB_YESNOCANCEL      = 0x00000003
	MB_YESNO            = 0x00000004
	MB_RETRYCANCEL      = 0x00000005

	MB_ICONHAND        = 0x00000010
	MB_ICONQUESTION    = 0x00000020
	MB_ICONEXCLAMATION = 0x00000030
	MB_ICONASTERISK    = 0x00000040
	MB_USERICON        = 0x00000080
	MB_ICONWARNING     = MB_ICONEXCLAMATION
	MB_ICONERROR       = MB_ICONHAND
	MB_ICONINFORMATION = MB_ICONASTERISK
	MB_ICONSTOP        = MB_ICONHAND
	MB_DEFBUTTON1      = 0x00000000
	MB_DEFBUTTON2      = 0x00000100
	MB_DEFBUTTON3      = 0x00000200
	MB_DEFBUTTON4      = 0x00000300
	MB_APPLMODAL       = 0x00000000
	MB_SYSTEMMODAL     = 0x00001000
	MB_TASKMODAL       = 0x00002000
	MB_HELP            = 0x00004000 // Help Button

	MB_NOFOCUS              = 0x00008000
	MB_SETFOREGROUND        = 0x00010000
	MB_DEFAULT_DESKTOP_ONLY = 0x00020000

	MB_TOPMOST    = 0x00040000
	MB_RIGHT      = 0x00080000
	MB_RTLREADING = 0x00100000

	MB_SERVICE_NOTIFICATION      = 0x00200000
	MB_SERVICE_NOTIFICATION_NT3X = 0x00040000

	MB_TYPEMASK = 0x0000000F
	MB_ICONMASK = 0x000000F0
	MB_DEFMASK  = 0x00000F00
	MB_MODEMASK = 0x00003000
	MB_MISCMASK = 0x0000C000
)

MessageBox() Flags

View Source
const (
	FILE_DIALOG_OPEN          FileDialogMode = 0x00000000
	FILE_DIALOG_OPEN_MULTIPLE                = 0x00000001
	FILE_DIALOG_OPEN_FOLDER                  = 0x00000002
	FILE_DIALOG_SAVE                         = 0x00000003
)
View Source
const (
	MA_Shift                          = "SHIFT"
	MA_Shift_Code TCefMenuAccelerator = 0x10 //  16
	MA_Ctrl                           = "CTRL"
	MA_Ctrl_Code  TCefMenuAccelerator = 0x11 //  17
	MA_Alt                            = "ALT"
	MA_Alt_Code   TCefMenuAccelerator = 0x12 //  18
)
View Source
const (
	CEF_PREFERENCES_SAVED = 0x000A00
	CEF_DOONCLOSE         = 0x000A01
	CEF_STARTDRAGGING     = 0x000A02
	CEF_AFTERCREATED      = 0x000A03
	CEF_PENDINGRESIZE     = 0x000A04
	CEF_PUMPHAVEWORK      = 0x000A05
	CEF_DESTROY           = 0x000A06
	CEF_DOONBEFORECLOSE   = 0x000A07
	CEF_PENDINGINVALIDATE = 0x000A08
	CEF_IMERANGECHANGED   = 0x000A09
	CEF_SENTINEL_START    = 0x000A0A
	CEF_SENTINEL_DOCLOSE  = 0x000A0B
	CEF_BEFORECLOSE       = 0x000A0C
)

功能和消息常量

View Source
const (
	KF_EXTENDED = 0x100
	KF_DLGMODE  = 0x800
	KF_MENUMODE = 0x1000
	KF_ALTDOWN  = 0x2000
	KF_REPEAT   = 0x4000
	KF_UP       = 0x8000
)

------------ KeyFlags (High word part !!!) ------------

View Source
const (
	VkLButton    = 0x01 //   1
	VkRButton    = 0x02 //   2
	VkCancel     = 0x03 //   3
	VkMButton    = 0x04 //   4
	VkXButton1   = 0x05 //   5
	VkXButton2   = 0x06 //   6
	VkBack       = 0x08 //   8
	VkTab        = 0x09 //   9
	VkLineFeed   = 0x0A //  10
	VkClear      = 0x0C //  12
	VkReturn     = 0x0D //  13
	VkShift      = 0x10 //  16
	VkControl    = 0x11 //  17
	VkMenu       = 0x12 //  18
	VkPause      = 0x13 //  19
	VkCapital    = 0x14 //  20
	VkKana       = 0x15 //  21
	VkHangul     = 0x15 //  21
	VkJunja      = 0x17 //  23
	VkFinal      = 0x18 //  24
	VkHanja      = 0x19 //  25
	VkKanji      = 0x19 //  25
	VkConvert    = 0x1C //  28
	VkNonConvert = 0x1D //  29
	VkAccept     = 0x1E //  30
	VkModeChange = 0x1F //  31
	VkEscape     = 0x1B //  27
	VkSpace      = 0x20 //  32
	VkPrior      = 0x21 //  33
	VkNext       = 0x22 //  34
	VkEnd        = 0x23 //  35
	VkHome       = 0x24 //  36
	VkLeft       = 0x25 //  37
	VkUp         = 0x26 //  38
	VkRight      = 0x27 //  39
	VkDown       = 0x28 //  40
	VkSelect     = 0x29 //  41
	VkPrint      = 0x2A //  42
	VkExecute    = 0x2B //  43
	VkSnapshot   = 0x2C //  44
	VkInsert     = 0x2D //  45
	VkDelete     = 0x2E //  46
	VkHelp       = 0x2F //  47
	// vk0 thru vk9 are the same as ASCII '0' thru '9' (0x30 - 0x39)
	Vk0 = 0x30 //  48
	Vk1 = 0x31 //  49
	Vk2 = 0x32 //  50
	Vk3 = 0x33 //  51
	Vk4 = 0x34 //  52
	Vk5 = 0x35 //  53
	Vk6 = 0x36 //  54
	Vk7 = 0x37 //  55
	Vk8 = 0x38 //  56
	Vk9 = 0x39 //  57
	// vkA thru vkZ are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A)
	VkA         = 0x41 //  65
	VkB         = 0x42 //  66
	VkC         = 0x43 //  67
	VkD         = 0x44 //  68
	VkE         = 0x45 //  69
	VkF         = 0x46 //  70
	VkG         = 0x47 //  71
	VkH         = 0x48 //  72
	VkI         = 0x49 //  73
	VkJ         = 0x4A //  74
	VkK         = 0x4B //  75
	VkL         = 0x4C //  76
	VkM         = 0x4D //  77
	VkN         = 0x4E //  78
	VkO         = 0x4F //  79
	VkP         = 0x50 //  80
	VkQ         = 0x51 //  81
	VkR         = 0x52 //  82
	VkS         = 0x53 //  83
	VkT         = 0x54 //  84
	VkU         = 0x55 //  85
	VkV         = 0x56 //  86
	VkW         = 0x57 //  87
	VkX         = 0x58 //  88
	VkY         = 0x59 //  89
	VkZ         = 0x5A //  90
	VkLWin      = 0x5B //  91
	VkRWin      = 0x5C //  92
	VkApps      = 0x5D //  93
	VkSleep     = 0x5F //  95
	VkNumpad0   = 0x60 //  96
	VkNumpad1   = 0x61 //  97
	VkNumpad2   = 0x62 //  98
	VkNumpad3   = 0x63 //  99
	VkNumpad4   = 0x64 // 100
	VkNumpad5   = 0x65 // 101
	VkNumpad6   = 0x66 // 102
	VkNumpad7   = 0x67 // 103
	VkNumpad8   = 0x68 // 104
	VkNumpad9   = 0x69 // 105
	VkMultiply  = 0x6A // 106
	VkAdd       = 0x6B // 107
	VkSeparator = 0x6C // 108
	VkSubtract  = 0x6D // 109
	VkDecimal   = 0x6E // 110
	VkDivide    = 0x6F // 111
	VkF1        = 0x70 // 112
	VkF2        = 0x71 // 113
	VkF3        = 0x72 // 114
	VkF4        = 0x73 // 115
	VkF5        = 0x74 // 116
	VkF6        = 0x75 // 117
	VkF7        = 0x76 // 118
	VkF8        = 0x77 // 119
	VkF9        = 0x78 // 120
	VkF10       = 0x79 // 121
	VkF11       = 0x7A // 122
	VkF12       = 0x7B // 123
	VkF13       = 0x7C // 124
	VkF14       = 0x7D // 125
	VkF15       = 0x7E // 126
	VkF16       = 0x7F // 127
	VkF17       = 0x80 // 128
	VkF18       = 0x81 // 129
	VkF19       = 0x82 // 130
	VkF20       = 0x83 // 131
	VkF21       = 0x84 // 132
	VkF22       = 0x85 // 133
	VkF23       = 0x86 // 134
	VkF24       = 0x87 // 135

	VkCamera       = 0x88 // 136
	VkHardwareBack = 0x89 // 137

	VkNumLock  = 0x90 // 144
	VkScroll   = 0x91 // 145
	VkLShift   = 0xA0 // 160
	VkRShift   = 0xA1 // 161
	VkLControl = 0xA2 // 162
	VkRControl = 0xA3 // 163
	VkLMenu    = 0xA4 // 164
	VkRMenu    = 0xA5 // 165

	VkBrowserBack       = 0xA6 // 166
	VkBrowserForward    = 0xA7 // 167
	VkBrowserRefresh    = 0xA8 // 168
	VkBrowserStop       = 0xA9 // 169
	VkBrowserSearch     = 0xAA // 170
	VkBrowserFavorites  = 0xAB // 171
	VkBrowserHome       = 0xAC // 172
	VkVolumeMute        = 0xAD // 173
	VkVolumeDown        = 0xAE // 174
	VkVolumeUp          = 0xAF // 175
	VkMediaNextTrack    = 0xB0 // 176
	VkMediaPrevTrack    = 0xB1 // 177
	VkMediaStop         = 0xB2 // 178
	VkMediaPlayPause    = 0xB3 // 179
	VkLaunchMail        = 0xB4 // 180
	VkLaunchMediaSelect = 0xB5 // 181
	VkLaunchApp1        = 0xB6 // 182
	VkLaunchApp2        = 0xB7 // 183

	VkSemicolon    = 0xBA // 186
	VkEqual        = 0xBB // 187
	VkComma        = 0xBC // 188
	VkMinus        = 0xBD // 189
	VkPeriod       = 0xBE // 190
	VkSlash        = 0xBF // 191
	VkTilde        = 0xC0 // 192
	VkLeftBracket  = 0xDB // 219
	VkBackslash    = 0xDC // 220
	VkRightBracket = 0xDD // 221
	VkQuote        = 0xDE // 222
	VkPara         = 0xDF // 223

	VkOem102     = 0xE2 // 226
	VkIcoHelp    = 0xE3 // 227
	VkIco00      = 0xE4 // 228
	VkProcessKey = 0xE5 // 229
	VkIcoClear   = 0xE6 // 230
	VkPacket     = 0xE7 // 231
	VkAttn       = 0xF6 // 246
	VkCrsel      = 0xF7 // 247
	VkExsel      = 0xF8 // 248
	VkErEof      = 0xF9 // 249
	VkPlay       = 0xFA // 250
	VkZoom       = 0xFB // 251
	VkNoname     = 0xFC // 252
	VkPA1        = 0xFD // 253
	VkOemClear   = 0xFE // 254
	VkNone       = 0xFF // 255

)

Virtual Keys, Standard Set

View Source
const CEF_OSR_FRAMERATE_DEFAULT = 30 // Used when the shared textures are disabled.
View Source
const CEF_OSR_SHARED_TEXTURES_FRAMERATE_DEFAULT = 60 // Used when the shared textures are enabled.
View Source
const CEF_TIMER_DEPLETEWORK_CYCLES = 10
View Source
const CEF_TIMER_DEPLETEWORK_DELAY = 50
View Source
const CEF_TIMER_MAXDELAY = 1000 / CEF_OSR_FRAMERATE_DEFAULT
View Source
const CEF_TIMER_MAXIMUM = 0x7FFFFFFF
View Source
const CEF_TIMER_MINIMUM = 0x0000000A

Variables

View Source
var (
	CurrentExecuteDir string                       // 当前执行目录
	ExeDir            string                       // 执行文件所在目录
	ExePath           string                       // 执行文件所在完整目录
	ExeName           string                       // 执行文件名称
	HomeDir, _        = homedir.Dir()              // 当前系统用户目录
	Separator         = string(filepath.Separator) // 平台目录分隔符
)

Functions

func RGB

func RGB(r, g, b byte) uint32

RGB

func RGBToBGR

func RGBToBGR(rgb uint32) uint32

RGBToBGR

Types

type ARGB

type ARGB = types.UInt32

type BF

type BF = types.Int32

前进 & 后退

type CEF_NET_ERROR

type CEF_NET_ERROR = types.Int32

net error

const (
	ERR_NONE                                          CEF_NET_ERROR = 0
	ERR_IO_PENDING                                    CEF_NET_ERROR = -1
	ERR_FAILED                                        CEF_NET_ERROR = -2
	ERR_ABORTED                                       CEF_NET_ERROR = -3
	ERR_INVALID_ARGUMENT                              CEF_NET_ERROR = -4
	ERR_INVALID_HANDLE                                CEF_NET_ERROR = -5
	ERR_FILE_NOT_FOUND                                CEF_NET_ERROR = -6
	ERR_TIMED_OUT                                     CEF_NET_ERROR = -7
	ERR_FILE_TOO_BIG                                  CEF_NET_ERROR = -8
	ERR_UNEXPECTED                                    CEF_NET_ERROR = -9
	ERR_ACCESS_DENIED                                 CEF_NET_ERROR = -10
	ERR_NOT_IMPLEMENTED                               CEF_NET_ERROR = -11
	ERR_INSUFFICIENT_RESOURCES                        CEF_NET_ERROR = -12
	ERR_OUT_OF_MEMORY                                 CEF_NET_ERROR = -13
	ERR_UPLOAD_FILE_CHANGED                           CEF_NET_ERROR = -14
	ERR_SOCKET_NOT_CONNECTED                          CEF_NET_ERROR = -15
	ERR_FILE_EXISTS                                   CEF_NET_ERROR = -16
	ERR_FILE_PATH_TOO_LONG                            CEF_NET_ERROR = -17
	ERR_FILE_NO_SPACE                                 CEF_NET_ERROR = -18
	ERR_FILE_VIRUS_INFECTED                           CEF_NET_ERROR = -19
	ERR_BLOCKED_BY_CLIENT                             CEF_NET_ERROR = -20
	ERR_NETWORK_CHANGED                               CEF_NET_ERROR = -21
	ERR_BLOCKED_BY_ADMINISTRATOR                      CEF_NET_ERROR = -22
	ERR_SOCKET_IS_CONNECTED                           CEF_NET_ERROR = -23
	ERR_BLOCKED_ENROLLMENT_CHECK_PENDING              CEF_NET_ERROR = -24
	ERR_UPLOAD_STREAM_REWIND_NOT_SUPPORTED            CEF_NET_ERROR = -25
	ERR_CONTEXT_SHUT_DOWN                             CEF_NET_ERROR = -26
	ERR_BLOCKED_BY_RESPONSE                           CEF_NET_ERROR = -27
	ERR_BLOCKED_BY_XSS_AUDITOR                        CEF_NET_ERROR = -28
	ERR_CLEARTEXT_NOT_PERMITTED                       CEF_NET_ERROR = -29
	ERR_CONNECTION_CLOSED                             CEF_NET_ERROR = -100
	ERR_CONNECTION_RESET                              CEF_NET_ERROR = -101
	ERR_CONNECTION_REFUSED                            CEF_NET_ERROR = -102
	ERR_CONNECTION_ABORTED                            CEF_NET_ERROR = -103
	ERR_CONNECTION_FAILED                             CEF_NET_ERROR = -104
	ERR_NAME_NOT_RESOLVED                             CEF_NET_ERROR = -105
	ERR_INTERNET_DISCONNECTED                         CEF_NET_ERROR = -106
	ERR_SSL_PROTOCOL_ERROR                            CEF_NET_ERROR = -107
	ERR_ADDRESS_INVALID                               CEF_NET_ERROR = -108
	ERR_ADDRESS_UNREACHABLE                           CEF_NET_ERROR = -109
	ERR_SSL_CLIENT_AUTH_CERT_NEEDED                   CEF_NET_ERROR = -110
	ERR_TUNNEL_CONNECTION_FAILED                      CEF_NET_ERROR = -111
	ERR_NO_SSL_VERSIONS_ENABLED                       CEF_NET_ERROR = -112
	ERR_SSL_VERSION_OR_CIPHER_MISMATCH                CEF_NET_ERROR = -113
	ERR_SSL_RENEGOTIATION_REQUESTED                   CEF_NET_ERROR = -114
	ERR_PROXY_AUTH_UNSUPPORTED                        CEF_NET_ERROR = -115
	ERR_CERT_ERROR_IN_SSL_RENEGOTIATION               CEF_NET_ERROR = -116
	ERR_BAD_SSL_CLIENT_AUTH_CERT                      CEF_NET_ERROR = -117
	ERR_CONNECTION_TIMED_OUT                          CEF_NET_ERROR = -118
	ERR_HOST_RESOLVER_QUEUE_TOO_LARGE                 CEF_NET_ERROR = -119
	ERR_SOCKS_CONNECTION_FAILED                       CEF_NET_ERROR = -120
	ERR_SOCKS_CONNECTION_HOST_UNREACHABLE             CEF_NET_ERROR = -121
	ERR_ALPN_NEGOTIATION_FAILED                       CEF_NET_ERROR = -122
	ERR_SSL_NO_RENEGOTIATION                          CEF_NET_ERROR = -123
	ERR_WINSOCK_UNEXPECTED_WRITTEN_BYTES              CEF_NET_ERROR = -124
	ERR_SSL_DECOMPRESSION_FAILURE_ALERT               CEF_NET_ERROR = -125
	ERR_SSL_BAD_RECORD_MAC_ALERT                      CEF_NET_ERROR = -126
	ERR_PROXY_AUTH_REQUESTED                          CEF_NET_ERROR = -127
	ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY              CEF_NET_ERROR = -129
	ERR_PROXY_CONNECTION_FAILED                       CEF_NET_ERROR = -130
	ERR_MANDATORY_PROXY_CONFIGURATION_FAILED          CEF_NET_ERROR = -131
	ERR_PRECONNECT_MAX_SOCKET_LIMIT                   CEF_NET_ERROR = -133
	ERR_SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED     CEF_NET_ERROR = -134
	ERR_SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY           CEF_NET_ERROR = -135
	ERR_PROXY_CERTIFICATE_INVALID                     CEF_NET_ERROR = -136
	ERR_NAME_RESOLUTION_FAILED                        CEF_NET_ERROR = -137
	ERR_NETWORK_ACCESS_DENIED                         CEF_NET_ERROR = -138
	ERR_TEMPORARILY_THROTTLED                         CEF_NET_ERROR = -139
	ERR_HTTPS_PROXY_TUNNEL_RESPONSE_REDIRECT          CEF_NET_ERROR = -140
	ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED              CEF_NET_ERROR = -141
	ERR_MSG_TOO_BIG                                   CEF_NET_ERROR = -142
	ERR_SPDY_SESSION_ALREADY_EXISTS                   CEF_NET_ERROR = -143
	ERR_WS_PROTOCOL_ERROR                             CEF_NET_ERROR = -145
	ERR_ADDRESS_IN_USE                                CEF_NET_ERROR = -147
	ERR_SSL_HANDSHAKE_NOT_COMPLETED                   CEF_NET_ERROR = -148
	ERR_SSL_BAD_PEER_PUBLIC_KEY                       CEF_NET_ERROR = -149
	ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN              CEF_NET_ERROR = -150
	ERR_CLIENT_AUTH_CERT_TYPE_UNSUPPORTED             CEF_NET_ERROR = -151
	ERR_ORIGIN_BOUND_CERT_GENERATION_TYPE_MISMATCH    CEF_NET_ERROR = -152
	ERR_SSL_DECRYPT_ERROR_ALERT                       CEF_NET_ERROR = -153
	ERR_WS_THROTTLE_QUEUE_TOO_LARGE                   CEF_NET_ERROR = -154
	ERR_SSL_SERVER_CERT_CHANGED                       CEF_NET_ERROR = -156
	ERR_SSL_UNRECOGNIZED_NAME_ALERT                   CEF_NET_ERROR = -159
	ERR_SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR          CEF_NET_ERROR = -160
	ERR_SOCKET_SET_SEND_BUFFER_SIZE_ERROR             CEF_NET_ERROR = -161
	ERR_SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE       CEF_NET_ERROR = -162
	ERR_SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE          CEF_NET_ERROR = -163
	ERR_SSL_CLIENT_AUTH_CERT_BAD_FORMAT               CEF_NET_ERROR = -164
	ERR_ICANN_NAME_COLLISION                          CEF_NET_ERROR = -166
	ERR_SSL_SERVER_CERT_BAD_FORMAT                    CEF_NET_ERROR = -167
	ERR_CT_STH_PARSING_FAILED                         CEF_NET_ERROR = -168
	ERR_CT_STH_INCOMPLETE                             CEF_NET_ERROR = -169
	ERR_UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH     CEF_NET_ERROR = -170
	ERR_CT_CONSISTENCY_PROOF_PARSING_FAILED           CEF_NET_ERROR = -171
	ERR_SSL_OBSOLETE_CIPHER                           CEF_NET_ERROR = -172
	ERR_WS_UPGRADE                                    CEF_NET_ERROR = -173
	ERR_READ_IF_READY_NOT_IMPLEMENTED                 CEF_NET_ERROR = -174
	ERR_SSL_VERSION_INTERFERENCE                      CEF_NET_ERROR = -175
	ERR_NO_BUFFER_SPACE                               CEF_NET_ERROR = -176
	ERR_SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS          CEF_NET_ERROR = -177
	ERR_EARLY_DATA_REJECTED                           CEF_NET_ERROR = -178
	ERR_WRONG_VERSION_ON_EARLY_DATA                   CEF_NET_ERROR = -179
	ERR_TLS13_DOWNGRADE_DETECTED                      CEF_NET_ERROR = -180
	ERR_SSL_KEY_USAGE_INCOMPATIBLE                    CEF_NET_ERROR = -181
	ERR_CERT_COMMON_NAME_INVALID                      CEF_NET_ERROR = -200
	ERR_CERT_DATE_INVALID                             CEF_NET_ERROR = -201
	ERR_CERT_AUTHORITY_INVALID                        CEF_NET_ERROR = -202
	ERR_CERT_CONTAINS_ERRORS                          CEF_NET_ERROR = -203
	ERR_CERT_NO_REVOCATION_MECHANISM                  CEF_NET_ERROR = -204
	ERR_CERT_UNABLE_TO_CHECK_REVOCATION               CEF_NET_ERROR = -205
	ERR_CERT_REVOKED                                  CEF_NET_ERROR = -206
	ERR_CERT_INVALID                                  CEF_NET_ERROR = -207
	ERR_CERT_WEAK_SIGNATURE_ALGORITHM                 CEF_NET_ERROR = -208
	ERR_CERT_NON_UNIQUE_NAME                          CEF_NET_ERROR = -210
	ERR_CERT_WEAK_KEY                                 CEF_NET_ERROR = -211
	ERR_CERT_NAME_CONSTRAINT_VIOLATION                CEF_NET_ERROR = -212
	ERR_CERT_VALIDITY_TOO_LONG                        CEF_NET_ERROR = -213
	ERR_CERTIFICATE_TRANSPARENCY_REQUIRED             CEF_NET_ERROR = -214
	ERR_CERT_SYMANTEC_LEGACY                          CEF_NET_ERROR = -215
	ERR_CERT_END                                      CEF_NET_ERROR = -216
	ERR_INVALID_URL                                   CEF_NET_ERROR = -300
	ERR_DISALLOWED_URL_SCHEME                         CEF_NET_ERROR = -301
	ERR_UNKNOWN_URL_SCHEME                            CEF_NET_ERROR = -302
	ERR_INVALID_REDIRECT                              CEF_NET_ERROR = -303
	ERR_TOO_MANY_REDIRECTS                            CEF_NET_ERROR = -310
	ERR_UNSAFE_REDIRECT                               CEF_NET_ERROR = -311
	ERR_UNSAFE_PORT                                   CEF_NET_ERROR = -312
	ERR_INVALID_RESPONSE                              CEF_NET_ERROR = -320
	ERR_INVALID_CHUNKED_ENCODING                      CEF_NET_ERROR = -321
	ERR_METHOD_NOT_SUPPORTED                          CEF_NET_ERROR = -322
	ERR_UNEXPECTED_PROXY_AUTH                         CEF_NET_ERROR = -323
	ERR_EMPTY_RESPONSE                                CEF_NET_ERROR = -324
	ERR_RESPONSE_HEADERS_TOO_BIG                      CEF_NET_ERROR = -325
	ERR_PAC_STATUS_NOT_OK                             CEF_NET_ERROR = -326
	ERR_PAC_SCRIPT_FAILED                             CEF_NET_ERROR = -327
	ERR_REQUEST_RANGE_NOT_SATISFIABLE                 CEF_NET_ERROR = -328
	ERR_MALFORMED_IDENTITY                            CEF_NET_ERROR = -329
	ERR_CONTENT_DECODING_FAILED                       CEF_NET_ERROR = -330
	ERR_NETWORK_IO_SUSPENDED                          CEF_NET_ERROR = -331
	ERR_SYN_REPLY_NOT_RECEIVED                        CEF_NET_ERROR = -332
	ERR_ENCODING_CONVERSION_FAILED                    CEF_NET_ERROR = -333
	ERR_UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT     CEF_NET_ERROR = -334
	ERR_NO_SUPPORTED_PROXIES                          CEF_NET_ERROR = -336
	ERR_SPDY_PROTOCOL_ERROR                           CEF_NET_ERROR = -337
	ERR_INVALID_AUTH_CREDENTIALS                      CEF_NET_ERROR = -338
	ERR_UNSUPPORTED_AUTH_SCHEME                       CEF_NET_ERROR = -339
	ERR_ENCODING_DETECTION_FAILED                     CEF_NET_ERROR = -340
	ERR_MISSING_AUTH_CREDENTIALS                      CEF_NET_ERROR = -341
	ERR_UNEXPECTED_SECURITY_LIBRARY_STATUS            CEF_NET_ERROR = -342
	ERR_MISCONFIGURED_AUTH_ENVIRONMENT                CEF_NET_ERROR = -343
	ERR_UNDOCUMENTED_SECURITY_LIBRARY_STATUS          CEF_NET_ERROR = -344
	ERR_RESPONSE_BODY_TOO_BIG_TO_DRAIN                CEF_NET_ERROR = -345
	ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH      CEF_NET_ERROR = -346
	ERR_INCOMPLETE_SPDY_HEADERS                       CEF_NET_ERROR = -347
	ERR_PAC_NOT_IN_DHCP                               CEF_NET_ERROR = -348
	ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION CEF_NET_ERROR = -349
	ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION            CEF_NET_ERROR = -350
	ERR_SPDY_SERVER_REFUSED_STREAM                    CEF_NET_ERROR = -351
	ERR_SPDY_PING_FAILED                              CEF_NET_ERROR = -352
	ERR_CONTENT_LENGTH_MISMATCH                       CEF_NET_ERROR = -354
	ERR_INCOMPLETE_CHUNKED_ENCODING                   CEF_NET_ERROR = -355
	ERR_QUIC_PROTOCOL_ERROR                           CEF_NET_ERROR = -356
	ERR_RESPONSE_HEADERS_TRUNCATED                    CEF_NET_ERROR = -357
	ERR_QUIC_HANDSHAKE_FAILED                         CEF_NET_ERROR = -358
	ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY            CEF_NET_ERROR = -360
	ERR_SPDY_FLOW_CONTROL_ERROR                       CEF_NET_ERROR = -361
	ERR_SPDY_FRAME_SIZE_ERROR                         CEF_NET_ERROR = -362
	ERR_SPDY_COMPRESSION_ERROR                        CEF_NET_ERROR = -363
	ERR_PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION       CEF_NET_ERROR = -364
	ERR_HTTP_1_1_REQUIRED                             CEF_NET_ERROR = -365
	ERR_PROXY_HTTP_1_1_REQUIRED                       CEF_NET_ERROR = -366
	ERR_PAC_SCRIPT_TERMINATED                         CEF_NET_ERROR = -367
	ERR_INVALID_HTTP_RESPONSE                         CEF_NET_ERROR = -370
	ERR_CONTENT_DECODING_INIT_FAILED                  CEF_NET_ERROR = -371
	ERR_SPDY_RST_STREAM_NO_ERROR_RECEIVED             CEF_NET_ERROR = -372
	ERR_SPDY_PUSHED_STREAM_NOT_AVAILABLE              CEF_NET_ERROR = -373
	ERR_SPDY_CLAIMED_PUSHED_STREAM_RESET_BY_SERVER    CEF_NET_ERROR = -374
	ERR_TOO_MANY_RETRIES                              CEF_NET_ERROR = -375
	ERR_SPDY_STREAM_CLOSED                            CEF_NET_ERROR = -376
	ERR_SPDY_CLIENT_REFUSED_STREAM                    CEF_NET_ERROR = -377
	ERR_SPDY_PUSHED_RESPONSE_DOES_NOT_MATCH           CEF_NET_ERROR = -378
	ERR_CACHE_MISS                                    CEF_NET_ERROR = -400
	ERR_CACHE_READ_FAILURE                            CEF_NET_ERROR = -401
	ERR_CACHE_WRITE_FAILURE                           CEF_NET_ERROR = -402
	ERR_CACHE_OPERATION_NOT_SUPPORTED                 CEF_NET_ERROR = -403
	ERR_CACHE_OPEN_FAILURE                            CEF_NET_ERROR = -404
	ERR_CACHE_CREATE_FAILURE                          CEF_NET_ERROR = -405
	ERR_CACHE_RACE                                    CEF_NET_ERROR = -406
	ERR_CACHE_CHECKSUM_READ_FAILURE                   CEF_NET_ERROR = -407
	ERR_CACHE_CHECKSUM_MISMATCH                       CEF_NET_ERROR = -408
	ERR_CACHE_LOCK_TIMEOUT                            CEF_NET_ERROR = -409
	ERR_CACHE_AUTH_FAILURE_AFTER_READ                 CEF_NET_ERROR = -410
	ERR_CACHE_ENTRY_NOT_SUITABLE                      CEF_NET_ERROR = -411
	ERR_CACHE_DOOM_FAILURE                            CEF_NET_ERROR = -412
	ERR_CACHE_OPEN_OR_CREATE_FAILURE                  CEF_NET_ERROR = -413
	ERR_INSECURE_RESPONSE                             CEF_NET_ERROR = -501
	ERR_NO_PRIVATE_KEY_FOR_CERT                       CEF_NET_ERROR = -502
	ERR_ADD_USER_CERT_FAILED                          CEF_NET_ERROR = -503
	ERR_INVALID_SIGNED_EXCHANGE                       CEF_NET_ERROR = -504
	ERR_FTP_FAILED                                    CEF_NET_ERROR = -601
	ERR_FTP_SERVICE_UNAVAILABLE                       CEF_NET_ERROR = -602
	ERR_FTP_TRANSFER_ABORTED                          CEF_NET_ERROR = -603
	ERR_FTP_FILE_BUSY                                 CEF_NET_ERROR = -604
	ERR_FTP_SYNTAX_ERROR                              CEF_NET_ERROR = -605
	ERR_FTP_COMMAND_NOT_SUPPORTED                     CEF_NET_ERROR = -606
	ERR_FTP_BAD_COMMAND_SEQUENCE                      CEF_NET_ERROR = -607
	ERR_PKCS12_IMPORT_BAD_PASSWORD                    CEF_NET_ERROR = -701
	ERR_PKCS12_IMPORT_FAILED                          CEF_NET_ERROR = -702
	ERR_IMPORT_CA_CERT_NOT_CA                         CEF_NET_ERROR = -703
	ERR_IMPORT_CERT_ALREADY_EXISTS                    CEF_NET_ERROR = -704
	ERR_IMPORT_CA_CERT_FAILED                         CEF_NET_ERROR = -705
	ERR_IMPORT_SERVER_CERT_FAILED                     CEF_NET_ERROR = -706
	ERR_PKCS12_IMPORT_INVALID_MAC                     CEF_NET_ERROR = -707
	ERR_PKCS12_IMPORT_INVALID_FILE                    CEF_NET_ERROR = -708
	ERR_PKCS12_IMPORT_UNSUPPORTED                     CEF_NET_ERROR = -709
	ERR_KEY_GENERATION_FAILED                         CEF_NET_ERROR = -710
	ERR_PRIVATE_KEY_EXPORT_FAILED                     CEF_NET_ERROR = -712
	ERR_SELF_SIGNED_CERT_GENERATION_FAILED            CEF_NET_ERROR = -713
	ERR_CERT_DATABASE_CHANGED                         CEF_NET_ERROR = -714
	ERR_DNS_MALFORMED_RESPONSE                        CEF_NET_ERROR = -800
	ERR_DNS_SERVER_REQUIRES_TCP                       CEF_NET_ERROR = -801
	ERR_DNS_SERVER_FAILED                             CEF_NET_ERROR = -802
	ERR_DNS_TIMED_OUT                                 CEF_NET_ERROR = -803
	ERR_NS_CACHE_MISS                                 CEF_NET_ERROR = -804
	ERR_DNS_SEARCH_EMPTY                              CEF_NET_ERROR = -805
	ERR_DNS_SORT_ERROR                                CEF_NET_ERROR = -806
	ERR_DNS_HTTP_FAILED                               CEF_NET_ERROR = -807
)

type CanZoom added in v2.3.4

type CanZoom = uintptr
const (
	CzInc   CanZoom = iota + 1 // CanIncZoom
	CzDec                      // CanDecZoom
	CzReset                    // CanResetZoom
)

type CefCreateType added in v2.2.1

type CefCreateType = types.Int8

CefCreateType

CtSelfOwn 自己处理事件
CtOther   使用其他组件处理事件
const (
	CtSelfOwn CefCreateType = iota // CtSelfOwn 自己处理事件
	CtOther                        // CtOther   使用其他组件处理事件
)

type CefProcessId

type CefProcessId = types.Int32

CefProcessId CEF 进程 Id

type CefSchemeOption

type CefSchemeOption = types.Int32

CefSchemeOption

Configuration options for registering a custom scheme.
These values are used when calling AddCustomScheme.

/include/internal/cef_types.h (cef_scheme_options_t)

type ChannelType

type ChannelType = types.Int8

type FN_TYPE

type FN_TYPE = types.Int8

FN_TYPE 函数类型

type FileDialogMode added in v2.2.1

type FileDialogMode = types.Int32

/include/internal/cef_types.h (cef_file_dialog_mode_t)

type IPC_TYPE

type IPC_TYPE = types.Int8

type IS_CO

type IS_CO = types.Int8

IS_CO 通用类型或对象类型

type LANGUAGE

type LANGUAGE = types.String
const (
	LANGUAGE_zh_CN  LANGUAGE = "zh-CN"
	LANGUAGE_zh_TW  LANGUAGE = "zh-TW"
	LANGUAGE_am     LANGUAGE = "am"
	LANGUAGE_ar     LANGUAGE = "ar"
	LANGUAGE_bg     LANGUAGE = "bg"
	LANGUAGE_bn     LANGUAGE = "bn"
	LANGUAGE_ca     LANGUAGE = "ca"
	LANGUAGE_cs     LANGUAGE = "cs"
	LANGUAGE_da     LANGUAGE = "da"
	LANGUAGE_de     LANGUAGE = "de"
	LANGUAGE_el     LANGUAGE = "el"
	LANGUAGE_en_GB  LANGUAGE = "en-GB"
	LANGUAGE_en_US  LANGUAGE = "en-US"
	LANGUAGE_es     LANGUAGE = "es"
	LANGUAGE_es_419 LANGUAGE = "es-419"
	LANGUAGE_et     LANGUAGE = "et"
	LANGUAGE_fa     LANGUAGE = "fa"
	LANGUAGE_fi     LANGUAGE = "fi"
	LANGUAGE_fil    LANGUAGE = "fil"
	LANGUAGE_fr     LANGUAGE = "fr"
	LANGUAGE_gu     LANGUAGE = "gu"
	LANGUAGE_he     LANGUAGE = "he"
	LANGUAGE_hi     LANGUAGE = "hi"
	LANGUAGE_hr     LANGUAGE = "hr"
	LANGUAGE_hu     LANGUAGE = "hu"
	LANGUAGE_id     LANGUAGE = "channelId"
	LANGUAGE_it     LANGUAGE = "it"
	LANGUAGE_ja     LANGUAGE = "ja"
	LANGUAGE_kn     LANGUAGE = "kn"
	LANGUAGE_ko     LANGUAGE = "ko"
	LANGUAGE_lt     LANGUAGE = "lt"
	LANGUAGE_lv     LANGUAGE = "lv"
	LANGUAGE_ml     LANGUAGE = "ml"
	LANGUAGE_mr     LANGUAGE = "mr"
	LANGUAGE_ms     LANGUAGE = "ms"
	LANGUAGE_nb     LANGUAGE = "nb"
	LANGUAGE_nl     LANGUAGE = "nl"
	LANGUAGE_pl     LANGUAGE = "pl"
	LANGUAGE_pt_BR  LANGUAGE = "pt-BR"
	LANGUAGE_pt_PT  LANGUAGE = "pt-PT"
	LANGUAGE_ro     LANGUAGE = "ro"
	LANGUAGE_ru     LANGUAGE = "ru"
	LANGUAGE_sk     LANGUAGE = "sk"
	LANGUAGE_sl     LANGUAGE = "sl"
	LANGUAGE_sr     LANGUAGE = "sr"
	LANGUAGE_sv     LANGUAGE = "sv"
	LANGUAGE_sw     LANGUAGE = "sw"
	LANGUAGE_ta     LANGUAGE = "ta"
	LANGUAGE_te     LANGUAGE = "te"
	LANGUAGE_th     LANGUAGE = "th"
	LANGUAGE_tr     LANGUAGE = "tr"
	LANGUAGE_uk     LANGUAGE = "uk"
	LANGUAGE_vi     LANGUAGE = "vi"
)

type LocalCustomerScheme added in v2.3.0

type LocalCustomerScheme string

LocalCustomerScheme 本地资源加载自定义固定协议

file, fs
const (
	LcsLocal LocalCustomerScheme = "local" // 本地目录 local://energy/index.html
	LcsFS    LocalCustomerScheme = "fs"    // 内置 fs://energy/index.html
)

type LocalProxyScheme added in v2.3.0

type LocalProxyScheme int

LocalProxyScheme

本地加载资源,在浏览器发起xhr请求时的代理协议
http, https
const (
	LpsHttp  LocalProxyScheme = iota // http
	LpsHttps                         // https

)

type LogSeverity

type LogSeverity = types.UInt32

日志等级

const (
	LOGSEVERITY_DEFAULT LogSeverity = 0
	LOGSEVERITY_VERBOSE LogSeverity = 1
	LOGSEVERITY_DEBUG   LogSeverity = LOGSEVERITY_VERBOSE
	LOGSEVERITY_INFO    LogSeverity = 2
	LOGSEVERITY_WARNING LogSeverity = 3
	LOGSEVERITY_ERROR   LogSeverity = 4
	LOGSEVERITY_FATAL   LogSeverity = 5
	LOGSEVERITY_DISABLE LogSeverity = 99
)
type MenuId = types.Int32
const (
	MENU_ID_BACK                       MenuId = 100
	MENU_ID_FORWARD                    MenuId = 101
	MENU_ID_RELOAD                     MenuId = 102
	MENU_ID_RELOAD_NOCACHE             MenuId = 103
	MENU_ID_STOPLOAD                   MenuId = 104
	MENU_ID_UNDO                       MenuId = 110
	MENU_ID_REDO                       MenuId = 111
	MENU_ID_CUT                        MenuId = 112
	MENU_ID_COPY                       MenuId = 113
	MENU_ID_PASTE                      MenuId = 114
	MENU_ID_DELETE                     MenuId = 115
	MENU_ID_SELECT_ALL                 MenuId = 116
	MENU_ID_FIND                       MenuId = 130
	MENU_ID_PRINT                      MenuId = 131
	MENU_ID_VIEW_SOURCE                MenuId = 132
	MENU_ID_SPELLCHECK_SUGGESTION_0    MenuId = 200
	MENU_ID_SPELLCHECK_SUGGESTION_1    MenuId = 201
	MENU_ID_SPELLCHECK_SUGGESTION_2    MenuId = 202
	MENU_ID_SPELLCHECK_SUGGESTION_3    MenuId = 203
	MENU_ID_SPELLCHECK_SUGGESTION_4    MenuId = 204
	MENU_ID_SPELLCHECK_SUGGESTION_LAST MenuId = 204
	MENU_ID_NO_SPELLING_SUGGESTIONS    MenuId = 205
	MENU_ID_ADD_TO_DICTIONARY          MenuId = 206
	MENU_ID_CUSTOM_FIRST               MenuId = 220
	MENU_ID_CUSTOM_LAST                MenuId = 250
	MENU_ID_USER_FIRST                 MenuId = 26500
	MENU_ID_USER_LAST                  MenuId = 28500
)

type PROCESS_MESSAGE_TYPE

type PROCESS_MESSAGE_TYPE = types.Int8

进程消息类型

type ProcessMessageError

type ProcessMessageError = types.Int32

进程消息错误码

const (
	PME_OK                        ProcessMessageError = iota + 1 //发送成功
	PMErr_NOT_FOUND_FRAME         ProcessMessageError = -1       //没找到Frame
	PMErr_TARGET_PROCESS          ProcessMessageError = -2       //目标进程标识错误
	PMErr_NAME_IS_NULL            ProcessMessageError = -3       //消息名称为空
	PMErr_NO_INVALID_FRAME        ProcessMessageError = -4       //无效的Frame
	PMErr_REQUIRED_PARAMS_IS_NULL ProcessMessageError = -5       //必要参数为空
	PMErr_NAME_CANNOT_USED        ProcessMessageError = -6       //不能使用的消息名称
)

type RNGFnCombineMode

type RNGFnCombineMode = int32

CombineRgn Mode flags

const (
	RGN_AND RNGFnCombineMode = iota + 1
	RGN_OR
	RGN_XOR
	RGN_DIFF
	RGN_COPY
)

type SpecificVersion added in v2.3.6

type SpecificVersion = types.Int32

SpecificVersion 特定版本: CEF49,CEF87,CEF106,CEF109

type TCefARGB

type TCefARGB struct {
	A uint32
	R uint32
	G uint32
	B uint32
}

func NewCefARGB

func NewCefARGB(a, r, g, b uint32) *TCefARGB

func (*TCefARGB) ARGB

func (m *TCefARGB) ARGB() ARGB

type TCefAlphaType

type TCefAlphaType = types.Int32

/include/internal/cef_types.h (cef_alpha_type_t)

const (
	CEF_ALPHA_TYPE_OPAQUE TCefAlphaType = iota
	CEF_ALPHA_TYPE_PREMULTIPLIED
	CEF_ALPHA_TYPE_POSTMULTIPLIED
)

type TCefApplicationStatus

type TCefApplicationStatus = types.Int32
const (
	AsLoading TCefApplicationStatus = iota
	AsLoaded
	AsInitialized
	AsShuttingDown
	AsUnloaded
	AsErrorMissingFiles
	AsErrorDLLVersion
	AsErrorLoadingLibrary
	AsErrorInitializingLibrary
	AsErrorExecutingProcess
)

type TCefAutoplayPolicy

type TCefAutoplayPolicy = types.Int32
const (
	AppDefault TCefAutoplayPolicy = iota
	AppDocumentUserActivationRequired
	AppNoUserGestureRequired
	AppUserGestureRequired
)

type TCefBatterySaverModeState

type TCefBatterySaverModeState = types.Int32

Values used by the battery saver mode state preference https://source.chromium.org/chromium/chromium/src/+/main:components/performance_manager/public/user_tuning/prefs.h

const (
	BsmsDisabled TCefBatterySaverModeState = iota
	BsmsEnabledBelowThreshold
	BsmsEnabledOnBattery
	BsmsEnabled
	BsmsDefault // Custom value used to update the preferences only when there's a non-default value
)

type TCefButtonState added in v2.2.1

type TCefButtonState = types.Int32

/include/internal/cef_types.h (cef_button_state_t)

const (
	CEF_BUTTON_STATE_NORMAL TCefButtonState = iota
	CEF_BUTTON_STATE_HOVERED
	CEF_BUTTON_STATE_PRESSED
	CEF_BUTTON_STATE_DISABLED
)

type TCefCertStatus

type TCefCertStatus = types.Int32

/include/internal/cef_types.h (cef_cert_status_t)

type TCefChannelLayout

type TCefChannelLayout = types.Int32

/include/internal/cef_types.h (cef_channel_layout_t)

const (
	CEF_CHANNEL_LAYOUT_NONE TCefChannelLayout = iota
	CEF_CHANNEL_LAYOUT_UNSUPPORTED
	CEF_CHANNEL_LAYOUT_MONO
	CEF_CHANNEL_LAYOUT_STEREO
	CEF_CHANNEL_LAYOUT_2_1
	CEF_CHANNEL_LAYOUT_SURROUND
	CEF_CHANNEL_LAYOUT_4_0
	CEF_CHANNEL_LAYOUT_2_2
	CEF_CHANNEL_LAYOUT_QUAD
	CEF_CHANNEL_LAYOUT_5_0
	CEF_CHANNEL_LAYOUT_5_1
	CEF_CHANNEL_LAYOUT_5_0_BACK
	CEF_CHANNEL_LAYOUT_5_1_BACK
	CEF_CHANNEL_LAYOUT_7_0
	CEF_CHANNEL_LAYOUT_7_1
	CEF_CHANNEL_LAYOUT_7_1_WIDE
	CEF_CHANNEL_LAYOUT_STEREO_DOWNMIX
	CEF_CHANNEL_LAYOUT_2POINT1
	CEF_CHANNEL_LAYOUT_3_1
	CEF_CHANNEL_LAYOUT_4_1
	CEF_CHANNEL_LAYOUT_6_0
	CEF_CHANNEL_LAYOUT_6_0_FRONT
	CEF_CHANNEL_LAYOUT_HEXAGONAL
	CEF_CHANNEL_LAYOUT_6_1
	CEF_CHANNEL_LAYOUT_6_1_BACK
	CEF_CHANNEL_LAYOUT_6_1_FRONT
	CEF_CHANNEL_LAYOUT_7_0_FRONT
	CEF_CHANNEL_LAYOUT_7_1_WIDE_BACK
	CEF_CHANNEL_LAYOUT_OCTAGONAL
	CEF_CHANNEL_LAYOUT_DISCRETE
	CEF_CHANNEL_LAYOUT_STEREO_AND_KEYBOARD_MIC
	CEF_CHANNEL_LAYOUT_4_1_QUAD_SIDE
	CEF_CHANNEL_LAYOUT_BITSTREAM
	CEF_CHANNEL_LAYOUT_5_1_4_DOWNMIX // CEF_CHANNEL_LAYOUT_MAX = CEF_CHANNEL_LAYOUT_5_1_4_DOWNMIX
)

type TCefChromePageActionIconType added in v2.3.1

type TCefChromePageActionIconType int32
const (
	CEF_CPAIT_BOOKMARK_STAR TCefChromePageActionIconType = iota
	CEF_CPAIT_CLICK_TO_CALL
	CEF_CPAIT_COOKIE_CONTROLS
	CEF_CPAIT_FILE_SYSTEM_ACCESS
	CEF_CPAIT_FIND
	CEF_CPAIT_HIGH_EFFICIENCY
	CEF_CPAIT_INTENT_PICKER
	CEF_CPAIT_LOCAL_CARD_MIGRATION
	CEF_CPAIT_MANAGE_PASSWORDS
	CEF_CPAIT_PAYMENTS_OFFER_NOTIFICATION
	CEF_CPAIT_PRICE_TRACKING
	CEF_CPAIT_PWA_INSTALL
	CEF_CPAIT_QR_CODE_GENERATOR
	CEF_CPAIT_READER_MODE
	CEF_CPAIT_SAVE_AUTOFILL_ADDRESS
	CEF_CPAIT_SAVE_CARD
	CEF_CPAIT_SEND_TAB_TO_SELF
	CEF_CPAIT_SHARING_HUB
	CEF_CPAIT_SIDE_SEARCH
	CEF_CPAIT_SMS_REMOTE_FETCHER
	CEF_CPAIT_TRANSLATE
	CEF_CPAIT_VIRTUAL_CARD_ENROLL
	CEF_CPAIT_VIRTUAL_CARD_MANUAL_FALLBACK
	CEF_CPAIT_ZOOM
	CEF_CPAIT_SAVE_IBAN
	CEF_CPAIT_MANDATORY_REAUTH
	CEF_CPAIT_PRICE_INSIGHTS
)

/ <summary> / Chrome page action icon types. Should be kept in sync with Chromium's / PageActionIconType type. / </summary> / <remarks> / <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_chrome_page_action_icon_type_t)</see></para> / </remarks>

type TCefChromeToolbarButtonType added in v2.3.1

type TCefChromeToolbarButtonType int32
const (
	CEF_CTBT_CAST TCefChromeToolbarButtonType = iota
	CEF_CTBT_DOWNLOAD
	CEF_CTBT_SEND_TAB_TO_SELF
	CEF_CTBT_SIDE_PANEL
)

/ <summary> / Chrome toolbar button types. Should be kept in sync with CEF's internal / ToolbarButtonType type. / </summary> / <remarks> / <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_time.h">CEF source file: /include/internal/cef_time.h (cef_chrome_toolbar_button_type_t)</see></para> / </remarks>

type TCefChromeToolbarType

type TCefChromeToolbarType = types.Int32

/include/internal/cef_types.h (cef_chrome_toolbar_type_t)

type TCefClearDataStorageTypes

type TCefClearDataStorageTypes = types.Int32
const (
	CdstAppCache TCefClearDataStorageTypes = iota
	CdstCookies
	CdstFileSystems
	CdstIndexeddb
	CdstLocalStorage
	CdstShaderCache
	CdstWebsql
	CdstServiceWorkers
	CdstCacheStorage
	CdstAll // default
)

type TCefCloseBrowserAction

type TCefCloseBrowserAction = types.Int32

TCefCloseBrowserAction Chromium关闭的操作类型 在 TChromium.Onclose 使用 ------------------------- cbaCancel : 停止关闭浏览器 cbaClose : 继续关闭浏览器 cbaDelay : 暂时停止关闭浏览器

: 当应用程序需要在关闭浏览器之前执行一些自定义进程时使用。在关闭浏览器之前,通常需要在主线程中销毁TCEFWindowParent。

type TCefColorModel

type TCefColorModel = types.Int32

/include/internal/cef_types.h (cef_color_model_t)

const (
	COLOR_MODEL_UNKNOWN TCefColorModel = iota
	COLOR_MODEL_GRAY
	COLOR_MODEL_COLOR
	COLOR_MODEL_CMYK
	COLOR_MODEL_CMY
	COLOR_MODEL_KCMY
	COLOR_MODEL_CMY_K
	COLOR_MODEL_BLACK
	COLOR_MODEL_GRAYSCALE
	COLOR_MODEL_RGB
	COLOR_MODEL_RGB16
	COLOR_MODEL_RGBA
	COLOR_MODEL_COLORMODE_COLOR
	COLOR_MODEL_COLORMODE_MONOCHROME
	COLOR_MODEL_HP_COLOR_COLOR
	COLOR_MODEL_HP_COLOR_BLACK
	COLOR_MODEL_PRINTOUTMODE_NORMAL
	COLOR_MODEL_PRINTOUTMODE_NORMAL_GRAY
	COLOR_MODEL_PROCESSCOLORMODEL_CMYK
	COLOR_MODEL_PROCESSCOLORMODEL_GREYSCALE
	COLOR_MODEL_PROCESSCOLORMODEL_RGB
)

type TCefColorType

type TCefColorType = types.Int32

/include/internal/cef_types.h (cef_color_type_t)

const (
	CEF_COLOR_TYPE_RGBA_8888 TCefColorType = iota
	CEF_COLOR_TYPE_BGRA_8888
)

type TCefCompositionUnderlineStyle

type TCefCompositionUnderlineStyle int32

/include/internal/cef_types.h (cef_composition_underline_style_t)

const (
	CEF_CUS_SOLID TCefCompositionUnderlineStyle = iota
	CEF_CUS_DOT
	CEF_CUS_DASH
	CEF_CUS_NONE
)

type TCefContentSettingTypes added in v2.3.1

type TCefContentSettingTypes int32
const (
	CEF_CONTENT_SETTING_TYPE_COOKIES TCefContentSettingTypes = iota
	CEF_CONTENT_SETTING_TYPE_IMAGES
	CEF_CONTENT_SETTING_TYPE_JAVASCRIPT

	// <summary>
	// This setting governs both popups and unwanted redirects like tab-unders and framebusting.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_POPUPS

	CEF_CONTENT_SETTING_TYPE_GEOLOCATION
	CEF_CONTENT_SETTING_TYPE_NOTIFICATIONS
	CEF_CONTENT_SETTING_TYPE_AUTO_SELECT_CERTIFICATE
	CEF_CONTENT_SETTING_TYPE_MIXEDSCRIPT
	CEF_CONTENT_SETTING_TYPE_MEDIASTREAM_MIC
	CEF_CONTENT_SETTING_TYPE_MEDIASTREAM_CAMERA
	CEF_CONTENT_SETTING_TYPE_PROTOCOL_HANDLERS
	CEF_CONTENT_SETTING_TYPE_DEPRECATED_PPAPI_BROKER
	CEF_CONTENT_SETTING_TYPE_AUTOMATIC_DOWNLOADS
	CEF_CONTENT_SETTING_TYPE_MIDI_SYSEX
	CEF_CONTENT_SETTING_TYPE_SSL_CERT_DECISIONS
	CEF_CONTENT_SETTING_TYPE_PROTECTED_MEDIA_IDENTIFIER
	CEF_CONTENT_SETTING_TYPE_APP_BANNER
	CEF_CONTENT_SETTING_TYPE_SITE_ENGAGEMENT
	CEF_CONTENT_SETTING_TYPE_DURABLE_STORAGE
	CEF_CONTENT_SETTING_TYPE_USB_CHOOSER_DATA
	CEF_CONTENT_SETTING_TYPE_BLUETOOTH_GUARD
	CEF_CONTENT_SETTING_TYPE_BACKGROUND_SYNC
	CEF_CONTENT_SETTING_TYPE_AUTOPLAY
	CEF_CONTENT_SETTING_TYPE_IMPORTANT_SITE_INFO
	CEF_CONTENT_SETTING_TYPE_PERMISSION_AUTOBLOCKER_DATA
	CEF_CONTENT_SETTING_TYPE_ADS
	// <summary>
	// Website setting which stores metadata for the subresource filter to aid in
	// decisions for whether or not to show the UI.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_ADS_DATA
	// <summary>
	// This is special-cased in the permissions layer to always allow, and as
	// such doesn't have associated prefs data.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_MIDI
	// <summary>
	// This content setting type is for caching password protection service's
	// verdicts of each origin.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_PASSWORD_PROTECTION
	// <summary>
	// Website setting which stores engagement data for media related to a
	// specific origin.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_MEDIA_ENGAGEMENT
	// <summary>
	// Content setting which stores whether or not the site can play audible
	// sound. This will not block playback but instead the user will not hear it.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_SOUND
	// <summary>
	// Website setting which stores the list of client hints that the origin
	// requested the browser to remember. The browser is expected to send all
	// client hints in the HTTP request headers for every resource requested
	// from that origin.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_CLIENT_HINTS
	// <summary>
	// Generic Sensor API covering ambient-light-sensor, accelerometer, gyroscope
	// and magnetometer are all mapped to a single content_settings_type.
	// Setting for the Generic Sensor API covering ambient-light-sensor,
	// accelerometer, gyroscope and magnetometer. These are all mapped to a
	// single ContentSettingsType.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_SENSORS
	// <summary>
	// Content setting which stores whether or not the user has granted the site
	// permission to respond to accessibility events, which can be used to
	// provide a custom accessibility experience. Requires explicit user consent
	// because some users may not want sites to know they're using assistive
	// technology.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_ACCESSIBILITY_EVENTS
	// <summary>
	// Used to store whether to allow a website to install a payment handler.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_PAYMENT_HANDLER
	// <summary>
	// Content setting which stores whether to allow sites to ask for permission
	// to access USB devices. If this is allowed specific device permissions are
	// stored under USB_CHOOSER_DATA.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_USB_GUARD
	// <summary>
	// Nothing is stored in this setting at present. Please refer to
	// BackgroundFetchPermissionContext for details on how this permission
	// is ascertained.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_BACKGROUND_FETCH
	// <summary>
	// Website setting which stores the amount of times the user has dismissed
	// intent picker UI without explicitly choosing an option.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_INTENT_PICKER_DISPLAY
	// <summary>
	// Used to store whether to allow a website to detect user active/idle state.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_IDLE_DETECTION
	// <summary>
	// Setting for enabling auto-select of all screens for getDisplayMediaSet.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_GET_DISPLAY_MEDIA_SET_SELECT_ALL_SCREENS
	// <summary>
	// Content settings for access to serial ports. The "guard" content setting
	// stores whether to allow sites to ask for permission to access a port. The
	// permissions granted to access particular ports are stored in the "chooser
	// data" website setting.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_SERIAL_GUARD
	CEF_CONTENT_SETTING_TYPE_SERIAL_CHOOSER_DATA
	// <summary>
	// Nothing is stored in this setting at present. Please refer to
	// PeriodicBackgroundSyncPermissionContext for details on how this permission
	// is ascertained.
	// This content setting is not registered because it does not require access
	// to any existing providers.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_PERIODIC_BACKGROUND_SYNC
	// <summary>
	// Content setting which stores whether to allow sites to ask for permission
	// to do Bluetooth scanning.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_BLUETOOTH_SCANNING
	// <summary>
	// Content settings for access to HID devices. The "guard" content setting
	// stores whether to allow sites to ask for permission to access a device.
	// The permissions granted to access particular devices are stored in the
	// "chooser data" website setting.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_HID_GUARD
	CEF_CONTENT_SETTING_TYPE_HID_CHOOSER_DATA
	// <summary>
	// Wake Lock API, which has two lock types: screen and system locks.
	// Currently, screen locks do not need any additional permission, and system
	// locks are always denied while the right UI is worked out.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_WAKE_LOCK_SCREEN
	CEF_CONTENT_SETTING_TYPE_WAKE_LOCK_SYSTEM
	// <summary>
	// Legacy SameSite cookie behavior. This disables SameSite=Lax-by-default,
	// SameSite=None requires Secure, and Schemeful Same-Site, forcing the
	// legacy behavior wherein 1) cookies that don't specify SameSite are treated
	// as SameSite=None, 2) SameSite=None cookies are not required to be Secure,
	// and 3) schemeful same-site is not active.
	//
	// This will also be used to revert to legacy behavior when future changes
	// in cookie handling are introduced.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_LEGACY_COOKIE_ACCESS
	// <summary>
	// Content settings which stores whether to allow sites to ask for permission
	// to save changes to an original file selected by the user through the
	// File System Access API.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_WRITE_GUARD
	// <summary>
	// Used to store whether to allow a website to exchange data with NFC
	// devices.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_NFC
	// <summary>
	// Website setting to store permissions granted to access particular
	// Bluetooth devices.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_BLUETOOTH_CHOOSER_DATA
	// <summary>
	// Full access to the system clipboard (sanitized read without user gesture,
	// and unsanitized read and write with user gesture).
	// </summary>
	CEF_CONTENT_SETTING_TYPE_CLIPBOARD_READ_WRITE
	// <summary>
	// This is special-cased in the permissions layer to always allow, and as
	// such doesn't have associated prefs data.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_CLIPBOARD_SANITIZED_WRITE
	// <summary>
	// This content setting type is for caching safe browsing real time url
	// check's verdicts of each origin.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_SAFE_BROWSING_URL_CHECK_DATA
	// <summary>
	// Used to store whether a site is allowed to request AR or VR sessions with
	// the WebXr Device API.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_VR
	CEF_CONTENT_SETTING_TYPE_AR
	// <summary>
	// Content setting which stores whether to allow site to open and read files
	// and directories selected through the File System Access API.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_READ_GUARD
	// <summary>
	// Access to first party storage in a third-party context. Exceptions are
	// scoped to the combination of requesting/top-level origin, and are managed
	// through the Storage Access API. For the time being, this content setting
	// exists in parallel to third-party cookie rules stored in COOKIES.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_STORAGE_ACCESS
	// <summary>
	// Content setting which stores whether to allow a site to control camera
	// movements. It does not give access to camera.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_CAMERA_PAN_TILT_ZOOM
	// <summary>
	// Content setting for Screen Enumeration and Screen Detail functionality.
	// Permits access to detailed multi-screen information, like size and
	// position. Permits placing fullscreen and windowed content on specific
	// screens. See also: https://w3c.github.io/window-placement
	// </summary>
	CEF_CONTENT_SETTING_TYPE_WINDOW_MANAGEMENT
	// <summary>
	// Stores whether to allow insecure websites to make local network requests.
	// See also: https://wicg.github.io/local-network-access
	// Set through enterprise policies only.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_INSECURE_LOCAL_NETWORK
	// <summary>
	// Content setting which stores whether or not a site can access low-level
	// locally installed font data using the Local Fonts Access API.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_LOCAL_FONTS
	// <summary>
	// Stores per-origin state for permission auto-revocation (for all permission
	// types).
	// </summary>
	CEF_CONTENT_SETTING_TYPE_PERMISSION_AUTOREVOCATION_DATA
	// <summary>
	// Stores per-origin state of the most recently selected directory for the
	// use by the File System Access API.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_LAST_PICKED_DIRECTORY
	// <summary>
	// Controls access to the getDisplayMedia API when {preferCurrentTab: true}
	// is specified.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_DISPLAY_CAPTURE
	// <summary>
	// Website setting to store permissions metadata granted to paths on the
	// local file system via the File System Access API.
	// |FILE_SYSTEM_WRITE_GUARD| is the corresponding "guard" setting.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_CHOOSER_DATA
	// <summary>
	// Stores a grant that allows a relying party to send a request for identity
	// information to specified identity providers, potentially through any
	// anti-tracking measures that would otherwise prevent it. This setting is
	// associated with the relying party's origin.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_SHARING
	// <summary>
	// Whether to use the v8 optimized JIT for running JavaScript on the page.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_JAVASCRIPT_JIT
	// <summary>
	// Content setting which stores user decisions to allow loading a site over
	// HTTP. Entries are added by hostname when a user bypasses the HTTPS-First
	// Mode interstitial warning when a site does not support HTTPS. Allowed
	// hosts are exact hostname matches -- subdomains of a host on the allowlist
	// must be separately allowlisted.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_HTTP_ALLOWED
	// <summary>
	// Stores metadata related to form fill, such as e.g. whether user data was
	// autofilled on a specific website.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_FORMFILL_METADATA
	// <summary>
	// Setting to indicate that there is an active federated sign-in session
	// between a specified relying party and a specified identity provider for
	// a specified account. When this is present it allows access to session
	// management capabilities between the sites. This setting is associated
	// with the relying party's origin.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_ACTIVE_SESSION
	// <summary>
	// Setting to indicate whether Chrome should automatically apply darkening to
	// web content.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_AUTO_DARK_WEB_CONTENT
	// <summary>
	// Setting to indicate whether Chrome should request the desktop view of a
	// site instead of the mobile one.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_REQUEST_DESKTOP_SITE
	// <summary>
	// Setting to indicate whether browser should allow signing into a website
	// via the browser FedCM API.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_API
	// <summary>
	// Stores notification interactions per origin for the past 90 days.
	// Interactions per origin are pre-aggregated over seven-day windows: A
	// notification interaction or display is assigned to the last Monday
	// midnight in local time.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_NOTIFICATION_INTERACTIONS
	// <summary>
	// Website setting which stores the last reduced accept language negotiated
	// for a given origin, to be used on future visits to the origin.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_REDUCED_ACCEPT_LANGUAGE
	// <summary>
	// Website setting which is used for NotificationPermissionReviewService to
	// store origin blocklist from review notification permissions feature.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_NOTIFICATION_PERMISSION_REVIEW
	// <summary>
	// Website setting to store permissions granted to access particular devices
	// in private network.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_PRIVATE_NETWORK_GUARD
	CEF_CONTENT_SETTING_TYPE_PRIVATE_NETWORK_CHOOSER_DATA
	// <summary>
	// Website setting which stores whether the browser has observed the user
	// signing into an identity-provider based on observing the IdP-SignIn-Status
	// HTTP header.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_IDENTITY_PROVIDER_SIGNIN_STATUS
	// <summary>
	// Website setting which is used for UnusedSitePermissionsService to
	// store revoked permissions of unused sites from unused site permissions
	// feature.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_REVOKED_UNUSED_SITE_PERMISSIONS
	// <summary>
	// Similar to STORAGE_ACCESS, but applicable at the page-level rather than
	// being specific to a frame.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_TOP_LEVEL_STORAGE_ACCESS
	// <summary>
	// Setting to indicate whether user has opted in to allowing auto re-authn
	// via the FedCM API.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_AUTO_REAUTHN_PERMISSION
	// <summary>
	// Website setting which stores whether the user has explicitly registered
	// a website as an identity-provider.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_IDENTITY_PROVIDER_REGISTRATION
	// <summary>
	// Content setting which is used to indicate whether anti-abuse functionality
	// should be enabled.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_ANTI_ABUSE
	// <summary>
	// Content setting used to indicate whether third-party storage partitioning
	// should be enabled.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_THIRD_PARTY_STORAGE_PARTITIONING
	// <summary>
	// Used to indicate whether HTTPS-First Mode is enabled on the hostname.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_HTTPS_ENFORCED
	// <summary>
	// Stores per origin metadata for cookie controls.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_COOKIE_CONTROLS_METADATA
	// <summary>
	// Setting for supporting 3PCD.
	// </summary>
	CEF_CONTENT_SETTING_TYPE_TPCD_SUPPORT
	CEF_CONTENT_SETTING_TYPE_NUM_TYPES
)

/ <summary> / Supported content setting types. Some types are platform-specific or only / supported with the Chrome runtime. Should be kept in sync with Chromium's / ContentSettingsType type. / </summary> / <remarks> / <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_content_setting_types_t)</see></para> / </remarks>

type TCefContentSettingValues added in v2.3.1

type TCefContentSettingValues int32
const (
	CEF_CONTENT_SETTING_VALUE_DEFAULT TCefContentSettingValues = iota
	CEF_CONTENT_SETTING_VALUE_ALLOW
	CEF_CONTENT_SETTING_VALUE_BLOCK
	CEF_CONTENT_SETTING_VALUE_ASK
	CEF_CONTENT_SETTING_VALUE_SESSION_ONLY
	CEF_CONTENT_SETTING_VALUE_DETECT_IMPORTANT_CONTENT
	CEF_CONTENT_SETTING_VALUE_NUM_VALUES
)

/ <summary> / Supported content setting values. Should be kept in sync with Chromium's / ContentSetting type. / </summary> / <remarks> / <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_content_setting_values_t)</see></para> / </remarks>

type TCefContextMenuEditStateFlags

type TCefContextMenuEditStateFlags = types.UInt32

/include/internal/cef_types.h (cef_context_menu_edit_state_flags_t)

type TCefContextMenuMediaStateFlags

type TCefContextMenuMediaStateFlags = types.UInt32

/include/internal/cef_types.h (cef_context_menu_media_state_flags_t)

type TCefContextMenuMediaType

type TCefContextMenuMediaType = types.Int32

/include/internal/cef_types.h (cef_context_menu_media_type_t)

type TCefContextMenuType

type TCefContextMenuType = types.Int32

type TCefContextMenuTypeFlags

type TCefContextMenuTypeFlags = types.UInt32

/include/internal/cef_types.h (cef_context_menu_type_flags_t)

type TCefCookiePref

type TCefCookiePref = types.Int32

Used in TChromium preferences to allow or block cookies.

const (
	CpDefault TCefCookiePref = iota
	CpAllow
	CpBlock
)

type TCefCookiePriority

type TCefCookiePriority = types.Int32

/include/internal/cef_types.h (cef_cookie_priority_t)

const (
	CEF_COOKIE_PRIORITY_LOW    TCefCookiePriority = -1
	CEF_COOKIE_PRIORITY_MEDIUM TCefCookiePriority = 0
	CEF_COOKIE_PRIORITY_HIGH   TCefCookiePriority = 1
)

type TCefCookieSameSite

type TCefCookieSameSite = types.Int32

/include/internal/cef_types.h (cef_cookie_same_site_t)

type TCefCrossAxisAlignment added in v2.2.1

type TCefCrossAxisAlignment = types.Int32

/include/internal/cef_types.h (cef_cross_axis_alignment_t)

const (
	CEF_CROSS_AXIS_ALIGNMENT_STRETCH TCefCrossAxisAlignment = iota
	CEF_CROSS_AXIS_ALIGNMENT_START
	CEF_CROSS_AXIS_ALIGNMENT_CENTER
	CEF_CROSS_AXIS_ALIGNMENT_END
)

type TCefCursorHandle

type TCefCursorHandle uintptr

TCefCursorHandle

/include/internal/cef_types_win.h (cef_cursor_handle_t)
/include/internal/cef_types_mac.h (cef_cursor_handle_t)
/include/internal/cef_types_linux.h (cef_cursor_handle_t)

type TCefCursorType

type TCefCursorType = types.Int32

/include/internal/cef_types.h (cef_cursor_type_t)

const (
	CT_POINTER TCefCursorType = iota
	CT_CROSS
	CT_HAND
	CT_IBEAM
	CT_WAIT
	CT_HELP
	CT_EASTRESIZE
	CT_NORTHRESIZE
	CT_NORTHEASTRESIZE
	CT_NORTHWESTRESIZE
	CT_SOUTHRESIZE
	CT_SOUTHEASTRESIZE
	CT_SOUTHWESTRESIZE
	CT_WESTRESIZE
	CT_NORTHSOUTHRESIZE
	CT_EASTWESTRESIZE
	CT_NORTHEASTSOUTHWESTRESIZE
	CT_NORTHWESTSOUTHEASTRESIZE
	CT_COLUMNRESIZE
	CT_ROWRESIZE
	CT_MIDDLEPANNING
	CT_EASTPANNING
	CT_NORTHPANNING
	CT_NORTHEASTPANNING
	CT_NORTHWESTPANNING
	CT_SOUTHPANNING
	CT_SOUTHEASTPANNING
	CT_SOUTHWESTPANNING
	CT_WESTPANNING
	CT_MOVE
	CT_VERTICALTEXT
	CT_CELL
	CT_CONTEXTMENU
	CT_ALIAS
	CT_PROGRESS
	CT_NODROP
	CT_COPY
	CT_NONE
	CT_NOTALLOWED
	CT_ZOOMIN
	CT_ZOOMOUT
	CT_GRAB
	CT_GRABBING
	CT_MIDDLE_PANNING_VERTICAL
	CT_MIDDLE_PANNING_HORIZONTAL
	CT_CUSTOM
	CT_DND_NONE
	CT_DND_MOVE
	CT_DND_COPY
	CT_DND_LIN
)

type TCefDockingMode added in v2.2.1

type TCefDockingMode = types.Int32

/include/internal/cef_types.h (cef_docking_mode_t)

const (
	CEF_DOCKING_MODE_TOP_LEFT TCefDockingMode = iota + 1
	CEF_DOCKING_MODE_TOP_RIGHT
	CEF_DOCKING_MODE_BOTTOM_LEFT
	CEF_DOCKING_MODE_BOTTOM_RIGHT
	CEF_DOCKING_MODE_CUSTOM
)

type TCefDomDocumentType

type TCefDomDocumentType = types.Int32

/include/internal/cef_types.h (cef_dom_document_type_t)

const (
	DOM_DOCUMENT_TYPE_UNKNOWN TCefDomDocumentType = iota
	DOM_DOCUMENT_TYPE_HTML
	DOM_DOCUMENT_TYPE_XHTML
	DOM_DOCUMENT_TYPE_PLUGIN
)

type TCefDomNodeType

type TCefDomNodeType = types.Int32

/include/internal/cef_types.h (cef_dom_node_type_t)

const (
	DOM_NODE_TYPE_UNSUPPORTED TCefDomNodeType = iota
	DOM_NODE_TYPE_ELEMENT
	DOM_NODE_TYPE_ATTRIBUTE
	DOM_NODE_TYPE_TEXT
	DOM_NODE_TYPE_CDATA_SECTION
	DOM_NODE_TYPE_PROCESSING_INSTRUCTIONS
	DOM_NODE_TYPE_COMMENT
	DOM_NODE_TYPE_DOCUMENT
	DOM_NODE_TYPE_DOCUMENT_TYPE
	DOM_NODE_TYPE_DOCUMENT_FRAGMENT
)

type TCefDownloadInterruptReason added in v2.3.1

type TCefDownloadInterruptReason int32

/ <summary> / Download interrupt reasons. Should be kept in sync with / Chromium's download::DownloadInterruptReason type. / </summary> / <remarks> / <para>See the uCEFConstants unit for all possible values.</para> / <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_download_interrupt_reason_t)</see></para> / </remarks>

type TCefDragOperation

type TCefDragOperation = TCefDragOperations

/include/internal/cef_types.h (cef_drag_operations_mask_t)

type TCefDragOperations

type TCefDragOperations = types.Cardinal

/include/internal/cef_types.h (cef_drag_operations_mask_t)

const (
	DRAG_OPERATION_NONE    TCefDragOperations = 0
	DRAG_OPERATION_COPY    TCefDragOperations = 1 << 0
	DRAG_OPERATION_LINK    TCefDragOperations = 1 << 1
	DRAG_OPERATION_GENERIC TCefDragOperations = 1 << 2
	DRAG_OPERATION_PRIVATE TCefDragOperations = 1 << 3
	DRAG_OPERATION_MOVE    TCefDragOperations = 1 << 4
	DRAG_OPERATION_DELETE  TCefDragOperations = 1 << 5
	DRAG_OPERATION_EVERY   TCefDragOperations = math.MaxUint32
)

type TCefDuplexMode

type TCefDuplexMode = types.Int32

TCefDuplexMode

/include/internal/cef_types.h (cef_duplex_mode_t)

type TCefErrorCode

type TCefErrorCode = types.Int32

/include/internal/cef_types.h (cef_errorcode_t)

type TCefEventFlags

type TCefEventFlags = types.UInt32

/include/internal/cef_types.h (cef_event_flags_t)

type TCefEventHandle

type TCefEventHandle = uintptr

TCefEventHandle

/include/internal/cef_types_linux.h (cef_event_handle_t)

type TCefFocusSource

type TCefFocusSource = types.Int32

/include/internal/cef_types.h (cef_focus_source_t)

const (
	FOCUS_SOURCE_NAVIGATION TCefFocusSource = iota
	FOCUS_SOURCE_SYSTEM
)

type TCefGestureCommand added in v2.3.1

type TCefGestureCommand int32
const (
	CEF_GESTURE_COMMAND_BACK TCefGestureCommand = iota
	CEF_GESTURE_COMMAND_FORWARD
)

/ <summary> / Specifies the gesture commands. / </summary> / <remarks> / <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_gesture_command_t)</see></para> / </remarks>

type TCefHorizontalAlignment

type TCefHorizontalAlignment = types.Int32

/include/internal/cef_types.h (cef_horizontal_alignment_t)

const (
	CEF_HORIZONTAL_ALIGNMENT_LEFT TCefHorizontalAlignment = iota
	CEF_HORIZONTAL_ALIGNMENT_CENTER
	CEF_HORIZONTAL_ALIGNMENT_RIGHT
)

type TCefJsDialogType

type TCefJsDialogType = types.Int32

/include/internal/cef_types.h (cef_jsdialog_type_t)

const (
	JSDIALOGTYPE_ALERT TCefJsDialogType = iota
	JSDIALOGTYPE_CONFIRM
	JSDIALOGTYPE_PROMPT
)

type TCefKeyEventType

type TCefKeyEventType = types.Int32

/include/internal/cef_types.h (cef_key_event_type_t)

type TCefLogItems added in v2.3.1

type TCefLogItems = types.Cardinal

/ <summary> / Log items prepended to each log line. / </summary> / <remarks> / <para>See the uCEFConstants unit for all possible values.</para> / <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_log_items_t)</see></para> / </remarks>

const (
	// Prepend the default list of items.
	LOG_ITEMS_DEFAULT TCefLogItems = 0
	// Prepend no items.
	LOG_ITEMS_NONE TCefLogItems = 1
	// Prepend the process ID.
	LOG_ITEMS_FLAG_PROCESS_ID TCefLogItems = 1 << 1
	// Prepend the thread ID.
	LOG_ITEMS_FLAG_THREAD_ID TCefLogItems = 1 << 2
	// Prepend the timestamp.
	LOG_ITEMS_FLAG_TIME_STAMP TCefLogItems = 1 << 3
	// Prepend the tickcount.
	LOG_ITEMS_FLAG_TICK_COUNT TCefLogItems = 1 << 4
)

type TCefLogSeverity

type TCefLogSeverity = types.Cardinal

/include/internal/cef_types.h (cef_log_severity_t)

type TCefMainAxisAlignment added in v2.2.1

type TCefMainAxisAlignment = types.Int32

/include/internal/cef_types.h (cef_main_axis_alignment_t)

const (
	CEF_MAIN_AXIS_ALIGNMENT_START TCefMainAxisAlignment = iota
	CEF_MAIN_AXIS_ALIGNMENT_CENTER
	CEF_MAIN_AXIS_ALIGNMENT_END
)

type TCefMediaAccessPermissionTypes

type TCefMediaAccessPermissionTypes = types.Int32

/include/internal/cef_types.h (cef_media_access_permission_types_t)

type TCefMediaRouteConnectionState

type TCefMediaRouteConnectionState = types.Int32

/include/internal/cef_types.h (cef_media_route_connection_state_t)

const (
	CEF_MRCS_UNKNOWN TCefMediaRouteConnectionState = iota
	CEF_MRCS_CONNECTING
	CEF_MRCS_CONNECTED
	CEF_MRCS_CLOSED
	CEF_MRCS_TERMINATED
)

type TCefMediaRouterCreateResult

type TCefMediaRouterCreateResult = types.Int32

/include/internal/cef_types.h (cef_media_route_create_result_t)

type TCefMenuAccelerator

type TCefMenuAccelerator = types.Int32

type TCefMenuAnchorPosition

type TCefMenuAnchorPosition = types.Int32

/include/internal/cef_types.h (cef_menu_anchor_position_t)

type TCefMenuColorType

type TCefMenuColorType = types.Int32

/include/internal/cef_types.h (cef_menu_color_type_t)

type TCefMenuItemType added in v2.2.1

type TCefMenuItemType = types.Int32

/include/internal/cef_types.h (cef_menu_item_type_t)

const (
	MENUITEMTYPE_NONE TCefMenuItemType = iota
	MENUITEMTYPE_COMMAND
	MENUITEMTYPE_CHECK
	MENUITEMTYPE_RADIO
	MENUITEMTYPE_SEPARATOR
	MENUITEMTYPE_SUBMENU
)

type TCefMouseButtonType

type TCefMouseButtonType = types.Int32

/include/internal/cef_types.h (cef_mouse_button_type_t)

type TCefNetLogCaptureMode

type TCefNetLogCaptureMode = types.Int32

Values used by the --net-log-capture-mode command line switch. Sets the granularity of events to capture in the network log. https://source.chromium.org/chromium/chromium/src/+/main:content/browser/network_service_instance_impl.cc https://source.chromium.org/chromium/chromium/src/+/main:net/log/net_log_capture_mode.h

const (
	NlcmDefault TCefNetLogCaptureMode = iota
	NlcmIncludeSensitive
	NlcmEverything
)

type TCefPaintElementType

type TCefPaintElementType = types.Int32

/include/internal/cef_types.h (cef_paint_element_type_t)

const (
	PET_VIEW TCefPaintElementType = iota
	PET_POPUP
)

type TCefPdfPrintMarginType

type TCefPdfPrintMarginType = types.Int32

/include/internal/cef_types.h (cef_pdf_print_margin_type_t)

const (
	PDF_PRINT_MARGIN_DEFAULT TCefPdfPrintMarginType = iota
	PDF_PRINT_MARGIN_NONE
	PDF_PRINT_MARGIN_CUSTOM
)

type TCefPermissionRequestResult

type TCefPermissionRequestResult = types.Int32

/include/internal/cef_types.h (cef_permission_request_result_t)

const (
	CEF_PERMISSION_RESULT_ACCEPT TCefPermissionRequestResult = iota
	CEF_PERMISSION_RESULT_DENY
	CEF_PERMISSION_RESULT_DISMISS
	CEF_PERMISSION_RESULT_IGNORE
)

type TCefPermissionRequestTypes added in v2.3.1

type TCefPermissionRequestTypes int32
const (
	CEF_PERMISSION_TYPE_NONE                       TCefPermissionRequestTypes = 0
	CEF_PERMISSION_TYPE_ACCESSIBILITY_EVENTS       TCefPermissionRequestTypes = 1 << 0
	CEF_PERMISSION_TYPE_AR_SESSION                 TCefPermissionRequestTypes = 1 << 1
	CEF_PERMISSION_TYPE_CAMERA_PAN_TILT_ZOOM       TCefPermissionRequestTypes = 1 << 2
	CEF_PERMISSION_TYPE_CAMERA_STREAM              TCefPermissionRequestTypes = 1 << 3
	CEF_PERMISSION_TYPE_CLIPBOARD                  TCefPermissionRequestTypes = 1 << 4
	CEF_PERMISSION_TYPE_TOP_LEVEL_STORAGE_ACCESS   TCefPermissionRequestTypes = 1 << 5
	CEF_PERMISSION_TYPE_DISK_QUOTA                 TCefPermissionRequestTypes = 1 << 6
	CEF_PERMISSION_TYPE_LOCAL_FONTS                TCefPermissionRequestTypes = 1 << 7
	CEF_PERMISSION_TYPE_GEOLOCATION                TCefPermissionRequestTypes = 1 << 8
	CEF_PERMISSION_TYPE_IDLE_DETECTION             TCefPermissionRequestTypes = 1 << 9
	CEF_PERMISSION_TYPE_MIC_STREAM                 TCefPermissionRequestTypes = 1 << 10
	CEF_PERMISSION_TYPE_MIDI                       TCefPermissionRequestTypes = 1 << 11
	CEF_PERMISSION_TYPE_MIDI_SYSEX                 TCefPermissionRequestTypes = 1 << 12
	CEF_PERMISSION_TYPE_MULTIPLE_DOWNLOADS         TCefPermissionRequestTypes = 1 << 13
	CEF_PERMISSION_TYPE_NOTIFICATIONS              TCefPermissionRequestTypes = 1 << 14
	CEF_PERMISSION_TYPE_PROTECTED_MEDIA_IDENTIFIER TCefPermissionRequestTypes = 1 << 15
	CEF_PERMISSION_TYPE_REGISTER_PROTOCOL_HANDLER  TCefPermissionRequestTypes = 1 << 16
	CEF_PERMISSION_TYPE_STORAGE_ACCESS             TCefPermissionRequestTypes = 1 << 17
	CEF_PERMISSION_TYPE_VR_SESSION                 TCefPermissionRequestTypes = 1 << 18
	CEF_PERMISSION_TYPE_WINDOW_MANAGEMENT          TCefPermissionRequestTypes = 1 << 19
)

/ <summary> / Permission types used with OnShowPermissionPrompt. Some types are / platform-specific or only supported with the Chrome runtime. Should be kept / in sync with Chromium's permissions::RequestType type. / </summary> / <remarks> / <para>TCefPermissionRequestTypes values.</para> / <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_permission_request_types_t)</see></para> / </remarks>

type TCefPointerType

type TCefPointerType = types.Int32

/include/internal/cef_types.h (cef_pointer_type_t)

type TCefPostDataElementType

type TCefPostDataElementType = types.Int32

/include/internal/cef_types.h (cef_postdataelement_type_t)

const (
	PDE_TYPE_EMPTY TCefPostDataElementType = iota
	PDE_TYPE_BYTES
	PDE_TYPE_FILE
)

type TCefPreferencesType

type TCefPreferencesType = types.Int32

/include/internal/cef_types.h (cef_preferences_type_t)

const (
	CEF_PREFERENCES_TYPE_GLOBAL TCefPreferencesType = iota
	CEF_PREFERENCES_TYPE_REQUEST_CONTEXT
)

type TCefProcessType

type TCefProcessType types.Int32
const (
	PtBrowser TCefProcessType = iota
	PtRenderer
	PtZygote
	PtGPU
	PtUtility
	PtBroker
	PtCrashpad
	PtOther
)

func (*TCefProcessType) IsPtBroker

func (m *TCefProcessType) IsPtBroker() bool

func (*TCefProcessType) IsPtBrowser

func (m *TCefProcessType) IsPtBrowser() bool

func (*TCefProcessType) IsPtCrashpad

func (m *TCefProcessType) IsPtCrashpad() bool

func (*TCefProcessType) IsPtGPU

func (m *TCefProcessType) IsPtGPU() bool

func (*TCefProcessType) IsPtOther

func (m *TCefProcessType) IsPtOther() bool

func (*TCefProcessType) IsPtRenderer

func (m *TCefProcessType) IsPtRenderer() bool

func (*TCefProcessType) IsPtUtility

func (m *TCefProcessType) IsPtUtility() bool

func (*TCefProcessType) IsPtZygote

func (m *TCefProcessType) IsPtZygote() bool

type TCefProcessTypeValue

type TCefProcessTypeValue types.String
const (
	PtvBrowser  TCefProcessTypeValue = "browser"
	PtvRenderer TCefProcessTypeValue = "renderer"
	PtvZygote   TCefProcessTypeValue = "zygote"
	PtvGPU      TCefProcessTypeValue = "GPU"
	PtvUtility  TCefProcessTypeValue = "utility"
	PtvBroker   TCefProcessTypeValue = "broker"
	PtvCrashpad TCefProcessTypeValue = "crashpad"
	PtvOther    TCefProcessTypeValue = "other"
)

func (*TCefProcessTypeValue) IsBroker

func (m *TCefProcessTypeValue) IsBroker() bool

func (*TCefProcessTypeValue) IsBrowser

func (m *TCefProcessTypeValue) IsBrowser() bool

func (*TCefProcessTypeValue) IsCrashpad

func (m *TCefProcessTypeValue) IsCrashpad() bool

func (*TCefProcessTypeValue) IsGPU

func (m *TCefProcessTypeValue) IsGPU() bool

func (*TCefProcessTypeValue) IsOther

func (m *TCefProcessTypeValue) IsOther() bool

func (*TCefProcessTypeValue) IsRenderer

func (m *TCefProcessTypeValue) IsRenderer() bool

func (*TCefProcessTypeValue) IsUtility

func (m *TCefProcessTypeValue) IsUtility() bool

func (*TCefProcessTypeValue) IsZygote

func (m *TCefProcessTypeValue) IsZygote() bool

type TCefProxyScheme

type TCefProxyScheme = types.Int32

type TCefProxyType

type TCefProxyType = types.Int32

type TCefQuickMenuEditStateFlags

type TCefQuickMenuEditStateFlags = types.Int32

/include/internal/cef_types.h (cef_quick_menu_edit_state_flags_t)

type TCefReferrerPolicy

type TCefReferrerPolicy = types.Int32

/include/internal/cef_types.h (cef_referrer_policy_t)

type TCefResourceType

type TCefResourceType = types.Int32

/include/internal/cef_types.h (cef_resource_type_t)

type TCefResponseFilterStatus

type TCefResponseFilterStatus = types.Int32

TCefResponseFilterStatus

/include/internal/cef_types.h (cef_response_filter_status_t)
const (
	RESPONSE_FILTER_NEED_MORE_DATA TCefResponseFilterStatus = iota
	RESPONSE_FILTER_DONE
	RESPONSE_FILTER_ERROR
)

type TCefReturnValue

type TCefReturnValue int32

/include/internal/cef_types.h (cef_return_value_t)

func (*TCefReturnValue) Cancel

func (m *TCefReturnValue) Cancel()

func (*TCefReturnValue) Continue

func (m *TCefReturnValue) Continue()

func (*TCefReturnValue) ContinueAsync

func (m *TCefReturnValue) ContinueAsync()

type TCefScaleFactor

type TCefScaleFactor = types.Int32
const (
	SCALE_FACTOR_NONE TCefScaleFactor = iota
	SCALE_FACTOR_100P
	SCALE_FACTOR_125P
	SCALE_FACTOR_133P
	SCALE_FACTOR_140P
	SCALE_FACTOR_150P
	SCALE_FACTOR_180P
	SCALE_FACTOR_200P
	SCALE_FACTOR_250P
	SCALE_FACTOR_300P
)

/include/internal/cef_types.h (cef_scale_factor_t)

type TCefShowState

type TCefShowState = types.Int32

/include/internal/cef_types.h (cef_show_state_t)4

type TCefState

type TCefState = types.Int32

/ <summary> / Represents the state of a setting. / </summary> / <remarks> / <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_state_t)</see></para> / </remarks>

type TCefTerminationStatus

type TCefTerminationStatus = types.Int32

TCefTerminationStatus

进程结束的状态
/include/internal/cef_types.h (cef_termination_status_t)

type TCefTextFieldCommands added in v2.2.1

type TCefTextFieldCommands = types.Int32

/include/internal/cef_types.h (cef_text_field_commands_t)

const (
	CEF_TFC_CUT TCefTextFieldCommands = iota + 1
	CEF_TFC_COPY
	CEF_TFC_PASTE
	CEF_TFC_UNDO
	CEF_TFC_DELETE
	CEF_TFC_SELECT_ALL
)

type TCefTextInputMode

type TCefTextInputMode = types.Int32

/include/internal/cef_types.h (cef_text_input_mode_t)

const (
	CEF_TEXT_INPUT_MODE_DEFAULT TCefTextInputMode = iota
	CEF_TEXT_INPUT_MODE_NONE
	CEF_TEXT_INPUT_MODE_TEXT
	CEF_TEXT_INPUT_MODE_TEL
	CEF_TEXT_INPUT_MODE_URL
	CEF_TEXT_INPUT_MODE_EMAIL
	CEF_TEXT_INPUT_MODE_NUMERIC
	CEF_TEXT_INPUT_MODE_DECIMAL
	CEF_TEXT_INPUT_MODE_SEARCH // CEF_TEXT_INPUT_MODE_MAX = CEF_TEXT_INPUT_MODE_SEARCH
)

type TCefTextStyle added in v2.2.1

type TCefTextStyle = types.Int32

/include/internal/cef_types.h (cef_text_style_t)

const (
	CEF_TEXT_STYLE_BOLD TCefTextStyle = iota
	CEF_TEXT_STYLE_ITALIC
	CEF_TEXT_STYLE_STRIKE
	CEF_TEXT_STYLE_DIAGONAL_STRIKE
	CEF_TEXT_STYLE_UNDERLINE
)

type TCefThreadId added in v2.4.2

type TCefThreadId = int32

TCefThreadId

Existing thread IDs.
<a href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_thread_id_t))</a>
const (
	// The main thread in the browser. This will be the same as the main
	// application thread if CefInitialize() is called with a
	// TCefSettings.multi_threaded_message_loop value of false. Do not perform
	// blocking tasks on this thread. All tasks posted after
	// ICefBrowserProcessHandler.OnContextInitialized() and before CefShutdown()
	// are guaranteed to run. This thread will outlive all other CEF threads.
	TID_UI TCefThreadId = iota
	// Used for blocking tasks like file system access where the user won't
	// notice if the task takes an arbitrarily long time to complete. All tasks
	// posted after ICefBrowserProcessHandler.OnContextInitialized() and before
	// CefShutdown() are guaranteed to run.
	TID_FILE_BACKGROUND
	// Used for blocking tasks like file system access that affect UI or
	// responsiveness of future user interactions. Do not use if an immediate
	// response to a user interaction is expected. All tasks posted after
	// ICefBrowserProcessHandler.OnContextInitialized() and before CefShutdown()
	// are guaranteed to run.
	// Examples:
	// - Updating the UI to reflect progress on a long task.
	// - Loading data that might be shown in the UI after a future user
	//   interaction.
	TID_FILE_USER_VISIBLE
	// Used for blocking tasks like file system access that affect UI
	// immediately after a user interaction. All tasks posted after
	// ICefBrowserProcessHandler.OnContextInitialized() and before CefShutdown()
	// are guaranteed to run.
	// Example: Generating data shown in the UI immediately after a click.
	TID_FILE_USER_BLOCKING
	// Used to launch and terminate browser processes.
	TID_PROCESS_LAUNCHER
	// Used to process IPC and network messages. Do not perform blocking tasks on
	// this thread. All tasks posted after
	// ICefBrowserProcessHandler.OnContextInitialized() and before CefShutdown()
	// are guaranteed to run.
	TID_IO
	// The main thread in the renderer. Used for all WebKit and V8 interaction.
	// Tasks may be posted to this thread after
	// ICefRenderProcessHandler.OnWebKitInitialized but are not guaranteed to
	// run before sub-process termination (sub-processes may be killed at any
	// time without warning).
	TID_RENDERER
)

type TCefTouchEeventType

type TCefTouchEeventType = types.Int32

/include/internal/cef_types.h (cef_touch_event_type_t)

type TCefTransitionType

type TCefTransitionType = types.Int

/include/internal/cef_types.h (cef_transition_type_t)

type TCefUIColorMode added in v2.3.1

type TCefUIColorMode int32
const (
	// <summary>
	// System default.
	// </summary>
	UICMSystemDefault TCefUIColorMode = iota
	// <summary>
	// Forces light color mode in UI for platforms that support it.
	// </summary>
	UICMForceLight
	// <summary>
	// Forces dark color mode in UI for platforms that support it.
	// </summary>
	UICMForceDark
)

/ <summary> / Color mode in UI for platforms that support it. / </summary>

type TCefUrlRequestFlags

type TCefUrlRequestFlags = types.Int

/include/internal/cef_types.h (cef_urlrequest_flags_t)

type TCefUrlRequestStatus

type TCefUrlRequestStatus = types.Int32

/include/internal/cef_types.h (cef_urlrequest_status_t)

type TCefV8AccessControls

type TCefV8AccessControls = types.Cardinal

/include/internal/cef_types.h (cef_v8_accesscontrol_t)

const (
	V8_ACCESS_CONTROL_DEFAULT               TCefV8AccessControls = 0
	V8_ACCESS_CONTROL_ALL_CAN_READ          TCefV8AccessControls = 1 << 0
	V8_ACCESS_CONTROL_ALL_CAN_WRITE         TCefV8AccessControls = 1 << 1
	V8_ACCESS_CONTROL_PROHIBITS_OVERWRITING TCefV8AccessControls = 1 << 2
)

type TCefV8PropertyAttributes

type TCefV8PropertyAttributes = types.Cardinal

/include/internal/cef_types.h (cef_v8_propertyattribute_t)

const (
	V8_PROPERTY_ATTRIBUTE_NONE       TCefV8PropertyAttributes = 0
	V8_PROPERTY_ATTRIBUTE_READONLY   TCefV8PropertyAttributes = 1 << 0
	V8_PROPERTY_ATTRIBUTE_DONTENUM   TCefV8PropertyAttributes = 1 << 1
	V8_PROPERTY_ATTRIBUTE_DONTDELETE TCefV8PropertyAttributes = 1 << 2
)

type TCefValueType

type TCefValueType = types.Int32

/include/internal/cef_types.h (cef_value_type_t)

const (
	VTYPE_INVALID TCefValueType = iota
	VTYPE_NULL
	VTYPE_BOOL
	VTYPE_INT
	VTYPE_DOUBLE
	VTYPE_STRING
	VTYPE_BINARY
	VTYPE_DICTIONARY // Object
	VTYPE_LIST       // JSONArray
)

type TCefWebRTCHandlingPolicy

type TCefWebRTCHandlingPolicy = types.Int32
const (
	HpDefault TCefWebRTCHandlingPolicy = iota
	HpDefaultPublicAndPrivateInterfaces
	HpDefaultPublicInterfaceOnly
	HpDisableNonProxiedUDP
)

type TCefWindowHandle

type TCefWindowHandle = types.UIntptr

/include/internal/cef_types_win.h (cef_window_handle_t) /include/internal/cef_types_mac.h (cef_window_handle_t) /include/internal/cef_types_linux.h (cef_window_handle_t)

type TCefWindowHandleType

type TCefWindowHandleType = types.Int8

type TCefWindowOpenDisposition

type TCefWindowOpenDisposition = types.Int32

/include/internal/cef_types.h (cef_window_open_disposition_t)

type TDateTime

type TDateTime = types.Float64

type TThreadPriority added in v2.1.0

type TThreadPriority = types.Int32
const (
	TpIdle TThreadPriority = iota
	TpLowest
	TpLower
	TpNormal
	TpHigher
	TpHighest
	TpTimeCritical
)

type TrayType

type TrayType int8
const (
	TRAY_SYS TrayType = iota
	TRAY_LCL
)

type UITool added in v2.2.3

type UITool int8

UI tool classes used

const (
	UitInvalid UITool = iota - 1 // invalid
	UitWin32                     // windows
	UitGtk2                      // linux
	UitGtk3                      // linux
	UitCocoa                     // macos
)

type V8ValueType

type V8ValueType = types.Int32

V8ValueType ICefV8Value ValueType

const (
	V8vtInvalid V8ValueType = iota
	V8vtUndefined
	V8vtNull
	V8vtBool
	V8vtInt
	V8vtUInt
	V8vtDouble
	V8vtDate
	V8vtString
	V8vtObject
	V8vtArray
	V8vtArrayBuffer
	V8vtFunction
	V8vtPromise
)

type WINDOW_TYPE

type WINDOW_TYPE = types.Int8

WINDOW_TYPE 窗口类型

type ZOOM

type ZOOM = types.Int32

缩放、放大

type ZoomCommand added in v2.3.4

type ZoomCommand = uintptr
const (
	ZcInc   ZoomCommand = iota + 1 // IncZoomCommand
	ZcDec                          // DecZoomCommand
	ZcReset                        // ResetZoomCommand
)

type ZoomStep

type ZoomStep = byte
const (
	ZOOM_STEP_25  ZoomStep = 0
	ZOOM_STEP_33  ZoomStep = 1
	ZOOM_STEP_50  ZoomStep = 2
	ZOOM_STEP_67  ZoomStep = 3
	ZOOM_STEP_75  ZoomStep = 4
	ZOOM_STEP_90  ZoomStep = 5
	ZOOM_STEP_100 ZoomStep = 6
	ZOOM_STEP_110 ZoomStep = 7
	ZOOM_STEP_125 ZoomStep = 8
	ZOOM_STEP_150 ZoomStep = 9
	ZOOM_STEP_175 ZoomStep = 10
	ZOOM_STEP_200 ZoomStep = 11
	ZOOM_STEP_250 ZoomStep = 12
	ZOOM_STEP_300 ZoomStep = 13
	ZOOM_STEP_400 ZoomStep = 14
	ZOOM_STEP_500 ZoomStep = 15
	ZOOM_STEP_UNK ZoomStep = 16
	ZOOM_STEP_MIN ZoomStep = ZOOM_STEP_25
	ZOOM_STEP_MAX ZoomStep = ZOOM_STEP_500
	ZOOM_STEP_DEF ZoomStep = ZOOM_STEP_100
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL