Documentation
¶
Overview ¶
Package wv Webview2 Implementation module Includes all Webview2 API implementations
Index ¶
- func DestroyGlobalWebView2Loader()
- func GetInstance(value interface{}) unsafePointer
- func GetObjectUintptr(object interface{}) uintptr
- func Init(libs emfs.IEmbedFS, resources emfs.IEmbedFS)
- func SetGlobalWebView2Loader(wvLoader IWVLoader)
- func SetObjectInstance(object interface{}, instance unsafePointer)
- type COREWEBVIEW2_BOUNDS_MODE
- type COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND
- type COREWEBVIEW2_BROWSING_DATA_KINDS
- type COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT
- type COREWEBVIEW2_CLIENT_CERTIFICATE_KIND
- type COREWEBVIEW2_COLOR
- type COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND
- type COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND
- type COREWEBVIEW2_COOKIE_SAME_SITE_KIND
- type COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT
- type COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON
- type COREWEBVIEW2_DOWNLOAD_STATE
- type COREWEBVIEW2_FAVICON_IMAGE_FORMAT
- type COREWEBVIEW2_FRAME_KIND
- type COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND
- type COREWEBVIEW2_KEY_EVENT_KIND
- type COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL
- type COREWEBVIEW2_MOUSE_EVENT_KIND
- type COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS
- type COREWEBVIEW2_MOVE_FOCUS_REASON
- type COREWEBVIEW2_NAVIGATION_KIND
- type COREWEBVIEW2_PDF_TOOLBAR_ITEMS
- type COREWEBVIEW2_PERMISSION_KIND
- type COREWEBVIEW2_PERMISSION_STATE
- type COREWEBVIEW2_POINTER_EVENT_KIND
- type COREWEBVIEW2_PREFERRED_COLOR_SCHEME
- type COREWEBVIEW2_PRINT_COLLATION
- type COREWEBVIEW2_PRINT_COLOR_MODE
- type COREWEBVIEW2_PRINT_DIALOG_KIND
- type COREWEBVIEW2_PRINT_DUPLEX
- type COREWEBVIEW2_PRINT_MEDIA_SIZE
- type COREWEBVIEW2_PRINT_ORIENTATION
- type COREWEBVIEW2_PRINT_STATUS
- type COREWEBVIEW2_PROCESS_FAILED_KIND
- type COREWEBVIEW2_PROCESS_FAILED_REASON
- type COREWEBVIEW2_PROCESS_KIND
- type COREWEBVIEW2_SCRIPT_DIALOG_KIND
- type COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION
- type COREWEBVIEW2_SHARED_BUFFER_ACCESS
- type COREWEBVIEW2_TRACKING_PREVENTION_LEVEL
- type COREWEBVIEW2_WEB_ERROR_STATUS
- type COREWEBVIEW2_WEB_RESOURCE_CONTEXT
- type DataObject
- type IComponent
- type ICoreWebView2
- type ICoreWebView2AcceleratorKeyPressedEventArgs
- type ICoreWebView2BasicAuthenticationRequestedEventArgs
- type ICoreWebView2BasicAuthenticationResponse
- type ICoreWebView2BrowserExtension
- type ICoreWebView2BrowserExtensionEnableCompletedHandler
- type ICoreWebView2BrowserExtensionList
- type ICoreWebView2BrowserExtensionRemoveCompletedHandler
- type ICoreWebView2BrowserProcessExitedEventArgs
- type ICoreWebView2Certificate
- type ICoreWebView2ClearBrowsingDataCompletedHandler
- type ICoreWebView2ClientCertificate
- type ICoreWebView2ClientCertificateCollection
- type ICoreWebView2ClientCertificateRequestedEventArgs
- type ICoreWebView2CompositionController
- type ICoreWebView2ContentLoadingEventArgs
- type ICoreWebView2ContextMenuItem
- type ICoreWebView2ContextMenuItemCollection
- type ICoreWebView2ContextMenuRequestedEventArgs
- type ICoreWebView2ContextMenuTarget
- type ICoreWebView2Controller
- type ICoreWebView2ControllerOptions
- type ICoreWebView2Cookie
- type ICoreWebView2CookieList
- type ICoreWebView2CookieManager
- type ICoreWebView2CustomItemSelectedEventHandler
- type ICoreWebView2DOMContentLoadedEventArgs
- type ICoreWebView2Deferral
- type ICoreWebView2DevToolsProtocolEventReceivedEventArgs
- type ICoreWebView2DownloadOperation
- type ICoreWebView2DownloadStartingEventArgs
- type ICoreWebView2Environment
- type ICoreWebView2ExecuteScriptResult
- type ICoreWebView2Frame
- type ICoreWebView2FrameCreatedEventArgs
- type ICoreWebView2FrameInfo
- type ICoreWebView2FrameInfoCollection
- type ICoreWebView2FrameInfoCollectionIterator
- type ICoreWebView2GetCookiesCompletedHandler
- type ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler
- type ICoreWebView2HttpHeadersCollectionIterator
- type ICoreWebView2HttpRequestHeaders
- type ICoreWebView2HttpResponseHeaders
- type ICoreWebView2LaunchingExternalUriSchemeEventArgs
- type ICoreWebView2MoveFocusRequestedEventArgs
- type ICoreWebView2NavigationCompletedEventArgs
- type ICoreWebView2NavigationStartingEventArgs
- type ICoreWebView2NewWindowRequestedEventArgs
- type ICoreWebView2ObjectCollectionView
- type ICoreWebView2PermissionRequestedEventArgs
- type ICoreWebView2PermissionSetting
- type ICoreWebView2PermissionSettingCollectionView
- type ICoreWebView2PointerInfo
- type ICoreWebView2PrintCompletedHandler
- type ICoreWebView2PrintSettings
- type ICoreWebView2PrintToPdfCompletedHandler
- type ICoreWebView2PrintToPdfStreamCompletedHandler
- type ICoreWebView2ProcessExtendedInfo
- type ICoreWebView2ProcessExtendedInfoCollection
- type ICoreWebView2ProcessFailedEventArgs
- type ICoreWebView2ProcessInfo
- type ICoreWebView2ProcessInfoCollection
- type ICoreWebView2Profile
- type ICoreWebView2ProfileAddBrowserExtensionCompletedHandler
- type ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler
- type ICoreWebView2ScriptDialogOpeningEventArgs
- type ICoreWebView2ScriptException
- type ICoreWebView2ServerCertificateErrorDetectedEventArgs
- func AsCoreWebView2ServerCertificateErrorDetectedEventArgs(obj interface{}) ICoreWebView2ServerCertificateErrorDetectedEventArgs
- func NewCoreWebView2ServerCertificateErrorDetectedEventArgs(aArgs ICoreWebView2ServerCertificateErrorDetectedEventArgs) ICoreWebView2ServerCertificateErrorDetectedEventArgs
- type ICoreWebView2SetPermissionStateCompletedHandler
- type ICoreWebView2Settings
- type ICoreWebView2SharedBuffer
- type ICoreWebView2SourceChangedEventArgs
- type ICoreWebView2StringCollection
- type ICoreWebView2TrySuspendCompletedHandler
- type ICoreWebView2WebMessageReceivedEventArgs
- type ICoreWebView2WebResourceRequestRef
- func AsCoreWebView2WebResourceRequest(obj uintptr) ICoreWebView2WebResourceRequestRef
- func AsCoreWebView2WebResourceRequestRef(obj interface{}) ICoreWebView2WebResourceRequestRef
- func NewCoreWebView2WebResourceRequestRef(aBaseIntf ICoreWebView2WebResourceRequestRef) ICoreWebView2WebResourceRequestRef
- type ICoreWebView2WebResourceRequestedEventArgs
- type ICoreWebView2WebResourceResponse
- type ICoreWebView2WebResourceResponseReceivedEventArgs
- type ICoreWebView2WebResourceResponseView
- type ICoreWebView2WebResourceResponseViewGetContentCompletedHandler
- func AsCoreWebView2WebResourceResponseViewGetContentCompletedHandler(obj interface{}) ICoreWebView2WebResourceResponseViewGetContentCompletedHandler
- func NewCoreWebView2WebResourceResponseViewGetContentCompletedHandler(aEvents IWVBrowserEvents, aResourceID int32) ICoreWebView2WebResourceResponseViewGetContentCompletedHandler
- type ICoreWebView2WindowFeatures
- type IDataObject
- type IObject
- type ISequentialStream
- type IStream
- type IUnknown
- type IWVBrowser
- type IWVBrowserBase
- type IWVBrowserEvents
- type IWVLoader
- type IWVProxySettings
- type IWVWinControl
- type IWVWindowParent
- type IWinControl
- type OleVariant
- type SequentialStream
- type Stream
- type TComponent
- type TCoreWebView2
- func (m *TCoreWebView2) AddAllBrowserEvents(aBrowserComponent IComponent) bool
- func (m *TCoreWebView2) AddHostObjectToScript(name string, object OleVariant) bool
- func (m *TCoreWebView2) AddScriptToExecuteOnDocumentCreated(JavaScript string, aBrowserComponent IComponent) bool
- func (m *TCoreWebView2) AddWebResourceRequestedFilter(URI string, ResourceContext TWVWebResourceContext) bool
- func (m *TCoreWebView2) BaseIntf() ICoreWebView2
- func (m *TCoreWebView2) BrowserProcessID() DWORD
- func (m *TCoreWebView2) CallDevToolsProtocolMethod(aMethodName, aParametersAsJson string, aExecutionID int32, ...) bool
- func (m *TCoreWebView2) CallDevToolsProtocolMethodForSession(aSessionId, aMethodName, aParametersAsJson string, aExecutionID int32, ...) bool
- func (m *TCoreWebView2) CanGoBack() bool
- func (m *TCoreWebView2) CanGoForward() bool
- func (m *TCoreWebView2) CapturePreview(aImageFormat TWVCapturePreviewImageFormat, aImageStream IStream, ...) bool
- func (m *TCoreWebView2) ClearServerCertificateErrorActions(aBrowserComponent IComponent) bool
- func (m *TCoreWebView2) ClearVirtualHostNameToFolderMapping(aHostName string) bool
- func (m *TCoreWebView2) CloseDefaultDownloadDialog() bool
- func (m *TCoreWebView2) ContainsFullScreenElement() bool
- func (m *TCoreWebView2) CookieManager() ICoreWebView2CookieManager
- func (m *TCoreWebView2) DefaultDownloadDialogCornerAlignment() TWVDefaultDownloadDialogCornerAlignment
- func (m *TCoreWebView2) DefaultDownloadDialogMargin() (resultPoint TPoint)
- func (m *TCoreWebView2) DocumentTitle() string
- func (m *TCoreWebView2) Environment() ICoreWebView2Environment
- func (m *TCoreWebView2) ExecuteScript(JavaScript string, aExecutionID int32, aBrowserComponent IComponent) bool
- func (m *TCoreWebView2) ExecuteScriptWithResult(JavaScript string, aExecutionID int32, aBrowserComponent IComponent) bool
- func (m *TCoreWebView2) FaviconURI() string
- func (m *TCoreWebView2) FrameId() uint32
- func (m *TCoreWebView2) GetFavicon(aFormat TWVFaviconImageFormat, aBrowserComponent IComponent) bool
- func (m *TCoreWebView2) GoBack() bool
- func (m *TCoreWebView2) GoForward() bool
- func (m *TCoreWebView2) Initialized() bool
- func (m *TCoreWebView2) IsDefaultDownloadDialogOpen() bool
- func (m *TCoreWebView2) IsDocumentPlayingAudio() bool
- func (m *TCoreWebView2) IsMuted() bool
- func (m *TCoreWebView2) IsSuspended() bool
- func (m *TCoreWebView2) MemoryUsageTargetLevel() TWVMemoryUsageTargetLevel
- func (m *TCoreWebView2) Navigate(aURI string) bool
- func (m *TCoreWebView2) NavigateToString(aHTMLContent string) bool
- func (m *TCoreWebView2) NavigateWithWebResourceRequest(aRequest ICoreWebView2WebResourceRequestRef) bool
- func (m *TCoreWebView2) OpenDefaultDownloadDialog() bool
- func (m *TCoreWebView2) OpenDevToolsWindow() bool
- func (m *TCoreWebView2) OpenTaskManagerWindow() bool
- func (m *TCoreWebView2) PostSharedBufferToScript(aSharedBuffer ICoreWebView2SharedBuffer, aAccess TWVSharedBufferAccess, ...) bool
- func (m *TCoreWebView2) PostWebMessageAsJson(aWebMessageAsJson string) bool
- func (m *TCoreWebView2) PostWebMessageAsString(aWebMessageAsString string) bool
- func (m *TCoreWebView2) Print(aPrintSettings ICoreWebView2PrintSettings, ...) bool
- func (m *TCoreWebView2) PrintToPdf(aResultFilePath string, aPrintSettings ICoreWebView2PrintSettings, ...) bool
- func (m *TCoreWebView2) PrintToPdfStream(aPrintSettings ICoreWebView2PrintSettings, ...) bool
- func (m *TCoreWebView2) Profile() ICoreWebView2Profile
- func (m *TCoreWebView2) Reload() bool
- func (m *TCoreWebView2) RemoveHostObjectFromScript(aName string) bool
- func (m *TCoreWebView2) RemoveScriptToExecuteOnDocumentCreated(aID string) bool
- func (m *TCoreWebView2) RemoveWebResourceRequestedFilter(URI string, ResourceContext TWVWebResourceContext) bool
- func (m *TCoreWebView2) Resume() bool
- func (m *TCoreWebView2) SetDefaultDownloadDialogCornerAlignment(AValue TWVDefaultDownloadDialogCornerAlignment)
- func (m *TCoreWebView2) SetDefaultDownloadDialogMargin(AValue *TPoint)
- func (m *TCoreWebView2) SetIsMuted(AValue bool)
- func (m *TCoreWebView2) SetMemoryUsageTargetLevel(AValue TWVMemoryUsageTargetLevel)
- func (m *TCoreWebView2) SetVirtualHostNameToFolderMapping(aHostName, aFolderPath string, aAccessKind TWVHostResourceAcccessKind) bool
- func (m *TCoreWebView2) Settings() ICoreWebView2Settings
- func (m *TCoreWebView2) ShowPrintUI(aPrintDialogKind TWVPrintDialogKind) bool
- func (m *TCoreWebView2) Source() string
- func (m *TCoreWebView2) StatusBarText() string
- func (m *TCoreWebView2) Stop() bool
- func (m *TCoreWebView2) SubscribeToDevToolsProtocolEvent(aEventName string, aEventID int32, aBrowserComponent IComponent) bool
- func (m *TCoreWebView2) TrySuspend(aHandler ICoreWebView2TrySuspendCompletedHandler) bool
- type TCoreWebView2AcceleratorKeyPressedEventArgs
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) BaseIntf() ICoreWebView2AcceleratorKeyPressedEventArgs
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) Handled() bool
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) Initialized() bool
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) IsBrowserAcceleratorKeyEnabled() bool
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) IsExtendedKey() bool
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) IsKeyReleased() bool
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) IsMenuKeyDown() bool
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) KeyEventKind() TWVKeyEventKind
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) KeyEventLParam() int32
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) RepeatCount() uint32
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) ScanCode() uint32
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) SetHandled(AValue bool)
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) SetIsBrowserAcceleratorKeyEnabled(AValue bool)
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) VirtualKey() uint32
- func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) WasKeyDown() bool
- type TCoreWebView2BasicAuthenticationRequestedEventArgs
- func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) BaseIntf() ICoreWebView2BasicAuthenticationRequestedEventArgs
- func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) Cancel() bool
- func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) Challenge() string
- func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) Deferral() ICoreWebView2Deferral
- func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) Initialized() bool
- func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) Response() ICoreWebView2BasicAuthenticationResponse
- func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) SetCancel(AValue bool)
- func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) Uri() string
- type TCoreWebView2BasicAuthenticationResponse
- func (m *TCoreWebView2BasicAuthenticationResponse) BaseIntf() ICoreWebView2BasicAuthenticationResponse
- func (m *TCoreWebView2BasicAuthenticationResponse) Initialized() bool
- func (m *TCoreWebView2BasicAuthenticationResponse) Password() string
- func (m *TCoreWebView2BasicAuthenticationResponse) SetBaseIntf(AValue ICoreWebView2BasicAuthenticationResponse)
- func (m *TCoreWebView2BasicAuthenticationResponse) SetPassword(AValue string)
- func (m *TCoreWebView2BasicAuthenticationResponse) SetUserName(AValue string)
- func (m *TCoreWebView2BasicAuthenticationResponse) UserName() string
- type TCoreWebView2BrowserExtension
- func (m *TCoreWebView2BrowserExtension) BaseIntf() ICoreWebView2BrowserExtension
- func (m *TCoreWebView2BrowserExtension) Enable(aIsEnabled bool, aBrowserComponent IComponent) bool
- func (m *TCoreWebView2BrowserExtension) ID() string
- func (m *TCoreWebView2BrowserExtension) Initialized() bool
- func (m *TCoreWebView2BrowserExtension) IsEnabled() bool
- func (m *TCoreWebView2BrowserExtension) Name() string
- func (m *TCoreWebView2BrowserExtension) Remove(aBrowserComponent IComponent) bool
- func (m *TCoreWebView2BrowserExtension) SetBaseIntf(AValue ICoreWebView2BrowserExtension)
- type TCoreWebView2BrowserExtensionEnableCompletedHandler
- type TCoreWebView2BrowserExtensionList
- func (m *TCoreWebView2BrowserExtensionList) BaseIntf() ICoreWebView2BrowserExtensionList
- func (m *TCoreWebView2BrowserExtensionList) Count() uint32
- func (m *TCoreWebView2BrowserExtensionList) Initialized() bool
- func (m *TCoreWebView2BrowserExtensionList) Items(idx uint32) ICoreWebView2BrowserExtension
- type TCoreWebView2BrowserExtensionRemoveCompletedHandler
- type TCoreWebView2BrowserProcessExitedEventArgs
- func (m *TCoreWebView2BrowserProcessExitedEventArgs) BaseIntf() ICoreWebView2BrowserProcessExitedEventArgs
- func (m *TCoreWebView2BrowserProcessExitedEventArgs) BrowserProcessExitKind() TWVBrowserProcessExitKind
- func (m *TCoreWebView2BrowserProcessExitedEventArgs) BrowserProcessId() uint32
- func (m *TCoreWebView2BrowserProcessExitedEventArgs) Initialized() bool
- type TCoreWebView2Certificate
- func (m *TCoreWebView2Certificate) BaseIntf() ICoreWebView2Certificate
- func (m *TCoreWebView2Certificate) DerEncodedSerialNumber() string
- func (m *TCoreWebView2Certificate) DisplayName() string
- func (m *TCoreWebView2Certificate) Initialized() bool
- func (m *TCoreWebView2Certificate) Issuer() string
- func (m *TCoreWebView2Certificate) PemEncodedIssuerCertificateChain() ICoreWebView2StringCollection
- func (m *TCoreWebView2Certificate) SetBaseIntf(AValue ICoreWebView2Certificate)
- func (m *TCoreWebView2Certificate) Subject() string
- func (m *TCoreWebView2Certificate) ToPemEncoding() string
- func (m *TCoreWebView2Certificate) ValidFrom() (resultDateTime float64)
- func (m *TCoreWebView2Certificate) ValidTo() (resultDateTime float64)
- type TCoreWebView2ClearBrowsingDataCompletedHandler
- type TCoreWebView2ClientCertificate
- func (m *TCoreWebView2ClientCertificate) BaseIntf() ICoreWebView2ClientCertificate
- func (m *TCoreWebView2ClientCertificate) DerEncodedSerialNumber() string
- func (m *TCoreWebView2ClientCertificate) DisplayName() string
- func (m *TCoreWebView2ClientCertificate) Initialized() bool
- func (m *TCoreWebView2ClientCertificate) Issuer() string
- func (m *TCoreWebView2ClientCertificate) Kind() TWVClientCertificateKind
- func (m *TCoreWebView2ClientCertificate) PemEncodedIssuerCertificateChain() ICoreWebView2StringCollection
- func (m *TCoreWebView2ClientCertificate) SetBaseIntf(AValue ICoreWebView2ClientCertificate)
- func (m *TCoreWebView2ClientCertificate) Subject() string
- func (m *TCoreWebView2ClientCertificate) ToPemEncoding() string
- func (m *TCoreWebView2ClientCertificate) ValidFrom() (resultDateTime float64)
- func (m *TCoreWebView2ClientCertificate) ValidTo() (resultDateTime float64)
- type TCoreWebView2ClientCertificateCollection
- func (m *TCoreWebView2ClientCertificateCollection) BaseIntf() ICoreWebView2ClientCertificateCollection
- func (m *TCoreWebView2ClientCertificateCollection) Count() uint32
- func (m *TCoreWebView2ClientCertificateCollection) Initialized() bool
- func (m *TCoreWebView2ClientCertificateCollection) Items(idx uint32) ICoreWebView2ClientCertificate
- type TCoreWebView2ClientCertificateRequestedEventArgs
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) AllowedCertificateAuthorities() ICoreWebView2StringCollection
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) BaseIntf() ICoreWebView2ClientCertificateRequestedEventArgs
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) Cancel() bool
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) Deferral() ICoreWebView2Deferral
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) Handled() bool
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) Host() string
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) Initialized() bool
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) IsProxy() bool
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) MutuallyTrustedCertificates() ICoreWebView2ClientCertificateCollection
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) Port() int32
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) SelectedCertificate() ICoreWebView2ClientCertificate
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) SetCancel(AValue bool)
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) SetHandled(AValue bool)
- func (m *TCoreWebView2ClientCertificateRequestedEventArgs) SetSelectedCertificate(AValue ICoreWebView2ClientCertificate)
- type TCoreWebView2CompositionController
- func (m *TCoreWebView2CompositionController) AddAllBrowserEvents(aBrowserComponent IComponent) bool
- func (m *TCoreWebView2CompositionController) AutomationProvider() IUnknown
- func (m *TCoreWebView2CompositionController) BaseIntf() ICoreWebView2CompositionController
- func (m *TCoreWebView2CompositionController) Cursor() HCURSOR
- func (m *TCoreWebView2CompositionController) DragEnter(dataObject IDataObject, keyState uint32, point *TPoint, OutEffect *uint32) int32
- func (m *TCoreWebView2CompositionController) DragLeave() int32
- func (m *TCoreWebView2CompositionController) DragOver(keyState uint32, point *TPoint, OutEffect *uint32) int32
- func (m *TCoreWebView2CompositionController) Drop(dataObject IDataObject, keyState uint32, point *TPoint, OutEffect *uint32) int32
- func (m *TCoreWebView2CompositionController) Initialized() bool
- func (m *TCoreWebView2CompositionController) RootVisualTarget() IUnknown
- func (m *TCoreWebView2CompositionController) SendMouseInput(aEventKind TWVMouseEventKind, aVirtualKeys TWVMouseEventVirtualKeys, ...) bool
- func (m *TCoreWebView2CompositionController) SendPointerInput(aEventKind TWVPointerEventKind, aPointerInfo ICoreWebView2PointerInfo) bool
- func (m *TCoreWebView2CompositionController) SetRootVisualTarget(AValue IUnknown)
- func (m *TCoreWebView2CompositionController) SystemCursorID() uint32
- type TCoreWebView2ContentLoadingEventArgs
- func (m *TCoreWebView2ContentLoadingEventArgs) BaseIntf() ICoreWebView2ContentLoadingEventArgs
- func (m *TCoreWebView2ContentLoadingEventArgs) Initialized() bool
- func (m *TCoreWebView2ContentLoadingEventArgs) IsErrorPage() bool
- func (m *TCoreWebView2ContentLoadingEventArgs) NavigationId() (resultUint64 uint64)
- type TCoreWebView2ContextMenuItem
- func (m *TCoreWebView2ContextMenuItem) AddAllBrowserEvents(aBrowserComponent IComponent) bool
- func (m *TCoreWebView2ContextMenuItem) BaseIntf() ICoreWebView2ContextMenuItem
- func (m *TCoreWebView2ContextMenuItem) Children() ICoreWebView2ContextMenuItemCollection
- func (m *TCoreWebView2ContextMenuItem) CommandId() int32
- func (m *TCoreWebView2ContextMenuItem) Icon() IStream
- func (m *TCoreWebView2ContextMenuItem) Initialized() bool
- func (m *TCoreWebView2ContextMenuItem) IsChecked() bool
- func (m *TCoreWebView2ContextMenuItem) IsEnabled() bool
- func (m *TCoreWebView2ContextMenuItem) Kind() TWVMenuItemKind
- func (m *TCoreWebView2ContextMenuItem) Label() string
- func (m *TCoreWebView2ContextMenuItem) Name() string
- func (m *TCoreWebView2ContextMenuItem) SetBaseIntf(AValue ICoreWebView2ContextMenuItem)
- func (m *TCoreWebView2ContextMenuItem) SetIsChecked(AValue bool)
- func (m *TCoreWebView2ContextMenuItem) SetIsEnabled(AValue bool)
- func (m *TCoreWebView2ContextMenuItem) ShortcutKeyDescription() string
- type TCoreWebView2ContextMenuItemCollection
- func (m *TCoreWebView2ContextMenuItemCollection) AppendValue(aValue ICoreWebView2ContextMenuItem) bool
- func (m *TCoreWebView2ContextMenuItemCollection) BaseIntf() ICoreWebView2ContextMenuItemCollection
- func (m *TCoreWebView2ContextMenuItemCollection) Count() uint32
- func (m *TCoreWebView2ContextMenuItemCollection) Initialized() bool
- func (m *TCoreWebView2ContextMenuItemCollection) InsertValueAtIndex(index uint32, aValue ICoreWebView2ContextMenuItem) bool
- func (m *TCoreWebView2ContextMenuItemCollection) Items(idx uint32) ICoreWebView2ContextMenuItem
- func (m *TCoreWebView2ContextMenuItemCollection) RemoveAllMenuItems()
- func (m *TCoreWebView2ContextMenuItemCollection) RemoveMenuItem(aCommandId int32)
- func (m *TCoreWebView2ContextMenuItemCollection) RemoveMenuItem1(aLabel string)
- func (m *TCoreWebView2ContextMenuItemCollection) RemoveValueAtIndex(index uint32) bool
- type TCoreWebView2ContextMenuRequestedEventArgs
- func (m *TCoreWebView2ContextMenuRequestedEventArgs) BaseIntf() ICoreWebView2ContextMenuRequestedEventArgs
- func (m *TCoreWebView2ContextMenuRequestedEventArgs) ContextMenuTarget() ICoreWebView2ContextMenuTarget
- func (m *TCoreWebView2ContextMenuRequestedEventArgs) Deferral() ICoreWebView2Deferral
- func (m *TCoreWebView2ContextMenuRequestedEventArgs) Handled() bool
- func (m *TCoreWebView2ContextMenuRequestedEventArgs) Initialized() bool
- func (m *TCoreWebView2ContextMenuRequestedEventArgs) Location() (resultPoint TPoint)
- func (m *TCoreWebView2ContextMenuRequestedEventArgs) MenuItems() ICoreWebView2ContextMenuItemCollection
- func (m *TCoreWebView2ContextMenuRequestedEventArgs) SelectedCommandId() int32
- func (m *TCoreWebView2ContextMenuRequestedEventArgs) SetHandled(AValue bool)
- func (m *TCoreWebView2ContextMenuRequestedEventArgs) SetSelectedCommandId(AValue int32)
- type TCoreWebView2ContextMenuTarget
- func (m *TCoreWebView2ContextMenuTarget) BaseIntf() ICoreWebView2ContextMenuTarget
- func (m *TCoreWebView2ContextMenuTarget) FrameUri() string
- func (m *TCoreWebView2ContextMenuTarget) HasLinkText() bool
- func (m *TCoreWebView2ContextMenuTarget) HasLinkUri() bool
- func (m *TCoreWebView2ContextMenuTarget) HasSelection() bool
- func (m *TCoreWebView2ContextMenuTarget) HasSourceUri() bool
- func (m *TCoreWebView2ContextMenuTarget) Initialized() bool
- func (m *TCoreWebView2ContextMenuTarget) IsEditable() bool
- func (m *TCoreWebView2ContextMenuTarget) IsRequestedForMainFrame() bool
- func (m *TCoreWebView2ContextMenuTarget) Kind() TWVMenuTargetKind
- func (m *TCoreWebView2ContextMenuTarget) LinkText() string
- func (m *TCoreWebView2ContextMenuTarget) LinkUri() string
- func (m *TCoreWebView2ContextMenuTarget) PageUri() string
- func (m *TCoreWebView2ContextMenuTarget) SelectionText() string
- func (m *TCoreWebView2ContextMenuTarget) SourceUri() string
- type TCoreWebView2Controller
- func (m *TCoreWebView2Controller) AddAllBrowserEvents(aBrowserComponent IComponent) bool
- func (m *TCoreWebView2Controller) AllowExternalDrop() bool
- func (m *TCoreWebView2Controller) BaseIntf() ICoreWebView2Controller
- func (m *TCoreWebView2Controller) Bounds() (resultRect TRect)
- func (m *TCoreWebView2Controller) BoundsMode() TWVBoundsMode
- func (m *TCoreWebView2Controller) Close() bool
- func (m *TCoreWebView2Controller) CoreWebView2() ICoreWebView2
- func (m *TCoreWebView2Controller) DefaultBackgroundColor() TColor
- func (m *TCoreWebView2Controller) Initialized() bool
- func (m *TCoreWebView2Controller) IsVisible() bool
- func (m *TCoreWebView2Controller) MoveFocus(aReason TWVMoveFocusReason) bool
- func (m *TCoreWebView2Controller) NotifyParentWindowPositionChanged() bool
- func (m *TCoreWebView2Controller) ParentWindow() THandle
- func (m *TCoreWebView2Controller) RasterizationScale() (resultDouble float64)
- func (m *TCoreWebView2Controller) SetAllowExternalDrop(AValue bool)
- func (m *TCoreWebView2Controller) SetBounds(AValue *TRect)
- func (m *TCoreWebView2Controller) SetBoundsAndZoomFactor(aBounds *TRect, aZoomFactor float64) bool
- func (m *TCoreWebView2Controller) SetBoundsMode(AValue TWVBoundsMode)
- func (m *TCoreWebView2Controller) SetDefaultBackgroundColor(AValue TColor)
- func (m *TCoreWebView2Controller) SetIsVisible(AValue bool)
- func (m *TCoreWebView2Controller) SetParentWindow(AValue THandle)
- func (m *TCoreWebView2Controller) SetRasterizationScale(AValue float64)
- func (m *TCoreWebView2Controller) SetShouldDetectMonitorScaleChanges(AValue bool)
- func (m *TCoreWebView2Controller) SetZoomFactor(AValue float64)
- func (m *TCoreWebView2Controller) ShouldDetectMonitorScaleChanges() bool
- func (m *TCoreWebView2Controller) ZoomFactor() (resultDouble float64)
- type TCoreWebView2ControllerOptions
- func (m *TCoreWebView2ControllerOptions) BaseIntf() ICoreWebView2ControllerOptions
- func (m *TCoreWebView2ControllerOptions) Initialized() bool
- func (m *TCoreWebView2ControllerOptions) IsInPrivateModeEnabled() bool
- func (m *TCoreWebView2ControllerOptions) ProfileName() string
- func (m *TCoreWebView2ControllerOptions) ScriptLocale() string
- func (m *TCoreWebView2ControllerOptions) SetBaseIntf(AValue ICoreWebView2ControllerOptions)
- func (m *TCoreWebView2ControllerOptions) SetIsInPrivateModeEnabled(AValue bool)
- func (m *TCoreWebView2ControllerOptions) SetProfileName(AValue string)
- func (m *TCoreWebView2ControllerOptions) SetScriptLocale(AValue string)
- type TCoreWebView2Cookie
- func (m *TCoreWebView2Cookie) BaseIntf() ICoreWebView2Cookie
- func (m *TCoreWebView2Cookie) Domain() string
- func (m *TCoreWebView2Cookie) Expires() (resultDouble float64)
- func (m *TCoreWebView2Cookie) ExpiresDate() (resultDateTime float64)
- func (m *TCoreWebView2Cookie) Initialized() bool
- func (m *TCoreWebView2Cookie) IsHttpOnly() bool
- func (m *TCoreWebView2Cookie) IsSecure() bool
- func (m *TCoreWebView2Cookie) IsSession() bool
- func (m *TCoreWebView2Cookie) Name() string
- func (m *TCoreWebView2Cookie) Path() string
- func (m *TCoreWebView2Cookie) SameSite() TWVCookieSameSiteKind
- func (m *TCoreWebView2Cookie) SetBaseIntf(AValue ICoreWebView2Cookie)
- func (m *TCoreWebView2Cookie) SetExpires(AValue float64)
- func (m *TCoreWebView2Cookie) SetExpiresDate(AValue float64)
- func (m *TCoreWebView2Cookie) SetIsHttpOnly(AValue bool)
- func (m *TCoreWebView2Cookie) SetIsSecure(AValue bool)
- func (m *TCoreWebView2Cookie) SetSameSite(AValue TWVCookieSameSiteKind)
- func (m *TCoreWebView2Cookie) SetValue(AValue string)
- func (m *TCoreWebView2Cookie) Value() string
- type TCoreWebView2CookieList
- type TCoreWebView2CookieManager
- func (m *TCoreWebView2CookieManager) AddOrUpdateCookie(aCookie ICoreWebView2Cookie) bool
- func (m *TCoreWebView2CookieManager) BaseIntf() ICoreWebView2CookieManager
- func (m *TCoreWebView2CookieManager) CopyCookie(aCookie ICoreWebView2Cookie) ICoreWebView2Cookie
- func (m *TCoreWebView2CookieManager) CreateCookie(aName, aValue, aDomain, aPath string) ICoreWebView2Cookie
- func (m *TCoreWebView2CookieManager) DeleteAllCookies() bool
- func (m *TCoreWebView2CookieManager) DeleteCookie(aCookie ICoreWebView2Cookie) bool
- func (m *TCoreWebView2CookieManager) DeleteCookies(aName, aURI string) bool
- func (m *TCoreWebView2CookieManager) DeleteCookiesWithDomainAndPath(aName, aDomain, aPath string) bool
- func (m *TCoreWebView2CookieManager) GetCookies(aURI string, aHandler ICoreWebView2GetCookiesCompletedHandler) bool
- func (m *TCoreWebView2CookieManager) Initialized() bool
- type TCoreWebView2CustomItemSelectedEventHandler
- type TCoreWebView2DOMContentLoadedEventArgs
- type TCoreWebView2Deferral
- type TCoreWebView2DevToolsProtocolEventReceivedEventArgs
- func (m *TCoreWebView2DevToolsProtocolEventReceivedEventArgs) BaseIntf() ICoreWebView2DevToolsProtocolEventReceivedEventArgs
- func (m *TCoreWebView2DevToolsProtocolEventReceivedEventArgs) Initialized() bool
- func (m *TCoreWebView2DevToolsProtocolEventReceivedEventArgs) ParameterObjectAsJson() string
- func (m *TCoreWebView2DevToolsProtocolEventReceivedEventArgs) SessionId() string
- type TCoreWebView2DownloadOperation
- func (m *TCoreWebView2DownloadOperation) AddAllBrowserEvents(aBrowserComponent IComponent) bool
- func (m *TCoreWebView2DownloadOperation) BaseIntf() ICoreWebView2DownloadOperation
- func (m *TCoreWebView2DownloadOperation) BytesReceived() (resultInt64 int64)
- func (m *TCoreWebView2DownloadOperation) CanResume() bool
- func (m *TCoreWebView2DownloadOperation) Cancel() bool
- func (m *TCoreWebView2DownloadOperation) ContentDisposition() string
- func (m *TCoreWebView2DownloadOperation) DownloadID() int32
- func (m *TCoreWebView2DownloadOperation) EstimatedEndTime() (resultDateTime float64)
- func (m *TCoreWebView2DownloadOperation) Initialized() bool
- func (m *TCoreWebView2DownloadOperation) InterruptReason() TWVDownloadInterruptReason
- func (m *TCoreWebView2DownloadOperation) MimeType() string
- func (m *TCoreWebView2DownloadOperation) Pause() bool
- func (m *TCoreWebView2DownloadOperation) ResultFilePath() string
- func (m *TCoreWebView2DownloadOperation) Resume() bool
- func (m *TCoreWebView2DownloadOperation) State() TWVDownloadState
- func (m *TCoreWebView2DownloadOperation) TotalBytesToReceive() (resultInt64 int64)
- func (m *TCoreWebView2DownloadOperation) URI() string
- type TCoreWebView2DownloadStartingEventArgs
- func (m *TCoreWebView2DownloadStartingEventArgs) BaseIntf() ICoreWebView2DownloadStartingEventArgs
- func (m *TCoreWebView2DownloadStartingEventArgs) Cancel() bool
- func (m *TCoreWebView2DownloadStartingEventArgs) Deferral() ICoreWebView2Deferral
- func (m *TCoreWebView2DownloadStartingEventArgs) DownloadOperation() ICoreWebView2DownloadOperation
- func (m *TCoreWebView2DownloadStartingEventArgs) Handled() bool
- func (m *TCoreWebView2DownloadStartingEventArgs) Initialized() bool
- func (m *TCoreWebView2DownloadStartingEventArgs) ResultFilePath() string
- func (m *TCoreWebView2DownloadStartingEventArgs) SetCancel(AValue bool)
- func (m *TCoreWebView2DownloadStartingEventArgs) SetHandled(AValue bool)
- func (m *TCoreWebView2DownloadStartingEventArgs) SetResultFilePath(AValue string)
- type TCoreWebView2Environment
- func (m *TCoreWebView2Environment) AddAllBrowserEvents(aBrowserComponent IComponent) bool
- func (m *TCoreWebView2Environment) AddAllLoaderEvents(aLoaderComponent IComponent) bool
- func (m *TCoreWebView2Environment) BaseIntf() ICoreWebView2Environment
- func (m *TCoreWebView2Environment) BrowserVersionInfo() string
- func (m *TCoreWebView2Environment) CreateContextMenuItem(aLabel string, aIconStream IStream, aKind TWVMenuItemKind, ...) bool
- func (m *TCoreWebView2Environment) CreateCoreWebView2CompositionController(aParentWindow THandle, aBrowserEvents IWVBrowserEvents, aResult *int32) bool
- func (m *TCoreWebView2Environment) CreateCoreWebView2CompositionControllerWithOptions(aParentWindow HWND, aOptions ICoreWebView2ControllerOptions, ...) bool
- func (m *TCoreWebView2Environment) CreateCoreWebView2Controller(aParentWindow THandle, aBrowserEvents IWVBrowserEvents, aResult *int32) bool
- func (m *TCoreWebView2Environment) CreateCoreWebView2ControllerOptions(aOptions *ICoreWebView2ControllerOptions, aResult *int32) bool
- func (m *TCoreWebView2Environment) CreateCoreWebView2ControllerWithOptions(aParentWindow HWND, aOptions ICoreWebView2ControllerOptions, ...) bool
- func (m *TCoreWebView2Environment) CreateCoreWebView2PointerInfo(aPointerInfo *ICoreWebView2PointerInfo) bool
- func (m *TCoreWebView2Environment) CreatePrintSettings(aPrintSettings *ICoreWebView2PrintSettings) bool
- func (m *TCoreWebView2Environment) CreateSharedBuffer(aSize int64, aSharedBuffer *ICoreWebView2SharedBuffer) bool
- func (m *TCoreWebView2Environment) CreateWebResourceRequest(aURI, aMethod string, aPostData IStream, aHeaders string, ...) bool
- func (m *TCoreWebView2Environment) CreateWebResourceResponse(aContent IStream, aStatusCode int32, aReasonPhrase, aHeaders string, ...) bool
- func (m *TCoreWebView2Environment) FailureReportFolderPath() string
- func (m *TCoreWebView2Environment) GetAutomationProviderForWindow(aHandle THandle, aProvider *IUnknown) bool
- func (m *TCoreWebView2Environment) GetProcessExtendedInfos(aBrowserEvents IWVBrowserEvents) bool
- func (m *TCoreWebView2Environment) Initialized() bool
- func (m *TCoreWebView2Environment) ProcessInfos() ICoreWebView2ProcessInfoCollection
- func (m *TCoreWebView2Environment) SupportsCompositionController() bool
- func (m *TCoreWebView2Environment) SupportsControllerOptions() bool
- func (m *TCoreWebView2Environment) UserDataFolder() string
- type TCoreWebView2ExecuteScriptResult
- func (m *TCoreWebView2ExecuteScriptResult) BaseIntf() ICoreWebView2ExecuteScriptResult
- func (m *TCoreWebView2ExecuteScriptResult) Exception() ICoreWebView2ScriptException
- func (m *TCoreWebView2ExecuteScriptResult) Initialized() bool
- func (m *TCoreWebView2ExecuteScriptResult) ResultAsJson() string
- func (m *TCoreWebView2ExecuteScriptResult) Succeeded() bool
- func (m *TCoreWebView2ExecuteScriptResult) TryGetResultAsString(stringResult *string, value *bool) bool
- type TCoreWebView2Frame
- func (m *TCoreWebView2Frame) AddAllBrowserEvents(aBrowserComponent IComponent) bool
- func (m *TCoreWebView2Frame) AddHostObjectToScriptWithOrigins(name string, object OleVariant, originsCount uint32, origins string) bool
- func (m *TCoreWebView2Frame) BaseIntf() ICoreWebView2Frame
- func (m *TCoreWebView2Frame) ExecuteScript(JavaScript string, aExecutionID int32, aBrowserComponent IComponent) bool
- func (m *TCoreWebView2Frame) FrameID() uint32
- func (m *TCoreWebView2Frame) Initialized() bool
- func (m *TCoreWebView2Frame) IsDestroyed() bool
- func (m *TCoreWebView2Frame) Name() string
- func (m *TCoreWebView2Frame) PostSharedBufferToScript(aSharedBuffer ICoreWebView2SharedBuffer, aAccess TWVSharedBufferAccess, ...) bool
- func (m *TCoreWebView2Frame) PostWebMessageAsJson(aWebMessageAsJson string) bool
- func (m *TCoreWebView2Frame) PostWebMessageAsString(aWebMessageAsString string) bool
- func (m *TCoreWebView2Frame) RemoveHostObjectFromScript(aName string) bool
- type TCoreWebView2FrameCreatedEventArgs
- type TCoreWebView2FrameInfo
- func (m *TCoreWebView2FrameInfo) BaseIntf() ICoreWebView2FrameInfo
- func (m *TCoreWebView2FrameInfo) FrameId() uint32
- func (m *TCoreWebView2FrameInfo) FrameKind() TWVFrameKind
- func (m *TCoreWebView2FrameInfo) FrameKindStr() string
- func (m *TCoreWebView2FrameInfo) Initialized() bool
- func (m *TCoreWebView2FrameInfo) Name() string
- func (m *TCoreWebView2FrameInfo) ParentFrameInfo() ICoreWebView2FrameInfo
- func (m *TCoreWebView2FrameInfo) SetBaseIntf(AValue ICoreWebView2FrameInfo)
- func (m *TCoreWebView2FrameInfo) Source() string
- type TCoreWebView2FrameInfoCollection
- type TCoreWebView2FrameInfoCollectionIterator
- func (m *TCoreWebView2FrameInfoCollectionIterator) BaseIntf() ICoreWebView2FrameInfoCollectionIterator
- func (m *TCoreWebView2FrameInfoCollectionIterator) Current() ICoreWebView2FrameInfo
- func (m *TCoreWebView2FrameInfoCollectionIterator) HasCurrent() bool
- func (m *TCoreWebView2FrameInfoCollectionIterator) Initialized() bool
- func (m *TCoreWebView2FrameInfoCollectionIterator) MoveNext() bool
- type TCoreWebView2GetCookiesCompletedHandler
- type TCoreWebView2GetNonDefaultPermissionSettingsCompletedHandler
- type TCoreWebView2HttpHeadersCollectionIterator
- func (m *TCoreWebView2HttpHeadersCollectionIterator) BaseIntf() ICoreWebView2HttpHeadersCollectionIterator
- func (m *TCoreWebView2HttpHeadersCollectionIterator) GetCurrentHeader(aName, aValue *string) bool
- func (m *TCoreWebView2HttpHeadersCollectionIterator) HasCurrentHeader() bool
- func (m *TCoreWebView2HttpHeadersCollectionIterator) Initialized() bool
- func (m *TCoreWebView2HttpHeadersCollectionIterator) MoveNext() bool
- type TCoreWebView2HttpRequestHeaders
- func (m *TCoreWebView2HttpRequestHeaders) BaseIntf() ICoreWebView2HttpRequestHeaders
- func (m *TCoreWebView2HttpRequestHeaders) Contains(aName string) bool
- func (m *TCoreWebView2HttpRequestHeaders) GetHeader(aName string) string
- func (m *TCoreWebView2HttpRequestHeaders) GetHeaders(aName string, aIterator *ICoreWebView2HttpHeadersCollectionIterator) bool
- func (m *TCoreWebView2HttpRequestHeaders) Initialized() bool
- func (m *TCoreWebView2HttpRequestHeaders) Iterator() ICoreWebView2HttpHeadersCollectionIterator
- func (m *TCoreWebView2HttpRequestHeaders) RemoveHeader(aName string) bool
- func (m *TCoreWebView2HttpRequestHeaders) SetHeader(aName, aValue string) bool
- type TCoreWebView2HttpResponseHeaders
- func (m *TCoreWebView2HttpResponseHeaders) AppendHeader(aName, aValue string) bool
- func (m *TCoreWebView2HttpResponseHeaders) BaseIntf() ICoreWebView2HttpResponseHeaders
- func (m *TCoreWebView2HttpResponseHeaders) Contains(aName string) bool
- func (m *TCoreWebView2HttpResponseHeaders) GetHeader(aName string) string
- func (m *TCoreWebView2HttpResponseHeaders) GetHeaders(aName string, aIterator *ICoreWebView2HttpHeadersCollectionIterator) bool
- func (m *TCoreWebView2HttpResponseHeaders) Initialized() bool
- func (m *TCoreWebView2HttpResponseHeaders) Iterator() ICoreWebView2HttpHeadersCollectionIterator
- type TCoreWebView2LaunchingExternalUriSchemeEventArgs
- func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) BaseIntf() ICoreWebView2LaunchingExternalUriSchemeEventArgs
- func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) Cancel() bool
- func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) Deferral() ICoreWebView2Deferral
- func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) Initialized() bool
- func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) InitiatingOrigin() string
- func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) IsUserInitiated() bool
- func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) SetCancel(AValue bool)
- func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) Uri() string
- type TCoreWebView2MoveFocusRequestedEventArgs
- func (m *TCoreWebView2MoveFocusRequestedEventArgs) BaseIntf() ICoreWebView2MoveFocusRequestedEventArgs
- func (m *TCoreWebView2MoveFocusRequestedEventArgs) Handled() bool
- func (m *TCoreWebView2MoveFocusRequestedEventArgs) Initialized() bool
- func (m *TCoreWebView2MoveFocusRequestedEventArgs) Reason() TWVMoveFocusReason
- func (m *TCoreWebView2MoveFocusRequestedEventArgs) SetHandled(AValue bool)
- type TCoreWebView2NavigationCompletedEventArgs
- func (m *TCoreWebView2NavigationCompletedEventArgs) BaseIntf() ICoreWebView2NavigationCompletedEventArgs
- func (m *TCoreWebView2NavigationCompletedEventArgs) HttpStatusCode() int32
- func (m *TCoreWebView2NavigationCompletedEventArgs) Initialized() bool
- func (m *TCoreWebView2NavigationCompletedEventArgs) IsSuccess() bool
- func (m *TCoreWebView2NavigationCompletedEventArgs) NavigationID() (resultUint64 uint64)
- func (m *TCoreWebView2NavigationCompletedEventArgs) WebErrorStatus() TWVWebErrorStatus
- type TCoreWebView2NavigationStartingEventArgs
- func (m *TCoreWebView2NavigationStartingEventArgs) AdditionalAllowedFrameAncestors() string
- func (m *TCoreWebView2NavigationStartingEventArgs) BaseIntf() ICoreWebView2NavigationStartingEventArgs
- func (m *TCoreWebView2NavigationStartingEventArgs) Cancel() bool
- func (m *TCoreWebView2NavigationStartingEventArgs) Initialized() bool
- func (m *TCoreWebView2NavigationStartingEventArgs) IsRedirected() bool
- func (m *TCoreWebView2NavigationStartingEventArgs) IsUserInitiated() bool
- func (m *TCoreWebView2NavigationStartingEventArgs) NavigationID() (resultUint64 uint64)
- func (m *TCoreWebView2NavigationStartingEventArgs) NavigationKind() TWVNavigationKind
- func (m *TCoreWebView2NavigationStartingEventArgs) RequestHeaders() ICoreWebView2HttpRequestHeaders
- func (m *TCoreWebView2NavigationStartingEventArgs) SetAdditionalAllowedFrameAncestors(AValue string)
- func (m *TCoreWebView2NavigationStartingEventArgs) SetCancel(AValue bool)
- func (m *TCoreWebView2NavigationStartingEventArgs) URI() string
- type TCoreWebView2NewWindowRequestedEventArgs
- func (m *TCoreWebView2NewWindowRequestedEventArgs) BaseIntf() ICoreWebView2NewWindowRequestedEventArgs
- func (m *TCoreWebView2NewWindowRequestedEventArgs) Deferral() ICoreWebView2Deferral
- func (m *TCoreWebView2NewWindowRequestedEventArgs) Handled() bool
- func (m *TCoreWebView2NewWindowRequestedEventArgs) Initialized() bool
- func (m *TCoreWebView2NewWindowRequestedEventArgs) IsUserInitiated() bool
- func (m *TCoreWebView2NewWindowRequestedEventArgs) Name() string
- func (m *TCoreWebView2NewWindowRequestedEventArgs) NewWindow() ICoreWebView2
- func (m *TCoreWebView2NewWindowRequestedEventArgs) OriginalSourceFrameInfo() ICoreWebView2FrameInfo
- func (m *TCoreWebView2NewWindowRequestedEventArgs) SetHandled(AValue bool)
- func (m *TCoreWebView2NewWindowRequestedEventArgs) SetNewWindow(AValue ICoreWebView2)
- func (m *TCoreWebView2NewWindowRequestedEventArgs) URI() string
- func (m *TCoreWebView2NewWindowRequestedEventArgs) WindowFeatures() ICoreWebView2WindowFeatures
- type TCoreWebView2ObjectCollectionView
- type TCoreWebView2PermissionRequestedEventArgs
- func (m *TCoreWebView2PermissionRequestedEventArgs) BaseIntf() ICoreWebView2PermissionRequestedEventArgs
- func (m *TCoreWebView2PermissionRequestedEventArgs) Deferral() ICoreWebView2Deferral
- func (m *TCoreWebView2PermissionRequestedEventArgs) Handled() bool
- func (m *TCoreWebView2PermissionRequestedEventArgs) Initialized() bool
- func (m *TCoreWebView2PermissionRequestedEventArgs) IsUserInitiated() bool
- func (m *TCoreWebView2PermissionRequestedEventArgs) PermissionKind() TWVPermissionKind
- func (m *TCoreWebView2PermissionRequestedEventArgs) SavesInProfile() bool
- func (m *TCoreWebView2PermissionRequestedEventArgs) SetHandled(AValue bool)
- func (m *TCoreWebView2PermissionRequestedEventArgs) SetSavesInProfile(AValue bool)
- func (m *TCoreWebView2PermissionRequestedEventArgs) SetState(AValue TWVPermissionState)
- func (m *TCoreWebView2PermissionRequestedEventArgs) State() TWVPermissionState
- func (m *TCoreWebView2PermissionRequestedEventArgs) URI() string
- type TCoreWebView2PermissionSetting
- func (m *TCoreWebView2PermissionSetting) BaseIntf() ICoreWebView2PermissionSetting
- func (m *TCoreWebView2PermissionSetting) Initialized() bool
- func (m *TCoreWebView2PermissionSetting) PermissionKind() TWVPermissionKind
- func (m *TCoreWebView2PermissionSetting) PermissionOrigin() string
- func (m *TCoreWebView2PermissionSetting) PermissionState() TWVPermissionState
- type TCoreWebView2PermissionSettingCollectionView
- func (m *TCoreWebView2PermissionSettingCollectionView) BaseIntf() ICoreWebView2PermissionSettingCollectionView
- func (m *TCoreWebView2PermissionSettingCollectionView) Count() uint32
- func (m *TCoreWebView2PermissionSettingCollectionView) Initialized() bool
- func (m *TCoreWebView2PermissionSettingCollectionView) ValueAtIndex(idx uint32) ICoreWebView2PermissionSetting
- type TCoreWebView2PointerInfo
- func (m *TCoreWebView2PointerInfo) BaseIntf() ICoreWebView2PointerInfo
- func (m *TCoreWebView2PointerInfo) ButtonChangeKind() int32
- func (m *TCoreWebView2PointerInfo) DisplayRect() (resultRect TRect)
- func (m *TCoreWebView2PointerInfo) FrameId() uint32
- func (m *TCoreWebView2PointerInfo) HimetricLocation() (resultPoint TPoint)
- func (m *TCoreWebView2PointerInfo) HimetricLocationRaw() (resultPoint TPoint)
- func (m *TCoreWebView2PointerInfo) HistoryCount() uint32
- func (m *TCoreWebView2PointerInfo) Initialized() bool
- func (m *TCoreWebView2PointerInfo) InputData() int32
- func (m *TCoreWebView2PointerInfo) KeyStates() uint32
- func (m *TCoreWebView2PointerInfo) PenFlags() uint32
- func (m *TCoreWebView2PointerInfo) PenMask() uint32
- func (m *TCoreWebView2PointerInfo) PenPressure() uint32
- func (m *TCoreWebView2PointerInfo) PenRotation() uint32
- func (m *TCoreWebView2PointerInfo) PenTiltX() int32
- func (m *TCoreWebView2PointerInfo) PenTiltY() int32
- func (m *TCoreWebView2PointerInfo) PerformanceCount() (resultUint64 uint64)
- func (m *TCoreWebView2PointerInfo) PixelLocation() (resultPoint TPoint)
- func (m *TCoreWebView2PointerInfo) PixelLocationRaw() (resultPoint TPoint)
- func (m *TCoreWebView2PointerInfo) PointerDeviceRect() (resultRect TRect)
- func (m *TCoreWebView2PointerInfo) PointerFlags() uint32
- func (m *TCoreWebView2PointerInfo) PointerId() uint32
- func (m *TCoreWebView2PointerInfo) PointerKind() uint32
- func (m *TCoreWebView2PointerInfo) SetButtonChangeKind(AValue int32)
- func (m *TCoreWebView2PointerInfo) SetDisplayRect(AValue *TRect)
- func (m *TCoreWebView2PointerInfo) SetFrameId(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetHimetricLocation(AValue *TPoint)
- func (m *TCoreWebView2PointerInfo) SetHimetricLocationRaw(AValue *TPoint)
- func (m *TCoreWebView2PointerInfo) SetHistoryCount(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetInputData(AValue int32)
- func (m *TCoreWebView2PointerInfo) SetKeyStates(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetPenFlags(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetPenMask(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetPenPressure(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetPenRotation(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetPenTiltX(AValue int32)
- func (m *TCoreWebView2PointerInfo) SetPenTiltY(AValue int32)
- func (m *TCoreWebView2PointerInfo) SetPerformanceCount(AValue uint64)
- func (m *TCoreWebView2PointerInfo) SetPixelLocation(AValue *TPoint)
- func (m *TCoreWebView2PointerInfo) SetPixelLocationRaw(AValue *TPoint)
- func (m *TCoreWebView2PointerInfo) SetPointerDeviceRect(AValue *TRect)
- func (m *TCoreWebView2PointerInfo) SetPointerFlags(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetPointerId(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetPointerKind(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetTime(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetTouchContact(AValue *TRect)
- func (m *TCoreWebView2PointerInfo) SetTouchContactRaw(AValue *TRect)
- func (m *TCoreWebView2PointerInfo) SetTouchFlags(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetTouchMask(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetTouchOrientation(AValue uint32)
- func (m *TCoreWebView2PointerInfo) SetTouchPressure(AValue uint32)
- func (m *TCoreWebView2PointerInfo) Time() uint32
- func (m *TCoreWebView2PointerInfo) TouchContact() (resultRect TRect)
- func (m *TCoreWebView2PointerInfo) TouchContactRaw() (resultRect TRect)
- func (m *TCoreWebView2PointerInfo) TouchFlags() uint32
- func (m *TCoreWebView2PointerInfo) TouchMask() uint32
- func (m *TCoreWebView2PointerInfo) TouchOrientation() uint32
- func (m *TCoreWebView2PointerInfo) TouchPressure() uint32
- type TCoreWebView2PrintCompletedHandler
- type TCoreWebView2PrintSettings
- func (m *TCoreWebView2PrintSettings) BaseIntf() ICoreWebView2PrintSettings
- func (m *TCoreWebView2PrintSettings) Collation() TWVPrintCollation
- func (m *TCoreWebView2PrintSettings) ColorMode() TWVPrintColorMode
- func (m *TCoreWebView2PrintSettings) Copies() int32
- func (m *TCoreWebView2PrintSettings) Duplex() TWVPrintDuplex
- func (m *TCoreWebView2PrintSettings) FooterUri() string
- func (m *TCoreWebView2PrintSettings) HeaderTitle() string
- func (m *TCoreWebView2PrintSettings) Initialized() bool
- func (m *TCoreWebView2PrintSettings) MarginBottom() (resultDouble float64)
- func (m *TCoreWebView2PrintSettings) MarginLeft() (resultDouble float64)
- func (m *TCoreWebView2PrintSettings) MarginRight() (resultDouble float64)
- func (m *TCoreWebView2PrintSettings) MarginTop() (resultDouble float64)
- func (m *TCoreWebView2PrintSettings) MediaSize() TWVPrintMediaSize
- func (m *TCoreWebView2PrintSettings) Orientation() TWVPrintOrientation
- func (m *TCoreWebView2PrintSettings) PageHeight() (resultDouble float64)
- func (m *TCoreWebView2PrintSettings) PageRanges() string
- func (m *TCoreWebView2PrintSettings) PageWidth() (resultDouble float64)
- func (m *TCoreWebView2PrintSettings) PagesPerSide() int32
- func (m *TCoreWebView2PrintSettings) PrinterName() string
- func (m *TCoreWebView2PrintSettings) ScaleFactor() (resultDouble float64)
- func (m *TCoreWebView2PrintSettings) SetCollation(AValue TWVPrintCollation)
- func (m *TCoreWebView2PrintSettings) SetColorMode(AValue TWVPrintColorMode)
- func (m *TCoreWebView2PrintSettings) SetCopies(AValue int32)
- func (m *TCoreWebView2PrintSettings) SetDuplex(AValue TWVPrintDuplex)
- func (m *TCoreWebView2PrintSettings) SetFooterUri(AValue string)
- func (m *TCoreWebView2PrintSettings) SetHeaderTitle(AValue string)
- func (m *TCoreWebView2PrintSettings) SetMarginBottom(AValue float64)
- func (m *TCoreWebView2PrintSettings) SetMarginLeft(AValue float64)
- func (m *TCoreWebView2PrintSettings) SetMarginRight(AValue float64)
- func (m *TCoreWebView2PrintSettings) SetMarginTop(AValue float64)
- func (m *TCoreWebView2PrintSettings) SetMediaSize(AValue TWVPrintMediaSize)
- func (m *TCoreWebView2PrintSettings) SetOrientation(AValue TWVPrintOrientation)
- func (m *TCoreWebView2PrintSettings) SetPageHeight(AValue float64)
- func (m *TCoreWebView2PrintSettings) SetPageRanges(AValue string)
- func (m *TCoreWebView2PrintSettings) SetPageWidth(AValue float64)
- func (m *TCoreWebView2PrintSettings) SetPagesPerSide(AValue int32)
- func (m *TCoreWebView2PrintSettings) SetPrinterName(AValue string)
- func (m *TCoreWebView2PrintSettings) SetScaleFactor(AValue float64)
- func (m *TCoreWebView2PrintSettings) SetShouldPrintBackgrounds(AValue bool)
- func (m *TCoreWebView2PrintSettings) SetShouldPrintHeaderAndFooter(AValue bool)
- func (m *TCoreWebView2PrintSettings) SetShouldPrintSelectionOnly(AValue bool)
- func (m *TCoreWebView2PrintSettings) ShouldPrintBackgrounds() bool
- func (m *TCoreWebView2PrintSettings) ShouldPrintHeaderAndFooter() bool
- func (m *TCoreWebView2PrintSettings) ShouldPrintSelectionOnly() bool
- type TCoreWebView2PrintToPdfCompletedHandler
- type TCoreWebView2PrintToPdfStreamCompletedHandler
- type TCoreWebView2ProcessExtendedInfo
- func (m *TCoreWebView2ProcessExtendedInfo) AssociatedFrameInfos() ICoreWebView2FrameInfoCollection
- func (m *TCoreWebView2ProcessExtendedInfo) BaseIntf() ICoreWebView2ProcessExtendedInfo
- func (m *TCoreWebView2ProcessExtendedInfo) Initialized() bool
- func (m *TCoreWebView2ProcessExtendedInfo) ProcessInfo() ICoreWebView2ProcessInfo
- func (m *TCoreWebView2ProcessExtendedInfo) SetBaseIntf(AValue ICoreWebView2ProcessExtendedInfo)
- type TCoreWebView2ProcessExtendedInfoCollection
- func (m *TCoreWebView2ProcessExtendedInfoCollection) BaseIntf() ICoreWebView2ProcessExtendedInfoCollection
- func (m *TCoreWebView2ProcessExtendedInfoCollection) Count() uint32
- func (m *TCoreWebView2ProcessExtendedInfoCollection) Initialized() bool
- func (m *TCoreWebView2ProcessExtendedInfoCollection) Items(idx uint32) ICoreWebView2ProcessExtendedInfo
- type TCoreWebView2ProcessFailedEventArgs
- func (m *TCoreWebView2ProcessFailedEventArgs) BaseIntf() ICoreWebView2ProcessFailedEventArgs
- func (m *TCoreWebView2ProcessFailedEventArgs) ExtiCode() int32
- func (m *TCoreWebView2ProcessFailedEventArgs) FrameInfosForFailedProcess() ICoreWebView2FrameInfoCollection
- func (m *TCoreWebView2ProcessFailedEventArgs) Initialized() bool
- func (m *TCoreWebView2ProcessFailedEventArgs) ProcessDescription() string
- func (m *TCoreWebView2ProcessFailedEventArgs) ProcessFailedKind() TWVProcessFailedKind
- func (m *TCoreWebView2ProcessFailedEventArgs) Reason() TWVProcessFailedReason
- type TCoreWebView2ProcessInfo
- func (m *TCoreWebView2ProcessInfo) BaseIntf() ICoreWebView2ProcessInfo
- func (m *TCoreWebView2ProcessInfo) Initialized() bool
- func (m *TCoreWebView2ProcessInfo) Kind() TWVProcessKind
- func (m *TCoreWebView2ProcessInfo) KindStr() string
- func (m *TCoreWebView2ProcessInfo) ProcessId() int32
- func (m *TCoreWebView2ProcessInfo) SetBaseIntf(AValue ICoreWebView2ProcessInfo)
- type TCoreWebView2ProcessInfoCollection
- func (m *TCoreWebView2ProcessInfoCollection) BaseIntf() ICoreWebView2ProcessInfoCollection
- func (m *TCoreWebView2ProcessInfoCollection) Count() uint32
- func (m *TCoreWebView2ProcessInfoCollection) Initialized() bool
- func (m *TCoreWebView2ProcessInfoCollection) Items(idx uint32) ICoreWebView2ProcessInfo
- type TCoreWebView2Profile
- func (m *TCoreWebView2Profile) AddAllBrowserEvents(aBrowserComponent IComponent) bool
- func (m *TCoreWebView2Profile) AddBrowserExtension(extensionFolderPath string, ...) bool
- func (m *TCoreWebView2Profile) BaseIntf() ICoreWebView2Profile
- func (m *TCoreWebView2Profile) ClearBrowsingData(dataKinds TWVBrowsingDataKinds, ...) bool
- func (m *TCoreWebView2Profile) ClearBrowsingDataAll(handler ICoreWebView2ClearBrowsingDataCompletedHandler) bool
- func (m *TCoreWebView2Profile) ClearBrowsingDataInTimeRange(dataKinds TWVBrowsingDataKinds, startTime, endTime float64, ...) bool
- func (m *TCoreWebView2Profile) CookieManager() ICoreWebView2CookieManager
- func (m *TCoreWebView2Profile) DefaultDownloadFolderPath() string
- func (m *TCoreWebView2Profile) Delete() bool
- func (m *TCoreWebView2Profile) GetBrowserExtensions(completedHandler ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler) bool
- func (m *TCoreWebView2Profile) GetNonDefaultPermissionSettings(completedHandler ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler) bool
- func (m *TCoreWebView2Profile) Initialized() bool
- func (m *TCoreWebView2Profile) IsGeneralAutofillEnabled() bool
- func (m *TCoreWebView2Profile) IsInPrivateModeEnabled() bool
- func (m *TCoreWebView2Profile) IsPasswordAutosaveEnabled() bool
- func (m *TCoreWebView2Profile) PreferredColorScheme() TWVPreferredColorScheme
- func (m *TCoreWebView2Profile) PreferredTrackingPreventionLevel() TWVTrackingPreventionLevel
- func (m *TCoreWebView2Profile) ProfileName() string
- func (m *TCoreWebView2Profile) ProfilePath() string
- func (m *TCoreWebView2Profile) SetBaseIntf(AValue ICoreWebView2Profile)
- func (m *TCoreWebView2Profile) SetDefaultDownloadFolderPath(AValue string)
- func (m *TCoreWebView2Profile) SetIsGeneralAutofillEnabled(AValue bool)
- func (m *TCoreWebView2Profile) SetIsPasswordAutosaveEnabled(AValue bool)
- func (m *TCoreWebView2Profile) SetPermissionState(PermissionKind TWVPermissionKind, origin string, State TWVPermissionState, ...) bool
- func (m *TCoreWebView2Profile) SetPreferredColorScheme(AValue TWVPreferredColorScheme)
- func (m *TCoreWebView2Profile) SetPreferredTrackingPreventionLevel(AValue TWVTrackingPreventionLevel)
- type TCoreWebView2ProfileAddBrowserExtensionCompletedHandler
- type TCoreWebView2ProfileGetBrowserExtensionsCompletedHandler
- type TCoreWebView2ScriptDialogOpeningEventArgs
- func (m *TCoreWebView2ScriptDialogOpeningEventArgs) Accept() bool
- func (m *TCoreWebView2ScriptDialogOpeningEventArgs) BaseIntf() ICoreWebView2ScriptDialogOpeningEventArgs
- func (m *TCoreWebView2ScriptDialogOpeningEventArgs) DefaultText() string
- func (m *TCoreWebView2ScriptDialogOpeningEventArgs) Deferral() ICoreWebView2Deferral
- func (m *TCoreWebView2ScriptDialogOpeningEventArgs) Initialized() bool
- func (m *TCoreWebView2ScriptDialogOpeningEventArgs) Kind() TWVScriptDialogKind
- func (m *TCoreWebView2ScriptDialogOpeningEventArgs) Message() string
- func (m *TCoreWebView2ScriptDialogOpeningEventArgs) ResultText() string
- func (m *TCoreWebView2ScriptDialogOpeningEventArgs) SetResultText(AValue string)
- func (m *TCoreWebView2ScriptDialogOpeningEventArgs) URI() string
- type TCoreWebView2ScriptException
- func (m *TCoreWebView2ScriptException) BaseIntf() ICoreWebView2ScriptException
- func (m *TCoreWebView2ScriptException) ColumnNumber() uint32
- func (m *TCoreWebView2ScriptException) Initialized() bool
- func (m *TCoreWebView2ScriptException) LineNumber() uint32
- func (m *TCoreWebView2ScriptException) Message() string
- func (m *TCoreWebView2ScriptException) Name() string
- func (m *TCoreWebView2ScriptException) ToJson() string
- type TCoreWebView2ServerCertificateErrorDetectedEventArgs
- func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) Action() TWVServerCertificateErrorAction
- func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) BaseIntf() ICoreWebView2ServerCertificateErrorDetectedEventArgs
- func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) Deferral() ICoreWebView2Deferral
- func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) ErrorStatus() TWVWebErrorStatus
- func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) Initialized() bool
- func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) RequestUri() string
- func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) ServerCertificate() ICoreWebView2Certificate
- func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) SetAction(AValue TWVServerCertificateErrorAction)
- type TCoreWebView2SetPermissionStateCompletedHandler
- type TCoreWebView2Settings
- func (m *TCoreWebView2Settings) AreBrowserAcceleratorKeysEnabled() bool
- func (m *TCoreWebView2Settings) AreDefaultContextMenusEnabled() bool
- func (m *TCoreWebView2Settings) AreDefaultScriptDialogsEnabled() bool
- func (m *TCoreWebView2Settings) AreDevToolsEnabled() bool
- func (m *TCoreWebView2Settings) AreHostObjectsAllowed() bool
- func (m *TCoreWebView2Settings) BaseIntf() ICoreWebView2Settings
- func (m *TCoreWebView2Settings) HiddenPdfToolbarItems() TWVPDFToolbarItems
- func (m *TCoreWebView2Settings) Initialized() bool
- func (m *TCoreWebView2Settings) IsBuiltInErrorPageEnabled() bool
- func (m *TCoreWebView2Settings) IsGeneralAutofillEnabled() bool
- func (m *TCoreWebView2Settings) IsPasswordAutosaveEnabled() bool
- func (m *TCoreWebView2Settings) IsPinchZoomEnabled() bool
- func (m *TCoreWebView2Settings) IsReputationCheckingRequired() bool
- func (m *TCoreWebView2Settings) IsScriptEnabled() bool
- func (m *TCoreWebView2Settings) IsStatusBarEnabled() bool
- func (m *TCoreWebView2Settings) IsSwipeNavigationEnabled() bool
- func (m *TCoreWebView2Settings) IsWebMessageEnabled() bool
- func (m *TCoreWebView2Settings) IsZoomControlEnabled() bool
- func (m *TCoreWebView2Settings) SetAreBrowserAcceleratorKeysEnabled(AValue bool)
- func (m *TCoreWebView2Settings) SetAreDefaultContextMenusEnabled(AValue bool)
- func (m *TCoreWebView2Settings) SetAreDefaultScriptDialogsEnabled(AValue bool)
- func (m *TCoreWebView2Settings) SetAreDevToolsEnabled(AValue bool)
- func (m *TCoreWebView2Settings) SetAreHostObjectsAllowed(AValue bool)
- func (m *TCoreWebView2Settings) SetHiddenPdfToolbarItems(AValue TWVPDFToolbarItems)
- func (m *TCoreWebView2Settings) SetIsBuiltInErrorPageEnabled(AValue bool)
- func (m *TCoreWebView2Settings) SetIsGeneralAutofillEnabled(AValue bool)
- func (m *TCoreWebView2Settings) SetIsPasswordAutosaveEnabled(AValue bool)
- func (m *TCoreWebView2Settings) SetIsPinchZoomEnabled(AValue bool)
- func (m *TCoreWebView2Settings) SetIsReputationCheckingRequired(AValue bool)
- func (m *TCoreWebView2Settings) SetIsScriptEnabled(AValue bool)
- func (m *TCoreWebView2Settings) SetIsStatusBarEnabled(AValue bool)
- func (m *TCoreWebView2Settings) SetIsSwipeNavigationEnabled(AValue bool)
- func (m *TCoreWebView2Settings) SetIsWebMessageEnabled(AValue bool)
- func (m *TCoreWebView2Settings) SetIsZoomControlEnabled(AValue bool)
- func (m *TCoreWebView2Settings) SetUserAgent(AValue string)
- func (m *TCoreWebView2Settings) UserAgent() string
- type TCoreWebView2SharedBuffer
- func (m *TCoreWebView2SharedBuffer) BaseIntf() ICoreWebView2SharedBuffer
- func (m *TCoreWebView2SharedBuffer) Buffer() PByte
- func (m *TCoreWebView2SharedBuffer) Close() bool
- func (m *TCoreWebView2SharedBuffer) FileMappingHandle() HANDLE
- func (m *TCoreWebView2SharedBuffer) Initialized() bool
- func (m *TCoreWebView2SharedBuffer) OpenStream() IStream
- func (m *TCoreWebView2SharedBuffer) Size() (resultInt64 int64)
- type TCoreWebView2SourceChangedEventArgs
- type TCoreWebView2StringCollection
- type TCoreWebView2TrySuspendCompletedHandler
- type TCoreWebView2WebMessageReceivedEventArgs
- func (m *TCoreWebView2WebMessageReceivedEventArgs) AdditionalObjects() ICoreWebView2ObjectCollectionView
- func (m *TCoreWebView2WebMessageReceivedEventArgs) BaseIntf() ICoreWebView2WebMessageReceivedEventArgs
- func (m *TCoreWebView2WebMessageReceivedEventArgs) Initialized() bool
- func (m *TCoreWebView2WebMessageReceivedEventArgs) Source() string
- func (m *TCoreWebView2WebMessageReceivedEventArgs) WebMessageAsJson() string
- func (m *TCoreWebView2WebMessageReceivedEventArgs) WebMessageAsString() string
- type TCoreWebView2WebResourceRequestRef
- func (m *TCoreWebView2WebResourceRequestRef) BaseIntf() ICoreWebView2WebResourceRequestRef
- func (m *TCoreWebView2WebResourceRequestRef) Content() IStream
- func (m *TCoreWebView2WebResourceRequestRef) Headers() ICoreWebView2HttpRequestHeaders
- func (m *TCoreWebView2WebResourceRequestRef) Initialized() bool
- func (m *TCoreWebView2WebResourceRequestRef) Method() string
- func (m *TCoreWebView2WebResourceRequestRef) SetContent(AValue IStream)
- func (m *TCoreWebView2WebResourceRequestRef) SetMethod(AValue string)
- func (m *TCoreWebView2WebResourceRequestRef) SetURI(AValue string)
- func (m *TCoreWebView2WebResourceRequestRef) URI() string
- type TCoreWebView2WebResourceRequestedEventArgs
- func (m *TCoreWebView2WebResourceRequestedEventArgs) BaseIntf() ICoreWebView2WebResourceRequestedEventArgs
- func (m *TCoreWebView2WebResourceRequestedEventArgs) Deferral() ICoreWebView2Deferral
- func (m *TCoreWebView2WebResourceRequestedEventArgs) Initialized() bool
- func (m *TCoreWebView2WebResourceRequestedEventArgs) Request() ICoreWebView2WebResourceRequestRef
- func (m *TCoreWebView2WebResourceRequestedEventArgs) ResourceContext() TWVWebResourceContext
- func (m *TCoreWebView2WebResourceRequestedEventArgs) Response() ICoreWebView2WebResourceResponse
- func (m *TCoreWebView2WebResourceRequestedEventArgs) SetResponse(AValue ICoreWebView2WebResourceResponse)
- type TCoreWebView2WebResourceResponse
- func (m *TCoreWebView2WebResourceResponse) BaseIntf() ICoreWebView2WebResourceResponse
- func (m *TCoreWebView2WebResourceResponse) Content() IStream
- func (m *TCoreWebView2WebResourceResponse) Headers() ICoreWebView2HttpResponseHeaders
- func (m *TCoreWebView2WebResourceResponse) Initialized() bool
- func (m *TCoreWebView2WebResourceResponse) ReasonPhrase() string
- func (m *TCoreWebView2WebResourceResponse) SetContent(AValue IStream)
- func (m *TCoreWebView2WebResourceResponse) SetReasonPhrase(AValue string)
- func (m *TCoreWebView2WebResourceResponse) SetStatusCode(AValue int32)
- func (m *TCoreWebView2WebResourceResponse) StatusCode() int32
- type TCoreWebView2WebResourceResponseReceivedEventArgs
- func (m *TCoreWebView2WebResourceResponseReceivedEventArgs) BaseIntf() ICoreWebView2WebResourceResponseReceivedEventArgs
- func (m *TCoreWebView2WebResourceResponseReceivedEventArgs) Initialized() bool
- func (m *TCoreWebView2WebResourceResponseReceivedEventArgs) Request() ICoreWebView2WebResourceRequestRef
- func (m *TCoreWebView2WebResourceResponseReceivedEventArgs) Response() ICoreWebView2WebResourceResponseView
- type TCoreWebView2WebResourceResponseView
- func (m *TCoreWebView2WebResourceResponseView) BaseIntf() ICoreWebView2WebResourceResponseView
- func (m *TCoreWebView2WebResourceResponseView) GetContent(aHandler ICoreWebView2WebResourceResponseViewGetContentCompletedHandler) bool
- func (m *TCoreWebView2WebResourceResponseView) Headers() ICoreWebView2HttpResponseHeaders
- func (m *TCoreWebView2WebResourceResponseView) Initialized() bool
- func (m *TCoreWebView2WebResourceResponseView) ReasonPhrase() string
- func (m *TCoreWebView2WebResourceResponseView) StatusCode() int32
- type TCoreWebView2WebResourceResponseViewGetContentCompletedHandler
- type TCoreWebView2WindowFeatures
- func (m *TCoreWebView2WindowFeatures) BaseIntf() ICoreWebView2WindowFeatures
- func (m *TCoreWebView2WindowFeatures) CopyToRecord(aWindowFeatures *TWVWindowFeatures)
- func (m *TCoreWebView2WindowFeatures) HasPosition() bool
- func (m *TCoreWebView2WindowFeatures) HasSize() bool
- func (m *TCoreWebView2WindowFeatures) Height() uint32
- func (m *TCoreWebView2WindowFeatures) Initialized() bool
- func (m *TCoreWebView2WindowFeatures) Left() uint32
- func (m *TCoreWebView2WindowFeatures) ShouldDisplayMenuBar() bool
- func (m *TCoreWebView2WindowFeatures) ShouldDisplayScrollBars() bool
- func (m *TCoreWebView2WindowFeatures) ShouldDisplayStatus() bool
- func (m *TCoreWebView2WindowFeatures) ShouldDisplayToolbar() bool
- func (m *TCoreWebView2WindowFeatures) Top() uint32
- func (m *TCoreWebView2WindowFeatures) Width() uint32
- type TDragDropEvent
- type TDragOverEvent
- type TEndDragEvent
- type TNotifyEvent
- type TObject
- type TOleEnum
- type TOnAcceleratorKeyPressedEvent
- type TOnAddScriptToExecuteOnDocumentCreatedCompletedEvent
- type TOnBasicAuthenticationRequestedEvent
- type TOnBrowserExtensionEnableCompletedEvent
- type TOnBrowserExtensionRemoveCompletedEvent
- type TOnBrowserProcessExitedEvent
- type TOnBytesReceivedChangedEvent
- type TOnCallDevToolsProtocolMethodCompletedEvent
- type TOnCapturePreviewCompletedEvent
- type TOnClearBrowsingDataCompletedEvent
- type TOnClearCacheCompletedEvent
- type TOnClearDataForOriginCompletedEvent
- type TOnClientCertificateRequestedEvent
- type TOnCompMsgEvent
- type TOnContentLoadingEvent
- type TOnContextMenuRequestedEvent
- type TOnCustomItemSelectedEvent
- type TOnDOMContentLoadedEvent
- type TOnDevToolsProtocolEventReceivedEvent
- type TOnDownloadStartingEvent
- type TOnDownloadStateChangedEvent
- type TOnEstimatedEndTimeChangedEvent
- type TOnExecuteScriptCompletedEvent
- type TOnExecuteScriptWithResultCompletedEvent
- type TOnFaviconChangedEvent
- type TOnFrameContentLoadingEvent
- type TOnFrameCreatedEvent
- type TOnFrameDOMContentLoadedEvent
- type TOnFrameDestroyedEvent
- type TOnFrameNameChangedEvent
- type TOnFrameNavigationCompletedEvent
- type TOnFrameNavigationStartingEvent
- type TOnFramePermissionRequestedEvent
- type TOnFrameWebMessageReceivedEvent
- type TOnGetCookiesCompletedEvent
- type TOnGetCustomSchemesEvent
- type TOnGetFaviconCompletedEvent
- type TOnGetNonDefaultPermissionSettingsCompletedEvent
- type TOnGetProcessExtendedInfosCompletedEvent
- type TOnIgnoreCertificateErrorsCompletedEvent
- type TOnInitializationErrorEvent
- type TOnIsDefaultDownloadDialogOpenChangedEvent
- type TOnIsDocumentPlayingAudioChangedEvent
- type TOnIsMutedChangedEvent
- type TOnLaunchingExternalUriSchemeEvent
- type TOnLoaderBrowserProcessExitedEvent
- type TOnLoaderGetCustomSchemesEvent
- type TOnLoaderNewBrowserVersionAvailableEvent
- type TOnLoaderNotifyEvent
- type TOnLoaderProcessInfosChangedEvent
- type TOnMoveFocusRequestedEvent
- type TOnNavigationCompletedEvent
- type TOnNavigationStartingEvent
- type TOnNewWindowRequestedEvent
- type TOnOfflineCompletedEvent
- type TOnPermissionRequestedEvent
- type TOnPrintCompletedEvent
- type TOnPrintToPdfCompletedEvent
- type TOnPrintToPdfStreamCompletedEvent
- type TOnProcessFailedEvent
- type TOnProcessInfosChangedEvent
- type TOnProfileAddBrowserExtensionCompletedEvent
- type TOnProfileDeletedEvent
- type TOnProfileGetBrowserExtensionsCompletedEvent
- type TOnRefreshIgnoreCacheCompletedEvent
- type TOnRetrieveHTMLCompletedEvent
- type TOnRetrieveMHTMLCompletedEvent
- type TOnRetrieveTextCompletedEvent
- type TOnScriptDialogOpeningEvent
- type TOnServerCertificateErrorActionsCompletedEvent
- type TOnServerCertificateErrorDetectedEvent
- type TOnSetPermissionStateCompletedEvent
- type TOnSimulateKeyEventCompletedEvent
- type TOnSourceChangedEvent
- type TOnStatusBarTextChangedEvent
- type TOnTrySuspendCompletedEvent
- type TOnWebMessageReceivedEvent
- type TOnWebResourceRequestedEvent
- type TOnWebResourceResponseReceivedEvent
- type TOnWebResourceResponseViewGetContentCompletedEvent
- type TStartDragEvent
- type TWV2DebugLog
- type TWV2DebugLogLevel
- type TWV2EditingCommand
- type TWV2KeyEventType
- type TWV2LoaderStatus
- type TWVAutoplayPolicy
- type TWVBoundsMode
- type TWVBrowser
- type TWVBrowserBase
- func (m *TWVBrowserBase) AddBrowserExtension(extensionFolderPath string) bool
- func (m *TWVBrowserBase) AddHostObjectToScript(name string, object OleVariant) bool
- func (m *TWVBrowserBase) AddOrUpdateCookie(aCookie ICoreWebView2Cookie) bool
- func (m *TWVBrowserBase) AddScriptToExecuteOnDocumentCreated(JavaScript string) bool
- func (m *TWVBrowserBase) AddWebResourceRequestedFilter(aURI string, aResourceContext TWVWebResourceContext) bool
- func (m *TWVBrowserBase) AdditionalBrowserArguments() string
- func (m *TWVBrowserBase) AllowExternalDrop() bool
- func (m *TWVBrowserBase) AllowSingleSignOnUsingOSPrimaryAccount() bool
- func (m *TWVBrowserBase) AreBrowserAcceleratorKeysEnabled() bool
- func (m *TWVBrowserBase) AreBrowserExtensionsEnabled() bool
- func (m *TWVBrowserBase) AreHostObjectsAllowed() bool
- func (m *TWVBrowserBase) AutomationProvider() IUnknown
- func (m *TWVBrowserBase) Bounds() (resultRect TRect)
- func (m *TWVBrowserBase) BoundsMode() TWVBoundsMode
- func (m *TWVBrowserBase) BrowserExecPath() string
- func (m *TWVBrowserBase) BrowserProcessID() uint32
- func (m *TWVBrowserBase) BrowserVersionInfo() string
- func (m *TWVBrowserBase) BuiltInErrorPageEnabled() bool
- func (m *TWVBrowserBase) CallDevToolsProtocolMethod(aMethodName, aParametersAsJson string, aExecutionID int32) bool
- func (m *TWVBrowserBase) CallDevToolsProtocolMethodForSession(aSessionId, aMethodName, aParametersAsJson string, aExecutionID int32) bool
- func (m *TWVBrowserBase) CanGoBack() bool
- func (m *TWVBrowserBase) CanGoForward() bool
- func (m *TWVBrowserBase) CapturePreview(aImageFormat TWVCapturePreviewImageFormat, aImageStream IStream) bool
- func (m *TWVBrowserBase) ClearBrowsingData(dataKinds TWVBrowsingDataKinds) bool
- func (m *TWVBrowserBase) ClearBrowsingDataAll() bool
- func (m *TWVBrowserBase) ClearBrowsingDataInTimeRange(dataKinds TWVBrowsingDataKinds, startTime, endTime float64) bool
- func (m *TWVBrowserBase) ClearCache() bool
- func (m *TWVBrowserBase) ClearDataForOrigin(aOrigin string, aStorageTypes TWVClearDataStorageTypes) bool
- func (m *TWVBrowserBase) ClearServerCertificateErrorActions() bool
- func (m *TWVBrowserBase) ClearVirtualHostNameToFolderMapping(aHostName string) bool
- func (m *TWVBrowserBase) CloseDefaultDownloadDialog() bool
- func (m *TWVBrowserBase) ContainsFullScreenElement() bool
- func (m *TWVBrowserBase) CookieManager() ICoreWebView2CookieManager
- func (m *TWVBrowserBase) CopyCookie(aCookie ICoreWebView2Cookie) ICoreWebView2Cookie
- func (m *TWVBrowserBase) CoreWebView2() ICoreWebView2
- func (m *TWVBrowserBase) CoreWebView2CompositionController() ICoreWebView2CompositionController
- func (m *TWVBrowserBase) CoreWebView2Controller() ICoreWebView2Controller
- func (m *TWVBrowserBase) CoreWebView2Environment() ICoreWebView2Environment
- func (m *TWVBrowserBase) CoreWebView2PrintSettings() ICoreWebView2PrintSettings
- func (m *TWVBrowserBase) CoreWebView2Settings() ICoreWebView2Settings
- func (m *TWVBrowserBase) CreateBrowser(aHandle THandle, aUseDefaultEnvironment bool) bool
- func (m *TWVBrowserBase) CreateBrowser1(aHandle THandle, aEnvironment ICoreWebView2Environment) bool
- func (m *TWVBrowserBase) CreateCookie(aName, aValue, aDomain, aPath string) ICoreWebView2Cookie
- func (m *TWVBrowserBase) CreateSharedBuffer(aSize int64, aSharedBuffer *ICoreWebView2SharedBuffer) bool
- func (m *TWVBrowserBase) CreateWindowlessBrowser(aHandle THandle, aUseDefaultEnvironment bool) bool
- func (m *TWVBrowserBase) CreateWindowlessBrowser1(aHandle THandle, aEnvironment ICoreWebView2Environment) bool
- func (m *TWVBrowserBase) Cursor() HCURSOR
- func (m *TWVBrowserBase) CustomCrashReportingEnabled() bool
- func (m *TWVBrowserBase) D3DWindowCompHWND() THandle
- func (m *TWVBrowserBase) DecZoomStep()
- func (m *TWVBrowserBase) DefaultBackgroundColor() TColor
- func (m *TWVBrowserBase) DefaultContextMenusEnabled() bool
- func (m *TWVBrowserBase) DefaultDownloadDialogCornerAlignment() TWVDefaultDownloadDialogCornerAlignment
- func (m *TWVBrowserBase) DefaultDownloadDialogMargin() (resultPoint TPoint)
- func (m *TWVBrowserBase) DefaultDownloadFolderPath() string
- func (m *TWVBrowserBase) DefaultScriptDialogsEnabled() bool
- func (m *TWVBrowserBase) DefaultURL() string
- func (m *TWVBrowserBase) DeleteAllCookies() bool
- func (m *TWVBrowserBase) DeleteCookie(aCookie ICoreWebView2Cookie) bool
- func (m *TWVBrowserBase) DeleteCookies(aName, aURI string) bool
- func (m *TWVBrowserBase) DeleteCookiesWithDomainAndPath(aName, aDomain, aPath string) bool
- func (m *TWVBrowserBase) DeleteProfile() bool
- func (m *TWVBrowserBase) DevToolsEnabled() bool
- func (m *TWVBrowserBase) DocumentTitle() string
- func (m *TWVBrowserBase) DragEnter(dataObject IDataObject, keyState uint32, point *TPoint, OutEffect *uint32) int32
- func (m *TWVBrowserBase) DragLeave() int32
- func (m *TWVBrowserBase) DragOver(keyState uint32, point *TPoint, OutEffect *uint32) int32
- func (m *TWVBrowserBase) Drop(dataObject IDataObject, keyState uint32, point *TPoint, OutEffect *uint32) int32
- func (m *TWVBrowserBase) EnableTrackingPrevention() bool
- func (m *TWVBrowserBase) ExclusiveUserDataFolderAccess() bool
- func (m *TWVBrowserBase) ExecuteScript(aJavaScript string, aExecutionID int32) bool
- func (m *TWVBrowserBase) ExecuteScriptWithResult(aJavaScript string, aExecutionID int32) bool
- func (m *TWVBrowserBase) FaviconURI() string
- func (m *TWVBrowserBase) FocusNext() bool
- func (m *TWVBrowserBase) FocusPrevious() bool
- func (m *TWVBrowserBase) FrameId() uint32
- func (m *TWVBrowserBase) GetBrowserExtensions() bool
- func (m *TWVBrowserBase) GetCookies(aURI string) bool
- func (m *TWVBrowserBase) GetFavicon(aFormat TWVFaviconImageFormat) bool
- func (m *TWVBrowserBase) GetNonDefaultPermissionSettings() bool
- func (m *TWVBrowserBase) GetProcessExtendedInfos() bool
- func (m *TWVBrowserBase) GoBack() bool
- func (m *TWVBrowserBase) GoForward() bool
- func (m *TWVBrowserBase) HiddenPdfToolbarItems() TWVPDFToolbarItems
- func (m *TWVBrowserBase) IgnoreCertificateErrors() bool
- func (m *TWVBrowserBase) IncZoomStep()
- func (m *TWVBrowserBase) Initialized() bool
- func (m *TWVBrowserBase) IsDefaultDownloadDialogOpen() bool
- func (m *TWVBrowserBase) IsDocumentPlayingAudio() bool
- func (m *TWVBrowserBase) IsGeneralAutofillEnabled() bool
- func (m *TWVBrowserBase) IsInPrivateModeEnabled() bool
- func (m *TWVBrowserBase) IsMuted() bool
- func (m *TWVBrowserBase) IsNavigating() bool
- func (m *TWVBrowserBase) IsPasswordAutosaveEnabled() bool
- func (m *TWVBrowserBase) IsPinchZoomEnabled() bool
- func (m *TWVBrowserBase) IsReputationCheckingRequired() bool
- func (m *TWVBrowserBase) IsSuspended() bool
- func (m *TWVBrowserBase) IsSwipeNavigationEnabled() bool
- func (m *TWVBrowserBase) IsVisible() bool
- func (m *TWVBrowserBase) KeyboardShortcutRefreshIgnoreCache() bool
- func (m *TWVBrowserBase) KeyboardShortcutSearch() bool
- func (m *TWVBrowserBase) Language() string
- func (m *TWVBrowserBase) MemoryUsageTargetLevel() TWVMemoryUsageTargetLevel
- func (m *TWVBrowserBase) MoveFormBy(x, y int32)
- func (m *TWVBrowserBase) MoveFormTo(x, y int32)
- func (m *TWVBrowserBase) Navigate(aURI string) bool
- func (m *TWVBrowserBase) NavigateToString(aHTMLContent string) bool
- func (m *TWVBrowserBase) NavigateWithWebResourceRequest(aRequest ICoreWebView2WebResourceRequestRef) bool
- func (m *TWVBrowserBase) NotifyParentWindowPositionChanged() bool
- func (m *TWVBrowserBase) Offline() bool
- func (m *TWVBrowserBase) OpenDefaultDownloadDialog() bool
- func (m *TWVBrowserBase) OpenDevToolsWindow() bool
- func (m *TWVBrowserBase) OpenTaskManagerWindow() bool
- func (m *TWVBrowserBase) ParentWindow() THandle
- func (m *TWVBrowserBase) PostSharedBufferToScript(aSharedBuffer ICoreWebView2SharedBuffer, aAccess TWVSharedBufferAccess, ...) bool
- func (m *TWVBrowserBase) PostWebMessageAsJson(aWebMessageAsJson string) bool
- func (m *TWVBrowserBase) PostWebMessageAsString(aWebMessageAsString string) bool
- func (m *TWVBrowserBase) PreferredColorScheme() TWVPreferredColorScheme
- func (m *TWVBrowserBase) PreferredTrackingPreventionLevel() TWVTrackingPreventionLevel
- func (m *TWVBrowserBase) Print() bool
- func (m *TWVBrowserBase) PrintToPdf(aResultFilePath string) bool
- func (m *TWVBrowserBase) PrintToPdfStream() bool
- func (m *TWVBrowserBase) ProcessInfos() ICoreWebView2ProcessInfoCollection
- func (m *TWVBrowserBase) Profile() ICoreWebView2Profile
- func (m *TWVBrowserBase) ProfileCookieManager() ICoreWebView2CookieManager
- func (m *TWVBrowserBase) ProfileIsGeneralAutofillEnabled() bool
- func (m *TWVBrowserBase) ProfileIsPasswordAutosaveEnabled() bool
- func (m *TWVBrowserBase) ProfileName() string
- func (m *TWVBrowserBase) ProfilePath() string
- func (m *TWVBrowserBase) RasterizationScale() (resultDouble float64)
- func (m *TWVBrowserBase) Refresh() bool
- func (m *TWVBrowserBase) RefreshIgnoreCache() bool
- func (m *TWVBrowserBase) RemoveHostObjectFromScript(aName string) bool
- func (m *TWVBrowserBase) RemoveScriptToExecuteOnDocumentCreated(aID string) bool
- func (m *TWVBrowserBase) RemoveWebResourceRequestedFilter(aURI string, aResourceContext TWVWebResourceContext) bool
- func (m *TWVBrowserBase) RenderCompHWND() THandle
- func (m *TWVBrowserBase) ResetZoom()
- func (m *TWVBrowserBase) ResizeFormHeightTo(y int32)
- func (m *TWVBrowserBase) ResizeFormWidthTo(x int32)
- func (m *TWVBrowserBase) Resume() bool
- func (m *TWVBrowserBase) RetrieveHTML() bool
- func (m *TWVBrowserBase) RetrieveMHTML() bool
- func (m *TWVBrowserBase) RetrieveText() bool
- func (m *TWVBrowserBase) RootVisualTarget() IUnknown
- func (m *TWVBrowserBase) ScreenScale() (resultSingle float32)
- func (m *TWVBrowserBase) ScriptEnabled() bool
- func (m *TWVBrowserBase) ScriptLocale() string
- func (m *TWVBrowserBase) SendMouseInput(aEventKind TWVMouseEventKind, aVirtualKeys TWVMouseEventVirtualKeys, ...) bool
- func (m *TWVBrowserBase) SendPointerInput(aEventKind TWVPointerEventKind, aPointerInfo ICoreWebView2PointerInfo) bool
- func (m *TWVBrowserBase) SetAdditionalBrowserArguments(AValue string)
- func (m *TWVBrowserBase) SetAllowExternalDrop(AValue bool)
- func (m *TWVBrowserBase) SetAllowSingleSignOnUsingOSPrimaryAccount(AValue bool)
- func (m *TWVBrowserBase) SetAreBrowserAcceleratorKeysEnabled(AValue bool)
- func (m *TWVBrowserBase) SetAreBrowserExtensionsEnabled(AValue bool)
- func (m *TWVBrowserBase) SetAreHostObjectsAllowed(AValue bool)
- func (m *TWVBrowserBase) SetBounds(AValue *TRect)
- func (m *TWVBrowserBase) SetBoundsAndZoomFactor(aBounds *TRect, aZoomFactor float64) bool
- func (m *TWVBrowserBase) SetBoundsMode(AValue TWVBoundsMode)
- func (m *TWVBrowserBase) SetBrowserExecPath(AValue string)
- func (m *TWVBrowserBase) SetBuiltInErrorPageEnabled(AValue bool)
- func (m *TWVBrowserBase) SetCustomCrashReportingEnabled(AValue bool)
- func (m *TWVBrowserBase) SetDefaultBackgroundColor(AValue TColor)
- func (m *TWVBrowserBase) SetDefaultContextMenusEnabled(AValue bool)
- func (m *TWVBrowserBase) SetDefaultDownloadDialogCornerAlignment(AValue TWVDefaultDownloadDialogCornerAlignment)
- func (m *TWVBrowserBase) SetDefaultDownloadDialogMargin(AValue *TPoint)
- func (m *TWVBrowserBase) SetDefaultDownloadFolderPath(AValue string)
- func (m *TWVBrowserBase) SetDefaultScriptDialogsEnabled(AValue bool)
- func (m *TWVBrowserBase) SetDefaultURL(AValue string)
- func (m *TWVBrowserBase) SetDevToolsEnabled(AValue bool)
- func (m *TWVBrowserBase) SetEnableTrackingPrevention(AValue bool)
- func (m *TWVBrowserBase) SetExclusiveUserDataFolderAccess(AValue bool)
- func (m *TWVBrowserBase) SetFocus() bool
- func (m *TWVBrowserBase) SetFormLeftTo(x int32)
- func (m *TWVBrowserBase) SetFormTopTo(y int32)
- func (m *TWVBrowserBase) SetHiddenPdfToolbarItems(AValue TWVPDFToolbarItems)
- func (m *TWVBrowserBase) SetIgnoreCertificateErrors(AValue bool)
- func (m *TWVBrowserBase) SetIsGeneralAutofillEnabled(AValue bool)
- func (m *TWVBrowserBase) SetIsInPrivateModeEnabled(AValue bool)
- func (m *TWVBrowserBase) SetIsMuted(AValue bool)
- func (m *TWVBrowserBase) SetIsPasswordAutosaveEnabled(AValue bool)
- func (m *TWVBrowserBase) SetIsPinchZoomEnabled(AValue bool)
- func (m *TWVBrowserBase) SetIsReputationCheckingRequired(AValue bool)
- func (m *TWVBrowserBase) SetIsSwipeNavigationEnabled(AValue bool)
- func (m *TWVBrowserBase) SetIsVisible(AValue bool)
- func (m *TWVBrowserBase) SetLanguage(AValue string)
- func (m *TWVBrowserBase) SetMemoryUsageTargetLevel(AValue TWVMemoryUsageTargetLevel)
- func (m *TWVBrowserBase) SetOffline(AValue bool)
- func (m *TWVBrowserBase) SetOnAcceleratorKeyPressed(fn TOnAcceleratorKeyPressedEvent)
- func (m *TWVBrowserBase) SetOnAddScriptToExecuteOnDocumentCreatedCompleted(fn TOnAddScriptToExecuteOnDocumentCreatedCompletedEvent)
- func (m *TWVBrowserBase) SetOnAfterCreated(fn TNotifyEvent)
- func (m *TWVBrowserBase) SetOnBasicAuthenticationRequested(fn TOnBasicAuthenticationRequestedEvent)
- func (m *TWVBrowserBase) SetOnBrowserExtensionEnableCompleted(fn TOnBrowserExtensionEnableCompletedEvent)
- func (m *TWVBrowserBase) SetOnBrowserExtensionRemoveCompleted(fn TOnBrowserExtensionRemoveCompletedEvent)
- func (m *TWVBrowserBase) SetOnBrowserProcessExited(fn TOnBrowserProcessExitedEvent)
- func (m *TWVBrowserBase) SetOnBytesReceivedChanged(fn TOnBytesReceivedChangedEvent)
- func (m *TWVBrowserBase) SetOnCallDevToolsProtocolMethodCompleted(fn TOnCallDevToolsProtocolMethodCompletedEvent)
- func (m *TWVBrowserBase) SetOnCapturePreviewCompleted(fn TOnCapturePreviewCompletedEvent)
- func (m *TWVBrowserBase) SetOnClearBrowsingDataCompleted(fn TOnClearBrowsingDataCompletedEvent)
- func (m *TWVBrowserBase) SetOnClearCacheCompleted(fn TOnClearCacheCompletedEvent)
- func (m *TWVBrowserBase) SetOnClearDataForOriginCompleted(fn TOnClearDataForOriginCompletedEvent)
- func (m *TWVBrowserBase) SetOnClientCertificateRequested(fn TOnClientCertificateRequestedEvent)
- func (m *TWVBrowserBase) SetOnCompositionControllerCompleted(fn TNotifyEvent)
- func (m *TWVBrowserBase) SetOnContainsFullScreenElementChanged(fn TNotifyEvent)
- func (m *TWVBrowserBase) SetOnContentLoading(fn TOnContentLoadingEvent)
- func (m *TWVBrowserBase) SetOnContextMenuRequested(fn TOnContextMenuRequestedEvent)
- func (m *TWVBrowserBase) SetOnControllerCompleted(fn TNotifyEvent)
- func (m *TWVBrowserBase) SetOnCursorChanged(fn TNotifyEvent)
- func (m *TWVBrowserBase) SetOnCustomItemSelected(fn TOnCustomItemSelectedEvent)
- func (m *TWVBrowserBase) SetOnD3DWindowCompMsg(fn TOnCompMsgEvent)
- func (m *TWVBrowserBase) SetOnDOMContentLoaded(fn TOnDOMContentLoadedEvent)
- func (m *TWVBrowserBase) SetOnDevToolsProtocolEventReceived(fn TOnDevToolsProtocolEventReceivedEvent)
- func (m *TWVBrowserBase) SetOnDocumentTitleChanged(fn TNotifyEvent)
- func (m *TWVBrowserBase) SetOnDownloadStarting(fn TOnDownloadStartingEvent)
- func (m *TWVBrowserBase) SetOnDownloadStateChanged(fn TOnDownloadStateChangedEvent)
- func (m *TWVBrowserBase) SetOnEnvironmentCompleted(fn TNotifyEvent)
- func (m *TWVBrowserBase) SetOnEstimatedEndTimeChanged(fn TOnEstimatedEndTimeChangedEvent)
- func (m *TWVBrowserBase) SetOnExecuteScriptCompleted(fn TOnExecuteScriptCompletedEvent)
- func (m *TWVBrowserBase) SetOnExecuteScriptWithResultCompleted(fn TOnExecuteScriptWithResultCompletedEvent)
- func (m *TWVBrowserBase) SetOnFaviconChanged(fn TOnFaviconChangedEvent)
- func (m *TWVBrowserBase) SetOnFrameContentLoading(fn TOnFrameContentLoadingEvent)
- func (m *TWVBrowserBase) SetOnFrameCreated(fn TOnFrameCreatedEvent)
- func (m *TWVBrowserBase) SetOnFrameDOMContentLoaded(fn TOnFrameDOMContentLoadedEvent)
- func (m *TWVBrowserBase) SetOnFrameDestroyed(fn TOnFrameDestroyedEvent)
- func (m *TWVBrowserBase) SetOnFrameNameChanged(fn TOnFrameNameChangedEvent)
- func (m *TWVBrowserBase) SetOnFrameNavigationCompleted(fn TOnNavigationCompletedEvent)
- func (m *TWVBrowserBase) SetOnFrameNavigationCompleted2(fn TOnFrameNavigationCompletedEvent)
- func (m *TWVBrowserBase) SetOnFrameNavigationStarting(fn TOnNavigationStartingEvent)
- func (m *TWVBrowserBase) SetOnFrameNavigationStarting2(fn TOnFrameNavigationStartingEvent)
- func (m *TWVBrowserBase) SetOnFramePermissionRequested(fn TOnFramePermissionRequestedEvent)
- func (m *TWVBrowserBase) SetOnFrameWebMessageReceived(fn TOnFrameWebMessageReceivedEvent)
- func (m *TWVBrowserBase) SetOnGetCookiesCompleted(fn TOnGetCookiesCompletedEvent)
- func (m *TWVBrowserBase) SetOnGetCustomSchemes(fn TOnGetCustomSchemesEvent)
- func (m *TWVBrowserBase) SetOnGetFaviconCompleted(fn TOnGetFaviconCompletedEvent)
- func (m *TWVBrowserBase) SetOnGetNonDefaultPermissionSettingsCompleted(fn TOnGetNonDefaultPermissionSettingsCompletedEvent)
- func (m *TWVBrowserBase) SetOnGetProcessExtendedInfosCompleted(fn TOnGetProcessExtendedInfosCompletedEvent)
- func (m *TWVBrowserBase) SetOnGotFocus(fn TNotifyEvent)
- func (m *TWVBrowserBase) SetOnHistoryChanged(fn TNotifyEvent)
- func (m *TWVBrowserBase) SetOnIgnoreCertificateErrorsCompleted(fn TOnIgnoreCertificateErrorsCompletedEvent)
- func (m *TWVBrowserBase) SetOnInitializationError(fn TOnInitializationErrorEvent)
- func (m *TWVBrowserBase) SetOnIsDefaultDownloadDialogOpenChanged(fn TOnIsDefaultDownloadDialogOpenChangedEvent)
- func (m *TWVBrowserBase) SetOnIsDocumentPlayingAudioChanged(fn TOnIsDocumentPlayingAudioChangedEvent)
- func (m *TWVBrowserBase) SetOnIsMutedChanged(fn TOnIsMutedChangedEvent)
- func (m *TWVBrowserBase) SetOnLaunchingExternalUriScheme(fn TOnLaunchingExternalUriSchemeEvent)
- func (m *TWVBrowserBase) SetOnLostFocus(fn TNotifyEvent)
- func (m *TWVBrowserBase) SetOnMoveFocusRequested(fn TOnMoveFocusRequestedEvent)
- func (m *TWVBrowserBase) SetOnNavigationCompleted(fn TOnNavigationCompletedEvent)
- func (m *TWVBrowserBase) SetOnNavigationStarting(fn TOnNavigationStartingEvent)
- func (m *TWVBrowserBase) SetOnNewWindowRequested(fn TOnNewWindowRequestedEvent)
- func (m *TWVBrowserBase) SetOnOfflineCompleted(fn TOnOfflineCompletedEvent)
- func (m *TWVBrowserBase) SetOnPermissionRequested(fn TOnPermissionRequestedEvent)
- func (m *TWVBrowserBase) SetOnPrintCompleted(fn TOnPrintCompletedEvent)
- func (m *TWVBrowserBase) SetOnPrintToPdfCompleted(fn TOnPrintToPdfCompletedEvent)
- func (m *TWVBrowserBase) SetOnPrintToPdfStreamCompleted(fn TOnPrintToPdfStreamCompletedEvent)
- func (m *TWVBrowserBase) SetOnProcessFailed(fn TOnProcessFailedEvent)
- func (m *TWVBrowserBase) SetOnProcessInfosChanged(fn TOnProcessInfosChangedEvent)
- func (m *TWVBrowserBase) SetOnProfileAddBrowserExtensionCompleted(fn TOnProfileAddBrowserExtensionCompletedEvent)
- func (m *TWVBrowserBase) SetOnProfileDeleted(fn TOnProfileDeletedEvent)
- func (m *TWVBrowserBase) SetOnProfileGetBrowserExtensionsCompleted(fn TOnProfileGetBrowserExtensionsCompletedEvent)
- func (m *TWVBrowserBase) SetOnRasterizationScaleChanged(fn TNotifyEvent)
- func (m *TWVBrowserBase) SetOnRefreshIgnoreCacheCompleted(fn TOnRefreshIgnoreCacheCompletedEvent)
- func (m *TWVBrowserBase) SetOnRenderCompMsg(fn TOnCompMsgEvent)
- func (m *TWVBrowserBase) SetOnRetrieveHTMLCompleted(fn TOnRetrieveHTMLCompletedEvent)
- func (m *TWVBrowserBase) SetOnRetrieveMHTMLCompleted(fn TOnRetrieveMHTMLCompletedEvent)
- func (m *TWVBrowserBase) SetOnRetrieveTextCompleted(fn TOnRetrieveTextCompletedEvent)
- func (m *TWVBrowserBase) SetOnScriptDialogOpening(fn TOnScriptDialogOpeningEvent)
- func (m *TWVBrowserBase) SetOnServerCertificateErrorActionsCompleted(fn TOnServerCertificateErrorActionsCompletedEvent)
- func (m *TWVBrowserBase) SetOnServerCertificateErrorDetected(fn TOnServerCertificateErrorDetectedEvent)
- func (m *TWVBrowserBase) SetOnSetPermissionStateCompleted(fn TOnSetPermissionStateCompletedEvent)
- func (m *TWVBrowserBase) SetOnSimulateKeyEventCompleted(fn TOnSimulateKeyEventCompletedEvent)
- func (m *TWVBrowserBase) SetOnSourceChanged(fn TOnSourceChangedEvent)
- func (m *TWVBrowserBase) SetOnStatusBarTextChanged(fn TOnStatusBarTextChangedEvent)
- func (m *TWVBrowserBase) SetOnTrySuspendCompleted(fn TOnTrySuspendCompletedEvent)
- func (m *TWVBrowserBase) SetOnWebMessageReceived(fn TOnWebMessageReceivedEvent)
- func (m *TWVBrowserBase) SetOnWebResourceRequested(fn TOnWebResourceRequestedEvent)
- func (m *TWVBrowserBase) SetOnWebResourceResponseReceived(fn TOnWebResourceResponseReceivedEvent)
- func (m *TWVBrowserBase) SetOnWebResourceResponseViewGetContentCompleted(fn TOnWebResourceResponseViewGetContentCompletedEvent)
- func (m *TWVBrowserBase) SetOnWidget0CompMsg(fn TOnCompMsgEvent)
- func (m *TWVBrowserBase) SetOnWidget1CompMsg(fn TOnCompMsgEvent)
- func (m *TWVBrowserBase) SetOnWindowCloseRequested(fn TNotifyEvent)
- func (m *TWVBrowserBase) SetOnZoomFactorChanged(fn TNotifyEvent)
- func (m *TWVBrowserBase) SetParentWindow(AValue THandle)
- func (m *TWVBrowserBase) SetPermissionState(aPermissionKind TWVPermissionKind, aOrigin string, aState TWVPermissionState) bool
- func (m *TWVBrowserBase) SetPreferredColorScheme(AValue TWVPreferredColorScheme)
- func (m *TWVBrowserBase) SetPreferredTrackingPreventionLevel(AValue TWVTrackingPreventionLevel)
- func (m *TWVBrowserBase) SetProfileIsGeneralAutofillEnabled(AValue bool)
- func (m *TWVBrowserBase) SetProfileIsPasswordAutosaveEnabled(AValue bool)
- func (m *TWVBrowserBase) SetProfileName(AValue string)
- func (m *TWVBrowserBase) SetRasterizationScale(AValue float64)
- func (m *TWVBrowserBase) SetRootVisualTarget(AValue IUnknown)
- func (m *TWVBrowserBase) SetScriptEnabled(AValue bool)
- func (m *TWVBrowserBase) SetScriptLocale(AValue string)
- func (m *TWVBrowserBase) SetShouldDetectMonitorScaleChanges(AValue bool)
- func (m *TWVBrowserBase) SetStatusBarEnabled(AValue bool)
- func (m *TWVBrowserBase) SetTargetCompatibleBrowserVersion(AValue string)
- func (m *TWVBrowserBase) SetUserAgent(AValue string)
- func (m *TWVBrowserBase) SetUserDataFolder(AValue string)
- func (m *TWVBrowserBase) SetVirtualHostNameToFolderMapping(aHostName, aFolderPath string, aAccessKind TWVHostResourceAcccessKind) bool
- func (m *TWVBrowserBase) SetWebMessageEnabled(AValue bool)
- func (m *TWVBrowserBase) SetZoomControlEnabled(AValue bool)
- func (m *TWVBrowserBase) SetZoomFactor(AValue float64)
- func (m *TWVBrowserBase) SetZoomPct(AValue float64)
- func (m *TWVBrowserBase) SetZoomStep(AValue byte)
- func (m *TWVBrowserBase) ShouldDetectMonitorScaleChanges() bool
- func (m *TWVBrowserBase) ShowPrintUI(aUseSystemPrintDialog bool) bool
- func (m *TWVBrowserBase) SimulateEditingCommand(aEditingCommand TWV2EditingCommand) bool
- func (m *TWVBrowserBase) SimulateKeyEvent(type_ TWV2KeyEventType, ...) bool
- func (m *TWVBrowserBase) Source() string
- func (m *TWVBrowserBase) StatusBarEnabled() bool
- func (m *TWVBrowserBase) StatusBarText() string
- func (m *TWVBrowserBase) Stop() bool
- func (m *TWVBrowserBase) SubscribeToDevToolsProtocolEvent(aEventName string, aEventID int32) bool
- func (m *TWVBrowserBase) SystemCursorID() uint32
- func (m *TWVBrowserBase) TargetCompatibleBrowserVersion() string
- func (m *TWVBrowserBase) ToggleMuteState()
- func (m *TWVBrowserBase) TrySuspend() bool
- func (m *TWVBrowserBase) UserAgent() string
- func (m *TWVBrowserBase) UserDataFolder() string
- func (m *TWVBrowserBase) WebMessageEnabled() bool
- func (m *TWVBrowserBase) Widget0CompHWND() THandle
- func (m *TWVBrowserBase) Widget1CompHWND() THandle
- func (m *TWVBrowserBase) ZoomControlEnabled() bool
- func (m *TWVBrowserBase) ZoomFactor() (resultDouble float64)
- func (m *TWVBrowserBase) ZoomPct() (resultDouble float64)
- func (m *TWVBrowserBase) ZoomStep() byte
- type TWVBrowserProcessExitKind
- type TWVBrowsingDataKinds
- type TWVCapturePreviewImageFormat
- type TWVClearDataStorageTypes
- type TWVClientCertificateKind
- type TWVColor
- type TWVCookieSameSiteKind
- type TWVCustomSchemeInfo
- type TWVCustomSchemeInfoArray
- type TWVDefaultDownloadDialogCornerAlignment
- type TWVDownloadInterruptReason
- type TWVDownloadState
- type TWVFaviconImageFormat
- type TWVFrameKind
- type TWVHostResourceAcccessKind
- type TWVKeyEventKind
- type TWVLoader
- func (m *TWVLoader) AdditionalBrowserArguments() string
- func (m *TWVLoader) AllowFileAccessFromFiles() bool
- func (m *TWVLoader) AllowInsecureLocalhost() bool
- func (m *TWVLoader) AllowRunningInsecureContent() bool
- func (m *TWVLoader) AllowSingleSignOnUsingOSPrimaryAccount() bool
- func (m *TWVLoader) AppendErrorLog(aText string)
- func (m *TWVLoader) AreBrowserExtensionsEnabled() bool
- func (m *TWVLoader) AutoAcceptCamAndMicCapture() bool
- func (m *TWVLoader) AutoplayPolicy() TWVAutoplayPolicy
- func (m *TWVLoader) AvailableBrowserVersion() string
- func (m *TWVLoader) BlinkSettings() string
- func (m *TWVLoader) BrowserExecPath() string
- func (m *TWVLoader) CheckFiles() bool
- func (m *TWVLoader) CompareVersions(aVersion1, aVersion2 string, aCompRslt *int32) bool
- func (m *TWVLoader) CustomCommandLineSwitches() string
- func (m *TWVLoader) CustomCrashReportingEnabled() bool
- func (m *TWVLoader) DebugLog() TWV2DebugLog
- func (m *TWVLoader) DebugLogLevel() TWV2DebugLogLevel
- func (m *TWVLoader) DeviceScaleFactor() (resultSingle float32)
- func (m *TWVLoader) DisableBackgroundNetworking() bool
- func (m *TWVLoader) DisableBlinkFeatures() string
- func (m *TWVLoader) DisableEdgePitchNotification() bool
- func (m *TWVLoader) DisableFeatures() string
- func (m *TWVLoader) DisableWebSecurity() bool
- func (m *TWVLoader) EnableBlinkFeatures() string
- func (m *TWVLoader) EnableFeatures() string
- func (m *TWVLoader) EnableGPU() bool
- func (m *TWVLoader) EnableTrackingPrevention() bool
- func (m *TWVLoader) Environment() ICoreWebView2Environment
- func (m *TWVLoader) ErrorCode() (resultInt64 int64)
- func (m *TWVLoader) ErrorMessage() string
- func (m *TWVLoader) ExclusiveUserDataFolderAccess() bool
- func (m *TWVLoader) FailureReportFolderPath() string
- func (m *TWVLoader) ForceFieldTrialParams() string
- func (m *TWVLoader) ForceFieldTrials() string
- func (m *TWVLoader) ForcedDeviceScaleFactor() (resultSingle float32)
- func (m *TWVLoader) HyperlinkAuditing() bool
- func (m *TWVLoader) InitCOMLibrary() bool
- func (m *TWVLoader) InitializationError() bool
- func (m *TWVLoader) Initialized() bool
- func (m *TWVLoader) InstalledRuntimeVersion() string
- func (m *TWVLoader) JavaScriptFlags() string
- func (m *TWVLoader) KioskPrinting() bool
- func (m *TWVLoader) Language() string
- func (m *TWVLoader) LoaderDllPath() string
- func (m *TWVLoader) MuteAudio() bool
- func (m *TWVLoader) ProcessInfos() ICoreWebView2ProcessInfoCollection
- func (m *TWVLoader) ProxySettings() IWVProxySettings
- func (m *TWVLoader) ReRaiseExceptions() bool
- func (m *TWVLoader) RemoteAllowOrigins() string
- func (m *TWVLoader) RemoteDebuggingPort() int32
- func (m *TWVLoader) SetAdditionalBrowserArguments(AValue string)
- func (m *TWVLoader) SetAllowFileAccessFromFiles(AValue bool)
- func (m *TWVLoader) SetAllowInsecureLocalhost(AValue bool)
- func (m *TWVLoader) SetAllowRunningInsecureContent(AValue bool)
- func (m *TWVLoader) SetAllowSingleSignOnUsingOSPrimaryAccount(AValue bool)
- func (m *TWVLoader) SetAreBrowserExtensionsEnabled(AValue bool)
- func (m *TWVLoader) SetAutoAcceptCamAndMicCapture(AValue bool)
- func (m *TWVLoader) SetAutoplayPolicy(AValue TWVAutoplayPolicy)
- func (m *TWVLoader) SetBlinkSettings(AValue string)
- func (m *TWVLoader) SetBrowserExecPath(AValue string)
- func (m *TWVLoader) SetCheckFiles(AValue bool)
- func (m *TWVLoader) SetCurrentDir() bool
- func (m *TWVLoader) SetCustomCrashReportingEnabled(AValue bool)
- func (m *TWVLoader) SetDebugLog(AValue TWV2DebugLog)
- func (m *TWVLoader) SetDebugLogLevel(AValue TWV2DebugLogLevel)
- func (m *TWVLoader) SetDisableBackgroundNetworking(AValue bool)
- func (m *TWVLoader) SetDisableBlinkFeatures(AValue string)
- func (m *TWVLoader) SetDisableEdgePitchNotification(AValue bool)
- func (m *TWVLoader) SetDisableFeatures(AValue string)
- func (m *TWVLoader) SetDisableWebSecurity(AValue bool)
- func (m *TWVLoader) SetEnableBlinkFeatures(AValue string)
- func (m *TWVLoader) SetEnableFeatures(AValue string)
- func (m *TWVLoader) SetEnableGPU(AValue bool)
- func (m *TWVLoader) SetEnableTrackingPrevention(AValue bool)
- func (m *TWVLoader) SetExclusiveUserDataFolderAccess(AValue bool)
- func (m *TWVLoader) SetForceFieldTrialParams(AValue string)
- func (m *TWVLoader) SetForceFieldTrials(AValue string)
- func (m *TWVLoader) SetForcedDeviceScaleFactor(AValue float32)
- func (m *TWVLoader) SetHyperlinkAuditing(AValue bool)
- func (m *TWVLoader) SetInitCOMLibrary(AValue bool)
- func (m *TWVLoader) SetJavaScriptFlags(AValue string)
- func (m *TWVLoader) SetKioskPrinting(AValue bool)
- func (m *TWVLoader) SetLanguage(AValue string)
- func (m *TWVLoader) SetLoaderDllPath(AValue string)
- func (m *TWVLoader) SetMuteAudio(AValue bool)
- func (m *TWVLoader) SetOnBrowserProcessExited(fn TOnLoaderBrowserProcessExitedEvent)
- func (m *TWVLoader) SetOnEnvironmentCreated(fn TOnLoaderNotifyEvent)
- func (m *TWVLoader) SetOnGetCustomSchemes(fn TOnLoaderGetCustomSchemesEvent)
- func (m *TWVLoader) SetOnInitializationError(fn TOnLoaderNotifyEvent)
- func (m *TWVLoader) SetOnNewBrowserVersionAvailable(fn TOnLoaderNewBrowserVersionAvailableEvent)
- func (m *TWVLoader) SetOnProcessInfosChanged(fn TOnLoaderProcessInfosChangedEvent)
- func (m *TWVLoader) SetReRaiseExceptions(AValue bool)
- func (m *TWVLoader) SetRemoteAllowOrigins(AValue string)
- func (m *TWVLoader) SetRemoteDebuggingPort(AValue int32)
- func (m *TWVLoader) SetSetCurrentDir(AValue bool)
- func (m *TWVLoader) SetShowMessageDlg(AValue bool)
- func (m *TWVLoader) SetSmartScreenProtectionEnabled(AValue bool)
- func (m *TWVLoader) SetTargetCompatibleBrowserVersion(AValue string)
- func (m *TWVLoader) SetTouchEvents(AValue TWVState)
- func (m *TWVLoader) SetTreatInsecureOriginAsSecure(AValue string)
- func (m *TWVLoader) SetUseInternalLoader(AValue bool)
- func (m *TWVLoader) SetUserDataFolder(AValue string)
- func (m *TWVLoader) ShowMessageDlg() bool
- func (m *TWVLoader) SmartScreenProtectionEnabled() bool
- func (m *TWVLoader) StartWebView2() bool
- func (m *TWVLoader) Status() TWV2LoaderStatus
- func (m *TWVLoader) SupportsCompositionController() bool
- func (m *TWVLoader) SupportsControllerOptions() bool
- func (m *TWVLoader) TargetCompatibleBrowserVersion() string
- func (m *TWVLoader) TouchEvents() TWVState
- func (m *TWVLoader) TreatInsecureOriginAsSecure() string
- func (m *TWVLoader) UpdateDeviceScaleFactor()
- func (m *TWVLoader) UseInternalLoader() bool
- func (m *TWVLoader) UserDataFolder() string
- type TWVMemoryUsageTargetLevel
- type TWVMenuItemKind
- type TWVMenuTargetKind
- type TWVMouseEventKind
- type TWVMouseEventVirtualKeys
- type TWVMoveFocusReason
- type TWVNavigationKind
- type TWVPDFToolbarItems
- type TWVPermissionKind
- type TWVPermissionState
- type TWVPointerEventKind
- type TWVPreferredColorScheme
- type TWVPrintCollation
- type TWVPrintColorMode
- type TWVPrintDialogKind
- type TWVPrintDuplex
- type TWVPrintMediaSize
- type TWVPrintOrientation
- type TWVPrintStatus
- type TWVProcessFailedKind
- type TWVProcessFailedReason
- type TWVProcessKind
- type TWVProxySettings
- func (m *TWVProxySettings) AutoDetect() bool
- func (m *TWVProxySettings) ByPassList() string
- func (m *TWVProxySettings) NoProxyServer() bool
- func (m *TWVProxySettings) PacUrl() string
- func (m *TWVProxySettings) Server() string
- func (m *TWVProxySettings) SetAutoDetect(AValue bool)
- func (m *TWVProxySettings) SetByPassList(AValue string)
- func (m *TWVProxySettings) SetNoProxyServer(AValue bool)
- func (m *TWVProxySettings) SetPacUrl(AValue string)
- func (m *TWVProxySettings) SetServer(AValue string)
- type TWVScriptDialogKind
- type TWVServerCertificateErrorAction
- type TWVSharedBufferAccess
- type TWVState
- type TWVTrackingPreventionLevel
- type TWVWebErrorStatus
- type TWVWebResourceContext
- type TWVWinControl
- func (m *TWVWinControl) ChildWindowHandle() THandle
- func (m *TWVWinControl) CreateHandle()
- func (m *TWVWinControl) DragCursor() TCursor
- func (m *TWVWinControl) DragKind() TDragKind
- func (m *TWVWinControl) DragMode() TDragMode
- func (m *TWVWinControl) InvalidateChildren()
- func (m *TWVWinControl) SetDragCursor(AValue TCursor)
- func (m *TWVWinControl) SetDragKind(AValue TDragKind)
- func (m *TWVWinControl) SetDragMode(AValue TDragMode)
- func (m *TWVWinControl) SetOnDragDrop(fn TDragDropEvent)
- func (m *TWVWinControl) SetOnDragOver(fn TDragOverEvent)
- func (m *TWVWinControl) SetOnEndDrag(fn TEndDragEvent)
- func (m *TWVWinControl) SetOnStartDrag(fn TStartDragEvent)
- func (m *TWVWinControl) UpdateSize()
- type TWVWindowParent
- type TWinControl
- type Unknown
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DestroyGlobalWebView2Loader ¶
func DestroyGlobalWebView2Loader()
func GetInstance ¶
func GetInstance(value interface{}) unsafePointer
GetInstance As操作的简化。
Simplification of As operation.
func GetObjectUintptr ¶
func GetObjectUintptr(object interface{}) uintptr
GetObjectUintptr 获取对象指针地址值
func SetGlobalWebView2Loader ¶
func SetGlobalWebView2Loader(wvLoader IWVLoader)
SetGlobalWebView2Loader Global instance of TWVLoader used to simplify the WebView2 initialization and destruction.
func SetObjectInstance ¶
func SetObjectInstance(object interface{}, instance unsafePointer)
SetObjectInstance 设置对你指针实例值, 用于外部组件创建
Types ¶
type COREWEBVIEW2_BOUNDS_MODE ¶
type COREWEBVIEW2_BOUNDS_MODE = TOleEnum
COREWEBVIEW2_BOUNDS_MODE
Mode for how the Bounds property is interpreted in relation to the RasterizationScale property. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_bounds_mode">See the Globals article.)
const ( // COREWEBVIEW2_BOUNDS_MODE_USE_RAW_PIXELS // // Bounds property represents raw pixels. Physical size of Webview is not impacted by RasterizationScale. // This is one of the COREWEBVIEW2_BOUNDS_MODE values. COREWEBVIEW2_BOUNDS_MODE_USE_RAW_PIXELS COREWEBVIEW2_BOUNDS_MODE = 0x0000000 // COREWEBVIEW2_BOUNDS_MODE_USE_RASTERIZATION_SCALE // // Bounds property represents logical pixels and the RasterizationScale property is used to get the physical size of the WebView. // This is one of the COREWEBVIEW2_BOUNDS_MODE values. COREWEBVIEW2_BOUNDS_MODE_USE_RASTERIZATION_SCALE COREWEBVIEW2_BOUNDS_MODE = 0x0000001 )
type COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND ¶
type COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND = TOleEnum
COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND
Specifies the browser process exit type used in the ICoreWebView2BrowserProcessExitedEventArgs interface. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_browser_process_exit_kind">See the Globals article.)
const ( // COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND_NORMAL // // Indicates that the browser process ended normally. // This is one of the COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND values. COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND_NORMAL COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND = 0x0000000 // COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND_FAILED // // Indicates that the browser process ended unexpectedly. A ProcessFailed event will also be sent to listening WebViews from the ICoreWebView2Environment associated to the failed process. // This is one of the COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND values. COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND_FAILED COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND = 0x0000001 )
type COREWEBVIEW2_BROWSING_DATA_KINDS ¶
type COREWEBVIEW2_BROWSING_DATA_KINDS = TOleEnum
COREWEBVIEW2_BROWSING_DATA_KINDS
Specifies the datatype for the ICoreWebView2Profile2.ClearBrowsingData method. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_browsing_data_kinds">See the Globals article.)
const ( // COREWEBVIEW2_BROWSING_DATA_KINDS_FILE_SYSTEMS // // Specifies file systems data. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_FILE_SYSTEMS COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 0 // COREWEBVIEW2_BROWSING_DATA_KINDS_INDEXED_DB // // Specifies data stored by the IndexedDB DOM feature. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_INDEXED_DB COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 1 // COREWEBVIEW2_BROWSING_DATA_KINDS_LOCAL_STORAGE // // Specifies data stored by the localStorage DOM API. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_LOCAL_STORAGE COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 2 // COREWEBVIEW2_BROWSING_DATA_KINDS_WEB_SQL // // Specifies data stored by the Web SQL database DOM API. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_WEB_SQL COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 3 // COREWEBVIEW2_BROWSING_DATA_KINDS_CACHE_STORAGE // // Specifies data stored by the CacheStorage DOM API. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_CACHE_STORAGE COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 4 // COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_DOM_STORAGE // // Specifies DOM storage data, now and future. This browsing data kind is inclusive of COREWEBVIEW2_BROWSING_DATA_KINDS_FILE_SYSTEMS, COREWEBVIEW2_BROWSING_DATA_KINDS_INDEXED_DB, COREWEBVIEW2_BROWSING_DATA_KINDS_LOCAL_STORAGE, COREWEBVIEW2_BROWSING_DATA_KINDS_WEB_SQL, COREWEBVIEW2_BROWSING_DATA_KINDS_SERVICE_WORKERS, COREWEBVIEW2_BROWSING_DATA_KINDS_CACHE_STORAGE, and some other data kinds not listed yet to keep consistent with [DOM-accessible storage](https://www.w3.org/TR/clear-site-data/#storage). // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_DOM_STORAGE COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 5 // COREWEBVIEW2_BROWSING_DATA_KINDS_COOKIES // // Specifies HTTP cookies data. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_COOKIES COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 6 // COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_SITE // // Specifies all site data, now and future. This browsing data kind is inclusive of COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_DOM_STORAGE and COREWEBVIEW2_BROWSING_DATA_KINDS_COOKIES. New site data types may be added to this data kind in the future. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_SITE COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 7 // COREWEBVIEW2_BROWSING_DATA_KINDS_DISK_CACHE // // Specifies disk cache. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_DISK_CACHE COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 8 // COREWEBVIEW2_BROWSING_DATA_KINDS_DOWNLOAD_HISTORY // // Specifies download history data. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_DOWNLOAD_HISTORY COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 9 // COREWEBVIEW2_BROWSING_DATA_KINDS_GENERAL_AUTOFILL // // Specifies general autofill form data. This excludes password information and includes information like: names, street and email addresses, phone numbers, and arbitrary input. This also includes payment data. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_GENERAL_AUTOFILL COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 10 // COREWEBVIEW2_BROWSING_DATA_KINDS_PASSWORD_AUTOSAVE // // Specifies password autosave data. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_PASSWORD_AUTOSAVE COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 11 // COREWEBVIEW2_BROWSING_DATA_KINDS_BROWSING_HISTORY // // Specifies browsing history data. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_BROWSING_HISTORY COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 12 // COREWEBVIEW2_BROWSING_DATA_KINDS_SETTINGS // // Specifies settings data. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_SETTINGS COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 13 // COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_PROFILE // // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. // Specifies profile data that should be wiped to make it look like a new profile. This does not delete account-scoped data like passwords but will remove access to account-scoped data by signing the user out. Specifies all profile data, now and future. New profile data types may be added to this data kind in the future. This browsing data kind is inclusive of COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_SITE, COREWEBVIEW2_BROWSING_DATA_KINDS_DISK_CACHE, COREWEBVIEW2_BROWSING_DATA_KINDS_DOWNLOAD_HISTORY, COREWEBVIEW2_BROWSING_DATA_KINDS_GENERAL_AUTOFILL, COREWEBVIEW2_BROWSING_DATA_KINDS_PASSWORD_AUTOSAVE, COREWEBVIEW2_BROWSING_DATA_KINDS_BROWSING_HISTORY, and COREWEBVIEW2_BROWSING_DATA_KINDS_SETTINGS. COREWEBVIEW2_BROWSING_DATA_KINDS_ALL_PROFILE COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 14 // COREWEBVIEW2_BROWSING_DATA_KINDS_SERVICE_WORKERS // // Specifies service workers registered for an origin, and clear will result in termination and deregistration of them. // This is one of the COREWEBVIEW2_BROWSING_DATA_KINDS values. COREWEBVIEW2_BROWSING_DATA_KINDS_SERVICE_WORKERS COREWEBVIEW2_BROWSING_DATA_KINDS = 1 << 15 )
type COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT ¶
type COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT = TOleEnum
COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT
Specifies the image format for the ICoreWebView2.CapturePreview method. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_capture_preview_image_format">See the Globals article.)
const ( // COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT_PNG // // Indicates that the PNG image format is used. // This is one of the COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT values. COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT_PNG COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT = 0x0000000 // COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT_JPEG // // Indicates the JPEG image format is used. // This is one of the COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT values. COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT_JPEG COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT = 0x0000001 )
type COREWEBVIEW2_CLIENT_CERTIFICATE_KIND ¶
type COREWEBVIEW2_CLIENT_CERTIFICATE_KIND = TOleEnum
COREWEBVIEW2_CLIENT_CERTIFICATE_KIND
Specifies the client certificate kind. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_client_certificate_kind">See the Globals article.)
const ( // COREWEBVIEW2_CLIENT_CERTIFICATE_KIND_SMART_CARD // // Specifies smart card certificate. // This is one of the COREWEBVIEW2_CLIENT_CERTIFICATE_KIND values. COREWEBVIEW2_CLIENT_CERTIFICATE_KIND_SMART_CARD COREWEBVIEW2_CLIENT_CERTIFICATE_KIND = 0x0000000 // COREWEBVIEW2_CLIENT_CERTIFICATE_KIND_PIN // // Specifies PIN certificate. // This is one of the COREWEBVIEW2_CLIENT_CERTIFICATE_KIND values. COREWEBVIEW2_CLIENT_CERTIFICATE_KIND_PIN COREWEBVIEW2_CLIENT_CERTIFICATE_KIND = 0x0000001 // COREWEBVIEW2_CLIENT_CERTIFICATE_KIND_OTHER // // This is one of the COREWEBVIEW2_CLIENT_CERTIFICATE_KIND values. // Specifies other certificate. COREWEBVIEW2_CLIENT_CERTIFICATE_KIND_OTHER COREWEBVIEW2_CLIENT_CERTIFICATE_KIND = 0x0000002 )
type COREWEBVIEW2_COLOR ¶
type COREWEBVIEW2_COLOR struct { // Specifies the intensity of the Alpha ie. opacity value. 0 is transparent, 255 is opaque. A byte // Specifies the intensity of the Red color. R byte // Specifies the intensity of the Green color. G byte // Specifies the intensity of the Blue color. B byte }
COREWEBVIEW2_COLOR
A value representing RGBA color (Red, Green, Blue, Alpha) for WebView2. Each component takes a value from 0 to 255, with 0 being no intensity and 255 being the highest intensity. <para><see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_color">See the Globals article.</see></para>
type COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND ¶
type COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND = TOleEnum
COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND
Specifies the menu item kind for the ICoreWebView2ContextMenuItem.get_Kind method <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_context_menu_item_kind">See the Globals article.)
const ( // COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND_COMMAND // // Specifies a command menu item kind. // This is one of the COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND values. COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND_COMMAND COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND = 0x0000000 // COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND_CHECK_BOX // // Specifies a check box menu item kind. ContextMenuItem objects of this kind will need the IsChecked property to determine current state of the check box. // This is one of the COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND values. COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND_CHECK_BOX COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND = 0x0000001 // COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND_RADIO // // Specifies a radio button menu item kind. ContextMenuItem objects of this kind will need the IsChecked property to determine current state of the radio button. // This is one of the COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND values. COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND_RADIO COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND = 0x0000002 // COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND_SEPARATOR // // This is one of the COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND values. // Specifies a separator menu item kind. ContextMenuItem objects of this kind are used to signal a visual separator with no functionality. COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND_SEPARATOR COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND = 0x0000003 // COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND_SUBMENU // // This is one of the COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND values. // Specifies a submenu menu item kind. ContextMenuItem objects of this kind will contain a ContextMenuItemCollection of its children ContextMenuItem objects. COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND_SUBMENU COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND = 0x0000004 )
type COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND ¶
type COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND = TOleEnum
COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND
Indicates the kind of context for which the context menu was created for the ICoreWebView2ContextMenuTarget::get_Kind method. This enum will always represent the active element that caused the context menu request. If there is a selection with multiple images, audio and text, for example, the element that the end user right clicks on within this selection will be the option represented by this enum. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_context_menu_target_kind">See the Globals article.)
const ( // COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_PAGE // // This is one of the COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND values. // Indicates that the context menu was created for the page without any additional content. COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_PAGE COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND = 0x0000000 // COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_IMAGE // // Indicates that the context menu was created for an image element. // This is one of the COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND values. COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_IMAGE COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND = 0x0000001 // COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_SELECTED_TEXT // // This is one of the COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND values. // Indicates that the context menu was created for selected text. COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_SELECTED_TEXT COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND = 0x0000002 // COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_AUDIO // // This is one of the COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND values. // Indicates that the context menu was created for an audio element. COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_AUDIO COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND = 0x0000003 // COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_VIDEO // // This is one of the COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND values. // Indicates that the context menu was created for a video element. COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_VIDEO COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND = 0x0000004 )
type COREWEBVIEW2_COOKIE_SAME_SITE_KIND ¶
type COREWEBVIEW2_COOKIE_SAME_SITE_KIND = TOleEnum
COREWEBVIEW2_COOKIE_SAME_SITE_KIND
Kind of cookie SameSite status used in the ICoreWebView2Cookie interface. These fields match those as specified in https://developer.mozilla.org/docs/Web/HTTP/Cookies#. Learn more about SameSite cookies here: https://tools.ietf.org/html/draft-west-first-party-cookies-07 <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_cookie_same_site_kind">See the Globals article.)
const ( // COREWEBVIEW2_COOKIE_SAME_SITE_KIND_NONE // // This is one of the COREWEBVIEW2_COOKIE_SAME_SITE_KIND values. // None SameSite type. No restrictions on cross-site requests. COREWEBVIEW2_COOKIE_SAME_SITE_KIND_NONE COREWEBVIEW2_COOKIE_SAME_SITE_KIND = 0x0000000 // COREWEBVIEW2_COOKIE_SAME_SITE_KIND_LAX // // Lax SameSite type. The cookie will be sent with "same-site" requests, and with "cross-site" top level navigation. // This is one of the COREWEBVIEW2_COOKIE_SAME_SITE_KIND values. COREWEBVIEW2_COOKIE_SAME_SITE_KIND_LAX COREWEBVIEW2_COOKIE_SAME_SITE_KIND = 0x0000001 // COREWEBVIEW2_COOKIE_SAME_SITE_KIND_STRICT // // This is one of the COREWEBVIEW2_COOKIE_SAME_SITE_KIND values. // Strict SameSite type. The cookie will only be sent along with "same-site" requests. COREWEBVIEW2_COOKIE_SAME_SITE_KIND_STRICT COREWEBVIEW2_COOKIE_SAME_SITE_KIND = 0x0000002 )
type COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT ¶
type COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT = TOleEnum
COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT
The default download dialog can be aligned to any of the WebView corners by setting the DefaultDownloadDialogCornerAlignment property. The default position is top-right corner. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_default_download_dialog_corner_alignment">See the Globals article.)
const ( // COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT_TOP_LEFT // // Top-left corner of the WebView. // This is one of the COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT values. COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT_TOP_LEFT COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT = 0x0000000 // COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT_TOP_RIGHT // // Top-right corner of the WebView. // This is one of the COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT values. COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT_TOP_RIGHT COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT = 0x0000001 // COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT_BOTTOM_LEFT // // Bottom-left corner of the WebView. // This is one of the COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT values. COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT_BOTTOM_LEFT COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT = 0x0000002 // COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT_BOTTOM_RIGHT // // Bottom-right corner of the WebView. // This is one of the COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT values. COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT_BOTTOM_RIGHT COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT = 0x0000003 )
type COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ¶
type COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = TOleEnum
COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON
Reason why a download was interrupted. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_download_interrupt_reason">See the Globals article.)
const ( // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NONE // // No reason. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NONE COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000000 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_FAILED // // Generic file error. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_FAILED COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000001 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_ACCESS_DENIED // // Access denied due to security restrictions. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_ACCESS_DENIED COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000002 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE // // Disk full. User should free some space or choose a different location to store the file. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000003 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_NAME_TOO_LONG // // Result file path with file name is too long. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_NAME_TOO_LONG COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000004 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_LARGE // // File is too large for file system. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_LARGE COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000005 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_MALICIOUS // // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. // Microsoft Defender Smartscreen detected a virus in the file. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_MALICIOUS COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000006 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR // // File was in use, too many files opened, or out of memory. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000007 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED_BY_POLICY // // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. // File blocked by local policy. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED_BY_POLICY COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000008 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED // // Security check failed unexpectedly. Microsoft Defender SmartScreen could not scan this file. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000009 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_SHORT // // Seeking past the end of a file in opening a file, as part of resuming an interrupted download. The file did not exist or was not as large as expected. Partially downloaded file was truncated or deleted, and download will be restarted automatically. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_SHORT COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x000000A // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_HASH_MISMATCH // // Partial file did not match the expected hash and was deleted. Download will be restarted automatically. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_HASH_MISMATCH COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x000000B // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED // // Generic network error. User can retry the download manually. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x000000C // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_TIMEOUT // // Network operation timed out. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_TIMEOUT COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x000000D // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_DISCONNECTED // // Network connection lost. User can retry the download manually. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_DISCONNECTED COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x000000E // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_SERVER_DOWN // // Server has gone down. User can retry the download manually. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_SERVER_DOWN COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x000000F // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST // // Network request invalid because original or redirected URI is invalid, has an unsupported scheme, or is disallowed by network policy. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000010 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED // // Generic server error. User can retry the download manually. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000011 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE // // Server does not support range requests. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000012 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT // // Server does not have the requested data. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000013 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED // // Server did not authorize access to resource. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000014 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_CERTIFICATE_PROBLEM // // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. // Server certificate problem. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_CERTIFICATE_PROBLEM COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000015 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_FORBIDDEN // // Server access forbidden. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_FORBIDDEN COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000016 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_UNEXPECTED_RESPONSE // // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. // Unexpected server response. Responding server may not be intended server. User can retry the download manually. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_UNEXPECTED_RESPONSE COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000017 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_CONTENT_LENGTH_MISMATCH // // Server sent fewer bytes than the Content-Length header. Content-length header may be invalid or connection may have closed. Download is treated as complete unless there are [strong validators](https://tools.ietf.org/html/rfc7232#section-2) present to interrupt the download. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_CONTENT_LENGTH_MISMATCH COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000018 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_CROSS_ORIGIN_REDIRECT // // Unexpected cross-origin redirect. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_CROSS_ORIGIN_REDIRECT COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x0000019 // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_CANCELED // // User canceled the download. // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_CANCELED COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x000001A // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_SHUTDOWN // // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. // User shut down the WebView. Resuming downloads that were interrupted during shutdown is not yet supported. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_SHUTDOWN COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x000001B // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_PAUSED // // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. // User paused the download. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_PAUSED COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x000001C // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_DOWNLOAD_PROCESS_CRASHED // // This is one of the COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON values. // WebView crashed. COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_DOWNLOAD_PROCESS_CRASHED COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = 0x000001D )
type COREWEBVIEW2_DOWNLOAD_STATE ¶
type COREWEBVIEW2_DOWNLOAD_STATE = TOleEnum
COREWEBVIEW2_DOWNLOAD_STATE
State of the download operation. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_download_state">See the Globals article.)
const ( // COREWEBVIEW2_DOWNLOAD_STATE_IN_PROGRESS // // This is one of the COREWEBVIEW2_DOWNLOAD_STATE values. // The download is in progress. COREWEBVIEW2_DOWNLOAD_STATE_IN_PROGRESS COREWEBVIEW2_DOWNLOAD_STATE = 0x0000000 // COREWEBVIEW2_DOWNLOAD_STATE_INTERRUPTED // // The connection with the file host was broken. The InterruptReason property can be accessed from ICoreWebView2DownloadOperation. See COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON for descriptions of kinds of interrupt reasons. Host can check whether an interrupted download can be resumed with the CanResume property on the ICoreWebView2DownloadOperation. Once resumed, a download is in the COREWEBVIEW2_DOWNLOAD_STATE_IN_PROGRESS state. // This is one of the COREWEBVIEW2_DOWNLOAD_STATE values. COREWEBVIEW2_DOWNLOAD_STATE_INTERRUPTED COREWEBVIEW2_DOWNLOAD_STATE = 0x0000001 // COREWEBVIEW2_DOWNLOAD_STATE_COMPLETED // // The download completed successfully. // This is one of the COREWEBVIEW2_DOWNLOAD_STATE values. COREWEBVIEW2_DOWNLOAD_STATE_COMPLETED COREWEBVIEW2_DOWNLOAD_STATE = 0x0000002 )
type COREWEBVIEW2_FAVICON_IMAGE_FORMAT ¶
type COREWEBVIEW2_FAVICON_IMAGE_FORMAT = TOleEnum
COREWEBVIEW2_FAVICON_IMAGE_FORMAT
Specifies the image format to use for favicon. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_favicon_image_format">See the Globals article.)
const ( // COREWEBVIEW2_FAVICON_IMAGE_FORMAT_PNG // // Indicates that the PNG image format is used. // This is one of the COREWEBVIEW2_FAVICON_IMAGE_FORMAT values. COREWEBVIEW2_FAVICON_IMAGE_FORMAT_PNG COREWEBVIEW2_FAVICON_IMAGE_FORMAT = 0x0000000 // COREWEBVIEW2_FAVICON_IMAGE_FORMAT_JPEG // // Indicates the JPEG image format is used. // This is one of the COREWEBVIEW2_FAVICON_IMAGE_FORMAT values. COREWEBVIEW2_FAVICON_IMAGE_FORMAT_JPEG COREWEBVIEW2_FAVICON_IMAGE_FORMAT = 0x0000001 )
type COREWEBVIEW2_FRAME_KIND ¶
type COREWEBVIEW2_FRAME_KIND = TOleEnum
COREWEBVIEW2_FRAME_KIND
Indicates the frame type used in the `ICoreWebView2FrameInfo` interface. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_frame_kind">See the Globals article.)
const ( // COREWEBVIEW2_FRAME_KIND_UNKNOWN // // Indicates that the frame is an unknown type frame. We may extend this enum type to identify more frame kinds in the future. // This is one of the COREWEBVIEW2_FRAME_KIND values. COREWEBVIEW2_FRAME_KIND_UNKNOWN COREWEBVIEW2_FRAME_KIND = 0x0000000 // COREWEBVIEW2_FRAME_KIND_MAIN_FRAME // // Indicates that the frame is a primary main frame(webview). // This is one of the COREWEBVIEW2_FRAME_KIND values. COREWEBVIEW2_FRAME_KIND_MAIN_FRAME COREWEBVIEW2_FRAME_KIND = 0x0000001 // COREWEBVIEW2_FRAME_KIND_IFRAME // // Indicates that the frame is an iframe. // This is one of the COREWEBVIEW2_FRAME_KIND values. COREWEBVIEW2_FRAME_KIND_IFRAME COREWEBVIEW2_FRAME_KIND = 0x0000002 // COREWEBVIEW2_FRAME_KIND_EMBED // // Indicates that the frame is an embed element. // This is one of the COREWEBVIEW2_FRAME_KIND values. COREWEBVIEW2_FRAME_KIND_EMBED COREWEBVIEW2_FRAME_KIND = 0x0000003 // COREWEBVIEW2_FRAME_KIND_OBJECT // // Indicates that the frame is an object element. // This is one of the COREWEBVIEW2_FRAME_KIND values. COREWEBVIEW2_FRAME_KIND_OBJECT COREWEBVIEW2_FRAME_KIND = 0x0000004 )
type COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND ¶
type COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND = TOleEnum
COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND
Kind of cross origin resource access allowed for host resources during download. Note that other normal access checks like same origin DOM access check and [Content Security Policy](https://developer.mozilla.org/docs/Web/HTTP/CSP) still apply. The following table illustrates the host resource cross origin access according to access context and COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND. Cross Origin Access Context | DENY | ALLOW | DENY_CORS --- | --- | --- | --- From DOM like src of img, script or iframe element| Deny | Allow | Allow From Script like Fetch or XMLHttpRequest| Deny | Allow | Deny <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_host_resource_access_kind">See the Globals article.)
const ( // COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY // // All cross origin resource access is denied, including normal sub resource access as src of a script or image element. // This is one of the COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND values. COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND = 0x0000000 // COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_ALLOW // // All cross origin resource access is allowed, including accesses that are subject to Cross-Origin Resource Sharing(CORS) check. The behavior is similar to a web site sends back http header Access-Control-Allow-Origin: *. // This is one of the COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND values. COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_ALLOW COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND = 0x0000001 // COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY_CORS // // Cross origin resource access is allowed for normal sub resource access like as src of a script or image element, while any access that subjects to CORS check will be denied. See [Cross-Origin Resource Sharing](https://developer.mozilla.org/docs/Web/HTTP/CORS) for more information. // This is one of the COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND values. COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY_CORS COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND = 0x0000002 )
type COREWEBVIEW2_KEY_EVENT_KIND ¶
type COREWEBVIEW2_KEY_EVENT_KIND = TOleEnum
COREWEBVIEW2_KEY_EVENT_KIND
Specifies the key event type that triggered an AcceleratorKeyPressed event. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_key_event_kind">See the Globals article.)
const ( // COREWEBVIEW2_KEY_EVENT_KIND_KEY_DOWN // // Specifies that the key event type corresponds to window message WM_KEYDOWN. // This is one of the COREWEBVIEW2_KEY_EVENT_KIND values. COREWEBVIEW2_KEY_EVENT_KIND_KEY_DOWN COREWEBVIEW2_KEY_EVENT_KIND = 0x0000000 // COREWEBVIEW2_KEY_EVENT_KIND_KEY_UP // // Specifies that the key event type corresponds to window message WM_KEYUP. // This is one of the COREWEBVIEW2_KEY_EVENT_KIND values. COREWEBVIEW2_KEY_EVENT_KIND_KEY_UP COREWEBVIEW2_KEY_EVENT_KIND = 0x0000001 // COREWEBVIEW2_KEY_EVENT_KIND_SYSTEM_KEY_DOWN // // Specifies that the key event type corresponds to window message WM_SYSKEYDOWN. // This is one of the COREWEBVIEW2_KEY_EVENT_KIND values. COREWEBVIEW2_KEY_EVENT_KIND_SYSTEM_KEY_DOWN COREWEBVIEW2_KEY_EVENT_KIND = 0x0000002 // COREWEBVIEW2_KEY_EVENT_KIND_SYSTEM_KEY_UP // // Specifies that the key event type corresponds to window message WM_SYSKEYUP. // This is one of the COREWEBVIEW2_KEY_EVENT_KIND values. COREWEBVIEW2_KEY_EVENT_KIND_SYSTEM_KEY_UP COREWEBVIEW2_KEY_EVENT_KIND = 0x0000003 )
type COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL ¶
type COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL = TOleEnum
COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL
Specifies memory usage target level of WebView. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_memory_usage_target_level">See the Globals article.)
const ( // COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL_NORMAL // // Specifies normal memory usage target level. // This is one of the COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL values. COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL_NORMAL COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL = 0x0000000 // COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL_LOW // // Specifies low memory usage target level. Used for inactivate WebView for reduced memory consumption. // This is one of the COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL values. COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL_LOW COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL = 0x0000001 )
type COREWEBVIEW2_MOUSE_EVENT_KIND ¶
type COREWEBVIEW2_MOUSE_EVENT_KIND = TOleEnum
COREWEBVIEW2_MOUSE_EVENT_KIND
Mouse event type used by SendMouseInput to convey the type of mouse event being sent to WebView. The values of this enum align with the matching WM_* window messages. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_mouse_event_kind">See the Globals article.)
const ( // COREWEBVIEW2_MOUSE_EVENT_KIND_HORIZONTAL_WHEEL // // Mouse horizontal wheel scroll event, WM_MOUSEHWHEEL. // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. COREWEBVIEW2_MOUSE_EVENT_KIND_HORIZONTAL_WHEEL COREWEBVIEW2_MOUSE_EVENT_KIND = 0x000020E // COREWEBVIEW2_MOUSE_EVENT_KIND_LEFT_BUTTON_DOUBLE_CLICK // // Left button double click mouse event, WM_LBUTTONDBLCLK. // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. COREWEBVIEW2_MOUSE_EVENT_KIND_LEFT_BUTTON_DOUBLE_CLICK COREWEBVIEW2_MOUSE_EVENT_KIND = 0x0000203 // COREWEBVIEW2_MOUSE_EVENT_KIND_LEFT_BUTTON_DOWN // // Left button down mouse event, WM_LBUTTONDOWN. // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. COREWEBVIEW2_MOUSE_EVENT_KIND_LEFT_BUTTON_DOWN COREWEBVIEW2_MOUSE_EVENT_KIND = 0x0000201 // COREWEBVIEW2_MOUSE_EVENT_KIND_LEFT_BUTTON_UP // // Left button up mouse event, WM_LBUTTONUP. // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. COREWEBVIEW2_MOUSE_EVENT_KIND_LEFT_BUTTON_UP COREWEBVIEW2_MOUSE_EVENT_KIND = 0x0000202 // COREWEBVIEW2_MOUSE_EVENT_KIND_LEAVE // // Mouse leave event, WM_MOUSELEAVE. // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. COREWEBVIEW2_MOUSE_EVENT_KIND_LEAVE COREWEBVIEW2_MOUSE_EVENT_KIND = 0x00002A3 // COREWEBVIEW2_MOUSE_EVENT_KIND_MIDDLE_BUTTON_DOUBLE_CLICK // // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. // Middle button double click mouse event, WM_MBUTTONDBLCLK. COREWEBVIEW2_MOUSE_EVENT_KIND_MIDDLE_BUTTON_DOUBLE_CLICK COREWEBVIEW2_MOUSE_EVENT_KIND = 0x0000209 // COREWEBVIEW2_MOUSE_EVENT_KIND_MIDDLE_BUTTON_DOWN // // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. // Middle button down mouse event, WM_MBUTTONDOWN. COREWEBVIEW2_MOUSE_EVENT_KIND_MIDDLE_BUTTON_DOWN COREWEBVIEW2_MOUSE_EVENT_KIND = 0x0000207 // COREWEBVIEW2_MOUSE_EVENT_KIND_MIDDLE_BUTTON_UP // // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. // Middle button up mouse event, WM_MBUTTONUP. COREWEBVIEW2_MOUSE_EVENT_KIND_MIDDLE_BUTTON_UP COREWEBVIEW2_MOUSE_EVENT_KIND = 0x0000208 // COREWEBVIEW2_MOUSE_EVENT_KIND_MOVE // // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. // Mouse move event, WM_MOUSEMOVE. COREWEBVIEW2_MOUSE_EVENT_KIND_MOVE COREWEBVIEW2_MOUSE_EVENT_KIND = 0x0000200 // COREWEBVIEW2_MOUSE_EVENT_KIND_RIGHT_BUTTON_DOUBLE_CLICK // // Right button double click mouse event, WM_RBUTTONDBLCLK. // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. COREWEBVIEW2_MOUSE_EVENT_KIND_RIGHT_BUTTON_DOUBLE_CLICK COREWEBVIEW2_MOUSE_EVENT_KIND = 0x0000206 // COREWEBVIEW2_MOUSE_EVENT_KIND_RIGHT_BUTTON_DOWN // // Right button down mouse event, WM_RBUTTONDOWN. // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. COREWEBVIEW2_MOUSE_EVENT_KIND_RIGHT_BUTTON_DOWN COREWEBVIEW2_MOUSE_EVENT_KIND = 0x0000204 // COREWEBVIEW2_MOUSE_EVENT_KIND_RIGHT_BUTTON_UP // // Right button up mouse event, WM_RBUTTONUP. // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. COREWEBVIEW2_MOUSE_EVENT_KIND_RIGHT_BUTTON_UP COREWEBVIEW2_MOUSE_EVENT_KIND = 0x0000205 // COREWEBVIEW2_MOUSE_EVENT_KIND_WHEEL // // Mouse wheel scroll event, WM_MOUSEWHEEL. // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. COREWEBVIEW2_MOUSE_EVENT_KIND_WHEEL COREWEBVIEW2_MOUSE_EVENT_KIND = 0x000020A // COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_DOUBLE_CLICK // // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. // First or second X button double click mouse event, WM_XBUTTONDBLCLK. COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_DOUBLE_CLICK COREWEBVIEW2_MOUSE_EVENT_KIND = 0x000020D // COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_DOWN // // First or second X button down mouse event, WM_XBUTTONDOWN. // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_DOWN COREWEBVIEW2_MOUSE_EVENT_KIND = 0x000020B // COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_UP // // First or second X button up mouse event, WM_XBUTTONUP. // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_UP COREWEBVIEW2_MOUSE_EVENT_KIND = 0x000020C // COREWEBVIEW2_MOUSE_EVENT_KIND_NON_CLIENT_RIGHT_BUTTON_DOWN // // Mouse Right Button Down event over a nonclient area, WM_NCRBUTTONDOWN. // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. COREWEBVIEW2_MOUSE_EVENT_KIND_NON_CLIENT_RIGHT_BUTTON_DOWN COREWEBVIEW2_MOUSE_EVENT_KIND = 0x0A4 // COREWEBVIEW2_MOUSE_EVENT_KIND_NON_CLIENT_RIGHT_BUTTON_UP // // Mouse Right Button up event over a nonclient area, WM_NCRBUTTONUP. // This is one of the COREWEBVIEW2_MOUSE_EVENT_KIND values. COREWEBVIEW2_MOUSE_EVENT_KIND_NON_CLIENT_RIGHT_BUTTON_UP COREWEBVIEW2_MOUSE_EVENT_KIND = 0x0A5 )
type COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ¶
type COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = TOleEnum
COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS
Mouse event virtual keys associated with a COREWEBVIEW2_MOUSE_EVENT_KIND for SendMouseInput. These values can be combined into a bit flag if more than one virtual key is pressed for the event. The values of this enum align with the matching MK_* mouse keys. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_mouse_event_virtual_keys">See the Globals article.)
const ( // COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_NONE // // No additional keys pressed. // This is one of the COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS values. COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_NONE COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = 0x0000000 // COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_LEFT_BUTTON // // Left mouse button is down, MK_LBUTTON. // This is one of the COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS values. COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_LEFT_BUTTON COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = 0x0000001 // COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_RIGHT_BUTTON // // Right mouse button is down, MK_RBUTTON. // This is one of the COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS values. COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_RIGHT_BUTTON COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = 0x0000002 // COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_SHIFT // // SHIFT key is down, MK_SHIFT. // This is one of the COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS values. COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_SHIFT COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = 0x0000004 // COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_CONTROL // // This is one of the COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS values. // CTRL key is down, MK_CONTROL. COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_CONTROL COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = 0x0000008 // COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_MIDDLE_BUTTON // // Middle mouse button is down, MK_MBUTTON. // This is one of the COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS values. COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_MIDDLE_BUTTON COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = 0x0000010 // COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_X_BUTTON1 // // This is one of the COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS values. // First X button is down, MK_XBUTTON1 COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_X_BUTTON1 COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = 0x0000020 // COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_X_BUTTON2 // // Second X button is down, MK_XBUTTON2 // This is one of the COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS values. COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_X_BUTTON2 COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = 0x0000040 )
type COREWEBVIEW2_MOVE_FOCUS_REASON ¶
type COREWEBVIEW2_MOVE_FOCUS_REASON = TOleEnum
COREWEBVIEW2_MOVE_FOCUS_REASON
Specifies the reason for moving focus. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_move_focus_reason">See the Globals article.)
const ( // COREWEBVIEW2_MOVE_FOCUS_REASON_PROGRAMMATIC // // This is one of the COREWEBVIEW2_MOVE_FOCUS_REASON values. // Specifies that the code is setting focus into WebView. COREWEBVIEW2_MOVE_FOCUS_REASON_PROGRAMMATIC COREWEBVIEW2_MOVE_FOCUS_REASON = 0x0000000 // COREWEBVIEW2_MOVE_FOCUS_REASON_NEXT // // Specifies that the focus is moving due to Tab traversal forward. // This is one of the COREWEBVIEW2_MOVE_FOCUS_REASON values. COREWEBVIEW2_MOVE_FOCUS_REASON_NEXT COREWEBVIEW2_MOVE_FOCUS_REASON = 0x0000001 // COREWEBVIEW2_MOVE_FOCUS_REASON_PREVIOUS // // Specifies that the focus is moving due to Tab traversal backward. // This is one of the COREWEBVIEW2_MOVE_FOCUS_REASON values. COREWEBVIEW2_MOVE_FOCUS_REASON_PREVIOUS COREWEBVIEW2_MOVE_FOCUS_REASON = 0x0000002 )
type COREWEBVIEW2_NAVIGATION_KIND ¶
type COREWEBVIEW2_NAVIGATION_KIND = TOleEnum
COREWEBVIEW2_NAVIGATION_KIND
Specifies the navigation kind of each navigation. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_navigation_kind">See the Globals article.)
const ( // COREWEBVIEW2_NAVIGATION_KIND_RELOAD // // A navigation caused by CoreWebView2.Reload(), location.reload(), the end user using F5 or other UX, or other reload mechanisms to reload the current document without modifying the navigation history. // This is one of the COREWEBVIEW2_NAVIGATION_KIND values. COREWEBVIEW2_NAVIGATION_KIND_RELOAD COREWEBVIEW2_NAVIGATION_KIND = 0x0000000 // COREWEBVIEW2_NAVIGATION_KIND_BACK_OR_FORWARD // // A navigation back or forward to a different entry in the session navigation history, like via CoreWebView2.Back(), location.back(), the end user pressing Alt+Left or other UX, or other mechanisms to navigate back or forward in the current session navigation history. // This is one of the COREWEBVIEW2_NAVIGATION_KIND values. This kind doesn't distinguish back or forward, because we can't distinguish it from origin source blink.mojom.NavigationType. COREWEBVIEW2_NAVIGATION_KIND_BACK_OR_FORWARD COREWEBVIEW2_NAVIGATION_KIND = 0x0000001 // COREWEBVIEW2_NAVIGATION_KIND_NEW_DOCUMENT // // A navigation to another document, which can be caused by CoreWebView2.Navigate(), window.location.href = ..., or other WebView2 or DOM APIs that navigate to a new URI. // This is one of the COREWEBVIEW2_NAVIGATION_KIND values. COREWEBVIEW2_NAVIGATION_KIND_NEW_DOCUMENT COREWEBVIEW2_NAVIGATION_KIND = 0x0000002 )
type COREWEBVIEW2_PDF_TOOLBAR_ITEMS ¶
type COREWEBVIEW2_PDF_TOOLBAR_ITEMS = TOleEnum
COREWEBVIEW2_PDF_TOOLBAR_ITEMS
PDF toolbar item. This enum must be in sync with ToolBarItem in pdf-store-data-types.ts Specifies the PDF toolbar item types used for the ICoreWebView2Settings.put_HiddenPdfToolbarItems method. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_pdf_toolbar_items">See the Globals article.)
const ( // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_NONE // // No item // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. COREWEBVIEW2_PDF_TOOLBAR_ITEMS_NONE COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0000000 // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_SAVE // // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. // The save button COREWEBVIEW2_PDF_TOOLBAR_ITEMS_SAVE COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0000001 // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_PRINT // // The print button // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. COREWEBVIEW2_PDF_TOOLBAR_ITEMS_PRINT COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0000002 // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_SAVE_AS // // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. // The save as button COREWEBVIEW2_PDF_TOOLBAR_ITEMS_SAVE_AS COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0000004 // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_ZOOM_IN // // The zoom in button // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. COREWEBVIEW2_PDF_TOOLBAR_ITEMS_ZOOM_IN COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0000008 // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_ZOOM_OUT // // The zoom out button // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. COREWEBVIEW2_PDF_TOOLBAR_ITEMS_ZOOM_OUT COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0000010 // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_ROTATE // // The rotate button // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. COREWEBVIEW2_PDF_TOOLBAR_ITEMS_ROTATE COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0000020 // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_FIT_PAGE // // The fit page button // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. COREWEBVIEW2_PDF_TOOLBAR_ITEMS_FIT_PAGE COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0000040 // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_PAGE_LAYOUT // // The page layout button // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. COREWEBVIEW2_PDF_TOOLBAR_ITEMS_PAGE_LAYOUT COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0000080 // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_BOOKMARKS // // The bookmarks button // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. COREWEBVIEW2_PDF_TOOLBAR_ITEMS_BOOKMARKS COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0000100 // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_PAGE_SELECTOR // // The page select button // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. COREWEBVIEW2_PDF_TOOLBAR_ITEMS_PAGE_SELECTOR COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0000200 // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_SEARCH // // The search button // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. COREWEBVIEW2_PDF_TOOLBAR_ITEMS_SEARCH COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0000400 // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_FULL_SCREEN // // The full screen button // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. COREWEBVIEW2_PDF_TOOLBAR_ITEMS_FULL_SCREEN COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0000800 // COREWEBVIEW2_PDF_TOOLBAR_ITEMS_MORE_SETTINGS // // The more settings button // This is one of the COREWEBVIEW2_PDF_TOOLBAR_ITEMS values. COREWEBVIEW2_PDF_TOOLBAR_ITEMS_MORE_SETTINGS COREWEBVIEW2_PDF_TOOLBAR_ITEMS = 0x0001000 )
type COREWEBVIEW2_PERMISSION_KIND ¶
type COREWEBVIEW2_PERMISSION_KIND = TOleEnum
COREWEBVIEW2_PERMISSION_KIND
Indicates the type of a permission request. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_permission_kind">See the Globals article.)
const ( // COREWEBVIEW2_PERMISSION_KIND_UNKNOWN_PERMISSION // // Indicates an unknown permission. // This is one of the COREWEBVIEW2_PERMISSION_KIND values. COREWEBVIEW2_PERMISSION_KIND_UNKNOWN_PERMISSION COREWEBVIEW2_PERMISSION_KIND = 0x0000000 // COREWEBVIEW2_PERMISSION_KIND_MICROPHONE // // Indicates permission to capture audio. // This is one of the COREWEBVIEW2_PERMISSION_KIND values. COREWEBVIEW2_PERMISSION_KIND_MICROPHONE COREWEBVIEW2_PERMISSION_KIND = 0x0000001 // COREWEBVIEW2_PERMISSION_KIND_CAMERA // // Indicates permission to capture video. // This is one of the COREWEBVIEW2_PERMISSION_KIND values. COREWEBVIEW2_PERMISSION_KIND_CAMERA COREWEBVIEW2_PERMISSION_KIND = 0x0000002 // COREWEBVIEW2_PERMISSION_KIND_GEOLOCATION // // Indicates permission to access geolocation. // This is one of the COREWEBVIEW2_PERMISSION_KIND values. COREWEBVIEW2_PERMISSION_KIND_GEOLOCATION COREWEBVIEW2_PERMISSION_KIND = 0x0000003 // COREWEBVIEW2_PERMISSION_KIND_NOTIFICATIONS // // Indicates permission to send web notifications. Apps that would like to show notifications should handle PermissionRequested events and no browser permission prompt will be shown for notification requests. Note that push notifications are currently unavailable in WebView2. // This is one of the COREWEBVIEW2_PERMISSION_KIND values. COREWEBVIEW2_PERMISSION_KIND_NOTIFICATIONS COREWEBVIEW2_PERMISSION_KIND = 0x0000004 // COREWEBVIEW2_PERMISSION_KIND_OTHER_SENSORS // // This is one of the COREWEBVIEW2_PERMISSION_KIND values. // Indicates permission to access generic sensor. Generic Sensor covering ambient-light-sensor, accelerometer, gyroscope, and magnetometer. COREWEBVIEW2_PERMISSION_KIND_OTHER_SENSORS COREWEBVIEW2_PERMISSION_KIND = 0x0000005 // COREWEBVIEW2_PERMISSION_KIND_CLIPBOARD_READ // // Indicates permission to read the system clipboard without a user gesture. // This is one of the COREWEBVIEW2_PERMISSION_KIND values. COREWEBVIEW2_PERMISSION_KIND_CLIPBOARD_READ COREWEBVIEW2_PERMISSION_KIND = 0x0000006 // COREWEBVIEW2_PERMISSION_KIND_MULTIPLE_AUTOMATIC_DOWNLOADS // // Indicates permission to automatically download multiple files. Permission is requested when multiple downloads are triggered in quick succession. // This is one of the COREWEBVIEW2_PERMISSION_KIND values. COREWEBVIEW2_PERMISSION_KIND_MULTIPLE_AUTOMATIC_DOWNLOADS COREWEBVIEW2_PERMISSION_KIND = 0x0000007 // COREWEBVIEW2_PERMISSION_KIND_FILE_READ_WRITE // // Indicates permission to read and write to files or folders on the device. Permission is requested when developers use the [File System Access API](https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API) to show the file or folder picker to the end user, and then request "readwrite" permission for the user's selection. // This is one of the COREWEBVIEW2_PERMISSION_KIND values. COREWEBVIEW2_PERMISSION_KIND_FILE_READ_WRITE COREWEBVIEW2_PERMISSION_KIND = 0x0000008 // COREWEBVIEW2_PERMISSION_KIND_AUTOPLAY // // Indicates permission to play audio and video automatically on sites. This permission affects the autoplay attribute and play method of the audio and video HTML elements, and the start method of the Web Audio API. See the [Autoplay guide for media and Web Audio APIs](https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide) for details. // This is one of the COREWEBVIEW2_PERMISSION_KIND values. COREWEBVIEW2_PERMISSION_KIND_AUTOPLAY COREWEBVIEW2_PERMISSION_KIND = 0x0000009 // COREWEBVIEW2_PERMISSION_KIND_LOCAL_FONTS // // Indicates permission to use fonts on the device. Permission is requested when developers use the [Local Font Access API](https://wicg.github.io/local-font-access/) to query the system fonts available for styling web content. // This is one of the COREWEBVIEW2_PERMISSION_KIND values. COREWEBVIEW2_PERMISSION_KIND_LOCAL_FONTS COREWEBVIEW2_PERMISSION_KIND = 0x000000A // COREWEBVIEW2_PERMISSION_KIND_MIDI_SYSTEM_EXCLUSIVE_MESSAGES // // Indicates permission to send and receive system exclusive messages to/from MIDI (Musical Instrument Digital Interface) devices. Permission is requested when developers use the [Web MIDI API](https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API) to request access to system exclusive MIDI messages. // This is one of the COREWEBVIEW2_PERMISSION_KIND values. COREWEBVIEW2_PERMISSION_KIND_MIDI_SYSTEM_EXCLUSIVE_MESSAGES COREWEBVIEW2_PERMISSION_KIND = 0x000000B // COREWEBVIEW2_PERMISSION_KIND_WINDOW_MANAGEMENT // // Indicates permission to open and place windows on the screen. Permission is requested when developers use the [Multi-Screen Window Placement API](https://www.w3.org/TR/window-placement/) to get screen details. // This is one of the COREWEBVIEW2_PERMISSION_KIND values. COREWEBVIEW2_PERMISSION_KIND_WINDOW_MANAGEMENT COREWEBVIEW2_PERMISSION_KIND = 0x000000C )
type COREWEBVIEW2_PERMISSION_STATE ¶
type COREWEBVIEW2_PERMISSION_STATE = TOleEnum
COREWEBVIEW2_PERMISSION_STATE
Specifies the response to a permission request. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_permission_state">See the Globals article.)
const ( // COREWEBVIEW2_PERMISSION_STATE_DEFAULT // // Specifies that the default browser behavior is used, which normally prompt users for decision. // This is one of the COREWEBVIEW2_PERMISSION_STATE values. COREWEBVIEW2_PERMISSION_STATE_DEFAULT COREWEBVIEW2_PERMISSION_STATE = 0x0000000 // COREWEBVIEW2_PERMISSION_STATE_ALLOW // // Specifies that the permission request is granted. // This is one of the COREWEBVIEW2_PERMISSION_STATE values. COREWEBVIEW2_PERMISSION_STATE_ALLOW COREWEBVIEW2_PERMISSION_STATE = 0x0000001 // COREWEBVIEW2_PERMISSION_STATE_DENY // // Specifies that the permission request is denied. // This is one of the COREWEBVIEW2_PERMISSION_STATE values. COREWEBVIEW2_PERMISSION_STATE_DENY COREWEBVIEW2_PERMISSION_STATE = 0x0000002 )
type COREWEBVIEW2_POINTER_EVENT_KIND ¶
type COREWEBVIEW2_POINTER_EVENT_KIND = TOleEnum
COREWEBVIEW2_POINTER_EVENT_KIND
Pointer event type used by SendPointerInput to convey the type of pointer event being sent to WebView. The values of this enum align with the matching WM_POINTER* window messages. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_pointer_event_kind">See the Globals article.)
const ( // COREWEBVIEW2_POINTER_EVENT_KIND_ACTIVATE // // Corresponds to WM_POINTERACTIVATE. // This is one of the COREWEBVIEW2_POINTER_EVENT_KIND values. COREWEBVIEW2_POINTER_EVENT_KIND_ACTIVATE COREWEBVIEW2_POINTER_EVENT_KIND = 0x000024B // COREWEBVIEW2_POINTER_EVENT_KIND_DOWN // // Corresponds to WM_POINTERDOWN. // This is one of the COREWEBVIEW2_POINTER_EVENT_KIND values. COREWEBVIEW2_POINTER_EVENT_KIND_DOWN COREWEBVIEW2_POINTER_EVENT_KIND = 0x0000246 // COREWEBVIEW2_POINTER_EVENT_KIND_ENTER // // This is one of the COREWEBVIEW2_POINTER_EVENT_KIND values. // Corresponds to WM_POINTERENTER. COREWEBVIEW2_POINTER_EVENT_KIND_ENTER COREWEBVIEW2_POINTER_EVENT_KIND = 0x0000249 // COREWEBVIEW2_POINTER_EVENT_KIND_LEAVE // // This is one of the COREWEBVIEW2_POINTER_EVENT_KIND values. // Corresponds to WM_POINTERLEAVE. COREWEBVIEW2_POINTER_EVENT_KIND_LEAVE COREWEBVIEW2_POINTER_EVENT_KIND = 0x000024A // COREWEBVIEW2_POINTER_EVENT_KIND_UP // // This is one of the COREWEBVIEW2_POINTER_EVENT_KIND values. // Corresponds to WM_POINTERUP. COREWEBVIEW2_POINTER_EVENT_KIND_UP COREWEBVIEW2_POINTER_EVENT_KIND = 0x0000247 // COREWEBVIEW2_POINTER_EVENT_KIND_UPDATE // // Corresponds to WM_POINTERUPDATE. // This is one of the COREWEBVIEW2_POINTER_EVENT_KIND values. COREWEBVIEW2_POINTER_EVENT_KIND_UPDATE COREWEBVIEW2_POINTER_EVENT_KIND = 0x0000245 )
type COREWEBVIEW2_PREFERRED_COLOR_SCHEME ¶
type COREWEBVIEW2_PREFERRED_COLOR_SCHEME = TOleEnum
COREWEBVIEW2_PREFERRED_COLOR_SCHEME
An enum to represent the options for WebView2 color scheme: auto, light, or dark. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_preferred_color_scheme">See the Globals article.)
const ( // COREWEBVIEW2_PREFERRED_COLOR_SCHEME_AUTO // // Auto color scheme. // This is one of the COREWEBVIEW2_PREFERRED_COLOR_SCHEME values. COREWEBVIEW2_PREFERRED_COLOR_SCHEME_AUTO COREWEBVIEW2_PREFERRED_COLOR_SCHEME = 0x0000000 // COREWEBVIEW2_PREFERRED_COLOR_SCHEME_LIGHT // // Light color scheme. // This is one of the COREWEBVIEW2_PREFERRED_COLOR_SCHEME values. COREWEBVIEW2_PREFERRED_COLOR_SCHEME_LIGHT COREWEBVIEW2_PREFERRED_COLOR_SCHEME = 0x0000001 // COREWEBVIEW2_PREFERRED_COLOR_SCHEME_DARK // // Dark color scheme. // This is one of the COREWEBVIEW2_PREFERRED_COLOR_SCHEME values. COREWEBVIEW2_PREFERRED_COLOR_SCHEME_DARK COREWEBVIEW2_PREFERRED_COLOR_SCHEME = 0x0000002 )
type COREWEBVIEW2_PRINT_COLLATION ¶
type COREWEBVIEW2_PRINT_COLLATION = TOleEnum
COREWEBVIEW2_PRINT_COLLATION
Specifies the collation for a print. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_print_collation">See the Globals article.)
const ( // COREWEBVIEW2_PRINT_COLLATION_DEFAULT // // The default collation for a printer. // This is one of the COREWEBVIEW2_PRINT_COLLATION values. COREWEBVIEW2_PRINT_COLLATION_DEFAULT COREWEBVIEW2_PRINT_COLLATION = 0x0000000 // COREWEBVIEW2_PRINT_COLLATION_COLLATED // // Indicate that the collation has been selected for the printed output. // This is one of the COREWEBVIEW2_PRINT_COLLATION values. COREWEBVIEW2_PRINT_COLLATION_COLLATED COREWEBVIEW2_PRINT_COLLATION = 0x0000001 // COREWEBVIEW2_PRINT_COLLATION_UNCOLLATED // // Indicate that the collation has not been selected for the printed output. // This is one of the COREWEBVIEW2_PRINT_COLLATION values. COREWEBVIEW2_PRINT_COLLATION_UNCOLLATED COREWEBVIEW2_PRINT_COLLATION = 0x0000002 )
type COREWEBVIEW2_PRINT_COLOR_MODE ¶
type COREWEBVIEW2_PRINT_COLOR_MODE = TOleEnum
COREWEBVIEW2_PRINT_COLOR_MODE
Specifies the color mode for a print. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_print_color_mode">See the Globals article.)
const ( // COREWEBVIEW2_PRINT_COLOR_MODE_DEFAULT // // This is one of the COREWEBVIEW2_PRINT_COLOR_MODE values. // The default color mode for a printer. COREWEBVIEW2_PRINT_COLOR_MODE_DEFAULT COREWEBVIEW2_PRINT_COLOR_MODE = 0x0000000 // COREWEBVIEW2_PRINT_COLOR_MODE_COLOR // // Indicate that the printed output will be in color. // This is one of the COREWEBVIEW2_PRINT_COLOR_MODE values. COREWEBVIEW2_PRINT_COLOR_MODE_COLOR COREWEBVIEW2_PRINT_COLOR_MODE = 0x0000001 // COREWEBVIEW2_PRINT_COLOR_MODE_GRAYSCALE // // Indicate that the printed output will be in shades of gray. // This is one of the COREWEBVIEW2_PRINT_COLOR_MODE values. COREWEBVIEW2_PRINT_COLOR_MODE_GRAYSCALE COREWEBVIEW2_PRINT_COLOR_MODE = 0x0000002 )
type COREWEBVIEW2_PRINT_DIALOG_KIND ¶
type COREWEBVIEW2_PRINT_DIALOG_KIND = TOleEnum
COREWEBVIEW2_PRINT_DIALOG_KIND
Specifies the print dialog kind. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_print_dialog_kind">See the Globals article.)
const ( // COREWEBVIEW2_PRINT_DIALOG_KIND_BROWSER // // Opens the browser print preview dialog. // This is one of the COREWEBVIEW2_PRINT_DIALOG_KIND values. COREWEBVIEW2_PRINT_DIALOG_KIND_BROWSER COREWEBVIEW2_PRINT_DIALOG_KIND = 0x0000000 // COREWEBVIEW2_PRINT_DIALOG_KIND_SYSTEM // // Opens the system print dialog. // This is one of the COREWEBVIEW2_PRINT_DIALOG_KIND values. COREWEBVIEW2_PRINT_DIALOG_KIND_SYSTEM COREWEBVIEW2_PRINT_DIALOG_KIND = 0x0000001 )
type COREWEBVIEW2_PRINT_DUPLEX ¶
type COREWEBVIEW2_PRINT_DUPLEX = TOleEnum
COREWEBVIEW2_PRINT_DUPLEX
Specifies the duplex option for a print. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_print_duplex">See the Globals article.)
const ( // COREWEBVIEW2_PRINT_DUPLEX_DEFAULT // // The default duplex for a printer. // This is one of the COREWEBVIEW2_PRINT_DUPLEX values. COREWEBVIEW2_PRINT_DUPLEX_DEFAULT COREWEBVIEW2_PRINT_DUPLEX = 0x0000000 // COREWEBVIEW2_PRINT_DUPLEX_ONE_SIDED // // Print on only one side of the sheet. // This is one of the COREWEBVIEW2_PRINT_DUPLEX values. COREWEBVIEW2_PRINT_DUPLEX_ONE_SIDED COREWEBVIEW2_PRINT_DUPLEX = 0x0000001 // COREWEBVIEW2_PRINT_DUPLEX_TWO_SIDED_LONG_EDGE // // Print on both sides of the sheet, flipped along the long edge. // This is one of the COREWEBVIEW2_PRINT_DUPLEX values. COREWEBVIEW2_PRINT_DUPLEX_TWO_SIDED_LONG_EDGE COREWEBVIEW2_PRINT_DUPLEX = 0x0000002 // COREWEBVIEW2_PRINT_DUPLEX_TWO_SIDED_SHORT_EDGE // // Print on both sides of the sheet, flipped along the short edge. // This is one of the COREWEBVIEW2_PRINT_DUPLEX values. COREWEBVIEW2_PRINT_DUPLEX_TWO_SIDED_SHORT_EDGE COREWEBVIEW2_PRINT_DUPLEX = 0x0000003 )
type COREWEBVIEW2_PRINT_MEDIA_SIZE ¶
type COREWEBVIEW2_PRINT_MEDIA_SIZE = TOleEnum
COREWEBVIEW2_PRINT_MEDIA_SIZE
Specifies the media size for a print. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_print_media_size">See the Globals article.)
const ( // COREWEBVIEW2_PRINT_MEDIA_SIZE_DEFAULT // // The default media size for a printer. // This is one of the COREWEBVIEW2_PRINT_MEDIA_SIZE values. COREWEBVIEW2_PRINT_MEDIA_SIZE_DEFAULT COREWEBVIEW2_PRINT_MEDIA_SIZE = 0x0000000 // COREWEBVIEW2_PRINT_MEDIA_SIZE_CUSTOM // // Indicate custom media size that is specific to the printer. // This is one of the COREWEBVIEW2_PRINT_MEDIA_SIZE values. COREWEBVIEW2_PRINT_MEDIA_SIZE_CUSTOM COREWEBVIEW2_PRINT_MEDIA_SIZE = 0x0000001 )
type COREWEBVIEW2_PRINT_ORIENTATION ¶
type COREWEBVIEW2_PRINT_ORIENTATION = TOleEnum
COREWEBVIEW2_PRINT_ORIENTATION
The orientation for printing, used by the Orientation property on ICoreWebView2PrintSettings. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_print_orientation">See the Globals article.)
const ( // COREWEBVIEW2_PRINT_ORIENTATION_PORTRAIT // // This is one of the COREWEBVIEW2_PRINT_ORIENTATION values. // Print the page(s) in portrait orientation. COREWEBVIEW2_PRINT_ORIENTATION_PORTRAIT COREWEBVIEW2_PRINT_ORIENTATION = 0x0000000 // COREWEBVIEW2_PRINT_ORIENTATION_LANDSCAPE // // This is one of the COREWEBVIEW2_PRINT_ORIENTATION values. // Print the page(s) in landscape orientation. COREWEBVIEW2_PRINT_ORIENTATION_LANDSCAPE COREWEBVIEW2_PRINT_ORIENTATION = 0x0000001 )
type COREWEBVIEW2_PRINT_STATUS ¶
type COREWEBVIEW2_PRINT_STATUS = TOleEnum
COREWEBVIEW2_PRINT_STATUS
Indicates the status for printing. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_print_status">See the Globals article.)
const ( // COREWEBVIEW2_PRINT_STATUS_SUCCEEDED // // Indicates that the print operation is succeeded. // This is one of the COREWEBVIEW2_PRINT_STATUS values. COREWEBVIEW2_PRINT_STATUS_SUCCEEDED COREWEBVIEW2_PRINT_STATUS = 0x0000000 // COREWEBVIEW2_PRINT_STATUS_PRINTER_UNAVAILABLE // // Indicates that the printer is not available. // This is one of the COREWEBVIEW2_PRINT_STATUS values. COREWEBVIEW2_PRINT_STATUS_PRINTER_UNAVAILABLE COREWEBVIEW2_PRINT_STATUS = 0x0000001 // COREWEBVIEW2_PRINT_STATUS_OTHER_ERROR // // Indicates that the print operation is failed. // This is one of the COREWEBVIEW2_PRINT_STATUS values. COREWEBVIEW2_PRINT_STATUS_OTHER_ERROR COREWEBVIEW2_PRINT_STATUS = 0x0000002 )
type COREWEBVIEW2_PROCESS_FAILED_KIND ¶
type COREWEBVIEW2_PROCESS_FAILED_KIND = TOleEnum
COREWEBVIEW2_PROCESS_FAILED_KIND
Specifies the process failure type used in the `ICoreWebView2ProcessFailedEventArgs` interface. The values in this enum make reference to the process kinds in the Chromium architecture. For more information about what these processes are and what they do, see [Browser Architecture - Inside look at modern web browser](https://developers.google.com/web/updates/2018/09/inside-browser-part1). <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_process_failed_kind">See the Globals article.)
const ( // COREWEBVIEW2_PROCESS_FAILED_KIND_BROWSER_PROCESS_EXITED // // Indicates that the browser process ended unexpectedly. The WebView automatically moves to the Closed state. The app has to recreate a new WebView to recover from this failure. // This is one of the COREWEBVIEW2_PROCESS_FAILED_KIND values. COREWEBVIEW2_PROCESS_FAILED_KIND_BROWSER_PROCESS_EXITED COREWEBVIEW2_PROCESS_FAILED_KIND = 0x0000000 // COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_EXITED // // Indicates that the main frame's render process ended unexpectedly. Any subframes in the WebView will be gone too. A new render process is created automatically and navigated to an error page. You can use the `Reload` method to try to recover from this failure. Alternatively, you can `Close` and recreate the WebView. // This is one of the COREWEBVIEW2_PROCESS_FAILED_KIND values. COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_EXITED COREWEBVIEW2_PROCESS_FAILED_KIND = 0x0000001 // COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_UNRESPONSIVE // // This is one of the COREWEBVIEW2_PROCESS_FAILED_KIND values. // Indicates that the main frame's render process is unresponsive. Renderer process unresponsiveness can happen for the following reasons: * There is a **long-running script** being executed. For example, the web content in your WebView might be performing a synchronous XHR, or have entered an infinite loop. * The **system is busy**. The `ProcessFailed` event will continue to be raised every few seconds until the renderer process has become responsive again. The application can consider taking action if the event keeps being raised. For example, the application might show UI for the user to decide to keep waiting or reload the page, or navigate away. COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_UNRESPONSIVE COREWEBVIEW2_PROCESS_FAILED_KIND = 0x0000002 // COREWEBVIEW2_PROCESS_FAILED_KIND_FRAME_RENDER_PROCESS_EXITED // // Indicates that a frame-only render process ended unexpectedly. The process exit does not affect the top-level document, only a subset of the subframes within it. The content in these frames is replaced with an error page in the frame. Your application can communicate with the main frame to recover content in the impacted frames, using `ICoreWebView2ProcessFailedEventArgs2.FrameInfosForFailedProcess` to get information about the impacted frames. // This is one of the COREWEBVIEW2_PROCESS_FAILED_KIND values. COREWEBVIEW2_PROCESS_FAILED_KIND_FRAME_RENDER_PROCESS_EXITED COREWEBVIEW2_PROCESS_FAILED_KIND = 0x0000003 // COREWEBVIEW2_PROCESS_FAILED_KIND_UTILITY_PROCESS_EXITED // // Indicates that a utility process ended unexpectedly. The failed process is recreated automatically. Your application does **not** need to handle recovery for this event, but can use `ICoreWebView2ProcessFailedEventArgs` and `ICoreWebView2ProcessFailedEventArgs2` to collect information about the failure, including `ProcessDescription`. // This is one of the COREWEBVIEW2_PROCESS_FAILED_KIND values. COREWEBVIEW2_PROCESS_FAILED_KIND_UTILITY_PROCESS_EXITED COREWEBVIEW2_PROCESS_FAILED_KIND = 0x0000004 // COREWEBVIEW2_PROCESS_FAILED_KIND_SANDBOX_HELPER_PROCESS_EXITED // // Indicates that a sandbox helper process ended unexpectedly. This failure is not fatal. Your application does **not** need to handle recovery for this event, but can use `ICoreWebView2ProcessFailedEventArgs` and `ICoreWebView2ProcessFailedEventArgs2` to collect information about the failure. // This is one of the COREWEBVIEW2_PROCESS_FAILED_KIND values. COREWEBVIEW2_PROCESS_FAILED_KIND_SANDBOX_HELPER_PROCESS_EXITED COREWEBVIEW2_PROCESS_FAILED_KIND = 0x0000005 // COREWEBVIEW2_PROCESS_FAILED_KIND_GPU_PROCESS_EXITED // // Indicates that the GPU process ended unexpectedly. The failed process is recreated automatically. Your application does **not** need to handle recovery for this event, but can use `ICoreWebView2ProcessFailedEventArgs` and `ICoreWebView2ProcessFailedEventArgs2` to collect information about the failure. // This is one of the COREWEBVIEW2_PROCESS_FAILED_KIND values. COREWEBVIEW2_PROCESS_FAILED_KIND_GPU_PROCESS_EXITED COREWEBVIEW2_PROCESS_FAILED_KIND = 0x0000006 // COREWEBVIEW2_PROCESS_FAILED_KIND_PPAPI_PLUGIN_PROCESS_EXITED // // Indicates that a PPAPI plugin process ended unexpectedly. This failure is not fatal. Your application does **not** need to handle recovery for this event, but can use `ICoreWebView2ProcessFailedEventArgs` and `ICoreWebView2ProcessFailedEventArgs2` to collect information about the failure, including `ProcessDescription`. // This is one of the COREWEBVIEW2_PROCESS_FAILED_KIND values. COREWEBVIEW2_PROCESS_FAILED_KIND_PPAPI_PLUGIN_PROCESS_EXITED COREWEBVIEW2_PROCESS_FAILED_KIND = 0x0000007 // COREWEBVIEW2_PROCESS_FAILED_KIND_PPAPI_BROKER_PROCESS_EXITED // // Indicates that a PPAPI plugin broker process ended unexpectedly. This failure is not fatal. Your application does **not** need to handle recovery for this event, but can use `ICoreWebView2ProcessFailedEventArgs` and `ICoreWebView2ProcessFailedEventArgs2` to collect information about the failure. // This is one of the COREWEBVIEW2_PROCESS_FAILED_KIND values. COREWEBVIEW2_PROCESS_FAILED_KIND_PPAPI_BROKER_PROCESS_EXITED COREWEBVIEW2_PROCESS_FAILED_KIND = 0x0000008 // COREWEBVIEW2_PROCESS_FAILED_KIND_UNKNOWN_PROCESS_EXITED // // Indicates that a process of unspecified kind ended unexpectedly. Your application can use `ICoreWebView2ProcessFailedEventArgs` and `ICoreWebView2ProcessFailedEventArgs2` to collect information about the failure. // This is one of the COREWEBVIEW2_PROCESS_FAILED_KIND values. COREWEBVIEW2_PROCESS_FAILED_KIND_UNKNOWN_PROCESS_EXITED COREWEBVIEW2_PROCESS_FAILED_KIND = 0x0000009 )
type COREWEBVIEW2_PROCESS_FAILED_REASON ¶
type COREWEBVIEW2_PROCESS_FAILED_REASON = TOleEnum
COREWEBVIEW2_PROCESS_FAILED_REASON
Specifies the process failure reason used in the ICoreWebView2ProcessFailedEventHandler interface. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_process_failed_reason">See the Globals article.)
const ( // COREWEBVIEW2_PROCESS_FAILED_REASON_UNEXPECTED // // An unexpected process failure occurred. // This is one of the COREWEBVIEW2_PROCESS_FAILED_REASON values. COREWEBVIEW2_PROCESS_FAILED_REASON_UNEXPECTED COREWEBVIEW2_PROCESS_FAILED_REASON = 0x0000000 // COREWEBVIEW2_PROCESS_FAILED_REASON_UNRESPONSIVE // // The process became unresponsive. This only applies to the main frame's render process. // This is one of the COREWEBVIEW2_PROCESS_FAILED_REASON values. COREWEBVIEW2_PROCESS_FAILED_REASON_UNRESPONSIVE COREWEBVIEW2_PROCESS_FAILED_REASON = 0x0000001 // COREWEBVIEW2_PROCESS_FAILED_REASON_TERMINATED // // This is one of the COREWEBVIEW2_PROCESS_FAILED_REASON values. // The process was terminated. For example, from Task Manager. COREWEBVIEW2_PROCESS_FAILED_REASON_TERMINATED COREWEBVIEW2_PROCESS_FAILED_REASON = 0x0000002 // COREWEBVIEW2_PROCESS_FAILED_REASON_CRASHED // // This is one of the COREWEBVIEW2_PROCESS_FAILED_REASON values. // The process crashed. Most crashes will generate dumps in the location indicated by `ICoreWebView2Environment11.get_FailureReportFolderPath`. COREWEBVIEW2_PROCESS_FAILED_REASON_CRASHED COREWEBVIEW2_PROCESS_FAILED_REASON = 0x0000003 // COREWEBVIEW2_PROCESS_FAILED_REASON_LAUNCH_FAILED // // This is one of the COREWEBVIEW2_PROCESS_FAILED_REASON values. // The process failed to launch. COREWEBVIEW2_PROCESS_FAILED_REASON_LAUNCH_FAILED COREWEBVIEW2_PROCESS_FAILED_REASON = 0x0000004 // COREWEBVIEW2_PROCESS_FAILED_REASON_OUT_OF_MEMORY // // The process terminated due to running out of memory. // This is one of the COREWEBVIEW2_PROCESS_FAILED_REASON values. COREWEBVIEW2_PROCESS_FAILED_REASON_OUT_OF_MEMORY COREWEBVIEW2_PROCESS_FAILED_REASON = 0x0000005 // COREWEBVIEW2_PROCESS_FAILED_REASON_PROFILE_DELETED // // This is one of the COREWEBVIEW2_PROCESS_FAILED_REASON values. // The process exited because its corresponding profile was deleted. COREWEBVIEW2_PROCESS_FAILED_REASON_PROFILE_DELETED COREWEBVIEW2_PROCESS_FAILED_REASON = 0x0000006 )
type COREWEBVIEW2_PROCESS_KIND ¶
type COREWEBVIEW2_PROCESS_KIND = TOleEnum
COREWEBVIEW2_PROCESS_KIND
Indicates the process type used in the ICoreWebView2ProcessInfo interface. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_process_kind">See the Globals article.)
const ( // COREWEBVIEW2_PROCESS_KIND_BROWSER // // Indicates the browser process kind. // This is one of the COREWEBVIEW2_PROCESS_KIND values. COREWEBVIEW2_PROCESS_KIND_BROWSER COREWEBVIEW2_PROCESS_KIND = 0x0000000 // COREWEBVIEW2_PROCESS_KIND_RENDERER // // This is one of the COREWEBVIEW2_PROCESS_KIND values. // Indicates the render process kind. COREWEBVIEW2_PROCESS_KIND_RENDERER COREWEBVIEW2_PROCESS_KIND = 0x0000001 // COREWEBVIEW2_PROCESS_KIND_UTILITY // // Indicates the utility process kind. // This is one of the COREWEBVIEW2_PROCESS_KIND values. COREWEBVIEW2_PROCESS_KIND_UTILITY COREWEBVIEW2_PROCESS_KIND = 0x0000002 // COREWEBVIEW2_PROCESS_KIND_SANDBOX_HELPER // // Indicates the sandbox helper process kind. // This is one of the COREWEBVIEW2_PROCESS_KIND values. COREWEBVIEW2_PROCESS_KIND_SANDBOX_HELPER COREWEBVIEW2_PROCESS_KIND = 0x0000003 // COREWEBVIEW2_PROCESS_KIND_GPU // // Indicates the GPU process kind. // This is one of the COREWEBVIEW2_PROCESS_KIND values. COREWEBVIEW2_PROCESS_KIND_GPU COREWEBVIEW2_PROCESS_KIND = 0x0000004 // COREWEBVIEW2_PROCESS_KIND_PPAPI_PLUGIN // // Indicates the PPAPI plugin process kind. // This is one of the COREWEBVIEW2_PROCESS_KIND values. COREWEBVIEW2_PROCESS_KIND_PPAPI_PLUGIN COREWEBVIEW2_PROCESS_KIND = 0x0000005 // COREWEBVIEW2_PROCESS_KIND_PPAPI_BROKER // // Indicates the PPAPI plugin broker process kind. // This is one of the COREWEBVIEW2_PROCESS_KIND values. COREWEBVIEW2_PROCESS_KIND_PPAPI_BROKER COREWEBVIEW2_PROCESS_KIND = 0x0000006 )
type COREWEBVIEW2_SCRIPT_DIALOG_KIND ¶
type COREWEBVIEW2_SCRIPT_DIALOG_KIND = TOleEnum
COREWEBVIEW2_SCRIPT_DIALOG_KIND
Specifies the JavaScript dialog type used in the ICoreWebView2ScriptDialogOpeningEventHandler interface. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_script_dialog_kind">See the Globals article.)
const ( // COREWEBVIEW2_SCRIPT_DIALOG_KIND_ALERT // // Indicates that the dialog uses the window.alert JavaScript function. // This is one of the COREWEBVIEW2_SCRIPT_DIALOG_KIND values. COREWEBVIEW2_SCRIPT_DIALOG_KIND_ALERT COREWEBVIEW2_SCRIPT_DIALOG_KIND = 0x0000000 // COREWEBVIEW2_SCRIPT_DIALOG_KIND_CONFIRM // // Indicates that the dialog uses the window.confirm JavaScript function. // This is one of the COREWEBVIEW2_SCRIPT_DIALOG_KIND values. COREWEBVIEW2_SCRIPT_DIALOG_KIND_CONFIRM COREWEBVIEW2_SCRIPT_DIALOG_KIND = 0x0000001 // COREWEBVIEW2_SCRIPT_DIALOG_KIND_PROMPT // // Indicates that the dialog uses the window.prompt JavaScript function. // This is one of the COREWEBVIEW2_SCRIPT_DIALOG_KIND values. COREWEBVIEW2_SCRIPT_DIALOG_KIND_PROMPT COREWEBVIEW2_SCRIPT_DIALOG_KIND = 0x0000002 // COREWEBVIEW2_SCRIPT_DIALOG_KIND_BEFOREUNLOAD // // Indicates that the dialog uses the beforeunload JavaScript event. // This is one of the COREWEBVIEW2_SCRIPT_DIALOG_KIND values. COREWEBVIEW2_SCRIPT_DIALOG_KIND_BEFOREUNLOAD COREWEBVIEW2_SCRIPT_DIALOG_KIND = 0x0000003 )
type COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION ¶
type COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION = TOleEnum
COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION
Specifies the action type when server certificate error is detected to be used in the ICoreWebView2ServerCertificateErrorDetectedEventArgs interface. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_server_certificate_error_action">See the Globals article.)
const ( // COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION_ALWAYS_ALLOW // // Indicates to ignore the warning and continue the request with the TLS certificate. This decision is cached for the RequestUri's host and the server certificate in the session. // This is one of the COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION values. COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION_ALWAYS_ALLOW COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION = 0x0000000 // COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION_CANCEL // // Indicates to reject the certificate and cancel the request. // This is one of the COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION values. COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION_CANCEL COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION = 0x0000001 // COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION_DEFAULT // // Indicates to display the default TLS interstitial error page to user for page navigations. For others TLS certificate is rejected and the request is cancelled. // This is one of the COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION values. COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION_DEFAULT COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION = 0x0000002 )
type COREWEBVIEW2_SHARED_BUFFER_ACCESS ¶
type COREWEBVIEW2_SHARED_BUFFER_ACCESS = TOleEnum
COREWEBVIEW2_SHARED_BUFFER_ACCESS
Specifies the desired access from script to CoreWebView2SharedBuffer. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_shared_buffer_access">See the Globals article.)
const ( // COREWEBVIEW2_SHARED_BUFFER_ACCESS_READ_ONLY // // This is one of the COREWEBVIEW2_SHARED_BUFFER_ACCESS values. // Script from web page only has read access to the shared buffer. COREWEBVIEW2_SHARED_BUFFER_ACCESS_READ_ONLY COREWEBVIEW2_SHARED_BUFFER_ACCESS = 0x0000000 // COREWEBVIEW2_SHARED_BUFFER_ACCESS_READ_WRITE // // Script from web page has read and write access to the shared buffer. // This is one of the COREWEBVIEW2_SHARED_BUFFER_ACCESS values. COREWEBVIEW2_SHARED_BUFFER_ACCESS_READ_WRITE COREWEBVIEW2_SHARED_BUFFER_ACCESS = 0x0000001 )
type COREWEBVIEW2_TRACKING_PREVENTION_LEVEL ¶
type COREWEBVIEW2_TRACKING_PREVENTION_LEVEL = TOleEnum
COREWEBVIEW2_TRACKING_PREVENTION_LEVEL
Tracking prevention levels. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_tracking_prevention_level">See the Globals article.)
const ( // COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_NONE // // Tracking prevention is turned off. // This is one of the COREWEBVIEW2_TRACKING_PREVENTION_LEVEL values. COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_NONE COREWEBVIEW2_TRACKING_PREVENTION_LEVEL = 0x0000000 // COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_BASIC // // This is one of the COREWEBVIEW2_TRACKING_PREVENTION_LEVEL values. // The least restrictive level of tracking prevention. Set to this level to protect against malicious trackers but allows most other trackers and personalize content and ads. See [Current tracking prevention behavior](/microsoft-edge/web-platform/tracking-prevention#current-tracking-prevention-behavior) for fine-grained information on what is being blocked with this level and can change with different Edge versions. COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_BASIC COREWEBVIEW2_TRACKING_PREVENTION_LEVEL = 0x0000001 // COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_BALANCED // // The default level of tracking prevention. Set to this level to protect against social media tracking on top of malicious trackers. Content and ads will likely be less personalized. See [Current tracking prevention behavior](/microsoft-edge/web-platform/tracking-prevention#current-tracking-prevention-behavior) for fine-grained information on what is being blocked with this level and can change with different Edge versions. // This is one of the COREWEBVIEW2_TRACKING_PREVENTION_LEVEL values. COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_BALANCED COREWEBVIEW2_TRACKING_PREVENTION_LEVEL = 0x0000002 // COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_STRICT // // The most restrictive level of tracking prevention. Set to this level to protect against malicious trackers and most trackers across sites. Content and ads will likely have minimal personalization. This level blocks the most trackers but could cause some websites to not behave as expected. See [Current tracking prevention behavior](/microsoft-edge/web-platform/tracking-prevention#current-tracking-prevention-behavior) for fine-grained information on what is being blocked with this level and can change with different Edge versions. // This is one of the COREWEBVIEW2_TRACKING_PREVENTION_LEVEL values. COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_STRICT COREWEBVIEW2_TRACKING_PREVENTION_LEVEL = 0x0000003 )
type COREWEBVIEW2_WEB_ERROR_STATUS ¶
type COREWEBVIEW2_WEB_ERROR_STATUS = TOleEnum
COREWEBVIEW2_WEB_ERROR_STATUS
Indicates the error status values for web navigations. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_web_error_status">See the Globals article.)
const ( // COREWEBVIEW2_WEB_ERROR_STATUS_UNKNOWN // // Indicates that an unknown error occurred. // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. COREWEBVIEW2_WEB_ERROR_STATUS_UNKNOWN COREWEBVIEW2_WEB_ERROR_STATUS = 0x0000000 // COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_COMMON_NAME_IS_INCORRECT // // Indicates that the SSL certificate common name does not match the web address. // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_COMMON_NAME_IS_INCORRECT COREWEBVIEW2_WEB_ERROR_STATUS = 0x0000001 // COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_EXPIRED // // Indicates that the SSL certificate has expired. // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_EXPIRED COREWEBVIEW2_WEB_ERROR_STATUS = 0x0000002 // COREWEBVIEW2_WEB_ERROR_STATUS_CLIENT_CERTIFICATE_CONTAINS_ERRORS // // Indicates that the SSL client certificate contains errors. // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. COREWEBVIEW2_WEB_ERROR_STATUS_CLIENT_CERTIFICATE_CONTAINS_ERRORS COREWEBVIEW2_WEB_ERROR_STATUS = 0x0000003 // COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_REVOKED // // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. // Indicates that the SSL certificate has been revoked. COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_REVOKED COREWEBVIEW2_WEB_ERROR_STATUS = 0x0000004 // COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_IS_INVALID // // Indicates that the SSL certificate is not valid. The certificate may not match the public key pins for the host name, the certificate is signed by an untrusted authority or using a weak sign algorithm, the certificate claimed DNS names violate name constraints, the certificate contains a weak key, the validity period of the certificate is too long, lack of revocation information or revocation mechanism, non-unique host name, lack of certificate transparency information, or the certificate is chained to a [legacy Symantec root](https://security.googleblog.com/2018/03/distrust-of-symantec-pki-immediate.html). // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_IS_INVALID COREWEBVIEW2_WEB_ERROR_STATUS = 0x0000005 // COREWEBVIEW2_WEB_ERROR_STATUS_SERVER_UNREACHABLE // // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. // Indicates that the host is unreachable. COREWEBVIEW2_WEB_ERROR_STATUS_SERVER_UNREACHABLE COREWEBVIEW2_WEB_ERROR_STATUS = 0x0000006 // COREWEBVIEW2_WEB_ERROR_STATUS_TIMEOUT // // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. // Indicates that the connection has timed out. COREWEBVIEW2_WEB_ERROR_STATUS_TIMEOUT COREWEBVIEW2_WEB_ERROR_STATUS = 0x0000007 // COREWEBVIEW2_WEB_ERROR_STATUS_ERROR_HTTP_INVALID_SERVER_RESPONSE // // Indicates that the server returned an invalid or unrecognized response. // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. COREWEBVIEW2_WEB_ERROR_STATUS_ERROR_HTTP_INVALID_SERVER_RESPONSE COREWEBVIEW2_WEB_ERROR_STATUS = 0x0000008 // COREWEBVIEW2_WEB_ERROR_STATUS_CONNECTION_ABORTED // // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. // Indicates that the connection was stopped. COREWEBVIEW2_WEB_ERROR_STATUS_CONNECTION_ABORTED COREWEBVIEW2_WEB_ERROR_STATUS = 0x0000009 // COREWEBVIEW2_WEB_ERROR_STATUS_CONNECTION_RESET // // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. // Indicates that the connection was reset. COREWEBVIEW2_WEB_ERROR_STATUS_CONNECTION_RESET COREWEBVIEW2_WEB_ERROR_STATUS = 0x000000A // COREWEBVIEW2_WEB_ERROR_STATUS_DISCONNECTED // // Indicates that the Internet connection has been lost. // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. COREWEBVIEW2_WEB_ERROR_STATUS_DISCONNECTED COREWEBVIEW2_WEB_ERROR_STATUS = 0x000000B // COREWEBVIEW2_WEB_ERROR_STATUS_CANNOT_CONNECT // // Indicates that a connection to the destination was not established. // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. COREWEBVIEW2_WEB_ERROR_STATUS_CANNOT_CONNECT COREWEBVIEW2_WEB_ERROR_STATUS = 0x000000C // COREWEBVIEW2_WEB_ERROR_STATUS_HOST_NAME_NOT_RESOLVED // // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. // Indicates that the provided host name was not able to be resolved. COREWEBVIEW2_WEB_ERROR_STATUS_HOST_NAME_NOT_RESOLVED COREWEBVIEW2_WEB_ERROR_STATUS = 0x000000D // COREWEBVIEW2_WEB_ERROR_STATUS_OPERATION_CANCELED // // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. // Indicates that the operation was canceled. This status code is also used in the following cases: - When the app cancels a navigation via NavigationStarting event. - For original navigation if the app navigates the WebView2 in a rapid succession away after the load for original navigation commenced, but before it completed. COREWEBVIEW2_WEB_ERROR_STATUS_OPERATION_CANCELED COREWEBVIEW2_WEB_ERROR_STATUS = 0x000000E // COREWEBVIEW2_WEB_ERROR_STATUS_REDIRECT_FAILED // // Indicates that the request redirect failed. // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. COREWEBVIEW2_WEB_ERROR_STATUS_REDIRECT_FAILED COREWEBVIEW2_WEB_ERROR_STATUS = 0x000000F // COREWEBVIEW2_WEB_ERROR_STATUS_UNEXPECTED_ERROR // // Indicates that an unexpected error occurred. COREWEBVIEW2_WEB_ERROR_STATUS_UNEXPECTED_ERROR COREWEBVIEW2_WEB_ERROR_STATUS = 0x0000010 // COREWEBVIEW2_WEB_ERROR_STATUS_VALID_AUTHENTICATION_CREDENTIALS_REQUIRED // // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. // Indicates that user is prompted with a login, waiting on user action. Initial navigation to a login site will always return this even if app provides credential using BasicAuthenticationRequested. HTTP response status code in this case is 401. See status code reference here: https://developer.mozilla.org/docs/Web/HTTP/Status. COREWEBVIEW2_WEB_ERROR_STATUS_VALID_AUTHENTICATION_CREDENTIALS_REQUIRED COREWEBVIEW2_WEB_ERROR_STATUS = 0x0000011 // COREWEBVIEW2_WEB_ERROR_STATUS_VALID_PROXY_AUTHENTICATION_REQUIRED // // Indicates that user lacks proper authentication credentials for a proxy server. HTTP response status code in this case is 407. See status code reference here: https://developer.mozilla.org/docs/Web/HTTP/Status. // This is one of the COREWEBVIEW2_WEB_ERROR_STATUS values. COREWEBVIEW2_WEB_ERROR_STATUS_VALID_PROXY_AUTHENTICATION_REQUIRED COREWEBVIEW2_WEB_ERROR_STATUS = 0x0000012 )
type COREWEBVIEW2_WEB_RESOURCE_CONTEXT ¶
type COREWEBVIEW2_WEB_RESOURCE_CONTEXT = TOleEnum
COREWEBVIEW2_WEB_RESOURCE_CONTEXT
Specifies the web resource request contexts. <see href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_web_resource_context">See the Globals article.)
const ( // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_ALL // // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. // Specifies all resources. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_ALL COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x0000000 // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_DOCUMENT // // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. // Specifies a document resource. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_DOCUMENT COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x0000001 // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_STYLESHEET // // Specifies a CSS resource. // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_STYLESHEET COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x0000002 // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_IMAGE // // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. // Specifies an image resource. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_IMAGE COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x0000003 // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_MEDIA // // Specifies another media resource such as a video. // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_MEDIA COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x0000004 // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_FONT // // Specifies a font resource. // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_FONT COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x0000005 // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_SCRIPT // // Specifies a script resource. // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_SCRIPT COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x0000006 // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_XML_HTTP_REQUEST // // Specifies an XML HTTP request, Fetch and EventSource API communication. // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_XML_HTTP_REQUEST COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x0000007 // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_FETCH // // Specifies a Fetch API communication. // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. Note that this isn't working. Fetch API requests are fired as a part of COREWEBVIEW2_WEB_RESOURCE_CONTEXT_XML_HTTP_REQUEST. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_FETCH COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x0000008 // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_TEXT_TRACK // // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. // Specifies a TextTrack resource. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_TEXT_TRACK COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x0000009 // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_EVENT_SOURCE // // Specifies an EventSource API communication. // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_EVENT_SOURCE COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x000000A // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_WEBSOCKET // // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. Note that this isn't working. EventSource API requests are fired as a part of COREWEBVIEW2_WEB_RESOURCE_CONTEXT_XML_HTTP_REQUEST. // Specifies a WebSocket API communication. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_WEBSOCKET COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x000000B // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_MANIFEST // // Specifies a Web App Manifest. // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_MANIFEST COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x000000C // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_SIGNED_EXCHANGE // // Specifies a Signed HTTP Exchange. // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_SIGNED_EXCHANGE COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x000000D // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_PING // // Specifies a Ping request. // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_PING COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x000000E // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_CSP_VIOLATION_REPORT // // Specifies a CSP Violation Report. // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_CSP_VIOLATION_REPORT COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x000000F // COREWEBVIEW2_WEB_RESOURCE_CONTEXT_OTHER // // This is one of the COREWEBVIEW2_WEB_RESOURCE_CONTEXT values. // Specifies an other resource. COREWEBVIEW2_WEB_RESOURCE_CONTEXT_OTHER COREWEBVIEW2_WEB_RESOURCE_CONTEXT = 0x0000010 )
type ICoreWebView2 ¶
type ICoreWebView2 interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2 // property // Settings // The `ICoreWebView2Settings` object contains various modifiable settings // for the running WebView. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#get_settings">See the ICoreWebView2 article.</a> Settings() ICoreWebView2Settings // property // BrowserProcessID // The process ID of the browser process that hosts the WebView. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#get_browserprocessid">See the ICoreWebView2 article.</a> BrowserProcessID() DWORD // property // CanGoBack // `TRUE` if the WebView is able to navigate to a previous page in the // navigation history. If `CanGoBack` changes value, the `HistoryChanged` // event runs. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2##get_cangoback">See the ICoreWebView2 article.</a> CanGoBack() bool // property // CanGoForward // `TRUE` if the WebView is able to navigate to a next page in the // navigation history. If `CanGoForward` changes value, the // `HistoryChanged` event runs. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#get_cangoforward">See the ICoreWebView2 article.</a> CanGoForward() bool // property // ContainsFullScreenElement // Indicates if the WebView contains a fullscreen HTML element. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#get_containsfullscreenelement">See the ICoreWebView2 article.</a> ContainsFullScreenElement() bool // property // DocumentTitle // The title for the current top-level document. If the document has no // explicit title or is otherwise empty, a default that may or may not match // the URI of the document is used. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#get_documenttitle">See the ICoreWebView2 article.</a> DocumentTitle() string // property // Source // The URI of the current top level document. This value potentially // changes as a part of the `SourceChanged` event that runs for some cases // such as navigating to a different site or fragment navigations. It // remains the same for other types of navigations such as page refreshes // or `history.pushState` with the same URL as the current page. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#get_source">See the ICoreWebView2 article.</a> Source() string // property // CookieManager // Gets the cookie manager object associated with this ICoreWebView2. // See ICoreWebView2CookieManager. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_2#get_cookiemanager">See the ICoreWebView2_2 article.</a> CookieManager() ICoreWebView2CookieManager // property // Environment // Exposes the CoreWebView2Environment used to create this CoreWebView2. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_2#get_environment">See the ICoreWebView2_2 article.</a> Environment() ICoreWebView2Environment // property // IsSuspended // Whether WebView is suspended. // `TRUE` when WebView is suspended, from the time when TrySuspend has completed // successfully until WebView is resumed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_3#get_issuspended">See the ICoreWebView2_3 article.</a> IsSuspended() bool // property // IsMuted // Indicates whether all audio output from this CoreWebView2 is muted or not. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_8#get_ismuted">See the ICoreWebView2_8 article.</a> IsMuted() bool // property // SetIsMuted Set IsMuted SetIsMuted(AValue bool) // property // IsDocumentPlayingAudio // Indicates whether any audio output from this CoreWebView2 is playing. // This property will be true if audio is playing even if IsMuted is true. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_8#get_isdocumentplayingaudio">See the ICoreWebView2_8 article.</a> IsDocumentPlayingAudio() bool // property // IsDefaultDownloadDialogOpen // `TRUE` if the default download dialog is currently open. The value of this // property changes only when the default download dialog is explicitly // opened or closed. Hiding the WebView implicitly hides the dialog, but does // not change the value of this property. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_9#get_isdefaultdownloaddialogopen">See the ICoreWebView2_9 article.</a> IsDefaultDownloadDialogOpen() bool // property // DefaultDownloadDialogCornerAlignment // Get the default download dialog corner alignment. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_9#get_defaultdownloaddialogcorneralignment">See the ICoreWebView2_9 article.</a> DefaultDownloadDialogCornerAlignment() TWVDefaultDownloadDialogCornerAlignment // property // SetDefaultDownloadDialogCornerAlignment Set DefaultDownloadDialogCornerAlignment SetDefaultDownloadDialogCornerAlignment(AValue TWVDefaultDownloadDialogCornerAlignment) // property // DefaultDownloadDialogMargin // Get the default download dialog margin. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_9#get_defaultdownloaddialogmargin">See the ICoreWebView2_9 article.</a> DefaultDownloadDialogMargin() (resultPoint TPoint) // property // SetDefaultDownloadDialogMargin Set DefaultDownloadDialogMargin SetDefaultDownloadDialogMargin(AValue *TPoint) // property // StatusBarText // The status message text. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_12#get_statusbartext">See the ICoreWebView2_12 article.</a> StatusBarText() string // property // Profile // The associated `ICoreWebView2Profile` object. If this CoreWebView2 was created with a // CoreWebView2ControllerOptions, the CoreWebView2Profile will match those specified options. // Otherwise if this CoreWebView2 was created without a CoreWebView2ControllerOptions, then // this will be the default CoreWebView2Profile for the corresponding CoreWebView2Environment. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_13#get_profile">See the ICoreWebView2_13 article.</a> Profile() ICoreWebView2Profile // property // FaviconURI // Get the current Uri of the favicon as a string. // If the value is null, then the return value is `E_POINTER`, otherwise it is `S_OK`. // If a page has no favicon then the value is an empty string. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_15#get_faviconuri">See the ICoreWebView2_15 article.</a> FaviconURI() string // property // MemoryUsageTargetLevel // `MemoryUsageTargetLevel` indicates desired memory consumption level of // WebView. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_19#get_memoryusagetargetlevel">See the ICoreWebView2_19 article.</a> MemoryUsageTargetLevel() TWVMemoryUsageTargetLevel // property // SetMemoryUsageTargetLevel Set MemoryUsageTargetLevel SetMemoryUsageTargetLevel(AValue TWVMemoryUsageTargetLevel) // property // FrameId // The unique identifier of the main frame. It's the same kind of ID as // with the `FrameId` in `ICoreWebView2Frame` and via `ICoreWebView2FrameInfo`. // Note that `FrameId` may not be valid if `ICoreWebView2` has not done // any navigation. It's safe to get this value during or after the first // `ContentLoading` event. Otherwise, it could return the invalid frame Id 0. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_20#get_frameid">See the ICoreWebView2_20 article.</a> FrameId() uint32 // property // AddAllBrowserEvents // Adds all the events of this class to an existing TWVBrowserBase instance. // <param name="aBrowserComponent">The TWVBrowserBase instance.</param> AddAllBrowserEvents(aBrowserComponent IComponent) bool // function // SubscribeToDevToolsProtocolEvent // Subscribe to a DevTools protocol event. The TWVBrowserBase.OnDevToolsProtocolEventReceived // event will be triggered on each DevTools event. // <param name="aEventName">The DevTools protocol event name.</param> // <param name="aEventID">A custom event ID that will be passed as a parameter in the TWVBrowserBase event.</param> // <param name="aBrowserComponent">The TWVBrowserBase instance.</param> SubscribeToDevToolsProtocolEvent(aEventName string, aEventID int32, aBrowserComponent IComponent) bool // function // CapturePreview // Capture an image of what WebView is displaying. Specify the format of // the image with the aImageFormat parameter. The resulting image binary // data is written to the provided aImageStream parameter. This method fails if called // before the first ContentLoading event. For example if this is called in // the NavigationStarting event for the first navigation it will fail. // For subsequent navigations, the method may not fail, but will not capture // an image of a given webpage until the ContentLoading event has been fired // for it. Any call to this method prior to that will result in a capture of // the page being navigated away from. When this function finishes writing to the stream, // the TWVBrowserBase.OnCapturePreviewCompleted event is triggered. // <param name="aImageFormat">The format of the image.</param> // <param name="aImageStream">The resulting image binary data is written to this stream.</param> // <param name="aBrowserComponent">The TWVBrowserBase instance.</param> CapturePreview(aImageFormat TWVCapturePreviewImageFormat, aImageStream IStream, aBrowserComponent IComponent) bool // function // ExecuteScript // Run JavaScript code from the JavaScript parameter in the current // top-level document rendered in the WebView. // The TWVBrowserBase.OnExecuteScriptCompleted event is triggered // when it finishes. // The result of evaluating the provided JavaScript is available in the // aResultObjectAsJson parameter of the TWVBrowserBase.OnExecuteScriptCompleted // event as a JSON encoded string. If the result is undefined, contains a reference // cycle, or otherwise is not able to be encoded into JSON, then the result // is considered to be null, which is encoded in JSON as the string "null". // If the script that was run throws an unhandled exception, then the result is // also "null". // If the method is run after the `NavigationStarting` event during a navigation, // the script runs in the new document when loading it, around the time // `ContentLoading` is run. This operation executes the script even if // `ICoreWebView2Settings.IsScriptEnabled` is set to `FALSE`. // <param name="JavaScript">The JavaScript code.</param> // <param name="aExecutionID">A custom event ID that will be passed as a parameter in the TWVBrowserBase event.</param> // <param name="aBrowserComponent">The TWVBrowserBase instance.</param> ExecuteScript(JavaScript string, aExecutionID int32, aBrowserComponent IComponent) bool // function // GoBack // Navigates the WebView to the previous page in the navigation history. GoBack() bool // function // GoForward // Navigates the WebView to the next page in the navigation history. GoForward() bool // function // Cause a navigation of the top-level document to run to the specified URI. Navigate(aURI string) bool // function // Initiates a navigation to aHTMLContent as source HTML of a new document. // The `aHTMLContent` parameter may not be larger than 2 MB(2 * 1024 * 1024 bytes) in total size. // The origin of the new page is `about:blank`. NavigateToString(aHTMLContent string) bool // function // Navigates using a constructed ICoreWebView2WebResourceRequest object. This lets you // provide post data or additional request headers during navigation. // The headers in aRequest override headers added by WebView2 runtime except for Cookie headers. // Method can only be either "GET" or "POST". Provided post data will only // be sent only if the method is "POST" and the uri scheme is HTTP(S). NavigateWithWebResourceRequest(aRequest ICoreWebView2WebResourceRequestRef) bool // function // Reload // Reload the current page. This is similar to navigating to the URI of // current top level document including all navigation events firing and // respecting any entries in the HTTP cache. But, the back or forward // history are not modified. Reload() bool // function // Stop // Stop all navigations and pending resource fetches. Does not stop scripts. Stop() bool // function // TrySuspend // An app may call the `TrySuspend` API to have the WebView2 consume less memory. // This is useful when a Win32 app becomes invisible, or when a Universal Windows // Platform app is being suspended, during the suspended event handler before completing // the suspended event. // The CoreWebView2Controller's IsVisible property must be false when the API is called. // Otherwise, the API fails with `HRESULT_FROM_WIN32(ERROR_INVALID_STATE)`. // Suspending is similar to putting a tab to sleep in the Edge browser. Suspending pauses // WebView script timers and animations, minimizes CPU usage for the associated // browser renderer process and allows the operating system to reuse the memory that was // used by the renderer process for other processes. // Note that Suspend is best effort and considered completed successfully once the request // is sent to browser renderer process. If there is a running script, the script will continue // to run and the renderer process will be suspended after that script is done. // See [Sleeping Tabs FAQ](https://techcommunity.microsoft.com/t5/articles/sleeping-tabs-faq/m-p/1705434) // for conditions that might prevent WebView from being suspended. In those situations, // the completed handler will be invoked with isSuccessful as false and errorCode as S_OK. // The WebView will be automatically resumed when it becomes visible. Therefore, the // app normally does not have to call `Resume` explicitly. // The app can call `Resume` and then `TrySuspend` periodically for an invisible WebView so that // the invisible WebView can sync up with latest data and the page ready to show fresh content // when it becomes visible. // All WebView APIs can still be accessed when a WebView is suspended. Some APIs like Navigate // will auto resume the WebView. To avoid unexpected auto resume, check `IsSuspended` property // before calling APIs that might change WebView state. TrySuspend(aHandler ICoreWebView2TrySuspendCompletedHandler) bool // function // Resume // Resumes the WebView so that it resumes activities on the web page. // This API can be called while the WebView2 controller is invisible. // The app can interact with the WebView immediately after `Resume`. // WebView will be automatically resumed when it becomes visible. Resume() bool // function // SetVirtualHostNameToFolderMapping // Sets a mapping between a virtual host name and a folder path to make available to web sites // via that host name. // After setting the mapping, documents loaded in the WebView can use HTTP or HTTPS URLs at // the specified host name specified by hostName to access files in the local folder specified // by folderPath. // This mapping applies to both top-level document and iframe navigations as well as subresource // references from a document. This also applies to web workers including dedicated/shared worker // and service worker, for loading either worker scripts or subresources // (importScripts(), fetch(), XHR, etc.) issued from within a worker. // For virtual host mapping to work with service worker, please keep the virtual host name // mappings consistent among all WebViews sharing the same browser instance. As service worker // works independently of WebViews, we merge mappings from all WebViews when resolving virtual // host name, inconsistent mappings between WebViews would lead unexpected behavior. // Due to a current implementation limitation, media files accessed using virtual host name can be // very slow to load. // As the resource loaders for the current page might have already been created and running, // changes to the mapping might not be applied to the current page and a reload of the page is // needed to apply the new mapping. // Both absolute and relative paths are supported for folderPath. Relative paths are interpreted // as relative to the folder where the exe of the app is in. // Note that the folderPath length must not exceed the Windows MAX_PATH limit. // accessKind specifies the level of access to resources under the virtual host from other sites. // For example, after calling // <code> // “`cpp // SetVirtualHostNameToFolderMapping( // L"appassets.example", L"assets", // COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY); // “` // </code> // navigating to `https://appassets.example/my-local-file.html` will // show the content from my-local-file.html in the assets subfolder located on disk under // the same path as the app's executable file. // DOM elements that want to reference local files will have their host reference virtual host in the source. // If there are multiple folders being used, define one unique virtual host per folder. // For example, you can embed a local image like this // <code> // “`cpp // WCHAR c_navString[] = L"<img src=\"http://appassets.example/wv2.png\"/>"; // m_webView->NavigateToString(c_navString); // “` // </code> // The example above shows the image wv2.png by resolving the folder mapping above. // You should typically choose virtual host names that are never used by real sites. // If you own a domain such as example.com, another option is to use a subdomain reserved for // the app(like my-app.example.com). // [RFC 6761](https://tools.ietf.org/html/rfc6761) has reserved several special-use domain // names that are guaranteed to not be used by real sites(for example, .example, .test, and // .invalid.) // Note that using `.local` as the top-level domain name will work but can cause a delay // during navigations. You should avoid using `.local` if you can. // Apps should use distinct domain names when mapping folder from different sources that // should be isolated from each other. For instance, the app might use app-file.example for // files that ship as part of the app, and book1.example might be used for files containing // books from a less trusted source that were previously downloaded and saved to the disk by // the app. // The host name used in the APIs is canonicalized using Chromium's host name parsing logic // before being used internally. For more information see [HTML5 2.6 URLs](https://dev.w3.org/html5/spec-LC/urls.html). // All host names that are canonicalized to the same string are considered identical. // For example, `EXAMPLE.COM` and `example.com` are treated as the same host name. // An international host name and its Punycode-encoded host name are considered the same host // name. There is no DNS resolution for host name and the trailing '.' is not normalized as // part of canonicalization. // Therefore `example.com` and `example.com.` are treated as different host names. Similarly, // `virtual-host-name` and `virtual-host-name.example.com` are treated as different host names // even if the machine has a DNS suffix of `example.com`. // Specify the minimal cross-origin access necessary to run the app. If there is not a need to // access local resources from other origins, use COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY. SetVirtualHostNameToFolderMapping(aHostName, aFolderPath string, aAccessKind TWVHostResourceAcccessKind) bool // function // ClearVirtualHostNameToFolderMapping // Clears a host name mapping for local folder that was added by `SetVirtualHostNameToFolderMapping`. ClearVirtualHostNameToFolderMapping(aHostName string) bool // function // OpenTaskManagerWindow // Opens the Browser Task Manager view as a new window in the foreground. // If the Browser Task Manager is already open, this will bring it into // the foreground. WebView2 currently blocks the Shift+Esc shortcut for // opening the task manager. An end user can open the browser task manager // manually via the `Browser task manager` entry of the DevTools window's // title bar's context menu. OpenTaskManagerWindow() bool // function // PrintToPdf // Print the current page to PDF asynchronously with the provided settings. // See `ICoreWebView2PrintSettings` for description of settings. Passing // nullptr for `printSettings` results in default print settings used. // Use `resultFilePath` to specify the path to the PDF file. The host should // provide an absolute path, including file name. If the path // points to an existing file, the file will be overwritten. If the path is // not valid, the method fails with `E_INVALIDARG`. // The async `PrintToPdf` operation completes when the data has been written // to the PDF file. At this time the // `ICoreWebView2PrintToPdfCompletedHandler` is invoked. If the // application exits before printing is complete, the file is not saved. // Only one `Printing` operation can be in progress at a time. If // `PrintToPdf` is called while a `PrintToPdf` or `PrintToPdfStream` or `Print` or // `ShowPrintUI` job is in progress, the completed handler is immediately invoked // with `isSuccessful` set to FALSE. PrintToPdf(aResultFilePath string, aPrintSettings ICoreWebView2PrintSettings, aHandler ICoreWebView2PrintToPdfCompletedHandler) bool // function // OpenDevToolsWindow // Opens the DevTools window for the current document in the WebView. Does // nothing if run when the DevTools window is already open. OpenDevToolsWindow() bool // function // PostWebMessageAsJson // Post the specified webMessage to the top level document in this WebView. // The main page receives the message by subscribing to the `message` event of the // `window.chrome.webview` of the page document. // <code> // “`cpp // window.chrome.webview.addEventListener('message', handler) // window.chrome.webview.removeEventListener('message', handler) // “` // </code> // The event args is an instance of `MessageEvent`. The // `ICoreWebView2Settings::IsWebMessageEnabled` setting must be `TRUE` or // the web message will not be sent. The `data` property of the event // arg is the `webMessage` string parameter parsed as a JSON string into a // JavaScript object. The `source` property of the event arg is a reference // to the `window.chrome.webview` object. For information about sending // messages from the HTML document in the WebView to the host, navigate to // [add_WebMessageReceived](/microsoft-edge/webview2/reference/win32/icorewebview2#add_webmessagereceived). // The message is delivered asynchronously. If a navigation occurs before // the message is posted to the page, the message is discarded. PostWebMessageAsJson(aWebMessageAsJson string) bool // function // PostWebMessageAsString // Posts a message that is a simple string rather than a JSON string // representation of a JavaScript object. This behaves in exactly the same // manner as `PostWebMessageAsJson`, but the `data` property of the event // arg of the `window.chrome.webview` message is a string with the same // value as `webMessageAsString`. Use this instead of // `PostWebMessageAsJson` if you want to communicate using simple strings // rather than JSON objects. PostWebMessageAsString(aWebMessageAsString string) bool // function // CallDevToolsProtocolMethod // Runs an asynchronous `DevToolsProtocol` method. For more information // about available methods, navigate to // [DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/tot). // The `methodName` parameter is the full name of the method in the // `{domain}.{method}` format. The `parametersAsJson` parameter is a JSON // formatted string containing the parameters for the corresponding method. // The `Invoke` method of the `handler` is run when the method // asynchronously completes. `Invoke` is run with the return object of the // method as a JSON string. This function returns E_INVALIDARG if the `methodName` is // unknown or the `parametersAsJson` has an error. In the case of such an error, the // `returnObjectAsJson` parameter of the handler will include information // about the error. // Note even though WebView2 dispatches the CDP messages in the order called, // CDP method calls may be processed out of order. // If you require CDP methods to run in a particular order, you should wait // for the previous method's completed handler to run before calling the // next method. CallDevToolsProtocolMethod(aMethodName, aParametersAsJson string, aExecutionID int32, aBrowserComponent IComponent) bool // function // CallDevToolsProtocolMethodForSession // Runs an asynchronous `DevToolsProtocol` method for a specific session of // an attached target. // There could be multiple `DevToolsProtocol` targets in a WebView. // Besides the top level page, iframes from different origin and web workers // are also separate targets. Attaching to these targets allows interaction with them. // When the DevToolsProtocol is attached to a target, the connection is identified // by a sessionId. // To use this API, you must set the `flatten` parameter to true when calling // `Target.attachToTarget` or `Target.setAutoAttach` `DevToolsProtocol` method. // Using `Target.setAutoAttach` is recommended as that would allow you to attach // to dedicated worker targets, which are not discoverable via other APIs like // `Target.getTargets`. // For more information about targets and sessions, navigate to // [DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/tot/Target). // For more information about available methods, navigate to // [DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/tot) // The `sessionId` parameter is the sessionId for an attached target. // nullptr or empty string is treated as the session for the default target for the top page. // The `methodName` parameter is the full name of the method in the // `{domain}.{method}` format. The `parametersAsJson` parameter is a JSON // formatted string containing the parameters for the corresponding method. // The `Invoke` method of the `handler` is run when the method // asynchronously completes. `Invoke` is run with the return object of the // method as a JSON string. This function returns E_INVALIDARG if the `methodName` is // unknown or the `parametersAsJson` has an error. In the case of such an error, the // `returnObjectAsJson` parameter of the handler will include information // about the error. CallDevToolsProtocolMethodForSession(aSessionId, aMethodName, aParametersAsJson string, aExecutionID int32, aBrowserComponent IComponent) bool // function // AddWebResourceRequestedFilter // Adds a URI and resource context filter for the `WebResourceRequested` // event. A web resource request with a resource context that matches this // filter's resource context and a URI that matches this filter's URI // wildcard string will be raised via the `WebResourceRequested` event. // The `uri` parameter value is a wildcard string matched against the URI // of the web resource request. This is a glob style // wildcard string in which a `*` matches zero or more characters and a `?` // matches exactly one character. // These wildcard characters can be escaped using a backslash just before // the wildcard character in order to represent the literal `*` or `?`. // The matching occurs over the URI as a whole string and not limiting // wildcard matches to particular parts of the URI. // The wildcard filter is compared to the URI after the URI has been // normalized, any URI fragment has been removed, and non-ASCII hostnames // have been converted to punycode. // Specifying a `nullptr` for the uri is equivalent to an empty string which // matches no URIs. // For more information about resource context filters, navigate to // [COREWEBVIEW2_WEB_RESOURCE_CONTEXT](/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_web_resource_context). // <code> // | URI Filter String | Request URI | Match | Notes | // | ---- | ---- | ---- | ---- | // | `*` | `https://contoso.com/a/b/c` | Yes | A single * will match all URIs | // | `*://contoso.com/*` | `https://contoso.com/a/b/c` | Yes | Matches everything in contoso.com across all schemes | // | `*://contoso.com/*` | `https://example.com/?https://contoso.com/` | Yes | But also matches a URI with just the same text anywhere in the URI | // | `example` | `https://contoso.com/example` | No | The filter does not perform partial matches | // | `*example` | `https://contoso.com/example` | Yes | The filter matches across URI parts | // | `*example` | `https://contoso.com/path/?example` | Yes | The filter matches across URI parts | // | `*example` | `https://contoso.com/path/?query#example` | No | The filter is matched against the URI with no fragment | // | `*example` | `https://example` | No | The URI is normalized before filter matching so the actual URI used for comparison is `https://example/` | // | `*example/` | `https://example` | Yes | Just like above, but this time the filter ends with a / just like the normalized URI | // | `https://xn--qei.example/` | `https://❤.example/` | Yes | Non-ASCII hostnames are normalized to punycode before wildcard comparison | // | `https://❤.example/` | `https://xn--qei.example/` | No | Non-ASCII hostnames are normalized to punycode before wildcard comparison | // </code> AddWebResourceRequestedFilter(URI string, ResourceContext TWVWebResourceContext) bool // function // RemoveWebResourceRequestedFilter // Removes a matching WebResource filter that was previously added for the // `WebResourceRequested` event. If the same filter was added multiple // times, then it must be removed as many times as it was added for the // removal to be effective. Returns `E_INVALIDARG` for a filter that was // never added. RemoveWebResourceRequestedFilter(URI string, ResourceContext TWVWebResourceContext) bool // function // RemoveHostObjectFromScript // Remove the host object specified by the name so that it is no longer // accessible from JavaScript code in the WebView. While new access // attempts are denied, if the object is already obtained by JavaScript code // in the WebView, the JavaScript code continues to have access to that // object. Run this method for a name that is already removed or never // added fails. RemoveHostObjectFromScript(aName string) bool // function // AddScriptToExecuteOnDocumentCreated // Add the provided JavaScript to a list of scripts that should be run after // the global object has been created, but before the HTML document has // been parsed and before any other script included by the HTML document is // run. This method injects a script that runs on all top-level document // and child frame page navigations. This method runs asynchronously, and // you must wait for the completion handler to finish before the injected // script is ready to run. When this method completes, the `Invoke` method // of the handler is run with the `id` of the injected script. `id` is a // string. To remove the injected script, use // `RemoveScriptToExecuteOnDocumentCreated`. // If the method is run in add_NewWindowRequested handler it should be called // before the new window is set. If called after setting the NewWindow property, the initial script // may or may not apply to the initial navigation and may only apply to the subsequent navigation. // For more details see `ICoreWebView2NewWindowRequestedEventArgs::put_NewWindow`. // NOTE: If an HTML document is running in a sandbox of some kind using // [sandbox](https://developer.mozilla.org/docs/Web/HTML/Element/iframe#attr-sandbox) // properties or the // [Content-Security-Policy](https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Security-Policy) // HTTP header affects the script that runs. For example, if the // `allow-modals` keyword is not set then requests to run the `alert` // function are ignored. AddScriptToExecuteOnDocumentCreated(JavaScript string, aBrowserComponent IComponent) bool // function // RemoveScriptToExecuteOnDocumentCreated // Remove the corresponding JavaScript added using // `AddScriptToExecuteOnDocumentCreated` with the specified script ID. The // script ID should be the one returned by the `AddScriptToExecuteOnDocumentCreated`. // Both use `AddScriptToExecuteOnDocumentCreated` and this method in `NewWindowRequested` // event handler at the same time sometimes causes trouble. Since invalid scripts will // be ignored, the script IDs you got may not be valid anymore. RemoveScriptToExecuteOnDocumentCreated(aID string) bool // function // OpenDefaultDownloadDialog // Open the default download dialog. If the dialog is opened before there // are recent downloads, the dialog shows all past downloads for the // current profile. Otherwise, the dialog shows only the recent downloads // with a "See more" button for past downloads. Calling this method raises // the `IsDefaultDownloadDialogOpenChanged` event if the dialog was closed. // No effect if the dialog is already open. OpenDefaultDownloadDialog() bool // function // CloseDefaultDownloadDialog // Close the default download dialog. Calling this method raises the // `IsDefaultDownloadDialogOpenChanged` event if the dialog was open. No // effect if the dialog is already closed. CloseDefaultDownloadDialog() bool // function // ClearServerCertificateErrorActions // Clears all cached decisions to proceed with TLS certificate errors from the // ServerCertificateErrorDetected event for all WebView2's sharing the same session. ClearServerCertificateErrorActions(aBrowserComponent IComponent) bool // function // GetFavicon // Async function for getting the actual image data of the favicon. // The image is copied to the `imageStream` object in `ICoreWebView2GetFaviconCompletedHandler`. // If there is no image then no data would be copied into the imageStream. // The `format` is the file format to return the image stream. // `completedHandler` is executed at the end of the operation. GetFavicon(aFormat TWVFaviconImageFormat, aBrowserComponent IComponent) bool // function // Print // Print the current web page asynchronously to the specified printer with the provided settings. // See `ICoreWebView2PrintSettings` for description of settings. Passing // nullptr for `printSettings` results in default print settings used. // The handler will return `errorCode` as `S_OK` and `printStatus` as COREWEBVIEW2_PRINT_STATUS_PRINTER_UNAVAILABLE // if `printerName` doesn't match with the name of any installed printers on the user OS. The handler // will return `errorCode` as `E_INVALIDARG` and `printStatus` as COREWEBVIEW2_PRINT_STATUS_OTHER_ERROR // if the caller provides invalid settings for a given printer. // The async `Print` operation completes when it finishes printing to the printer. // At this time the `ICoreWebView2PrintCompletedHandler` is invoked. // Only one `Printing` operation can be in progress at a time. If `Print` is called while a `Print` or `PrintToPdf` // or `PrintToPdfStream` or `ShowPrintUI` job is in progress, the completed handler is immediately invoked // with `E_ABORT` and `printStatus` is COREWEBVIEW2_PRINT_STATUS_OTHER_ERROR. // This is only for printing operation on one webview. // <code> // | errorCode | printStatus | Notes | // | --- | --- | --- | // | S_OK | COREWEBVIEW2_PRINT_STATUS_SUCCEEDED | Print operation succeeded. | // | S_OK | COREWEBVIEW2_PRINT_STATUS_PRINTER_UNAVAILABLE | If specified printer is not found or printer status is not available, offline or error state. | // | S_OK | COREWEBVIEW2_PRINT_STATUS_OTHER_ERROR | Print operation is failed. | // | E_INVALIDARG | COREWEBVIEW2_PRINT_STATUS_OTHER_ERROR | If the caller provides invalid settings for the specified printer. | // | E_ABORT | COREWEBVIEW2_PRINT_STATUS_OTHER_ERROR | Print operation is failed as printing job already in progress. | // </code> Print(aPrintSettings ICoreWebView2PrintSettings, aHandler ICoreWebView2PrintCompletedHandler) bool // function // ShowPrintUI // Opens the print dialog to print the current web page. See `COREWEBVIEW2_PRINT_DIALOG_KIND` // for descriptions of print dialog kinds. // Invoking browser or system print dialog doesn't open new print dialog if // it is already open. ShowPrintUI(aPrintDialogKind TWVPrintDialogKind) bool // function // PrintToPdfStream // Provides the Pdf data of current web page asynchronously for the provided settings. // Stream will be rewound to the start of the pdf data. // See `ICoreWebView2PrintSettings` for description of settings. Passing // nullptr for `printSettings` results in default print settings used. // The async `PrintToPdfStream` operation completes when it finishes // writing to the stream. At this time the `ICoreWebView2PrintToPdfStreamCompletedHandler` // is invoked. Only one `Printing` operation can be in progress at a time. If // `PrintToPdfStream` is called while a `PrintToPdfStream` or `PrintToPdf` or `Print` // or `ShowPrintUI` job is in progress, the completed handler is immediately invoked with `E_ABORT`. // This is only for printing operation on one webview. PrintToPdfStream(aPrintSettings ICoreWebView2PrintSettings, aHandler ICoreWebView2PrintToPdfStreamCompletedHandler) bool // function // Share a shared buffer object with script of the main frame in the WebView. // The script will receive a `sharedbufferreceived` event from chrome.webview. // The event arg for that event will have the following methods and properties: // `getBuffer()`: return an ArrayBuffer object with the backing content from the shared buffer. // `additionalData`: an object as the result of parsing `additionalDataAsJson` as JSON string. // This property will be `undefined` if `additionalDataAsJson` is nullptr or empty string. // `source`: with a value set as `chrome.webview` object. // If a string is provided as `additionalDataAsJson` but it is not a valid JSON string, // the API will fail with `E_INVALIDARG`. // If `access` is COREWEBVIEW2_SHARED_BUFFER_ACCESS_READ_ONLY, the script will only have read access to the buffer. // If the script tries to modify the content in a read only buffer, it will cause an access // violation in WebView renderer process and crash the renderer process. // If the shared buffer is already closed, the API will fail with `RO_E_CLOSED`. // The script code should call `chrome.webview.releaseBuffer` with // the shared buffer as the parameter to release underlying resources as soon // as it does not need access to the shared buffer any more. // The application can post the same shared buffer object to multiple web pages or iframes, or // post to the same web page or iframe multiple times. Each `PostSharedBufferToScript` will // create a separate ArrayBuffer object with its own view of the memory and is separately // released. The underlying shared memory will be released when all the views are released. PostSharedBufferToScript(aSharedBuffer ICoreWebView2SharedBuffer, aAccess TWVSharedBufferAccess, aAdditionalDataAsJson string) bool // function // ExecuteScriptWithResult // Run JavaScript code from the JavaScript parameter in the current // top-level document rendered in the WebView. // The result of the execution is returned asynchronously in the CoreWebView2ExecuteScriptResult object // which has methods and properties to obtain the successful result of script execution as well as any // unhandled JavaScript exceptions. // If this method is // run after the NavigationStarting event during a navigation, the script // runs in the new document when loading it, around the time // ContentLoading is run. This operation executes the script even if // ICoreWebView2Settings::IsScriptEnabled is set to FALSE. // \snippet ScriptComponent.cpp ExecuteScriptWithResult ExecuteScriptWithResult(JavaScript string, aExecutionID int32, aBrowserComponent IComponent) bool // function }
ICoreWebView2 Parent: IObject
func AsCoreWebView2 ¶
func AsCoreWebView2(obj interface{}) ICoreWebView2
AsCoreWebView2 Convert a pointer object to an existing class object
func NewCoreWebView2 ¶
func NewCoreWebView2(aBaseIntf ICoreWebView2) ICoreWebView2
type ICoreWebView2AcceleratorKeyPressedEventArgs ¶
type ICoreWebView2AcceleratorKeyPressedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2AcceleratorKeyPressedEventArgs // property // KeyEventKind // The key event type that caused the event to run. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2acceleratorkeypressedeventargs#get_keyeventkind">See the ICoreWebView2AcceleratorKeyPressedEventArgs article.</a> KeyEventKind() TWVKeyEventKind // property // VirtualKey // The Win32 virtual key code of the key that was pressed or released. It // is one of the Win32 virtual key constants such as `VK_RETURN` or an // (uppercase) ASCII value such as `A`. Verify whether Ctrl or Alt // are pressed by running `GetKeyState(VK_CONTROL)` or // `GetKeyState(VK_MENU)`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2acceleratorkeypressedeventargs#get_virtualkey">See the ICoreWebView2AcceleratorKeyPressedEventArgs article.</a> VirtualKey() uint32 // property // KeyEventLParam // The `LPARAM` value that accompanied the window message. For more // information, navigate to [WM_KEYDOWN](/windows/win32/inputdev/wm-keydown) // and [WM_KEYUP](/windows/win32/inputdev/wm-keyup). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2acceleratorkeypressedeventargs#get_keyeventlparam">See the ICoreWebView2AcceleratorKeyPressedEventArgs article.</a> KeyEventLParam() int32 // property // RepeatCount // Specifies the repeat count for the current message. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2acceleratorkeypressedeventargs#get_physicalkeystatus">See the ICoreWebView2AcceleratorKeyPressedEventArgs article.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2physicalkeystatus">See the CoreWebView2PhysicalKeyStatus Struct article.</a> RepeatCount() uint32 // property // ScanCode // Specifies the scan code. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2acceleratorkeypressedeventargs#get_physicalkeystatus">See the ICoreWebView2AcceleratorKeyPressedEventArgs article.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2physicalkeystatus">See the CoreWebView2PhysicalKeyStatus Struct article.</a> ScanCode() uint32 // property // IsExtendedKey // Indicates that the key is an extended key. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2acceleratorkeypressedeventargs#get_physicalkeystatus">See the ICoreWebView2AcceleratorKeyPressedEventArgs article.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2physicalkeystatus">See the CoreWebView2PhysicalKeyStatus Struct article.</a> IsExtendedKey() bool // property // IsMenuKeyDown // Indicates that a menu key is held down(context code). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2acceleratorkeypressedeventargs#get_physicalkeystatus">See the ICoreWebView2AcceleratorKeyPressedEventArgs article.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2physicalkeystatus">See the CoreWebView2PhysicalKeyStatus Struct article.</a> IsMenuKeyDown() bool // property // WasKeyDown // Indicates that the key was held down. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2acceleratorkeypressedeventargs#get_physicalkeystatus">See the ICoreWebView2AcceleratorKeyPressedEventArgs article.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2physicalkeystatus">See the CoreWebView2PhysicalKeyStatus Struct article.</a> WasKeyDown() bool // property // IsKeyReleased // Indicates that the key was released. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2acceleratorkeypressedeventargs#get_physicalkeystatus">See the ICoreWebView2AcceleratorKeyPressedEventArgs article.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2physicalkeystatus">See the CoreWebView2PhysicalKeyStatus Struct article.</a> IsKeyReleased() bool // property // Handled // During `AcceleratorKeyPressedEvent` handler invocation the WebView is // blocked waiting for the decision of if the accelerator is handled by the // host(or not). If the `Handled` property is set to `TRUE` then this // prevents the WebView from performing the default action for this // accelerator key. Otherwise the WebView performs the default action for // the accelerator key. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2acceleratorkeypressedeventargs#get_handled">See the ICoreWebView2AcceleratorKeyPressedEventArgs article.</a> Handled() bool // property // SetHandled Set Handled SetHandled(AValue bool) // property // IsBrowserAcceleratorKeyEnabled // This property allows developers to enable or disable the browser from handling a specific // browser accelerator key such as Ctrl+P or F3, etc. // Browser accelerator keys are the keys/key combinations that access features specific to // a web browser, including but not limited to: // <code> // - Ctrl-F and F3 for Find on Page // - Ctrl-P for Print // - Ctrl-R and F5 for Reload // - Ctrl-Plus and Ctrl-Minus for zooming // - Ctrl-Shift-C and F12 for DevTools // - Special keys for browser functions, such as Back, Forward, and Search // </code> // This property does not disable accelerator keys related to movement and text editing, // such as: // <code> // - Home, End, Page Up, and Page Down // - Ctrl-X, Ctrl-C, Ctrl-V // - Ctrl-A for Select All // - Ctrl-Z for Undo // </code> // The `ICoreWebView2Settings.AreBrowserAcceleratorKeysEnabled` API is a convenient setting // for developers to disable all the browser accelerator keys together, and sets the default // value for the `IsBrowserAcceleratorKeyEnabled` property. // By default, `ICoreWebView2Settings.AreBrowserAcceleratorKeysEnabled` is `TRUE` and // `IsBrowserAcceleratorKeyEnabled` is `TRUE`. // When developers change `ICoreWebView2Settings.AreBrowserAcceleratorKeysEnabled` setting to `FALSE`, // this will change default value for `IsBrowserAcceleratorKeyEnabled` to `FALSE`. // If developers want specific keys to be handled by the browser after changing the // `ICoreWebView2Settings.AreBrowserAcceleratorKeysEnabled` setting to `FALSE`, they need to enable // these keys by setting `IsBrowserAcceleratorKeyEnabled` to `TRUE`. // This API will give the event arg higher priority over the // `ICoreWebView2Settings.AreBrowserAcceleratorKeysEnabled` setting when we handle the keys. // For browser accelerator keys, when an accelerator key is pressed, the propagation and // processing order is: // <code> // 1. A ICoreWebView2Controller.AcceleratorKeyPressed event is raised // 2. WebView2 browser feature accelerator key handling // 3. Web Content Handling: If the key combination isn't reserved for browser actions, // the key event propagates to the web content, where JavaScript event listeners can // capture and respond to it. // </code> // `ICoreWebView2AcceleratorKeyPressedEventArgs` has a `Handled` property, that developers // can use to mark a key as handled. When the key is marked as handled anywhere along // the path, the event propagation stops, and web content will not receive the key. // With `IsBrowserAcceleratorKeyEnabled` property, if developers mark // `IsBrowserAcceleratorKeyEnabled` as `FALSE`, the browser will skip the WebView2 // browser feature accelerator key handling process, but the event propagation // continues, and web content will receive the key combination. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2acceleratorkeypressedeventargs2#get_isbrowseracceleratorkeyenabled">See the ICoreWebView2AcceleratorKeyPressedEventArgs2 article.</a> IsBrowserAcceleratorKeyEnabled() bool // property // SetIsBrowserAcceleratorKeyEnabled Set IsBrowserAcceleratorKeyEnabled SetIsBrowserAcceleratorKeyEnabled(AValue bool) // property }
ICoreWebView2AcceleratorKeyPressedEventArgs Parent: IObject
Event args for the AcceleratorKeyPressed event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2acceleratorkeypressedeventargs">See the ICoreWebView2AcceleratorKeyPressedEventArgs article.</a>
func AsCoreWebView2AcceleratorKeyPressedEventArgs ¶
func AsCoreWebView2AcceleratorKeyPressedEventArgs(obj interface{}) ICoreWebView2AcceleratorKeyPressedEventArgs
AsCoreWebView2AcceleratorKeyPressedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2AcceleratorKeyPressedEventArgs ¶
func NewCoreWebView2AcceleratorKeyPressedEventArgs(aArgs ICoreWebView2AcceleratorKeyPressedEventArgs) ICoreWebView2AcceleratorKeyPressedEventArgs
type ICoreWebView2BasicAuthenticationRequestedEventArgs ¶
type ICoreWebView2BasicAuthenticationRequestedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2BasicAuthenticationRequestedEventArgs // property // Uri // The URI that led to the authentication challenge. For proxy authentication // requests, this will be the URI of the proxy server. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationrequestedeventargs#get_uri">See the ICoreWebView2BasicAuthenticationRequestedEventArgs article.</a> Uri() string // property // Challenge // The authentication challenge string. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationrequestedeventargs#get_challenge">See the ICoreWebView2BasicAuthenticationRequestedEventArgs article.</a> Challenge() string // property // Response // Response to the authentication request with credentials. This object will be populated by the app // if the host would like to provide authentication credentials. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationrequestedeventargs#get_response">See the ICoreWebView2BasicAuthenticationRequestedEventArgs article.</a> Response() ICoreWebView2BasicAuthenticationResponse // property // Cancel // Cancel the authentication request. False by default. // If set to true, Response will be ignored. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationrequestedeventargs#get_cancel">See the ICoreWebView2BasicAuthenticationRequestedEventArgs article.</a> Cancel() bool // property // SetCancel Set Cancel SetCancel(AValue bool) // property // Deferral // Returns an `ICoreWebView2Deferral` object. Use this deferral to // defer the decision to show the Basic Authentication dialog. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationrequestedeventargs#getdeferral">See the ICoreWebView2BasicAuthenticationRequestedEventArgs article.</a> Deferral() ICoreWebView2Deferral // property }
ICoreWebView2BasicAuthenticationRequestedEventArgs Parent: IObject
Event args for the BasicAuthenticationRequested event. Will contain the request that led to the HTTP authorization challenge, the challenge and allows the host to provide authentication response or cancel the request. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationrequestedeventargs">See the ICoreWebView2BasicAuthenticationRequestedEventArgs article.</a>
func AsCoreWebView2BasicAuthenticationRequestedEventArgs ¶
func AsCoreWebView2BasicAuthenticationRequestedEventArgs(obj interface{}) ICoreWebView2BasicAuthenticationRequestedEventArgs
AsCoreWebView2BasicAuthenticationRequestedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2BasicAuthenticationRequestedEventArgs ¶
func NewCoreWebView2BasicAuthenticationRequestedEventArgs(aArgs ICoreWebView2BasicAuthenticationRequestedEventArgs) ICoreWebView2BasicAuthenticationRequestedEventArgs
type ICoreWebView2BasicAuthenticationResponse ¶
type ICoreWebView2BasicAuthenticationResponse interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2BasicAuthenticationResponse // property // SetBaseIntf Set BaseIntf SetBaseIntf(AValue ICoreWebView2BasicAuthenticationResponse) // property // UserName // User name provided for authentication. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationresponse#get_username">See the ICoreWebView2BasicAuthenticationResponse article.</a> UserName() string // property // SetUserName Set UserName SetUserName(AValue string) // property // Password // Password provided for authentication. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationresponse#get_password">See the ICoreWebView2BasicAuthenticationResponse article.</a> Password() string // property // SetPassword Set Password SetPassword(AValue string) // property }
ICoreWebView2BasicAuthenticationResponse Parent: IObject
Represents a Basic HTTP authentication response that contains a user name and a password as according to RFC7617 (https://tools.ietf.org/html/rfc7617) <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationresponse">See the ICoreWebView2BasicAuthenticationResponse article.</a>
func AsCoreWebView2BasicAuthenticationResponse ¶
func AsCoreWebView2BasicAuthenticationResponse(obj interface{}) ICoreWebView2BasicAuthenticationResponse
AsCoreWebView2BasicAuthenticationResponse Convert a pointer object to an existing class object
func NewCoreWebView2BasicAuthenticationResponse ¶
func NewCoreWebView2BasicAuthenticationResponse(aBaseIntf ICoreWebView2BasicAuthenticationResponse) ICoreWebView2BasicAuthenticationResponse
type ICoreWebView2BrowserExtension ¶
type ICoreWebView2BrowserExtension interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2BrowserExtension // property // SetBaseIntf Set BaseIntf SetBaseIntf(AValue ICoreWebView2BrowserExtension) // property // ID // This is the browser extension's ID. This is the same browser extension ID returned by // the browser extension API [`chrome.runtime.id`](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/id). // Please see that documentation for more details on how the ID is generated. // After an extension is removed, calling `Id` will return the id of the extension that is removed. ID() string // property // Name // This is the browser extension's name. This value is defined in this browser extension's // manifest.json file. If manifest.json define extension's localized name, this value will // be the localized version of the name. // Please see [Manifest.json name](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/name) // for more details. // After an extension is removed, calling `Name` will return the name of the extension that is removed. Name() string // property // IsEnabled // If `isEnabled` is true then the Extension is enabled and running in WebView instances. // If it is false then the Extension is disabled and not running in WebView instances. // When a Extension is first installed, `IsEnable` are default to be `TRUE`. // `isEnabled` is persisted per profile. // After an extension is removed, calling `isEnabled` will return the value at the time it was removed. IsEnabled() bool // property // Remove // Removes this browser extension from its WebView2 Profile. The browser extension is removed // immediately including from all currently running HTML documents associated with this // WebView2 Profile. The removal is persisted and future uses of this profile will not have this // extension installed. After an extension is removed, calling `Remove` again will cause an exception. // The TWVBrowserBase.OnBrowserExtensionRemoveCompleted event is triggered when this function finishes. Remove(aBrowserComponent IComponent) bool // function // Enable // Sets whether this browser extension is enabled or disabled. This change applies immediately // to the extension in all HTML documents in all WebView2s associated with this profile. // After an extension is removed, calling `Enable` will not change the value of `IsEnabled`. // The TWVBrowserBase.OnBrowserExtensionEnableCompleted event is triggered when this function finishes. Enable(aIsEnabled bool, aBrowserComponent IComponent) bool // function }
ICoreWebView2BrowserExtension Parent: IObject
Provides a set of properties for managing an Extension, which includes an ID, name, and whether it is enabled or not, and the ability to Remove the Extension, and enable or disable it. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextension">See the ICoreWebView2BrowserExtension article.</a>
func AsCoreWebView2BrowserExtension ¶
func AsCoreWebView2BrowserExtension(obj interface{}) ICoreWebView2BrowserExtension
AsCoreWebView2BrowserExtension Convert a pointer object to an existing class object
func NewCoreWebView2BrowserExtension ¶
func NewCoreWebView2BrowserExtension(aBaseIntf ICoreWebView2BrowserExtension) ICoreWebView2BrowserExtension
type ICoreWebView2BrowserExtensionEnableCompletedHandler ¶
type ICoreWebView2BrowserExtensionEnableCompletedHandler interface { IObject }
ICoreWebView2BrowserExtensionEnableCompletedHandler Parent: IObject
The caller implements this interface to receive the result of setting the browser Extension as enabled or disabled. If enabled, the browser Extension is running in WebView instances. If disabled, the browser Extension is not running in WebView instances. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextensionenablecompletedhandler">See the ICoreWebView2BrowserExtensionEnableCompletedHandler article.</a>
func AsCoreWebView2BrowserExtensionEnableCompletedHandler ¶
func AsCoreWebView2BrowserExtensionEnableCompletedHandler(obj interface{}) ICoreWebView2BrowserExtensionEnableCompletedHandler
AsCoreWebView2BrowserExtensionEnableCompletedHandler Convert a pointer object to an existing class object
func NewCoreWebView2BrowserExtensionEnableCompletedHandler ¶
func NewCoreWebView2BrowserExtensionEnableCompletedHandler(aEvents IWVBrowserEvents, aExtensionID string) ICoreWebView2BrowserExtensionEnableCompletedHandler
type ICoreWebView2BrowserExtensionList ¶
type ICoreWebView2BrowserExtensionList interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2BrowserExtensionList // property // Count // The number of browser Extensions in the list. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextensionlist#get_count">See the ICoreWebView2ProcessExtendedInfoCollection article.</a> Count() uint32 // property // Items // Gets the browser Extension located in the browser Extension List at the given index. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextensionlist#getvalueatindex">See the ICoreWebView2ProcessExtendedInfoCollection article.</a> Items(idx uint32) ICoreWebView2BrowserExtension // property }
ICoreWebView2BrowserExtensionList Parent: IObject
Provides a set of properties for managing browser Extension Lists from user profile. This includes the number of browser Extensions in the list, and the ability to get an browser Extension from the list at a particular index. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextensionlist">See the ICoreWebView2BrowserExtensionList article.</a>
func AsCoreWebView2BrowserExtensionList ¶
func AsCoreWebView2BrowserExtensionList(obj interface{}) ICoreWebView2BrowserExtensionList
AsCoreWebView2BrowserExtensionList Convert a pointer object to an existing class object
func NewCoreWebView2BrowserExtensionList ¶
func NewCoreWebView2BrowserExtensionList(aBaseIntf ICoreWebView2BrowserExtensionList) ICoreWebView2BrowserExtensionList
type ICoreWebView2BrowserExtensionRemoveCompletedHandler ¶
type ICoreWebView2BrowserExtensionRemoveCompletedHandler interface { IObject }
ICoreWebView2BrowserExtensionRemoveCompletedHandler Parent: IObject
The caller implements this interface to receive the result of removing the browser Extension from the Profile. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextensionremovecompletedhandler">See the ICoreWebView2BrowserExtensionRemoveCompletedHandler article.</a>
func AsCoreWebView2BrowserExtensionRemoveCompletedHandler ¶
func AsCoreWebView2BrowserExtensionRemoveCompletedHandler(obj interface{}) ICoreWebView2BrowserExtensionRemoveCompletedHandler
AsCoreWebView2BrowserExtensionRemoveCompletedHandler Convert a pointer object to an existing class object
func NewCoreWebView2BrowserExtensionRemoveCompletedHandler ¶
func NewCoreWebView2BrowserExtensionRemoveCompletedHandler(aEvents IWVBrowserEvents, aExtensionID string) ICoreWebView2BrowserExtensionRemoveCompletedHandler
type ICoreWebView2BrowserProcessExitedEventArgs ¶
type ICoreWebView2BrowserProcessExitedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2BrowserProcessExitedEventArgs // property // BrowserProcessExitKind // The kind of browser process exit that has occurred. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserprocessexitedeventargs#get_browserprocessexitkind">See the ICoreWebView2BrowserProcessExitedEventArgs article.</a> BrowserProcessExitKind() TWVBrowserProcessExitKind // property // BrowserProcessId // The process ID of the browser process that has exited. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserprocessexitedeventargs#get_browserprocessid">See the ICoreWebView2BrowserProcessExitedEventArgs article.</a> BrowserProcessId() uint32 // property }
ICoreWebView2BrowserProcessExitedEventArgs Parent: IObject
Event args for the BrowserProcessExited event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserprocessexitedeventargs">See the ICoreWebView2BrowserProcessExitedEventArgs article.</a>
func AsCoreWebView2BrowserProcessExitedEventArgs ¶
func AsCoreWebView2BrowserProcessExitedEventArgs(obj interface{}) ICoreWebView2BrowserProcessExitedEventArgs
AsCoreWebView2BrowserProcessExitedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2BrowserProcessExitedEventArgs ¶
func NewCoreWebView2BrowserProcessExitedEventArgs(aArgs ICoreWebView2BrowserProcessExitedEventArgs) ICoreWebView2BrowserProcessExitedEventArgs
type ICoreWebView2Certificate ¶
type ICoreWebView2Certificate interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2Certificate // property // SetBaseIntf Set BaseIntf SetBaseIntf(AValue ICoreWebView2Certificate) // property // Subject // Subject of the certificate. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2certificate#get_subject">See the ICoreWebView2Certificate article.</a> Subject() string // property // Issuer // Name of the certificate authority that issued the certificate. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2certificate#get_issuer">See the ICoreWebView2Certificate article.</a> Issuer() string // property // ValidFrom // The valid start date and time for the certificate as the number of seconds since // the UNIX epoch. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2certificate#get_validfrom">See the ICoreWebView2Certificate article.</a> ValidFrom() (resultDateTime float64) // property // ValidTo // The valid expiration date and time for the certificate as the number of seconds since // the UNIX epoch. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2certificate#get_validto">See the ICoreWebView2Certificate article.</a> ValidTo() (resultDateTime float64) // property // DerEncodedSerialNumber // Base64 encoding of DER encoded serial number of the certificate. // Read more about DER at [RFC 7468 DER] // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2certificate#get_derencodedserialnumber">See the ICoreWebView2Certificate article.</a> DerEncodedSerialNumber() string // property // DisplayName // Display name for a certificate. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2certificate#get_displayname">See the ICoreWebView2Certificate article.</a> DisplayName() string // property // PemEncodedIssuerCertificateChain // Collection of PEM encoded certificate issuer chain. // In this collection first element is the current certificate followed by // intermediate1, intermediate2...intermediateN-1. Root certificate is the // last element in collection. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2certificate#get_pemencodedissuercertificatechain">See the ICoreWebView2Certificate article.</a> PemEncodedIssuerCertificateChain() ICoreWebView2StringCollection // property // ToPemEncoding // PEM encoded data for the certificate. // Returns Base64 encoding of DER encoded certificate. // Read more about PEM at [RFC 1421 Privacy Enhanced Mail] // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2certificate#topemencoding">See the ICoreWebView2Certificate article.</a> ToPemEncoding() string // function }
ICoreWebView2Certificate Parent: IObject
Provides access to the certificate metadata. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2certificate">See the ICoreWebView2Certificate article.</a>
func AsCoreWebView2Certificate ¶
func AsCoreWebView2Certificate(obj interface{}) ICoreWebView2Certificate
AsCoreWebView2Certificate Convert a pointer object to an existing class object
func NewCoreWebView2Certificate ¶
func NewCoreWebView2Certificate(aBaseIntf ICoreWebView2Certificate) ICoreWebView2Certificate
type ICoreWebView2ClearBrowsingDataCompletedHandler ¶
type ICoreWebView2ClearBrowsingDataCompletedHandler interface { IObject }
ICoreWebView2ClearBrowsingDataCompletedHandler Parent: IObject
The caller implements this interface to receive the ClearBrowsingData result. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clearbrowsingdatacompletedhandler">See the ICoreWebView2ClearBrowsingDataCompletedHandler article.</a>
func AsCoreWebView2ClearBrowsingDataCompletedHandler ¶
func AsCoreWebView2ClearBrowsingDataCompletedHandler(obj interface{}) ICoreWebView2ClearBrowsingDataCompletedHandler
AsCoreWebView2ClearBrowsingDataCompletedHandler Convert a pointer object to an existing class object
func NewCoreWebView2ClearBrowsingDataCompletedHandler ¶
func NewCoreWebView2ClearBrowsingDataCompletedHandler(aEvents IWVBrowserEvents) ICoreWebView2ClearBrowsingDataCompletedHandler
type ICoreWebView2ClientCertificate ¶
type ICoreWebView2ClientCertificate interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ClientCertificate // property // SetBaseIntf Set BaseIntf SetBaseIntf(AValue ICoreWebView2ClientCertificate) // property // Subject // Subject of the certificate. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificate#get_subject">See the ICoreWebView2ClientCertificate article.</a> Subject() string // property // Issuer // Name of the certificate authority that issued the certificate. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificate#get_issuer">See the ICoreWebView2ClientCertificate article.</a> Issuer() string // property // ValidFrom // The valid start date and time for the certificate as the number of seconds since // the UNIX epoch. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificate#get_validfrom">See the ICoreWebView2ClientCertificate article.</a> ValidFrom() (resultDateTime float64) // property // ValidTo // The valid expiration date and time for the certificate as the number of seconds since // the UNIX epoch. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificate#get_validto">See the ICoreWebView2ClientCertificate article.</a> ValidTo() (resultDateTime float64) // property // DerEncodedSerialNumber // Base64 encoding of DER encoded serial number of the certificate. // Read more about DER at [RFC 7468 DER] // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificate#get_derencodedserialnumber">See the ICoreWebView2ClientCertificate article.</a> DerEncodedSerialNumber() string // property // DisplayName // Display name for a certificate. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificate#get_displayname">See the ICoreWebView2ClientCertificate article.</a> DisplayName() string // property // PemEncodedIssuerCertificateChain // Collection of PEM encoded client certificate issuer chain. // In this collection first element is the current certificate followed by // intermediate1, intermediate2...intermediateN-1. Root certificate is the // last element in collection. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificate#get_pemencodedissuercertificatechain">See the ICoreWebView2ClientCertificate article.</a> PemEncodedIssuerCertificateChain() ICoreWebView2StringCollection // property // Kind // Kind of a certificate(eg., smart card, pin, other). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificate#get_kind">See the ICoreWebView2ClientCertificate article.</a> Kind() TWVClientCertificateKind // property // ToPemEncoding // PEM encoded data for the certificate. // Returns Base64 encoding of DER encoded certificate. // Read more about PEM at [RFC 1421 Privacy Enhanced Mail] // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificate#topemencoding">See the ICoreWebView2ClientCertificate article.</a> ToPemEncoding() string // function }
ICoreWebView2ClientCertificate Parent: IObject
Provides access to the client certificate metadata. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificate">See the ICoreWebView2ClientCertificate article.</a>
func AsCoreWebView2ClientCertificate ¶
func AsCoreWebView2ClientCertificate(obj interface{}) ICoreWebView2ClientCertificate
AsCoreWebView2ClientCertificate Convert a pointer object to an existing class object
func NewCoreWebView2ClientCertificate ¶
func NewCoreWebView2ClientCertificate(aBaseIntf ICoreWebView2ClientCertificate) ICoreWebView2ClientCertificate
type ICoreWebView2ClientCertificateCollection ¶
type ICoreWebView2ClientCertificateCollection interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ClientCertificateCollection // property // Count // The number of client certificates contained in the // ICoreWebView2ClientCertificateCollection. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificatecollection#get_count">See the ICoreWebView2ClientCertificateCollection article.</a> Count() uint32 // property // Items // Gets the certificate object at the given index. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificatecollection#getvalueatindex">See the ICoreWebView2ClientCertificateCollection article.</a> Items(idx uint32) ICoreWebView2ClientCertificate // property }
ICoreWebView2ClientCertificateCollection Parent: IObject
A collection of client certificate object. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificatecollection">See the ICoreWebView2ClientCertificateCollection article.</a>
func AsCoreWebView2ClientCertificateCollection ¶
func AsCoreWebView2ClientCertificateCollection(obj interface{}) ICoreWebView2ClientCertificateCollection
AsCoreWebView2ClientCertificateCollection Convert a pointer object to an existing class object
func NewCoreWebView2ClientCertificateCollection ¶
func NewCoreWebView2ClientCertificateCollection(aBaseIntf ICoreWebView2ClientCertificateCollection) ICoreWebView2ClientCertificateCollection
type ICoreWebView2ClientCertificateRequestedEventArgs ¶
type ICoreWebView2ClientCertificateRequestedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ClientCertificateRequestedEventArgs // property // Host // Host name of the server that requested client certificate authentication. // Normalization rules applied to the hostname are: // * Convert to lowercase characters for ascii characters. // * Punycode is used for representing non ascii characters. // * Strip square brackets for IPV6 address. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificaterequestedeventargs#get_host">See the ICoreWebView2ClientCertificateRequestedEventArgs article.</a> Host() string // property // Port // Port of the server that requested client certificate authentication. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificaterequestedeventargs#get_port">See the ICoreWebView2ClientCertificateRequestedEventArgs article.</a> Port() int32 // property // IsProxy // Returns true if the server that issued this request is an http proxy. // Returns false if the server is the origin server. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificaterequestedeventargs#get_isproxy">See the ICoreWebView2ClientCertificateRequestedEventArgs article.</a> IsProxy() bool // property // AllowedCertificateAuthorities // Returns the `ICoreWebView2StringCollection`. // The collection contains Base64 encoding of DER encoded distinguished names of // certificate authorities allowed by the server. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificaterequestedeventargs#get_allowedcertificateauthorities">See the ICoreWebView2ClientCertificateRequestedEventArgs article.</a> AllowedCertificateAuthorities() ICoreWebView2StringCollection // property // MutuallyTrustedCertificates // Returns the `ICoreWebView2ClientCertificateCollection` when client // certificate authentication is requested. The collection contains mutually // trusted CA certificates. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificaterequestedeventargs#get_mutuallytrustedcertificates">See the ICoreWebView2ClientCertificateRequestedEventArgs article.</a> MutuallyTrustedCertificates() ICoreWebView2ClientCertificateCollection // property // SelectedCertificate // Returns the selected certificate. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificaterequestedeventargs#get_selectedcertificate">See the ICoreWebView2ClientCertificateRequestedEventArgs article.</a> SelectedCertificate() ICoreWebView2ClientCertificate // property // SetSelectedCertificate Set SelectedCertificate SetSelectedCertificate(AValue ICoreWebView2ClientCertificate) // property // Cancel // You may set this flag to cancel the certificate selection. If canceled, // the request is aborted regardless of the `Handled` property. By default the // value is `FALSE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificaterequestedeventargs#get_cancel">See the ICoreWebView2ClientCertificateRequestedEventArgs article.</a> Cancel() bool // property // SetCancel Set Cancel SetCancel(AValue bool) // property // Handled // You may set this flag to `TRUE` to respond to the server with or // without a certificate. If this flag is `TRUE` with a `SelectedCertificate` // it responds to the server with the selected certificate otherwise respond to the // server without a certificate. By default the value of `Handled` and `Cancel` are `FALSE` // and display default client certificate selection dialog prompt to allow the user to // choose a certificate. The `SelectedCertificate` is ignored unless `Handled` is set `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificaterequestedeventargs#get_handled">See the ICoreWebView2ClientCertificateRequestedEventArgs article.</a> Handled() bool // property // SetHandled Set Handled SetHandled(AValue bool) // property // Deferral // Returns an `ICoreWebView2Deferral` object. Use this operation to // complete the event at a later time. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificaterequestedeventargs#getdeferral">See the ICoreWebView2ClientCertificateRequestedEventArgs article.</a> Deferral() ICoreWebView2Deferral // property }
ICoreWebView2ClientCertificateRequestedEventArgs Parent: IObject
Event args for the ClientCertificateRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificaterequestedeventargs">See the ICoreWebView2ClientCertificateRequestedEventArgs article.</a>
func AsCoreWebView2ClientCertificateRequestedEventArgs ¶
func AsCoreWebView2ClientCertificateRequestedEventArgs(obj interface{}) ICoreWebView2ClientCertificateRequestedEventArgs
AsCoreWebView2ClientCertificateRequestedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2ClientCertificateRequestedEventArgs ¶
func NewCoreWebView2ClientCertificateRequestedEventArgs(aArgs ICoreWebView2ClientCertificateRequestedEventArgs) ICoreWebView2ClientCertificateRequestedEventArgs
type ICoreWebView2CompositionController ¶
type ICoreWebView2CompositionController interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2CompositionController // property // RootVisualTarget // The RootVisualTarget is a visual in the hosting app's visual tree. This // visual is where the WebView will connect its visual tree. The app uses // this visual to position the WebView within the app. The app still needs // to use the Bounds property to size the WebView. The RootVisualTarget // property can be an IDCompositionVisual or a // Windows::UI::Composition::ContainerVisual. WebView will connect its visual // tree to the provided visual before returning from the property setter. The // app needs to commit on its device setting the RootVisualTarget property. // The RootVisualTarget property supports being set to nullptr to disconnect // the WebView from the app's visual tree. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller#get_rootvisualtarget">See the ICoreWebView2CompositionController article.</a> RootVisualTarget() IUnknown // property // SetRootVisualTarget Set RootVisualTarget SetRootVisualTarget(AValue IUnknown) // property // Cursor // The current cursor that WebView thinks it should be. The cursor should be // set in WM_SETCURSOR through \::SetCursor or set on the corresponding // parent/ancestor HWND of the WebView through \::SetClassLongPtr. The HCURSOR // can be freed so CopyCursor/DestroyCursor is recommended to keep your own // copy if you are doing more than immediately setting the cursor. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller#get_cursor">See the ICoreWebView2CompositionController article.</a> Cursor() HCURSOR // property // SystemCursorID // The current system cursor ID reported by the underlying rendering engine // for WebView. For example, most of the time, when the cursor is over text, // this will return the int value for IDC_IBEAM. The systemCursorId is only // valid if the rendering engine reports a default Windows cursor resource // value. Navigate to // [LoadCursorW](/windows/win32/api/winuser/nf-winuser-loadcursorw) for more // details. Otherwise, if custom CSS cursors are being used, this will return // 0. To actually use systemCursorId in LoadCursor or LoadImage, // MAKEINTRESOURCE must be called on it first. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller#get_systemcursorid">See the ICoreWebView2CompositionController article.</a> SystemCursorID() uint32 // property // AutomationProvider // Returns the Automation Provider for the WebView. This object implements // IRawElementProviderSimple. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller2#get_automationprovider">See the ICoreWebView2CompositionController2 article.</a> AutomationProvider() IUnknown // property // AddAllBrowserEvents // Adds all the events of this class to an existing TWVBrowserBase instance. // <param name="aBrowserComponent">The TWVBrowserBase instance.</param> AddAllBrowserEvents(aBrowserComponent IComponent) bool // function // SendMouseInput // If eventKind is COREWEBVIEW2_MOUSE_EVENT_KIND_HORIZONTAL_WHEEL or // COREWEBVIEW2_MOUSE_EVENT_KIND_WHEEL, then mouseData specifies the amount of // wheel movement. A positive value indicates that the wheel was rotated // forward, away from the user; a negative value indicates that the wheel was // rotated backward, toward the user. One wheel click is defined as // WHEEL_DELTA, which is 120. // If eventKind is COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_DOUBLE_CLICK // COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_DOWN, or // COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_UP, then mouseData specifies which X // buttons were pressed or released. This value should be 1 if the first X // button is pressed/released and 2 if the second X button is // pressed/released. // If eventKind is COREWEBVIEW2_MOUSE_EVENT_KIND_LEAVE, then virtualKeys, // mouseData, and point should all be zero. // If eventKind is any other value, then mouseData should be zero. // Point is expected to be in the client coordinate space of the WebView. // To track mouse events that start in the WebView and can potentially move // outside of the WebView and host application, calling SetCapture and // ReleaseCapture is recommended. // To dismiss hover popups, it is also recommended to send // COREWEBVIEW2_MOUSE_EVENT_KIND_LEAVE messages. SendMouseInput(aEventKind TWVMouseEventKind, aVirtualKeys TWVMouseEventVirtualKeys, aMouseData uint32, aPoint *TPoint) bool // function // SendPointerInput // SendPointerInput accepts touch or pen pointer input of types defined in // COREWEBVIEW2_POINTER_EVENT_KIND. Any pointer input from the system must be // converted into an ICoreWebView2PointerInfo first. SendPointerInput(aEventKind TWVPointerEventKind, aPointerInfo ICoreWebView2PointerInfo) bool // function // DragEnter // This function corresponds to [IDropTarget::DragEnter](/windows/win32/api/oleidl/nf-oleidl-idroptarget-dragenter). // This function has a dependency on AllowExternalDrop property of // CoreWebView2Controller and return E_FAIL to callers to indicate this // operation is not allowed if AllowExternalDrop property is set to false. // The hosting application must register as an IDropTarget and implement // and forward DragEnter calls to this function. // point parameter must be modified to include the WebView's offset and be in // the WebView's client coordinates(Similar to how SendMouseInput works). DragEnter(dataObject IDataObject, keyState uint32, point *TPoint, OutEffect *uint32) int32 // function // DragLeave // This function corresponds to [IDropTarget::DragLeave](/windows/win32/api/oleidl/nf-oleidl-idroptarget-dragleave). // This function has a dependency on AllowExternalDrop property of // CoreWebView2Controller and return E_FAIL to callers to indicate this // operation is not allowed if AllowExternalDrop property is set to false. // The hosting application must register as an IDropTarget and implement // and forward DragLeave calls to this function. DragLeave() int32 // function // DragOver // This function corresponds to [IDropTarget::DragOver](/windows/win32/api/oleidl/nf-oleidl-idroptarget-dragover). // This function has a dependency on AllowExternalDrop property of // CoreWebView2Controller and return E_FAIL to callers to indicate this // operation is not allowed if AllowExternalDrop property is set to false. // The hosting application must register as an IDropTarget and implement // and forward DragOver calls to this function. // point parameter must be modified to include the WebView's offset and be in // the WebView's client coordinates(Similar to how SendMouseInput works). DragOver(keyState uint32, point *TPoint, OutEffect *uint32) int32 // function // Drop // This function corresponds to [IDropTarget::Drop](/windows/win32/api/oleidl/nf-oleidl-idroptarget-drop). // This function has a dependency on AllowExternalDrop property of // CoreWebView2Controller and return E_FAIL to callers to indicate this // operation is not allowed if AllowExternalDrop property is set to false. // The hosting application must register as an IDropTarget and implement // and forward Drop calls to this function. // point parameter must be modified to include the WebView's offset and be in // the WebView's client coordinates(Similar to how SendMouseInput works). Drop(dataObject IDataObject, keyState uint32, point *TPoint, OutEffect *uint32) int32 // function }
ICoreWebView2CompositionController Parent: IObject
This interface is an extension of the ICoreWebView2Controller interface to support visual hosting. An object implementing the ICoreWebView2CompositionController interface will also implement ICoreWebView2Controller. Callers are expected to use ICoreWebView2Controller for resizing, visibility, focus, and so on, and then use ICoreWebView2CompositionController to connect to a composition tree and provide input meant for the WebView. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller">See the ICoreWebView2CompositionController article.</a>
func AsCoreWebView2CompositionController ¶
func AsCoreWebView2CompositionController(obj interface{}) ICoreWebView2CompositionController
AsCoreWebView2CompositionController Convert a pointer object to an existing class object
func NewCoreWebView2CompositionController ¶
func NewCoreWebView2CompositionController(aBaseIntf ICoreWebView2CompositionController) ICoreWebView2CompositionController
type ICoreWebView2ContentLoadingEventArgs ¶
type ICoreWebView2ContentLoadingEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ContentLoadingEventArgs // property // IsErrorPage // `TRUE` if the loaded content is an error page. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contentloadingeventargs#get_iserrorpage">See the ICoreWebView2ContentLoadingEventArgs article.</a> IsErrorPage() bool // property // The ID of the navigation. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contentloadingeventargs#get_navigationid">See the ICoreWebView2ContentLoadingEventArgs article.</a> NavigationId() (resultUint64 uint64) // property }
ICoreWebView2ContentLoadingEventArgs Parent: IObject
Receives ContentLoading events. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contentloadingeventargs">See the ICoreWebView2ContentLoadingEventArgs article.</a>
func AsCoreWebView2ContentLoadingEventArgs ¶
func AsCoreWebView2ContentLoadingEventArgs(obj interface{}) ICoreWebView2ContentLoadingEventArgs
AsCoreWebView2ContentLoadingEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2ContentLoadingEventArgs ¶
func NewCoreWebView2ContentLoadingEventArgs(aArgs ICoreWebView2ContentLoadingEventArgs) ICoreWebView2ContentLoadingEventArgs
type ICoreWebView2ContextMenuItem ¶
type ICoreWebView2ContextMenuItem interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ContextMenuItem // property // SetBaseIntf Set BaseIntf SetBaseIntf(AValue ICoreWebView2ContextMenuItem) // property // Name // Gets the unlocalized name for the `ContextMenuItem`. Use this to // distinguish between context menu item types. This will be the English // label of the menu item in lower camel case. For example, the "Save as" // menu item will be "saveAs". Extension menu items will be "extension", // custom menu items will be "custom" and spellcheck items will be // "spellCheck". // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitem#get_name">See the ICoreWebView2ContextMenuItem article.</a> Name() string // property // Label // Gets the localized label for the `ContextMenuItem`. Will contain an // ampersand for characters to be used as keyboard accelerator. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitem#get_label">See the ICoreWebView2ContextMenuItem article.</a> Label() string // property // CommandId // Gets the Command ID for the `ContextMenuItem`. Use this to report the // `SelectedCommandId` in `ContextMenuRequested` event. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitem#get_commandid">See the ICoreWebView2ContextMenuItem article.</a> CommandId() int32 // property // ShortcutKeyDescription // Gets the localized keyboard shortcut for this ContextMenuItem. It will be // the empty string if there is no keyboard shortcut. This is text intended // to be displayed to the end user to show the keyboard shortcut. For example // this property is Ctrl+Shift+I for the "Inspect" `ContextMenuItem`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitem#get_shortcutkeydescription">See the ICoreWebView2ContextMenuItem article.</a> ShortcutKeyDescription() string // property // Icon // Gets the Icon for the `ContextMenuItem` in PNG, Bitmap or SVG formats in the form of an IStream. // Stream will be rewound to the start of the image data. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitem#get_icon">See the ICoreWebView2ContextMenuItem article.</a> Icon() IStream // property // Kind // Gets the `ContextMenuItem` kind. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitem#get_kind">See the ICoreWebView2ContextMenuItem article.</a> Kind() TWVMenuItemKind // property // IsEnabled // Gets the enabled property of the `ContextMenuItem`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitem#get_isenabled">See the ICoreWebView2ContextMenuItem article.</a> IsEnabled() bool // property // SetIsEnabled Set IsEnabled SetIsEnabled(AValue bool) // property // IsChecked // Gets the checked property of the `ContextMenuItem`, used if the kind is Check box or Radio. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitem#get_ischecked">See the ICoreWebView2ContextMenuItem article.</a> IsChecked() bool // property // SetIsChecked Set IsChecked SetIsChecked(AValue bool) // property // Children // Gets the list of children menu items through a `ContextMenuItemCollection` // if the kind is Submenu. If the kind is not submenu, will return null. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitem#get_children">See the ICoreWebView2ContextMenuItem article.</a> Children() ICoreWebView2ContextMenuItemCollection // property // AddAllBrowserEvents // Adds all the events of this class to an existing TWVBrowserBase instance. // <param name="aBrowserComponent">The TWVBrowserBase instance.</param> AddAllBrowserEvents(aBrowserComponent IComponent) bool // function }
ICoreWebView2ContextMenuItem Parent: IObject
Represents a context menu item of a context menu displayed by WebView. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitem">See the ICoreWebView2ContextMenuItem article.</a>
func AsCoreWebView2ContextMenuItem ¶
func AsCoreWebView2ContextMenuItem(obj interface{}) ICoreWebView2ContextMenuItem
AsCoreWebView2ContextMenuItem Convert a pointer object to an existing class object
func NewCoreWebView2ContextMenuItem ¶
func NewCoreWebView2ContextMenuItem(aBaseIntf ICoreWebView2ContextMenuItem) ICoreWebView2ContextMenuItem
type ICoreWebView2ContextMenuItemCollection ¶
type ICoreWebView2ContextMenuItemCollection interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ContextMenuItemCollection // property // Count // Gets the number of `ContextMenuItem` objects contained in the `ContextMenuItemCollection`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitemcollection#get_count">See the ICoreWebView2ContextMenuItemCollection article.</a> Count() uint32 // property // Items // Gets the `ContextMenuItem` at the specified index. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitemcollection#getvalueatindex">See the ICoreWebView2ContextMenuItemCollection article.</a> Items(idx uint32) ICoreWebView2ContextMenuItem // property // RemoveValueAtIndex // Removes the `ContextMenuItem` at the specified index. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitemcollection#removevalueatindex">See the ICoreWebView2ContextMenuItemCollection article.</a> RemoveValueAtIndex(index uint32) bool // function // InsertValueAtIndex // Inserts the `ContextMenuItem` at the specified index. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitemcollection#insertvalueatindex">See the ICoreWebView2ContextMenuItemCollection article.</a> InsertValueAtIndex(index uint32, aValue ICoreWebView2ContextMenuItem) bool // function // AppendValue // Appends the aValue item at the end of the collection. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitemcollection#insertvalueatindex">See the ICoreWebView2ContextMenuItemCollection article.</a> AppendValue(aValue ICoreWebView2ContextMenuItem) bool // function // RemoveAllMenuItems // Removes all items from the collection. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitemcollection#removevalueatindex">See the ICoreWebView2ContextMenuItemCollection article.</a> RemoveAllMenuItems() // procedure // RemoveMenuItem // Removes the item with the commandId value specified in the paramaters. // <param name="aCommandId">The commandId value of the item that has to be removed.</param> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitemcollection#removevalueatindex">See the ICoreWebView2ContextMenuItemCollection article.</a> RemoveMenuItem(aCommandId int32) // procedure // RemoveMenuItem1 // Removes the item with the label value specified in the paramaters. // <param name="aLabel">The label value of the item that has to be removed.</param> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitemcollection#removevalueatindex">See the ICoreWebView2ContextMenuItemCollection article.</a> RemoveMenuItem1(aLabel string) // procedure }
ICoreWebView2ContextMenuItemCollection Parent: IObject
Represents a collection of ContextMenuItem objects. Used to get, remove and add ContextMenuItem objects at the specified index. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitemcollection">See the ICoreWebView2ContextMenuItemCollection article.</a>
func AsCoreWebView2ContextMenuItemCollection ¶
func AsCoreWebView2ContextMenuItemCollection(obj interface{}) ICoreWebView2ContextMenuItemCollection
AsCoreWebView2ContextMenuItemCollection Convert a pointer object to an existing class object
func NewCoreWebView2ContextMenuItemCollection ¶
func NewCoreWebView2ContextMenuItemCollection(aBaseIntf ICoreWebView2ContextMenuItemCollection) ICoreWebView2ContextMenuItemCollection
type ICoreWebView2ContextMenuRequestedEventArgs ¶
type ICoreWebView2ContextMenuRequestedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ContextMenuRequestedEventArgs // property // MenuItems // Gets the collection of `ContextMenuItem` objects. // See `ICoreWebView2ContextMenuItemCollection` for more details. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenurequestedeventargs#get_menuitems">See the ICoreWebView2ContextMenuRequestedEventArgs article.</a> MenuItems() ICoreWebView2ContextMenuItemCollection // property // ContextMenuTarget // Gets the target information associated with the requested context menu. // See `ICoreWebView2ContextMenuTarget` for more details. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenurequestedeventargs#get_contextmenutarget">See the ICoreWebView2ContextMenuRequestedEventArgs article.</a> ContextMenuTarget() ICoreWebView2ContextMenuTarget // property // Location // Gets the coordinates where the context menu request occurred in relation to the upper // left corner of the WebView bounds. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenurequestedeventargs#get_location">See the ICoreWebView2ContextMenuRequestedEventArgs article.</a> Location() (resultPoint TPoint) // property // SelectedCommandId // Gets the selected CommandId. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenurequestedeventargs#get_selectedcommandid">See the ICoreWebView2ContextMenuRequestedEventArgs article.</a> SelectedCommandId() int32 // property // SetSelectedCommandId Set SelectedCommandId SetSelectedCommandId(AValue int32) // property // Handled // Gets whether the `ContextMenuRequested` event is handled by host. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenurequestedeventargs#get_handled">See the ICoreWebView2ContextMenuRequestedEventArgs article.</a> Handled() bool // property // SetHandled Set Handled SetHandled(AValue bool) // property // Deferral // Returns an `ICoreWebView2Deferral` object. Use this operation to // complete the event when the custom context menu is closed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenurequestedeventargs#getdeferral">See the ICoreWebView2ContextMenuRequestedEventArgs article.</a> Deferral() ICoreWebView2Deferral // property }
ICoreWebView2ContextMenuRequestedEventArgs Parent: IObject
Event args for the ContextMenuRequested event. Will contain the selection information and a collection of all of the default context menu items that the WebView would show. Allows the app to draw its own context menu or add/remove from the default context menu. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenurequestedeventargs">See the ICoreWebView2ContextMenuRequestedEventArgs article.</a>
func AsCoreWebView2ContextMenuRequestedEventArgs ¶
func AsCoreWebView2ContextMenuRequestedEventArgs(obj interface{}) ICoreWebView2ContextMenuRequestedEventArgs
AsCoreWebView2ContextMenuRequestedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2ContextMenuRequestedEventArgs ¶
func NewCoreWebView2ContextMenuRequestedEventArgs(aArgs ICoreWebView2ContextMenuRequestedEventArgs) ICoreWebView2ContextMenuRequestedEventArgs
type ICoreWebView2ContextMenuTarget ¶
type ICoreWebView2ContextMenuTarget interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ContextMenuTarget // property // Kind // Gets the kind of context that the user selected. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget#get_kind">See the ICoreWebView2ContextMenuTarget article.</a> Kind() TWVMenuTargetKind // property // IsEditable // Returns TRUE if the context menu is requested on an editable component. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget#get_iseditable">See the ICoreWebView2ContextMenuTarget article.</a> IsEditable() bool // property // IsRequestedForMainFrame // Returns TRUE if the context menu was requested on the main frame and // FALSE if invoked on another frame. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget#get_isrequestedformainframe">See the ICoreWebView2ContextMenuTarget article.</a> IsRequestedForMainFrame() bool // property // PageUri // Gets the uri of the page. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget#get_pageuri">See the ICoreWebView2ContextMenuTarget article.</a> PageUri() string // property // FrameUri // Gets the uri of the frame. Will match the PageUri if `IsRequestedForMainFrame` is TRUE. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget#get_frameuri">See the ICoreWebView2ContextMenuTarget article.</a> FrameUri() string // property // HasLinkUri // Returns TRUE if the context menu is requested on HTML containing an anchor tag. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget#get_haslinkuri">See the ICoreWebView2ContextMenuTarget article.</a> HasLinkUri() bool // property // LinkUri // Gets the uri of the link(if `HasLinkUri` is TRUE, null otherwise). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget#get_linkuri">See the ICoreWebView2ContextMenuTarget article.</a> LinkUri() string // property // HasLinkText // Returns TRUE if the context menu is requested on text element that contains an anchor tag. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget#get_haslinktext">See the ICoreWebView2ContextMenuTarget article.</a> HasLinkText() bool // property // LinkText // Gets the text of the link(if `HasLinkText` is TRUE, null otherwise). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget#get_linktext">See the ICoreWebView2ContextMenuTarget article.</a> LinkText() string // property // HasSourceUri // Returns TRUE if the context menu is requested on HTML containing a source uri. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget#get_hassourceuri">See the ICoreWebView2ContextMenuTarget article.</a> HasSourceUri() bool // property // SourceUri // Gets the active source uri of element(if `HasSourceUri` is TRUE, null otherwise). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget#get_sourceuri">See the ICoreWebView2ContextMenuTarget article.</a> SourceUri() string // property // HasSelection // Returns TRUE if the context menu is requested on a selection. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget#get_hasselection">See the ICoreWebView2ContextMenuTarget article.</a> HasSelection() bool // property // SelectionText // Gets the selected text(if `HasSelection` is TRUE, null otherwise). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget#get_selectiontext">See the ICoreWebView2ContextMenuTarget article.</a> SelectionText() string // property }
ICoreWebView2ContextMenuTarget Parent: IObject
Represents the information regarding the context menu target. Includes the context selected and the appropriate data used for the actions of a context menu. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget">See the ICoreWebView2ContextMenuTarget article.</a>
func AsCoreWebView2ContextMenuTarget ¶
func AsCoreWebView2ContextMenuTarget(obj interface{}) ICoreWebView2ContextMenuTarget
AsCoreWebView2ContextMenuTarget Convert a pointer object to an existing class object
func NewCoreWebView2ContextMenuTarget ¶
func NewCoreWebView2ContextMenuTarget(aBaseIntf ICoreWebView2ContextMenuTarget) ICoreWebView2ContextMenuTarget
type ICoreWebView2Controller ¶
type ICoreWebView2Controller interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2Controller // property // ZoomFactor // The zoom factor for the WebView. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_zoomfactor">See the ICoreWebView2Controller article.</a> ZoomFactor() (resultDouble float64) // property // SetZoomFactor Set ZoomFactor SetZoomFactor(AValue float64) // property // IsVisible // The `IsVisible` property determines whether to show or hide the WebView2. // If `IsVisible` is set to `FALSE`, the WebView2 is transparent and is // not rendered. However, this does not affect the window containing the // WebView2(the `HWND` parameter that was passed to // `CreateCoreWebView2Controller`). If you want that window to disappear // too, run `ShowWindow` on it directly in addition to modifying the // `IsVisible` property. WebView2 as a child window does not get window // messages when the top window is minimized or restored. For performance // reasons, developers should set the `IsVisible` property of the WebView to // `FALSE` when the app window is minimized and back to `TRUE` when the app // window is restored. The app window does this by handling // `SIZE_MINIMIZED and SIZE_RESTORED` command upon receiving `WM_SIZE` // message. // There are CPU and memory benefits when the page is hidden. For instance, // Chromium has code that throttles activities on the page like animations // and some tasks are run less frequently. Similarly, WebView2 will // purge some caches to reduce memory usage. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_isvisible">See the ICoreWebView2Controller article.</a> IsVisible() bool // property // SetIsVisible Set IsVisible SetIsVisible(AValue bool) // property // Bounds // The WebView bounds. Bounds are relative to the parent `HWND`. The app // has two ways to position a WebView. // * Create a child `HWND` that is the WebView parent `HWND`. Position // the window where the WebView should be. Use `(0, 0)` for the // top-left corner(the offset) of the `Bounds` of the WebView. // * Use the top-most window of the app as the WebView parent HWND. For // example, to position WebView correctly in the app, set the top-left // corner of the Bound of the WebView. // The values of `Bounds` are limited by the coordinate space of the host. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_bounds">See the ICoreWebView2Controller article.</a> Bounds() (resultRect TRect) // property // SetBounds Set Bounds SetBounds(AValue *TRect) // property // ParentWindow // The parent window provided by the app that this WebView is using to // render content. This API initially returns the window passed into // `CreateCoreWebView2Controller`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_parentwindow">See the ICoreWebView2Controller article.</a> ParentWindow() THandle // property // SetParentWindow Set ParentWindow SetParentWindow(AValue THandle) // property // DefaultBackgroundColor // The `DefaultBackgroundColor` property is the color WebView renders // underneath all web content. This means WebView renders this color when // there is no web content loaded such as before the initial navigation or // between navigations. This also means web pages with undefined css // background properties or background properties containing transparent // pixels will render their contents over this color. Web pages with defined // and opaque background properties that span the page will obscure the // `DefaultBackgroundColor` and display normally. The default value for this // property is white to resemble the native browser experience. // The Color is specified by the COREWEBVIEW2_COLOR that represents an RGBA // value. The `A` represents an Alpha value, meaning // `DefaultBackgroundColor` can be transparent. In the case of a transparent // `DefaultBackgroundColor` WebView will render hosting app content as the // background. This Alpha value is not supported on Windows 7. Any `A` value // other than 255 will result in E_INVALIDARG on Windows 7. // It is supported on all other WebView compatible platforms. // Semi-transparent colors are not currently supported by this API and // setting `DefaultBackgroundColor` to a semi-transparent color will fail // with E_INVALIDARG. The only supported alpha values are 0 and 255, all // other values will result in E_INVALIDARG. // `DefaultBackgroundColor` can only be an opaque color or transparent. // This value may also be set by using the // `WEBVIEW2_DEFAULT_BACKGROUND_COLOR` environment variable. There is a // known issue with background color where setting the color by API can // still leave the app with a white flicker before the // `DefaultBackgroundColor` takes effect. Setting the color via environment // variable solves this issue. The value must be a hex value that can // optionally prepend a 0x. The value must account for the alpha value // which is represented by the first 2 digits. So any hex value fewer than 8 // digits will assume a prepended 00 to the hex value and result in a // transparent color. // `get_DefaultBackgroundColor` will return the result of this environment // variable if used. This environment variable can only set the // `DefaultBackgroundColor` once. Subsequent updates to background color // must be done through API call. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller2#get_defaultbackgroundcolor">See the ICoreWebView2Controller2 article.</a> DefaultBackgroundColor() TColor // property // SetDefaultBackgroundColor Set DefaultBackgroundColor SetDefaultBackgroundColor(AValue TColor) // property // RasterizationScale // The rasterization scale for the WebView. The rasterization scale is the // combination of the monitor DPI scale and text scaling set by the user. // This value should be updated when the DPI scale of the app's top level // window changes(i.e. monitor DPI scale changes or window changes monitor) // or when the text scale factor of the system changes. // Rasterization scale applies to the WebView content, as well as // popups, context menus, scroll bars, and so on. Normal app scaling // scenarios should use the ZoomFactor property or SetBoundsAndZoomFactor // API which only scale the rendered HTML content and not popups, context // menus, scroll bars, and so on. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller3#get_rasterizationscale">See the ICoreWebView2Controller3 article.</a> RasterizationScale() (resultDouble float64) // property // SetRasterizationScale Set RasterizationScale SetRasterizationScale(AValue float64) // property // ShouldDetectMonitorScaleChanges // ShouldDetectMonitorScaleChanges property determines whether the WebView // attempts to track monitor DPI scale changes. When true, the WebView will // track monitor DPI scale changes, update the RasterizationScale property, // and raises RasterizationScaleChanged event. When false, the WebView will // not track monitor DPI scale changes, and the app must update the // RasterizationScale property itself. RasterizationScaleChanged event will // never raise when ShouldDetectMonitorScaleChanges is false. Apps that want // to set their own rasterization scale should set this property to false to // avoid the WebView2 updating the RasterizationScale property to match the // monitor DPI scale. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller3#get_shoulddetectmonitorscalechanges">See the ICoreWebView2Controller3 article.</a> ShouldDetectMonitorScaleChanges() bool // property // SetShouldDetectMonitorScaleChanges Set ShouldDetectMonitorScaleChanges SetShouldDetectMonitorScaleChanges(AValue bool) // property // BoundsMode // BoundsMode affects how setting the Bounds and RasterizationScale // properties work. Bounds mode can either be in COREWEBVIEW2_BOUNDS_MODE_USE_RAW_PIXELS // mode or COREWEBVIEW2_BOUNDS_MODE_USE_RASTERIZATION_SCALE mode. // When the mode is in COREWEBVIEW2_BOUNDS_MODE_USE_RAW_PIXELS, setting the bounds // property will set the size of the WebView in raw screen pixels. Changing // the rasterization scale in this mode won't change the raw pixel size of // the WebView and will only change the rasterization scale. // When the mode is in COREWEBVIEW2_BOUNDS_MODE_USE_RASTERIZATION_SCALE, setting the // bounds property will change the logical size of the WebView which can be // described by the following equation: Logical size * rasterization scale = Raw Pixel size // In this case, changing the rasterization scale will keep the logical size // the same and change the raw pixel size. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller3#get_boundsmode">See the ICoreWebView2Controller3 article.</a> BoundsMode() TWVBoundsMode // property // SetBoundsMode Set BoundsMode SetBoundsMode(AValue TWVBoundsMode) // property // CoreWebView2 // Gets the `CoreWebView2` associated with this `CoreWebView2Controller`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_corewebview2">See the ICoreWebView2Controller article.</a> CoreWebView2() ICoreWebView2 // property // AllowExternalDrop // Gets the `AllowExternalDrop` property which is used to configure the // capability that dragging objects from outside the bounds of webview2 and // dropping into webview2 is allowed or disallowed. The default value is // TRUE. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller4#get_allowexternaldrop">See the ICoreWebView2Controller4 article.</a> AllowExternalDrop() bool // property // SetAllowExternalDrop Set AllowExternalDrop SetAllowExternalDrop(AValue bool) // property // AddAllBrowserEvents // Adds all the events of this class to an existing TWVBrowserBase instance. // <param name="aBrowserComponent">The TWVBrowserBase instance.</param> AddAllBrowserEvents(aBrowserComponent IComponent) bool // function // MoveFocus // Moves focus into WebView. WebView gets focus and focus is set to // correspondent element in the page hosted in the WebView. For // Programmatic reason, focus is set to previously focused element or the // default element if no previously focused element exists. For `Next` // reason, focus is set to the first element. For `Previous` reason, focus // is set to the last element. WebView changes focus through user // interaction including selecting into a WebView or Tab into it. For // tabbing, the app runs MoveFocus with Next or Previous to align with Tab // and Shift+Tab respectively when it decides the WebView is the next // element that may exist in a tab. Or, the app runs `IsDialogMessage` // as part of the associated message loop to allow the platform to auto // handle tabbing. The platform rotates through all windows with // `WS_TABSTOP`. When the WebView gets focus from `IsDialogMessage`, it is // internally put the focus on the first or last element for tab and // Shift+Tab respectively. MoveFocus(aReason TWVMoveFocusReason) bool // function // Close // Closes the WebView and cleans up the underlying browser instance. // Cleaning up the browser instance releases the resources powering the // WebView. The browser instance is shut down if no other WebViews are // using it. // After running `Close`, most methods will fail and event handlers stop // running. Specifically, the WebView releases the associated references to // any associated event handlers when `Close` is run. // `Close` is implicitly run when the `CoreWebView2Controller` loses the // final reference and is destructed. But it is best practice to // explicitly run `Close` to avoid any accidental cycle of references // between the WebView and the app code. Specifically, if you capture a // reference to the WebView in an event handler you create a reference cycle // between the WebView and the event handler. Run `Close` to break the // cycle by releasing all event handlers. But to avoid the situation, it is // best to both explicitly run `Close` on the WebView and to not capture a // reference to the WebView to ensure the WebView is cleaned up correctly. // `Close` is synchronous and won't trigger the `beforeunload` event. Close() bool // function // SetBoundsAndZoomFactor // Updates `aBounds` and `aZoomFactor` properties at the same time. This // operation is atomic from the perspective of the host. After returning // from this function, the `aBounds` and `aZoomFactor` properties are both // updated if the function is successful, or neither is updated if the // function fails. If `aBounds` and `aZoomFactor` are both updated by the // same scale(for example, `aBounds` and `aZoomFactor` are both doubled), // then the page does not display a change in `window.innerWidth` or // `window.innerHeight` and the WebView renders the content at the new size // and zoom without intermediate renderings. This function also updates // just one of `aZoomFactor` or `aBounds` by passing in the new value for one // and the current value for the other. SetBoundsAndZoomFactor(aBounds *TRect, aZoomFactor float64) bool // function // NotifyParentWindowPositionChanged // This is a notification separate from `Bounds` that tells WebView that the // main WebView parent(or any ancestor) `HWND` moved. This is needed // for accessibility and certain dialogs in WebView to work correctly. NotifyParentWindowPositionChanged() bool // function }
ICoreWebView2Controller Parent: IObject
The owner of the `CoreWebView2` object that provides support for resizing, showing and hiding, focusing, and other functionality related to windowing and composition. The `CoreWebView2Controller` owns the `CoreWebView2`, and if all references to the `CoreWebView2Controller` go away, the WebView is closed. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller">See the ICoreWebView2Controller article.</a>
func AsCoreWebView2Controller ¶
func AsCoreWebView2Controller(obj interface{}) ICoreWebView2Controller
AsCoreWebView2Controller Convert a pointer object to an existing class object
func NewCoreWebView2Controller ¶
func NewCoreWebView2Controller(aBaseIntf ICoreWebView2Controller) ICoreWebView2Controller
type ICoreWebView2ControllerOptions ¶
type ICoreWebView2ControllerOptions interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ControllerOptions // property // SetBaseIntf Set BaseIntf SetBaseIntf(AValue ICoreWebView2ControllerOptions) // property // ProfileName // `ProfileName` property is to specify a profile name, which is only allowed to contain // the following ASCII characters. It has a maximum length of 64 characters excluding the null-terminator. // It is ASCII case insensitive. // * alphabet characters: a-z and A-Z // * digit characters: 0-9 // * and '#', '@', '$', '(', ')', '+', '-', '_', '~', '.', ' '(space). // Note: the text must not end with a period '.' or ' '(space). And, although upper-case letters are // allowed, they're treated just as lower-case counterparts because the profile name will be mapped to // the real profile directory path on disk and Windows file system handles path names in a case-insensitive way. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controlleroptions#get_profilename">See the ICoreWebView2ControllerOptions article.</a> ProfileName() string // property // SetProfileName Set ProfileName SetProfileName(AValue string) // property // IsInPrivateModeEnabled // `IsInPrivateModeEnabled` property is to enable/disable InPrivate mode. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controlleroptions#get_isinprivatemodeenabled">See the ICoreWebView2ControllerOptions article.</a> IsInPrivateModeEnabled() bool // property // SetIsInPrivateModeEnabled Set IsInPrivateModeEnabled SetIsInPrivateModeEnabled(AValue bool) // property // ScriptLocale // The default locale for the WebView2. It sets the default locale for all // Intl JavaScript APIs and other JavaScript APIs that depend on it, namely // `Intl.DateTimeFormat()` which affects string formatting like // in the time/date formats. Example: `Intl.DateTimeFormat().format(new Date())` // The intended locale value is in the format of // BCP 47 Language Tags. More information can be found from // [IETF BCP47](https://www.ietf.org/rfc/bcp/bcp47.html). // This property sets the locale for a CoreWebView2Environment used to create the // WebView2ControllerOptions object, which is passed as a parameter in // `CreateCoreWebView2ControllerWithOptions`. // Changes to the ScriptLocale property apply to renderer processes created after // the change. Any existing renderer processes will continue to use the previous // ScriptLocale value. To ensure changes are applied to all renderer process, // close and restart the CoreWebView2Environment and all associated WebView2 objects. // The default value for ScriptLocale will depend on the WebView2 language // and OS region. If the language portions of the WebView2 language and OS region // match, then it will use the OS region. Otherwise, it will use the WebView2 // language. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controlleroptions2#get_scriptlocale">See the ICoreWebView2ControllerOptions2 article.</a> ScriptLocale() string // property // SetScriptLocale Set ScriptLocale SetScriptLocale(AValue string) // property }
ICoreWebView2ControllerOptions Parent: IObject
This class is a ICoreWebView2ControllerOptions wrapper. ICoreWebView2ControllerOptions is used to manage profile options that created by 'CreateCoreWebView2ControllerOptions'. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controlleroptions">See the ICoreWebView2ControllerOptions article.</a>
func AsCoreWebView2ControllerOptions ¶
func AsCoreWebView2ControllerOptions(obj interface{}) ICoreWebView2ControllerOptions
AsCoreWebView2ControllerOptions Convert a pointer object to an existing class object
func NewCoreWebView2ControllerOptions ¶
func NewCoreWebView2ControllerOptions(aBaseIntf ICoreWebView2ControllerOptions) ICoreWebView2ControllerOptions
type ICoreWebView2Cookie ¶
type ICoreWebView2Cookie interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2Cookie // property // SetBaseIntf Set BaseIntf SetBaseIntf(AValue ICoreWebView2Cookie) // property // Name // Cookie name. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie#get_name">See the ICoreWebView2Cookie article.</a> Name() string // property // Value // Cookie value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie#get_value">See the ICoreWebView2Cookie article.</a> Value() string // property // SetValue Set Value SetValue(AValue string) // property // Domain // The domain for which the cookie is valid. // The default is the host that this cookie has been received from. // Note that, for instance, ".bing.com", "bing.com", and "www.bing.com" are // considered different domains. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie#get_domain">See the ICoreWebView2Cookie article.</a> Domain() string // property // Path // The path for which the cookie is valid. The default is "/", which means // this cookie will be sent to all pages on the Domain. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie#get_path">See the ICoreWebView2Cookie article.</a> Path() string // property // Expires // The expiration date and time for the cookie as the number of seconds since the UNIX epoch. // The default is -1.0, which means cookies are session cookies by default. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie#get_expires">See the ICoreWebView2Cookie article.</a> Expires() (resultDouble float64) // property // SetExpires Set Expires SetExpires(AValue float64) // property // ExpiresDate // The expiration date and time for the cookie in TDateTime format. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie#get_expires">See the ICoreWebView2Cookie article.</a> ExpiresDate() (resultDateTime float64) // property // SetExpiresDate Set ExpiresDate SetExpiresDate(AValue float64) // property // IsHttpOnly // Whether this cookie is http-only. // True if a page script or other active content cannot access this // cookie. The default is false. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie#get_ishttponly">See the ICoreWebView2Cookie article.</a> IsHttpOnly() bool // property // SetIsHttpOnly Set IsHttpOnly SetIsHttpOnly(AValue bool) // property // SameSite // SameSite status of the cookie which represents the enforcement mode of the cookie. // The default is COREWEBVIEW2_COOKIE_SAME_SITE_KIND_LAX. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie#get_samesite">See the ICoreWebView2Cookie article.</a> SameSite() TWVCookieSameSiteKind // property // SetSameSite Set SameSite SetSameSite(AValue TWVCookieSameSiteKind) // property // IsSecure // The security level of this cookie. True if the client is only to return // the cookie in subsequent requests if those requests use HTTPS. // The default is false. // Note that cookie that requests COREWEBVIEW2_COOKIE_SAME_SITE_KIND_NONE but // is not marked Secure will be rejected. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie#get_issecure">See the ICoreWebView2Cookie article.</a> IsSecure() bool // property // SetIsSecure Set IsSecure SetIsSecure(AValue bool) // property // IsSession // Whether this is a session cookie. The default is false. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie#get_issession">See the ICoreWebView2Cookie article.</a> IsSession() bool // property }
ICoreWebView2Cookie Parent: IObject
Provides a set of properties that are used to manage an ICoreWebView2Cookie. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie">See the ICoreWebView2Cookie article.</a>
func AsCoreWebView2Cookie ¶
func AsCoreWebView2Cookie(obj interface{}) ICoreWebView2Cookie
AsCoreWebView2Cookie Convert a pointer object to an existing class object
func NewCoreWebView2Cookie ¶
func NewCoreWebView2Cookie(aBaseIntf ICoreWebView2Cookie) ICoreWebView2Cookie
type ICoreWebView2CookieList ¶
type ICoreWebView2CookieList interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2CookieList // property // Count // The number of cookies contained in the ICoreWebView2CookieList. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookielist#get_count">See the ICoreWebView2CookieList article.</a> Count() uint32 // property // Items // Gets the cookie object at the given index. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookielist#getvalueatindex">See the ICoreWebView2CookieList article.</a> Items(idx uint32) ICoreWebView2Cookie // property }
ICoreWebView2CookieList Parent: IObject
A list of cookie objects. See ICoreWebView2Cookie. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookielist">See the ICoreWebView2CookieList article.</a>
func AsCoreWebView2CookieList ¶
func AsCoreWebView2CookieList(obj interface{}) ICoreWebView2CookieList
AsCoreWebView2CookieList Convert a pointer object to an existing class object
func NewCoreWebView2CookieList ¶
func NewCoreWebView2CookieList(aBaseIntf ICoreWebView2CookieList) ICoreWebView2CookieList
type ICoreWebView2CookieManager ¶
type ICoreWebView2CookieManager interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2CookieManager // property // CreateCookie // Create a cookie object with a specified name, value, domain, and path. // One can set other optional properties after cookie creation. // This only creates a cookie object and it is not added to the cookie // manager until you call AddOrUpdateCookie. // Leading or trailing whitespace(s), empty string, and special characters // are not allowed for name. // See ICoreWebView2Cookie for more details. CreateCookie(aName, aValue, aDomain, aPath string) ICoreWebView2Cookie // function // CopyCookie // Creates a cookie whose params matches those of the specified cookie. CopyCookie(aCookie ICoreWebView2Cookie) ICoreWebView2Cookie // function // GetCookies // Gets a list of cookies matching the specific URI. // If uri is empty string or null, all cookies under the same profile are // returned. // You can modify the cookie objects by calling // ICoreWebView2CookieManager::AddOrUpdateCookie, and the changes // will be applied to the webview. GetCookies(aURI string, aHandler ICoreWebView2GetCookiesCompletedHandler) bool // function // AddOrUpdateCookie // Adds or updates a cookie with the given cookie data; may overwrite // cookies with matching name, domain, and path if they exist. // This method will fail if the domain of the given cookie is not specified. AddOrUpdateCookie(aCookie ICoreWebView2Cookie) bool // function // DeleteCookie // Deletes a cookie whose name and domain/path pair // match those of the specified cookie. DeleteCookie(aCookie ICoreWebView2Cookie) bool // function // DeleteCookies // Deletes cookies with matching name and uri. // Cookie name is required. // All cookies with the given name where domain // and path match provided URI are deleted. DeleteCookies(aName, aURI string) bool // function // DeleteCookiesWithDomainAndPath // Deletes cookies with matching name and domain/path pair. // Cookie name is required. // If domain is specified, deletes only cookies with the exact domain. // If path is specified, deletes only cookies with the exact path. DeleteCookiesWithDomainAndPath(aName, aDomain, aPath string) bool // function // DeleteAllCookies // Deletes all cookies under the same profile. // This could affect other WebViews under the same user profile. DeleteAllCookies() bool // function }
ICoreWebView2CookieManager Parent: IObject
Creates, adds or updates, gets, or or view the cookies. The changes would apply to the context of the user profile. That is, other WebViews under the same user profile could be affected. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager">See the ICoreWebView2CookieManager article.</a>
func AsCoreWebView2CookieManager ¶
func AsCoreWebView2CookieManager(obj interface{}) ICoreWebView2CookieManager
AsCoreWebView2CookieManager Convert a pointer object to an existing class object
func NewCoreWebView2CookieManager ¶
func NewCoreWebView2CookieManager(aBaseIntf ICoreWebView2CookieManager) ICoreWebView2CookieManager
type ICoreWebView2CustomItemSelectedEventHandler ¶
type ICoreWebView2CustomItemSelectedEventHandler interface { IObject }
ICoreWebView2CustomItemSelectedEventHandler Parent: IObject
Raised to notify the host that the end user selected a custom ContextMenuItem. CustomItemSelected event is raised on the specific ContextMenuItem that the end user selected. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2customitemselectedeventhandler">See the ICoreWebView2CustomItemSelectedEventHandler article.</a>
func AsCoreWebView2CustomItemSelectedEventHandler ¶
func AsCoreWebView2CustomItemSelectedEventHandler(obj interface{}) ICoreWebView2CustomItemSelectedEventHandler
AsCoreWebView2CustomItemSelectedEventHandler Convert a pointer object to an existing class object
func NewCoreWebView2CustomItemSelectedEventHandler ¶
func NewCoreWebView2CustomItemSelectedEventHandler(aEvents IWVBrowserEvents) ICoreWebView2CustomItemSelectedEventHandler
type ICoreWebView2DOMContentLoadedEventArgs ¶
type ICoreWebView2DOMContentLoadedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2DOMContentLoadedEventArgs // property // The ID of the navigation which corresponds to other navigation ID properties on other navigation events. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2domcontentloadedeventargs#get_navigationid">See the ICoreWebView2DOMContentLoadedEventArgs article.</a> NavigationId() (resultUint64 uint64) // property }
ICoreWebView2DOMContentLoadedEventArgs Parent: IObject
Event args for the DOMContentLoaded event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2domcontentloadedeventargs">See the ICoreWebView2DOMContentLoadedEventArgs article.</a>
func AsCoreWebView2DOMContentLoadedEventArgs ¶
func AsCoreWebView2DOMContentLoadedEventArgs(obj interface{}) ICoreWebView2DOMContentLoadedEventArgs
AsCoreWebView2DOMContentLoadedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2DOMContentLoadedEventArgs ¶
func NewCoreWebView2DOMContentLoadedEventArgs(aArgs ICoreWebView2DOMContentLoadedEventArgs) ICoreWebView2DOMContentLoadedEventArgs
type ICoreWebView2Deferral ¶
type ICoreWebView2Deferral interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2Deferral // property // Complete // Completes the associated deferred event. Complete should only be run // once for each deferral taken. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2deferral#complete">See the ICoreWebView2Deferral article.</a> Complete() bool // function }
ICoreWebView2Deferral Parent: IObject
This interface is used to complete deferrals on event args that support getting deferrals using the GetDeferral method. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2deferral">See the ICoreWebView2Deferral article.</a>
func AsCoreWebView2Deferral ¶
func AsCoreWebView2Deferral(obj interface{}) ICoreWebView2Deferral
AsCoreWebView2Deferral Convert a pointer object to an existing class object
func NewCoreWebView2Deferral ¶
func NewCoreWebView2Deferral(aBaseIntf ICoreWebView2Deferral) ICoreWebView2Deferral
type ICoreWebView2DevToolsProtocolEventReceivedEventArgs ¶
type ICoreWebView2DevToolsProtocolEventReceivedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2DevToolsProtocolEventReceivedEventArgs // property // ParameterObjectAsJson // The parameter object of the corresponding `DevToolsProtocol` event // represented as a JSON string. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2devtoolsprotocoleventreceivedeventargs#get_parameterobjectasjson">See the ICoreWebView2DevToolsProtocolEventReceivedEventArgs article.</a> ParameterObjectAsJson() string // property // SessionId // The sessionId of the target where the event originates from. // Empty string is returned as sessionId if the event comes from the default // session for the top page. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2devtoolsprotocoleventreceivedeventargs2#get_sessionid">See the ICoreWebView2DevToolsProtocolEventReceivedEventArgs2 article.</a> SessionId() string // property }
ICoreWebView2DevToolsProtocolEventReceivedEventArgs Parent: IObject
Event args for the DevToolsProtocolEventReceived event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2devtoolsprotocoleventreceivedeventargs">See the ICoreWebView2DevToolsProtocolEventReceivedEventArgs article.</a>
func AsCoreWebView2DevToolsProtocolEventReceivedEventArgs ¶
func AsCoreWebView2DevToolsProtocolEventReceivedEventArgs(obj interface{}) ICoreWebView2DevToolsProtocolEventReceivedEventArgs
AsCoreWebView2DevToolsProtocolEventReceivedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2DevToolsProtocolEventReceivedEventArgs ¶
func NewCoreWebView2DevToolsProtocolEventReceivedEventArgs(aArgs ICoreWebView2DevToolsProtocolEventReceivedEventArgs) ICoreWebView2DevToolsProtocolEventReceivedEventArgs
type ICoreWebView2DownloadOperation ¶
type ICoreWebView2DownloadOperation interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2DownloadOperation // property // DownloadID // Custom ID used to identify this download operation. DownloadID() int32 // property // URI // The URI of the download. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#get_uri">See the ICoreWebView2DownloadOperation article.</a> URI() string // property // ContentDisposition // The Content-Disposition header value from the download's HTTP response. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#get_contentdisposition">See the ICoreWebView2DownloadOperation article.</a> ContentDisposition() string // property // MimeType // MIME type of the downloaded content. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#get_mimetype">See the ICoreWebView2DownloadOperation article.</a> MimeType() string // property // TotalBytesToReceive // The expected size of the download in total number of bytes based on the // HTTP Content-Length header. Returns -1 if the size is unknown. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#get_totalbytestoreceive">See the ICoreWebView2DownloadOperation article.</a> TotalBytesToReceive() (resultInt64 int64) // property // BytesReceived // The number of bytes that have been written to the download file. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#get_bytesreceived">See the ICoreWebView2DownloadOperation article.</a> BytesReceived() (resultInt64 int64) // property // EstimatedEndTime // The estimated end time in [ISO 8601 Date and Time Format](https://www.iso.org/iso-8601-date-and-time-format.html). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#get_estimatedendtime">See the ICoreWebView2DownloadOperation article.</a> EstimatedEndTime() (resultDateTime float64) // property // ResultFilePath // The absolute path to the download file, including file name. Host can change // this from `ICoreWebView2DownloadStartingEventArgs`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#get_resultfilepath">See the ICoreWebView2DownloadOperation article.</a> ResultFilePath() string // property // State // The state of the download. A download can be in progress, interrupted, or // completed. See `COREWEBVIEW2_DOWNLOAD_STATE` for descriptions of states. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#get_state">See the ICoreWebView2DownloadOperation article.</a> State() TWVDownloadState // property // InterruptReason // The reason why connection with file host was broken. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#get_interruptreason">See the ICoreWebView2DownloadOperation article.</a> InterruptReason() TWVDownloadInterruptReason // property // CanResume // Returns true if an interrupted download can be resumed. Downloads with // the following interrupt reasons may automatically resume without you // calling any methods: // `COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE`, // `COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_HASH_MISMATCH`, // `COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_SHORT`. // In these cases download progress may be restarted with `BytesReceived` // reset to 0. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#get_canresume">See the ICoreWebView2DownloadOperation article.</a> CanResume() bool // property // AddAllBrowserEvents // Adds all the events of this class to an existing TWVBrowserBase instance. // <param name="aBrowserComponent">The TWVBrowserBase instance.</param> AddAllBrowserEvents(aBrowserComponent IComponent) bool // function // Cancel // Cancels the download. If canceled, the default download dialog shows // that the download was canceled. Host should set the `Cancel` property from // `ICoreWebView2SDownloadStartingEventArgs` if the download should be // canceled without displaying the default download dialog. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#cancel">See the ICoreWebView2DownloadOperation article.</a> Cancel() bool // function // Pause // Pauses the download. If paused, the default download dialog shows that the // download is paused. No effect if download is already paused. Pausing a // download changes the state to `COREWEBVIEW2_DOWNLOAD_STATE_INTERRUPTED` // with `InterruptReason` set to `COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_PAUSED`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#pause">See the ICoreWebView2DownloadOperation article.</a> Pause() bool // function // Resume // Resumes a paused download. May also resume a download that was interrupted // for another reason, if `CanResume` returns true. Resuming a download changes // the state from `COREWEBVIEW2_DOWNLOAD_STATE_INTERRUPTED` to // `COREWEBVIEW2_DOWNLOAD_STATE_IN_PROGRESS`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#resume">See the ICoreWebView2DownloadOperation article.</a> Resume() bool // function }
ICoreWebView2DownloadOperation Parent: IObject
Represents a download operation. Gives access to the download's metadata and supports a user canceling, pausing, or resuming the download. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation">See the ICoreWebView2DownloadOperation article.</a>
func AsCoreWebView2DownloadOperation ¶
func AsCoreWebView2DownloadOperation(obj interface{}) ICoreWebView2DownloadOperation
AsCoreWebView2DownloadOperation Convert a pointer object to an existing class object
func NewCoreWebView2DownloadOperation ¶
func NewCoreWebView2DownloadOperation(aBaseIntf ICoreWebView2DownloadOperation, aDownloadID int32) ICoreWebView2DownloadOperation
type ICoreWebView2DownloadStartingEventArgs ¶
type ICoreWebView2DownloadStartingEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2DownloadStartingEventArgs // property // DownloadOperation // Returns the `ICoreWebView2DownloadOperation` for the download that // has started. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadstartingeventargs#get_downloadoperation">See the ICoreWebView2DownloadStartingEventArgs article.</a> DownloadOperation() ICoreWebView2DownloadOperation // property // Cancel // The host may set this flag to cancel the download. If canceled, the // download save dialog is not displayed regardless of the // `Handled` property. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadstartingeventargs#get_cancel">See the ICoreWebView2DownloadStartingEventArgs article.</a> Cancel() bool // property // SetCancel Set Cancel SetCancel(AValue bool) // property // ResultFilePath // The path to the file. If setting the path, the host should ensure that it // is an absolute path, including the file name, and that the path does not // point to an existing file. If the path points to an existing file, the // file will be overwritten. If the directory does not exist, it is created. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadstartingeventargs#get_resultfilepath">See the ICoreWebView2DownloadStartingEventArgs article.</a> ResultFilePath() string // property // SetResultFilePath Set ResultFilePath SetResultFilePath(AValue string) // property // Handled // The host may set this flag to `TRUE` to hide the default download dialog // for this download. The download will progress as normal if it is not // canceled, there will just be no default UI shown. By default the value is // `FALSE` and the default download dialog is shown. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadstartingeventargs#get_handled">See the ICoreWebView2DownloadStartingEventArgs article.</a> Handled() bool // property // SetHandled Set Handled SetHandled(AValue bool) // property // Deferral // Returns an `ICoreWebView2Deferral` object. Use this operation to // complete the event at a later time. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadstartingeventargs#getdeferral">See the ICoreWebView2DownloadStartingEventArgs article.</a> Deferral() ICoreWebView2Deferral // property }
ICoreWebView2DownloadStartingEventArgs Parent: IObject
Event args for the DownloadStarting event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadstartingeventargs">See the ICoreWebView2DownloadStartingEventArgs article.</a>
func AsCoreWebView2DownloadStartingEventArgs ¶
func AsCoreWebView2DownloadStartingEventArgs(obj interface{}) ICoreWebView2DownloadStartingEventArgs
AsCoreWebView2DownloadStartingEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2DownloadStartingEventArgs ¶
func NewCoreWebView2DownloadStartingEventArgs(aArgs ICoreWebView2DownloadStartingEventArgs) ICoreWebView2DownloadStartingEventArgs
type ICoreWebView2Environment ¶
type ICoreWebView2Environment interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2Environment // property // BrowserVersionInfo // The browser version info of the current `ICoreWebView2Environment`, // including channel name if it is not the WebView2 Runtime. It matches the // format of the `GetAvailableCoreWebView2BrowserVersionString` API. // Channel names are `beta`, `dev`, and `canary`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment#get_browserversionstring">See the ICoreWebView2Environment article.</a> BrowserVersionInfo() string // property // SupportsCompositionController // Returns true if the current WebView2 runtime version supports Composition Controllers. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment3">See the ICoreWebView2Environment3 article.</a> SupportsCompositionController() bool // property // SupportsControllerOptions // Returns true if the current WebView2 runtime version supports Controller Options. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment10">See the ICoreWebView2Environment10 article.</a> SupportsControllerOptions() bool // property // UserDataFolder // Returns the user data folder that all CoreWebView2's created from this // environment are using. // This could be either the value passed in by the developer when creating // the environment object or the calculated one for default handling. It // will always be an absolute path. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment7#get_userdatafolder">See the ICoreWebView2Environment7 article.</a> UserDataFolder() string // property // ProcessInfos // Returns the `ICoreWebView2ProcessInfoCollection`. Provide a list of all // process using same user data folder except for crashpad process. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment8#getprocessinfos">See the ICoreWebView2Environment8 article.</a> ProcessInfos() ICoreWebView2ProcessInfoCollection // property // FailureReportFolderPath // `FailureReportFolderPath` returns the path of the folder where minidump files are written. // Whenever a WebView2 process crashes, a crash dump file will be created in the crash dump folder. // The crash dump format is minidump files. Please see // [Minidump Files documentation](/windows/win32/debug/minidump-files) for detailed information. // Normally when a single child process fails, a minidump will be generated and written to disk, // then the `ProcessFailed` event is raised. But for unexpected crashes, a minidump file might not be generated // at all, despite whether `ProcessFailed` event is raised. If there are multiple // process failures at once, multiple minidump files could be generated. Thus `FailureReportFolderPath` // could contain old minidump files that are not associated with a specific `ProcessFailed` event. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment11#get_failurereportfolderpath">See the ICoreWebView2Environment11 article.</a> FailureReportFolderPath() string // property // AddAllLoaderEvents // Adds all the events of this class to an existing TWVLoader instance. // <param name="aLoaderComponent">The TWVLoader instance.</param> AddAllLoaderEvents(aLoaderComponent IComponent) bool // function // AddAllBrowserEvents // Adds all the events of this class to an existing TWVBrowserBase instance. // <param name="aBrowserComponent">The TWVBrowserBase instance.</param> AddAllBrowserEvents(aBrowserComponent IComponent) bool // function // CreateCoreWebView2Controller // Asynchronously create a new WebView. // <param name="aParentWindow">Handle of the control in which the WebView should be displayed.</param> // <param name="aBrowserEvents">The TWVBrowserBase instance that will receive all the events.</param> // <param name="aResult">Result code.</param> // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment#createcorewebview2controller">See the ICoreWebView2Environment article.</a> CreateCoreWebView2Controller(aParentWindow THandle, aBrowserEvents IWVBrowserEvents, aResult *int32) bool // function // CreateWebResourceResponse // Create a new web resource response object. // <param name="aContent">HTTP response content as stream.</param> // <param name="aStatusCode">The HTTP response status code.</param> // <param name="aReasonPhrase">The HTTP response reason phrase.</param> // <param name="aHeaders">Overridden HTTP response headers.</param> // <param name="aResponse">The new ICoreWebView2WebResourceResponse instance.</param> // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment#createcorewebview2controller">See the ICoreWebView2Environment article.</a> CreateWebResourceResponse(aContent IStream, aStatusCode int32, aReasonPhrase, aHeaders string, aResponse *ICoreWebView2WebResourceResponse) bool // function // CreateWebResourceRequest // Create a new web resource request object. // URI parameter must be absolute URI. // The headers string is the raw request header string delimited by CRLF // (optional in last header). // It's also possible to create this object with null headers string // and then use the ICoreWebView2HttpRequestHeaders to construct the headers // line by line. // <param name="aURI">The request URI.</param> // <param name="aMethod">The HTTP request method.</param> // <param name="aPostData">The HTTP request message body as stream.</param> // <param name="aHeaders">The mutable HTTP request headers.</param> // <param name="aRequest">The new ICoreWebView2WebResourceRequest instance.</param> // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment2#createwebresourcerequest">See the ICoreWebView2Environment2 article.</a> CreateWebResourceRequest(aURI, aMethod string, aPostData IStream, aHeaders string, aRequest *ICoreWebView2WebResourceRequestRef) bool // function // CreateCoreWebView2CompositionController // Asynchronously create a new WebView for use with visual hosting. // <param name="aParentWindow">Handle of the control in which the app will connect the visual tree of the WebView.</param> // <param name="aBrowserEvents">The TWVBrowserBase instance that will receive all the events.</param> // <param name="aResult">Result code.</param> // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment3#createcorewebview2compositioncontroller">See the ICoreWebView2Environment3 article.</a> CreateCoreWebView2CompositionController(aParentWindow THandle, aBrowserEvents IWVBrowserEvents, aResult *int32) bool // function // CreateCoreWebView2PointerInfo // Create an empty ICoreWebView2PointerInfo. The returned // ICoreWebView2PointerInfo needs to be populated with all of the relevant // info before calling SendPointerInput. // <param name="aPointerInfo">The new ICoreWebView2PointerInfo instance.</param> // <param name="aResult">Result code.</param> // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment3#createcorewebview2pointerinfo">See the ICoreWebView2Environment3 article.</a> CreateCoreWebView2PointerInfo(aPointerInfo *ICoreWebView2PointerInfo) bool // function // GetAutomationProviderForWindow // Returns the Automation Provider for the WebView that matches the provided // window. Host apps are expected to implement // IRawElementProviderHwndOverride. When GetOverrideProviderForHwnd is // called, the app can pass the HWND to GetAutomationProviderForWindow to // find the matching WebView Automation Provider. // <param name="aHandle">Handle used to find the matching WebView Automation Provider.</param> // <param name="aProvider">The Automation Provider for the WebView that matches the provided window.</param> // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment4#getautomationproviderforwindow">See the ICoreWebView2Environment4 article.</a> GetAutomationProviderForWindow(aHandle THandle, aProvider *IUnknown) bool // function // CreatePrintSettings // Creates the `ICoreWebView2PrintSettings` used by the `PrintToPdf` method. // <param name="aPrintSettings">The new ICoreWebView2PrintSettings instance.</param> // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment6#createprintsettings">See the ICoreWebView2Environment6 article.</a> CreatePrintSettings(aPrintSettings *ICoreWebView2PrintSettings) bool // function // CreateContextMenuItem // Create a custom `ContextMenuItem` object to insert into the WebView context menu. // CoreWebView2 will rewind the icon stream before decoding. // There is a limit of 1000 active custom context menu items at a given time. // Attempting to create more before deleting existing ones will fail with // ERROR_NOT_ENOUGH_QUOTA. // It is recommended to reuse ContextMenuItems across ContextMenuRequested events // for performance. // The returned ContextMenuItem object's `IsEnabled` property will default to `TRUE` // and `IsChecked` property will default to `FALSE`. A `CommandId` will be assigned // to the ContextMenuItem object that's unique across active custom context menu items, // but command ID values of deleted ContextMenuItems can be reassigned. // <param name="aLabel">Context menu item label.</param> // <param name="aIconStream">Context menu item icon as stream.</param> // <param name="aKind">Context menu item kind.</param> // <param name="aMenuItem">The new ICoreWebView2ContextMenuItem instance.</param> // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment9#createcontextmenuitem">See the ICoreWebView2Environment9 article.</a> CreateContextMenuItem(aLabel string, aIconStream IStream, aKind TWVMenuItemKind, aMenuItem *ICoreWebView2ContextMenuItem) bool // function // CreateCoreWebView2ControllerOptions // Create a new ICoreWebView2ControllerOptions to be passed as a parameter of // CreateCoreWebView2ControllerWithOptions and CreateCoreWebView2CompositionControllerWithOptions. // The 'options' is settable and in it the default value for profile name is the empty string, // and the default value for IsInPrivateModeEnabled is false. // Also the profile name can be reused. // <param name="aOptions">The new ICoreWebView2ControllerOptions instance.</param> // <param name="aResult">Result code.</param> // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment10#createcorewebview2controlleroptions">See the ICoreWebView2Environment10 article.</a> CreateCoreWebView2ControllerOptions(aOptions *ICoreWebView2ControllerOptions, aResult *int32) bool // function // CreateCoreWebView2ControllerWithOptions // Create a new WebView with options. // <param name="aParentWindow">Handle of the control in which the WebView should be displayed.</param> // <param name="aOptions">The ICoreWebView2ControllerOptions instance created with CreateCoreWebView2ControllerOptions.</param> // <param name="aBrowserEvents">The TWVBrowserBase instance that will receive all the events.</param> // <param name="aResult">Result code.</param> // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment10#createcorewebview2controllerwithoptions">See the ICoreWebView2Environment10 article.</a> CreateCoreWebView2ControllerWithOptions(aParentWindow HWND, aOptions ICoreWebView2ControllerOptions, aBrowserEvents IWVBrowserEvents, aResult *int32) bool // function // CreateCoreWebView2CompositionControllerWithOptions // Create a new WebView in visual hosting mode with options. // <param name="aParentWindow">Handle of the control in which the app will connect the visual tree of the WebView.</param> // <param name="aOptions">The ICoreWebView2ControllerOptions instance created with CreateCoreWebView2ControllerOptions.</param> // <param name="aBrowserEvents">The TWVBrowserBase instance that will receive all the events.</param> // <param name="aResult">Result code.</param> // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment10#createcorewebview2compositioncontrollerwithoptions">See the ICoreWebView2Environment10 article.</a> CreateCoreWebView2CompositionControllerWithOptions(aParentWindow HWND, aOptions ICoreWebView2ControllerOptions, aBrowserEvents IWVBrowserEvents, aResult *int32) bool // function // Create a shared memory based buffer with the specified size in bytes. // The buffer can be shared with web contents in WebView by calling // `PostSharedBufferToScript` on `CoreWebView2` or `CoreWebView2Frame` object. // Once shared, the same content of the buffer will be accessible from both // the app process and script in WebView. Modification to the content will be visible // to all parties that have access to the buffer. // The shared buffer is presented to the script as ArrayBuffer. All JavaScript APIs // that work for ArrayBuffer including Atomics APIs can be used on it. // There is currently a limitation that only size less than 2GB is supported. // <param name="aSize">Buffer size in bytes.</param> // <param name="aSharedBuffer">The new ICoreWebView2SharedBuffer instance.</param> // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment12#createsharedbuffer">See the ICoreWebView2Environment12 article.</a> CreateSharedBuffer(aSize int64, aSharedBuffer *ICoreWebView2SharedBuffer) bool // function // GetProcessExtendedInfos // Gets a snapshot collection of `ProcessExtendedInfo`s corresponding to all // currently running processes associated with this `ICoreWebView2Environment` // excludes crashpad process. // This provides the same list of `ProcessInfo`s as what's provided in // `GetProcessInfos`, but additionally provides a list of associated `FrameInfo`s // which are actively running(showing or hiding UI elements) in the renderer // process. See `AssociatedFrameInfos` for more information. // <param name="aBrowserEvents">The TWVBrowserBase instance that will receive all the events.</param> // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment13#getprocessextendedinfos">See the ICoreWebView2Environment13 article.</a> GetProcessExtendedInfos(aBrowserEvents IWVBrowserEvents) bool // function }
ICoreWebView2Environment Parent: IObject
Represents the WebView2 Environment. WebViews created from an environment run on the browser process specified with environment parameters and objects created from an environment should be used in the same environment. Using it in different environments are not guaranteed to be compatible and may fail. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment">See the ICoreWebView2Environment article.</a>
func AsCoreWebView2Environment ¶
func AsCoreWebView2Environment(obj interface{}) ICoreWebView2Environment
AsCoreWebView2Environment Convert a pointer object to an existing class object
func NewCoreWebView2Environment ¶
func NewCoreWebView2Environment(aBaseIntf ICoreWebView2Environment) ICoreWebView2Environment
type ICoreWebView2ExecuteScriptResult ¶
type ICoreWebView2ExecuteScriptResult interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ExecuteScriptResult // property // Succeeded // This property is true if ExecuteScriptWithResult successfully executed script with // no unhandled exceptions and the result is available in the ResultAsJson property // or via the TryGetResultAsString method. // If it is false then the script execution had an unhandled exception which you // can get via the Exception property. Succeeded() bool // property // ResultAsJson // A function that has no explicit return value returns undefined. If the // script that was run throws an unhandled exception, then the result is // also "null". This method is applied asynchronously. If the method is // run before `ContentLoading`, the script will not be executed // and the string "null" will be returned. // The return value description is as follows // 1. S_OK: Execution succeeds. // 2. E_POINTER: When the `jsonResult` is nullptr. ResultAsJson() string // property // Exception // If Succeeded is false, you can use this property to get the unhandled exception thrown by script execution // Note that due to the compatibility of the WinRT/.NET interface, // S_OK will be returned even if the acquisition fails. // We can determine whether the acquisition is successful by judging whether the `exception` is nullptr. Exception() ICoreWebView2ScriptException // property // TryGetResultAsString // If Succeeded is true and the result of script execution is a string, this method provides the value of the string result, // and we will get the `FALSE` var value when the js result is not string type. // The return value description is as follows // 1. S_OK: Execution succeeds. // 2. E_POINTER: When the `stringResult` or `value` is nullptr. // NOTE: If the `value` returns `FALSE`, the `stringResult` will be set to a empty string. TryGetResultAsString(stringResult *string, value *bool) bool // function }
ICoreWebView2ExecuteScriptResult Parent: IObject
This is the result for ExecuteScriptWithResult. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2executescriptresult">See the ICoreWebView2ExecuteScriptResult article.</a>
func AsCoreWebView2ExecuteScriptResult ¶
func AsCoreWebView2ExecuteScriptResult(obj interface{}) ICoreWebView2ExecuteScriptResult
AsCoreWebView2ExecuteScriptResult Convert a pointer object to an existing class object
func NewCoreWebView2ExecuteScriptResult ¶
func NewCoreWebView2ExecuteScriptResult(aBaseIntf ICoreWebView2ExecuteScriptResult) ICoreWebView2ExecuteScriptResult
type ICoreWebView2Frame ¶
type ICoreWebView2Frame interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2Frame // property // FrameID // The unique identifier of the current frame. It's the same kind of ID as // with the `FrameId` in `ICoreWebView2` and via `CoreWebView2FrameInfo`. FrameID() uint32 // property // Name // The name of the iframe from the iframe html tag declaring it. // You can access this property even if the iframe is destroyed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame#get_name">See the ICoreWebView2Frame article.</a> Name() string // property // IsDestroyed // Check whether a frame is destroyed. Returns true during // the Destroyed event. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame#isdestroyed">See the ICoreWebView2Frame article.</a> IsDestroyed() bool // property // AddAllBrowserEvents // Adds all the events of this class to an existing TWVBrowserBase instance. // <param name="aBrowserComponent">The TWVBrowserBase instance.</param> AddAllBrowserEvents(aBrowserComponent IComponent) bool // function // RemoveHostObjectFromScript // Remove the host object specified by the name so that it is no longer // accessible from JavaScript code in the iframe. While new access // attempts are denied, if the object is already obtained by JavaScript code // in the iframe, the JavaScript code continues to have access to that // object. Calling this method for a name that is already removed or was // never added fails. If the iframe is destroyed this method will return fail // also. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame#removehostobjectfromscript">See the ICoreWebView2Frame article.</a> RemoveHostObjectFromScript(aName string) bool // function // ExecuteScript // Run JavaScript code from the javascript parameter in the current frame. // The result of evaluating the provided JavaScript is passed to the completion handler. // The result value is a JSON encoded string. If the result is undefined, // contains a reference cycle, or otherwise is not able to be encoded into // JSON, then the result is considered to be null, which is encoded // in JSON as the string "null". // NOTE: A function that has no explicit return value returns undefined. If the // script that was run throws an unhandled exception, then the result is // also "null". This method is applied asynchronously. If the method is // run before `ContentLoading`, the script will not be executed // and the string "null" will be returned. // This operation executes the script even if `ICoreWebView2Settings::IsScriptEnabled` is // set to `FALSE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame2#executescript">See the ICoreWebView2Frame2 article.</a> ExecuteScript(JavaScript string, aExecutionID int32, aBrowserComponent IComponent) bool // function // PostWebMessageAsJson // Posts the specified webMessage to the frame. // The frame receives the message by subscribing to the `message` event of // the `window.chrome.webview` of the frame document. // // <code> // “`cpp // window.chrome.webview.addEventListener('message', handler) // window.chrome.webview.removeEventListener('message', handler) // “`</code> // // The event args is an instances of `MessageEvent`. The // `ICoreWebView2Settings::IsWebMessageEnabled` setting must be `TRUE` or // the message will not be sent. The `data` property of the event // args is the `webMessage` string parameter parsed as a JSON string into a // JavaScript object. The `source` property of the event args is a reference // to the `window.chrome.webview` object. For information about sending // messages from the HTML document in the WebView to the host, navigate to // [add_WebMessageReceived](/microsoft-edge/webview2/reference/win32/icorewebview2#add_webmessagereceived). // The message is delivered asynchronously. If a navigation occurs before the // message is posted to the page, the message is discarded. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame2#postwebmessageasjson">See the ICoreWebView2Frame2 article.</a> PostWebMessageAsJson(aWebMessageAsJson string) bool // function // PostWebMessageAsString // Posts a message that is a simple string rather than a JSON string // representation of a JavaScript object. This behaves in exactly the same // manner as `PostWebMessageAsJson`, but the `data` property of the event // args of the `window.chrome.webview` message is a string with the same // value as `webMessageAsString`. Use this instead of // `PostWebMessageAsJson` if you want to communicate using simple strings // rather than JSON objects. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame2#postwebmessageasstring">See the ICoreWebView2Frame2 article.</a> PostWebMessageAsString(aWebMessageAsString string) bool // function // Share a shared buffer object with script of the iframe in the WebView. // The script will receive a `sharedbufferreceived` event from chrome.webview. // The event arg for that event will have the following methods and properties: // `getBuffer()`: return an ArrayBuffer object with the backing content from the shared buffer. // `additionalData`: an object as the result of parsing `additionalDataAsJson` as JSON string. // This property will be `undefined` if `additionalDataAsJson` is nullptr or empty string. // `source`: with a value set as `chrome.webview` object. // If a string is provided as `additionalDataAsJson` but it is not a valid JSON string, // the API will fail with `E_INVALIDARG`. // If `access` is COREWEBVIEW2_SHARED_BUFFER_ACCESS_READ_ONLY, the script will only have read access to the buffer. // If the script tries to modify the content in a read only buffer, it will cause an access // violation in WebView renderer process and crash the renderer process. // If the shared buffer is already closed, the API will fail with `RO_E_CLOSED`. // The script code should call `chrome.webview.releaseBuffer` with // the shared buffer as the parameter to release underlying resources as soon // as it does not need access to the shared buffer any more. // The application can post the same shared buffer object to multiple web pages or iframes, or // post to the same web page or iframe multiple times. Each `PostSharedBufferToScript` will // create a separate ArrayBuffer object with its own view of the memory and is separately // released. The underlying shared memory will be released when all the views are released. // For example, if we want to send data to script for one time read only consumption. // Sharing a buffer to script has security risk. You should only share buffer with trusted site. // If a buffer is shared to a untrusted site, possible sensitive information could be leaked. // If a buffer is shared as modifiable by the script and the script modifies it in an unexpected way, // it could result in corrupted data that might even crash the application. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame4#postsharedbuffertoscript">See the ICoreWebView2Frame4 article.</a> PostSharedBufferToScript(aSharedBuffer ICoreWebView2SharedBuffer, aAccess TWVSharedBufferAccess, aAdditionalDataAsJson string) bool // function }
ICoreWebView2Frame Parent: IObject
ICoreWebView2Frame provides direct access to the iframes information. You can get an ICoreWebView2Frame by handling the ICoreWebView2_4.add_FrameCreated event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame">See the ICoreWebView2Frame article.</a>
func AsCoreWebView2Frame ¶
func AsCoreWebView2Frame(obj interface{}) ICoreWebView2Frame
AsCoreWebView2Frame Convert a pointer object to an existing class object
func NewCoreWebView2Frame ¶
func NewCoreWebView2Frame(aBaseIntf ICoreWebView2Frame) ICoreWebView2Frame
type ICoreWebView2FrameCreatedEventArgs ¶
type ICoreWebView2FrameCreatedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2FrameCreatedEventArgs // property // Frame // The frame which was created. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2framecreatedeventargs#get_frame">See the ICoreWebView2FrameCreatedEventArgs article.</a> Frame() ICoreWebView2Frame // property }
ICoreWebView2FrameCreatedEventArgs Parent: IObject
Event args for the FrameCreated events. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2framecreatedeventargs">See the ICoreWebView2FrameCreatedEventArgs article.</a>
func AsCoreWebView2FrameCreatedEventArgs ¶
func AsCoreWebView2FrameCreatedEventArgs(obj interface{}) ICoreWebView2FrameCreatedEventArgs
AsCoreWebView2FrameCreatedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2FrameCreatedEventArgs ¶
func NewCoreWebView2FrameCreatedEventArgs(aArgs ICoreWebView2FrameCreatedEventArgs) ICoreWebView2FrameCreatedEventArgs
type ICoreWebView2FrameInfo ¶
type ICoreWebView2FrameInfo interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2FrameInfo // property // SetBaseIntf Set BaseIntf SetBaseIntf(AValue ICoreWebView2FrameInfo) // property // Name // The name attribute of the frame, as in `<iframe name="frame-name" ...>`. // The returned string is empty when the frame has no name attribute. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfo#get_name">See the ICoreWebView2FrameInfo article.</a> Name() string // property // Source // The URI of the document in the frame. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfo#get_source">See the ICoreWebView2FrameInfo article.</a> Source() string // property // ParentFrameInfo // This parent frame's `FrameInfo`. `ParentFrameInfo` will only be // populated when obtained via calling // `ICoreWebView2ProcessExtendedInfo.AssociatedFrameInfos`. // `ICoreWebView2FrameInfo` objects obtained via `ICoreWebView2.ProcessFailed` will // always have a `null` `ParentFrameInfo`. This property is also `null` for the // main frame in the WebView2 which has no parent frame. // Note that this `ParentFrameInfo` could be out of date as it's a snapshot. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfo2#get_parentframeinfo">See the ICoreWebView2FrameInfo2 article.</a> ParentFrameInfo() ICoreWebView2FrameInfo // property // FrameId // The unique identifier of the frame associated with the current `FrameInfo`. // It's the same kind of ID as with the `FrameId` in `ICoreWebView2` and via // `ICoreWebView2Frame`. `FrameId` will only be populated(non-zero) when obtained // calling `CoreWebView2ProcessExtendedInfo.AssociatedFrameInfos`. // `ICoreWebView2FrameInfo` objects obtained via `ICoreWebView2.ProcessFailed` will // always have an invalid frame Id 0. // Note that this `FrameId` could be out of date as it's a snapshot. // If there's WebView2 created or destroyed or `FrameCreated/FrameDestroyed` events // after the asynchronous call `CoreWebView2Environment.GetProcessExtendedInfos` // starts, you may want to call asynchronous method again to get the updated `FrameInfo`s. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfo2#get_frameid">See the ICoreWebView2FrameInfo2 article.</a> FrameId() uint32 // property // FrameKind // The frame kind of the frame. `FrameKind` will only be populated when // obtained calling `ICoreWebView2ProcessExtendedInfo.AssociatedFrameInfos`. // `ICoreWebView2FrameInfo` objects obtained via `ICoreWebView2.ProcessFailed` // will always have the default value `COREWEBVIEW2_FRAME_KIND_UNKNOWN`. // Note that this `FrameKind` could be out of date as it's a snapshot. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfo2#get_framekind">See the ICoreWebView2FrameInfo2 article.</a> FrameKind() TWVFrameKind // property // FrameKindStr // The frame kind of the frame in string format. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfo2#get_framekind">See the ICoreWebView2FrameInfo2 article.</a> FrameKindStr() string // property }
ICoreWebView2FrameInfo Parent: IObject
Provides a set of properties for a frame in the ICoreWebView2. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfo">See the ICoreWebView2FrameInfo article.</a>
func AsCoreWebView2FrameInfo ¶
func AsCoreWebView2FrameInfo(obj interface{}) ICoreWebView2FrameInfo
AsCoreWebView2FrameInfo Convert a pointer object to an existing class object
func NewCoreWebView2FrameInfo ¶
func NewCoreWebView2FrameInfo(aBaseIntf ICoreWebView2FrameInfo) ICoreWebView2FrameInfo
type ICoreWebView2FrameInfoCollection ¶
type ICoreWebView2FrameInfoCollection interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2FrameInfoCollection // property // Iterator // Gets an iterator over the collection of `FrameInfo`s. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfocollection#getiterator">See the ICoreWebView2FrameInfoCollection article.</a> Iterator() ICoreWebView2FrameInfoCollectionIterator // property }
ICoreWebView2FrameInfoCollection Parent: IObject
Collection of FrameInfos (name and source). Used to list the affected frames' info when a frame-only render process failure occurs in the ICoreWebView2. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfocollection">See the ICoreWebView2FrameInfoCollection article.</a>
func AsCoreWebView2FrameInfoCollection ¶
func AsCoreWebView2FrameInfoCollection(obj interface{}) ICoreWebView2FrameInfoCollection
AsCoreWebView2FrameInfoCollection Convert a pointer object to an existing class object
func NewCoreWebView2FrameInfoCollection ¶
func NewCoreWebView2FrameInfoCollection(aBaseIntf ICoreWebView2FrameInfoCollection) ICoreWebView2FrameInfoCollection
type ICoreWebView2FrameInfoCollectionIterator ¶
type ICoreWebView2FrameInfoCollectionIterator interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2FrameInfoCollectionIterator // property // HasCurrent // `TRUE` when the iterator has not run out of `FrameInfo`s. If the // collection over which the iterator is iterating is empty or if the // iterator has gone past the end of the collection, then this is `FALSE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfocollectioniterator#get_hascurrent">See the ICoreWebView2FrameInfoCollectionIterator article.</a> HasCurrent() bool // property // Current // Get the current `ICoreWebView2FrameInfo` of the iterator. // Returns `HRESULT_FROM_WIN32(ERROR_INVALID_INDEX)` if HasCurrent is // `FALSE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfocollectioniterator#getcurrent">See the ICoreWebView2FrameInfoCollectionIterator article.</a> Current() ICoreWebView2FrameInfo // property // MoveNext // Move the iterator to the next `FrameInfo` in the collection. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfocollectioniterator#movenext">See the ICoreWebView2FrameInfoCollectionIterator article.</a> MoveNext() bool // function }
ICoreWebView2FrameInfoCollectionIterator Parent: IObject
Iterator for a collection of FrameInfos. For more info, see ICoreWebView2ProcessFailedEventArgs2 and ICoreWebView2FrameInfoCollection. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfocollectioniterator">See the ICoreWebView2FrameInfoCollectionIterator article.</a>
func AsCoreWebView2FrameInfoCollectionIterator ¶
func AsCoreWebView2FrameInfoCollectionIterator(obj interface{}) ICoreWebView2FrameInfoCollectionIterator
AsCoreWebView2FrameInfoCollectionIterator Convert a pointer object to an existing class object
func NewCoreWebView2FrameInfoCollectionIterator ¶
func NewCoreWebView2FrameInfoCollectionIterator(aBaseIntf ICoreWebView2FrameInfoCollectionIterator) ICoreWebView2FrameInfoCollectionIterator
type ICoreWebView2GetCookiesCompletedHandler ¶
type ICoreWebView2GetCookiesCompletedHandler interface { IObject }
ICoreWebView2GetCookiesCompletedHandler Parent: IObject
Receives the result of the GetCookies method. The result is written to the cookie list provided in the GetCookies method call. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2getcookiescompletedhandler">See the ICoreWebView2GetCookiesCompletedHandler article.</a>
func AsCoreWebView2GetCookiesCompletedHandler ¶
func AsCoreWebView2GetCookiesCompletedHandler(obj interface{}) ICoreWebView2GetCookiesCompletedHandler
AsCoreWebView2GetCookiesCompletedHandler Convert a pointer object to an existing class object
func NewCoreWebView2GetCookiesCompletedHandler ¶
func NewCoreWebView2GetCookiesCompletedHandler(aEvents IWVBrowserEvents) ICoreWebView2GetCookiesCompletedHandler
type ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler ¶
type ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler interface { IObject }
ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler Parent: IObject
The caller implements this interface to handle the result of GetNonDefaultPermissionSettings. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2getnondefaultpermissionsettingscompletedhandler">See the ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler article.</a>
func AsCoreWebView2GetNonDefaultPermissionSettingsCompletedHandler ¶
func AsCoreWebView2GetNonDefaultPermissionSettingsCompletedHandler(obj interface{}) ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler
AsCoreWebView2GetNonDefaultPermissionSettingsCompletedHandler Convert a pointer object to an existing class object
func NewCoreWebView2GetNonDefaultPermissionSettingsCompletedHandler ¶
func NewCoreWebView2GetNonDefaultPermissionSettingsCompletedHandler(aEvents IWVBrowserEvents) ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler
type ICoreWebView2HttpHeadersCollectionIterator ¶
type ICoreWebView2HttpHeadersCollectionIterator interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2HttpHeadersCollectionIterator // property // HasCurrentHeader // `TRUE` when the iterator has not run out of headers. If the collection // over which the iterator is iterating is empty or if the iterator has gone // past the end of the collection then this is `FALSE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httpheaderscollectioniterator#get_hascurrentheader">See the ICoreWebView2HttpHeadersCollectionIterator article.</a> HasCurrentHeader() bool // property // GetCurrentHeader // Get the name and value of the current HTTP header of the iterator. If // the previous `MoveNext` operation set the `hasNext` parameter to `FALSE`, // this method fails. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httpheaderscollectioniterator#getcurrentheader">See the ICoreWebView2HttpHeadersCollectionIterator article.</a> GetCurrentHeader(aName, aValue *string) bool // function // MoveNext // Move the iterator to the next HTTP header in the collection. // [!NOTE]\n \> If no more HTTP headers exist, the `hasNext` parameter is set to // `FALSE`. After this occurs the `GetCurrentHeader` method fails. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httpheaderscollectioniterator#movenext">See the ICoreWebView2HttpHeadersCollectionIterator article.</a> MoveNext() bool // function }
ICoreWebView2HttpHeadersCollectionIterator Parent: IObject
Iterator for a collection of HTTP headers. For more information, navigate to ICoreWebView2HttpRequestHeaders and ICoreWebView2HttpResponseHeaders. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httpheaderscollectioniterator">See the ICoreWebView2HttpHeadersCollectionIterator article.</a>
func AsCoreWebView2HttpHeadersCollectionIterator ¶
func AsCoreWebView2HttpHeadersCollectionIterator(obj interface{}) ICoreWebView2HttpHeadersCollectionIterator
AsCoreWebView2HttpHeadersCollectionIterator Convert a pointer object to an existing class object
func NewCoreWebView2HttpHeadersCollectionIterator ¶
func NewCoreWebView2HttpHeadersCollectionIterator(aBaseIntf ICoreWebView2HttpHeadersCollectionIterator) ICoreWebView2HttpHeadersCollectionIterator
type ICoreWebView2HttpRequestHeaders ¶
type ICoreWebView2HttpRequestHeaders interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2HttpRequestHeaders // property // Iterator // Gets an iterator over the collection of request headers. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httprequestheaders#getiterator">See the ICoreWebView2HttpRequestHeaders article.</a> Iterator() ICoreWebView2HttpHeadersCollectionIterator // property // SetHeader // Adds or updates header that matches the name. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httprequestheaders#setheader">See the ICoreWebView2HttpRequestHeaders article.</a> SetHeader(aName, aValue string) bool // function // GetHeader // Gets the header value matching the name. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httprequestheaders#getheader">See the ICoreWebView2HttpRequestHeaders article.</a> GetHeader(aName string) string // function // GetHeaders // Gets the header value matching the name using an iterator. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httprequestheaders#getheaders">See the ICoreWebView2HttpRequestHeaders article.</a> GetHeaders(aName string, aIterator *ICoreWebView2HttpHeadersCollectionIterator) bool // function // Contains // Verifies that the headers contain an entry that matches the header name. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httprequestheaders#contains">See the ICoreWebView2HttpRequestHeaders article.</a> Contains(aName string) bool // function // RemoveHeader // Removes header that matches the name. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httprequestheaders#removeheader">See the ICoreWebView2HttpRequestHeaders article.</a> RemoveHeader(aName string) bool // function }
ICoreWebView2HttpRequestHeaders Parent: IObject
HTTP request headers. Used to inspect the HTTP request on WebResourceRequested event and NavigationStarting event. It is possible to modify the HTTP request from a WebResourceRequested event, but not from a NavigationStarting event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httprequestheaders">See the ICoreWebView2HttpRequestHeaders article.</a>
func AsCoreWebView2HttpRequestHeaders ¶
func AsCoreWebView2HttpRequestHeaders(obj interface{}) ICoreWebView2HttpRequestHeaders
AsCoreWebView2HttpRequestHeaders Convert a pointer object to an existing class object
func NewCoreWebView2HttpRequestHeaders ¶
func NewCoreWebView2HttpRequestHeaders(aBaseIntf ICoreWebView2HttpRequestHeaders) ICoreWebView2HttpRequestHeaders
type ICoreWebView2HttpResponseHeaders ¶
type ICoreWebView2HttpResponseHeaders interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2HttpResponseHeaders // property // Iterator // Gets an iterator over the collection of entire response headers. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httpresponseheaders#getiterator">See the ICoreWebView2HttpResponseHeaders article.</a> Iterator() ICoreWebView2HttpHeadersCollectionIterator // property // GetHeader // Gets the first header value in the collection matching the name. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httpresponseheaders#getheader">See the ICoreWebView2HttpResponseHeaders article.</a> GetHeader(aName string) string // function // GetHeaders // Gets the header values matching the name. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httpresponseheaders#getheaders">See the ICoreWebView2HttpResponseHeaders article.</a> GetHeaders(aName string, aIterator *ICoreWebView2HttpHeadersCollectionIterator) bool // function // Contains // Verifies that the headers contain entries that match the header name. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httpresponseheaders#contains">See the ICoreWebView2HttpResponseHeaders article.</a> Contains(aName string) bool // function // AppendHeader // Appends header line with name and value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httpresponseheaders#appendheader">See the ICoreWebView2HttpResponseHeaders article.</a> AppendHeader(aName, aValue string) bool // function }
ICoreWebView2HttpResponseHeaders Parent: IObject
HTTP response headers. Used to construct a WebResourceResponse for the WebResourceRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httpresponseheaders">See the ICoreWebView2HttpResponseHeaders article.</a>
func AsCoreWebView2HttpResponseHeaders ¶
func AsCoreWebView2HttpResponseHeaders(obj interface{}) ICoreWebView2HttpResponseHeaders
AsCoreWebView2HttpResponseHeaders Convert a pointer object to an existing class object
func NewCoreWebView2HttpResponseHeaders ¶
func NewCoreWebView2HttpResponseHeaders(aBaseIntf ICoreWebView2HttpResponseHeaders) ICoreWebView2HttpResponseHeaders
type ICoreWebView2LaunchingExternalUriSchemeEventArgs ¶
type ICoreWebView2LaunchingExternalUriSchemeEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2LaunchingExternalUriSchemeEventArgs // property // Uri // The URI with the external URI scheme to be launched. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2launchingexternalurischemeeventargs#get_uri">See the ICoreWebView2LaunchingExternalUriSchemeEventArgs article.</a> Uri() string // property // InitiatingOrigin // The origin initiating the external URI scheme launch. // The origin will be an empty string if the request is initiated by calling // `CoreWebView2.Navigate` on the external URI scheme. If a script initiates // the navigation, the `InitiatingOrigin` will be the top-level document's // `Source`, for example, if `window.location` is set to `"calculator://", the // `InitiatingOrigin` will be set to `calculator://`. If the request is initiated // from a child frame, the `InitiatingOrigin` will be the source of that child frame. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2launchingexternalurischemeeventargs#get_initiatingorigin">See the ICoreWebView2LaunchingExternalUriSchemeEventArgs article.</a> InitiatingOrigin() string // property // IsUserInitiated // `TRUE` when the external URI scheme request was initiated through a user gesture. // NOTE: Being initiated through a user gesture does not mean that user intended // to access the associated resource. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2launchingexternalurischemeeventargs#get_isuserinitiated">See the ICoreWebView2LaunchingExternalUriSchemeEventArgs article.</a> IsUserInitiated() bool // property // Cancel // The event handler may set this property to `TRUE` to cancel the external URI scheme // launch. If set to `TRUE`, the external URI scheme will not be launched, and the default // dialog is not displayed. This property can be used to replace the normal // handling of launching an external URI scheme. // The initial value of the `Cancel` property is `FALSE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2launchingexternalurischemeeventargs#get_cancel">See the ICoreWebView2LaunchingExternalUriSchemeEventArgs article.</a> Cancel() bool // property // SetCancel Set Cancel SetCancel(AValue bool) // property // Deferral // Returns an `ICoreWebView2Deferral` object. Use this operation to // complete the event at a later time. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2launchingexternalurischemeeventargs#getdeferral">See the ICoreWebView2LaunchingExternalUriSchemeEventArgs article.</a> Deferral() ICoreWebView2Deferral // property }
ICoreWebView2LaunchingExternalUriSchemeEventArgs Parent: IObject
Event args for LaunchingExternalUriScheme event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2launchingexternalurischemeeventargs">See the ICoreWebView2LaunchingExternalUriSchemeEventArgs article.</a>
func AsCoreWebView2LaunchingExternalUriSchemeEventArgs ¶
func AsCoreWebView2LaunchingExternalUriSchemeEventArgs(obj interface{}) ICoreWebView2LaunchingExternalUriSchemeEventArgs
AsCoreWebView2LaunchingExternalUriSchemeEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2LaunchingExternalUriSchemeEventArgs ¶
func NewCoreWebView2LaunchingExternalUriSchemeEventArgs(aArgs ICoreWebView2LaunchingExternalUriSchemeEventArgs) ICoreWebView2LaunchingExternalUriSchemeEventArgs
type ICoreWebView2MoveFocusRequestedEventArgs ¶
type ICoreWebView2MoveFocusRequestedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2MoveFocusRequestedEventArgs // property // Reason // The reason for WebView to run the `MoveFocusRequested` event. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2movefocusrequestedeventargs#get_reason">See the ICoreWebView2MoveFocusRequestedEventArgs article.</a> Reason() TWVMoveFocusReason // property // Handled // Indicates whether the event has been handled by the app. If the app has // moved the focus to another desired location, it should set the `Handled` // property to `TRUE`. When the `Handled` property is `FALSE` after the // event handler returns, default action is taken. The default action is to // try to find the next tab stop child window in the app and try to move // focus to that window. If no other window exists to move focus, focus is // cycled within the web content of the WebView. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2movefocusrequestedeventargs#get_handled">See the ICoreWebView2MoveFocusRequestedEventArgs article.</a> Handled() bool // property // SetHandled Set Handled SetHandled(AValue bool) // property }
ICoreWebView2MoveFocusRequestedEventArgs Parent: IObject
Event args for the MoveFocusRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2movefocusrequestedeventargs">See the ICoreWebView2MoveFocusRequestedEventArgs article.</a>
func AsCoreWebView2MoveFocusRequestedEventArgs ¶
func AsCoreWebView2MoveFocusRequestedEventArgs(obj interface{}) ICoreWebView2MoveFocusRequestedEventArgs
AsCoreWebView2MoveFocusRequestedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2MoveFocusRequestedEventArgs ¶
func NewCoreWebView2MoveFocusRequestedEventArgs(aArgs ICoreWebView2MoveFocusRequestedEventArgs) ICoreWebView2MoveFocusRequestedEventArgs
type ICoreWebView2NavigationCompletedEventArgs ¶
type ICoreWebView2NavigationCompletedEventArgs interface { IObject // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // Returns the interface implemented by this class. BaseIntf() ICoreWebView2NavigationCompletedEventArgs // property // `TRUE` when the navigation is successful. `FALSE` for a navigation that // ended up in an error page(failures due to no network, DNS lookup // failure, HTTP server responds with 4xx), but may also be `FALSE` for // additional scenarios such as `window.stop()` run on navigated page. // Note that WebView2 will report the navigation as 'unsuccessful' if the load // for the navigation did not reach the expected completion for any reason. Such // reasons include potentially catastrophic issues such network and certificate // issues, but can also be the result of intended actions such as the app canceling a navigation or // navigating away before the original navigation completed. Applications should not // just rely on this flag, but also consider the reported WebErrorStatus to // determine whether the failure is indeed catastrophic in their context. // WebErrorStatuses that may indicate a non-catastrophic failure include: // - COREWEBVIEW2_WEB_ERROR_STATUS_OPERATION_CANCELED // - COREWEBVIEW2_WEB_ERROR_STATUS_VALID_AUTHENTICATION_CREDENTIALS_REQUIRED // - COREWEBVIEW2_WEB_ERROR_STATUS_VALID_PROXY_AUTHENTICATION_REQUIRED // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationcompletedeventargs#get_issuccess">See the ICoreWebView2NavigationCompletedEventArgs article.</a> IsSuccess() bool // property // The error code if the navigation failed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationcompletedeventargs#get_weberrorstatus">See the ICoreWebView2NavigationCompletedEventArgs article.</a> WebErrorStatus() TWVWebErrorStatus // property // The ID of the navigation. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationcompletedeventargs#get_navigationid">See the ICoreWebView2NavigationCompletedEventArgs article.</a> NavigationID() (resultUint64 uint64) // property // The HTTP status code of the navigation if it involved an HTTP request. // For instance, this will usually be 200 if the request was successful, 404 // if a page was not found, etc. See // https://developer.mozilla.org/docs/Web/HTTP/Status for a list of // common status codes. // The `HttpStatusCode` property will be 0 in the following cases: // * The navigation did not involve an HTTP request. For instance, if it was // a navigation to a file:// URL, or if it was a same-document navigation. // * The navigation failed before a response was received. For instance, if // the hostname was not found, or if there was a network error. // In those cases, you can get more information from the `IsSuccess` and // `WebErrorStatus` properties. // If the navigation receives a successful HTTP response, but the navigated // page calls `window.stop()` before it finishes loading, then // `HttpStatusCode` may contain a success code like 200, but `IsSuccess` will // be FALSE and `WebErrorStatus` will be // `COREWEBVIEW2_WEB_ERROR_STATUS_CONNECTION_ABORTED`. // Since WebView2 handles HTTP continuations and redirects automatically, it // is unlikely for `HttpStatusCode` to ever be in the 1xx or 3xx ranges. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationcompletedeventargs2#get_httpstatuscode">See the ICoreWebView2NavigationCompletedEventArgs2 article.</a> HttpStatusCode() int32 // property }
ICoreWebView2NavigationCompletedEventArgs Parent: IObject
Event args for the NavigationCompleted event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationcompletedeventargs">See the ICoreWebView2NavigationCompletedEventArgs article.</a>
func AsCoreWebView2NavigationCompletedEventArgs ¶
func AsCoreWebView2NavigationCompletedEventArgs(obj interface{}) ICoreWebView2NavigationCompletedEventArgs
AsCoreWebView2NavigationCompletedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2NavigationCompletedEventArgs ¶
func NewCoreWebView2NavigationCompletedEventArgs(aArgs ICoreWebView2NavigationCompletedEventArgs) ICoreWebView2NavigationCompletedEventArgs
type ICoreWebView2NavigationStartingEventArgs ¶
type ICoreWebView2NavigationStartingEventArgs interface { IObject // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // Returns the interface implemented by this class. BaseIntf() ICoreWebView2NavigationStartingEventArgs // property // The uri of the requested navigation. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationstartingeventargs#get_uri">See the ICoreWebView2NavigationStartingEventArgs article.</a> URI() string // property // `TRUE` when the navigation was initiated through a user gesture as // opposed to programmatic navigation by page script. Navigations initiated // via WebView2 APIs are considered as user initiated. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationstartingeventargs#get_isuserinitiated">See the ICoreWebView2NavigationStartingEventArgs article.</a> IsUserInitiated() bool // property // `TRUE` when the navigation is redirected. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationstartingeventargs#get_isredirected">See the ICoreWebView2NavigationStartingEventArgs article.</a> IsRedirected() bool // property // The host may set this flag to cancel the navigation. If set, the // navigation is not longer present and the content of the current page is // intact. For performance reasons, `GET` HTTP requests may happen, while // the host is responding. You may set cookies and use part of a request // for the navigation. Navigations to about schemes are cancellable, unless // `msWebView2CancellableAboutNavigations` feature flag is disabled. // Cancellation of frame navigation to `srcdoc` is not supported and // wil be ignored. A cancelled navigation will fire a `NavigationCompleted` // event with a `WebErrorStatus` of // `COREWEBVIEW2_WEB_ERROR_STATUS_OPERATION_CANCELED`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationstartingeventargs#get_cancel">See the ICoreWebView2NavigationStartingEventArgs article.</a> Cancel() bool // property SetCancel(AValue bool) // property // The ID of the navigation. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationstartingeventargs#get_navigationid">See the ICoreWebView2NavigationStartingEventArgs article.</a> NavigationID() (resultUint64 uint64) // property // The HTTP request headers for the navigation. // NOTE: You are not able to modify the HTTP request headers in a // `NavigationStarting` event. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationstartingeventargs#get_requestheaders">See the ICoreWebView2NavigationStartingEventArgs article.</a> RequestHeaders() ICoreWebView2HttpRequestHeaders // property // Get additional allowed frame ancestors set by the host app. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationstartingeventargs2#get_additionalallowedframeancestors">See the ICoreWebView2NavigationStartingEventArgs3 article.</a> AdditionalAllowedFrameAncestors() string // property SetAdditionalAllowedFrameAncestors(AValue string) // property // Get the navigation kind of this navigation. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationstartingeventargs3#get_navigationkind">See the ICoreWebView2NavigationStartingEventArgs3 article.</a> NavigationKind() TWVNavigationKind // property }
ICoreWebView2NavigationStartingEventArgs Parent: IObject
Event args for the NavigationStarting event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationstartingeventargs">See the ICoreWebView2NavigationStartingEventArgs article.</a>
func AsCoreWebView2NavigationStartingEventArgs ¶
func AsCoreWebView2NavigationStartingEventArgs(obj interface{}) ICoreWebView2NavigationStartingEventArgs
AsCoreWebView2NavigationStartingEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2NavigationStartingEventArgs ¶
func NewCoreWebView2NavigationStartingEventArgs(aArgs ICoreWebView2NavigationStartingEventArgs) ICoreWebView2NavigationStartingEventArgs
type ICoreWebView2NewWindowRequestedEventArgs ¶
type ICoreWebView2NewWindowRequestedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2NewWindowRequestedEventArgs // property // URI // The target uri of the new window requested. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2newwindowrequestedeventargs#get_uri">See the ICoreWebView2NewWindowRequestedEventArgs article.</a> URI() string // property // NewWindow // Gets the new window. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2newwindowrequestedeventargs#get_newwindow">See the ICoreWebView2NewWindowRequestedEventArgs article.</a> NewWindow() ICoreWebView2 // property // SetNewWindow Set NewWindow SetNewWindow(AValue ICoreWebView2) // property // Handled // Gets whether the `NewWindowRequested` event is handled by host. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2newwindowrequestedeventargs#get_handled">See the ICoreWebView2NewWindowRequestedEventArgs article.</a> Handled() bool // property // SetHandled Set Handled SetHandled(AValue bool) // property // IsUserInitiated // `TRUE` when the new window request was initiated through a user gesture. // Examples of user initiated requests are: // - Selecting an anchor tag with target // - Programmatic window open from a script that directly run as a result of // user interaction such as via onclick handlers. // Non-user initiated requests are programmatic window opens from a script // that are not directly triggered by user interaction, such as those that // run while loading a new page or via timers. // The Microsoft Edge popup blocker is disabled for WebView so the app is // able to use this flag to block non-user initiated popups. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2newwindowrequestedeventargs#get_isuserinitiated">See the ICoreWebView2NewWindowRequestedEventArgs article.</a> IsUserInitiated() bool // property // Deferral // Obtain an `ICoreWebView2Deferral` object and put the event into a // deferred state. Use the `ICoreWebView2Deferral` object to complete the // window open request at a later time. While this event is deferred the // opener window returns a `WindowProxy` to an un-navigated window, which // navigates when the deferral is complete. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2newwindowrequestedeventargs#getdeferral">See the ICoreWebView2NewWindowRequestedEventArgs article.</a> Deferral() ICoreWebView2Deferral // property // WindowFeatures // Window features specified by the `window.open`. The features should be // considered for positioning and sizing of new webview windows. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2newwindowrequestedeventargs#get_windowfeatures">See the ICoreWebView2NewWindowRequestedEventArgs article.</a> WindowFeatures() ICoreWebView2WindowFeatures // property // Name // Gets the name of the new window. This window can be created via `window.open(url, windowName)`, // where the windowName parameter corresponds to `Name` property. // If no windowName is passed to `window.open`, then the `Name` property // will be set to an empty string. Additionally, if window is opened through other means, // such as `<a target="windowName">...</a>` or `<iframe name="windowName">...</iframe>`, // then the `Name` property will be set accordingly. In the case of target=_blank, // the `Name` property will be an empty string. // Opening a window via ctrl+clicking a link would result in the `Name` property // being set to an empty string. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2newwindowrequestedeventargs2#get_name">See the ICoreWebView2NewWindowRequestedEventArgs2 article.</a> Name() string // property // OriginalSourceFrameInfo // The frame info of the frame where the new window request originated. The // `OriginalSourceFrameInfo` is a snapshot of frame information at the time when the // new window was requested. See `ICoreWebView2FrameInfo` for details on frame // properties. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2newwindowrequestedeventargs3#get_originalsourceframeinfo">See the ICoreWebView2NewWindowRequestedEventArgs3 article.</a> OriginalSourceFrameInfo() ICoreWebView2FrameInfo // property }
ICoreWebView2NewWindowRequestedEventArgs Parent: IObject
Event args for the NewWindowRequested event. The event is run when content inside webview requested to a open a new window (through window.open() and so on). <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2newwindowrequestedeventargs">See the ICoreWebView2NewWindowRequestedEventArgs article.</a>
func AsCoreWebView2NewWindowRequestedEventArgs ¶
func AsCoreWebView2NewWindowRequestedEventArgs(obj interface{}) ICoreWebView2NewWindowRequestedEventArgs
AsCoreWebView2NewWindowRequestedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2NewWindowRequestedEventArgs ¶
func NewCoreWebView2NewWindowRequestedEventArgs(aArgs ICoreWebView2NewWindowRequestedEventArgs) ICoreWebView2NewWindowRequestedEventArgs
type ICoreWebView2ObjectCollectionView ¶
type ICoreWebView2ObjectCollectionView interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ObjectCollectionView // property // Count // Gets the number of items in the collection. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2objectcollectionview#get_count">See the ICoreWebView2ObjectCollectionView article.</a> Count() uint32 // property // Items // Gets the object at the specified index. Cast the object to the native type // to access its specific properties. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2objectcollectionview#getvalueatindex">See the ICoreWebView2ObjectCollectionView article.</a> Items(idx uint32) IUnknown // property }
ICoreWebView2ObjectCollectionView Parent: IObject
Read-only collection of generic objects. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2objectcollectionview">See the ICoreWebView2ObjectCollectionView article.</a>
func AsCoreWebView2ObjectCollectionView ¶
func AsCoreWebView2ObjectCollectionView(obj interface{}) ICoreWebView2ObjectCollectionView
AsCoreWebView2ObjectCollectionView Convert a pointer object to an existing class object
func NewCoreWebView2ObjectCollectionView ¶
func NewCoreWebView2ObjectCollectionView(aBaseIntf ICoreWebView2ObjectCollectionView) ICoreWebView2ObjectCollectionView
type ICoreWebView2PermissionRequestedEventArgs ¶
type ICoreWebView2PermissionRequestedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2PermissionRequestedEventArgs // property // URI // The origin of the web content that requests the permission. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionrequestedeventargs#get_uri">See the ICoreWebView2PermissionRequestedEventArgs article.</a> URI() string // property // State // The status of a permission request,(for example is the request is granted). // The default value is `COREWEBVIEW2_PERMISSION_STATE_DEFAULT`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionrequestedeventargs#get_state">See the ICoreWebView2PermissionRequestedEventArgs article.</a> State() TWVPermissionState // property // SetState Set State SetState(AValue TWVPermissionState) // property // PermissionKind // The type of the permission that is requested. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionrequestedeventargs#get_permissionkind">See the ICoreWebView2PermissionRequestedEventArgs article.</a> PermissionKind() TWVPermissionKind // property // IsUserInitiated // `TRUE` when the permission request was initiated through a user gesture. // NOTE: Being initiated through a user gesture does not mean that user intended // to access the associated resource. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionrequestedeventargs#get_isuserinitiated">See the ICoreWebView2PermissionRequestedEventArgs article.</a> IsUserInitiated() bool // property // Deferral // Gets an `ICoreWebView2Deferral` object. Use the deferral object to make // the permission decision at a later time. The deferral only applies to the // current request, and does not prevent the `OnPermissionRequested` event from // getting raised for new requests. However, for some permission kinds the // WebView will avoid creating a new request if there is a pending request of // the same kind. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionrequestedeventargs#getdeferral">See the ICoreWebView2PermissionRequestedEventArgs article.</a> Deferral() ICoreWebView2Deferral // property // Handled // By default, both the `OnPermissionRequested` event handlers on the // `CoreWebView2Frame` and the `CoreWebView2` will be invoked, with the // `CoreWebView2Frame` event handlers invoked first. The host may // set this flag to `TRUE` within the `CoreWebView2Frame` event handlers // to prevent the remaining `CoreWebView2` event handlers from being invoked. // If a deferral is taken on the event args, then you must synchronously // set `Handled` to TRUE prior to taking your deferral to prevent the // `CoreWebView2`s event handlers from being invoked. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionrequestedeventargs2#get_handled">See the ICoreWebView2PermissionRequestedEventArgs2 article.</a> Handled() bool // property // SetHandled Set Handled SetHandled(AValue bool) // property // SavesInProfile // The permission state set from the `PermissionRequested` event is saved in // the profile by default; it persists across sessions and becomes the new // default behavior for future `PermissionRequested` events. Browser // heuristics can affect whether the event continues to be raised when the // state is saved in the profile. Set the `SavesInProfile` property to // `FALSE` to not persist the state beyond the current request, and to // continue to receive `PermissionRequested` // events for this origin and permission kind. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionrequestedeventargs3#get_savesinprofile">See the ICoreWebView2PermissionRequestedEventArgs3 article.</a> SavesInProfile() bool // property // SetSavesInProfile Set SavesInProfile SetSavesInProfile(AValue bool) // property }
ICoreWebView2PermissionRequestedEventArgs Parent: IObject
Event args for the PermissionRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionrequestedeventargs">See the ICoreWebView2PermissionRequestedEventArgs article.</a>
func AsCoreWebView2PermissionRequestedEventArgs ¶
func AsCoreWebView2PermissionRequestedEventArgs(obj interface{}) ICoreWebView2PermissionRequestedEventArgs
AsCoreWebView2PermissionRequestedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2PermissionRequestedEventArgs ¶
func NewCoreWebView2PermissionRequestedEventArgs(aArgs ICoreWebView2PermissionRequestedEventArgs) ICoreWebView2PermissionRequestedEventArgs
type ICoreWebView2PermissionSetting ¶
type ICoreWebView2PermissionSetting interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2PermissionSetting // property // PermissionKind // The kind of the permission setting. See `COREWEBVIEW2_PERMISSION_KIND` for // more details. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionsetting#get_permissionkind">See the ICoreWebView2PermissionSetting article.</a> PermissionKind() TWVPermissionKind // property // PermissionOrigin // The origin of the permission setting. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionsetting#get_permissionorigin">See the ICoreWebView2PermissionSetting article.</a> PermissionOrigin() string // property // PermissionState // The state of the permission setting. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionsetting#get_permissionstate">See the ICoreWebView2PermissionSetting article.</a> PermissionState() TWVPermissionState // property }
ICoreWebView2PermissionSetting Parent: IObject
Provides a set of properties for a permission setting. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionsetting">See the ICoreWebView2PermissionSetting article.</a>
func AsCoreWebView2PermissionSetting ¶
func AsCoreWebView2PermissionSetting(obj interface{}) ICoreWebView2PermissionSetting
AsCoreWebView2PermissionSetting Convert a pointer object to an existing class object
func NewCoreWebView2PermissionSetting ¶
func NewCoreWebView2PermissionSetting(aBaseIntf ICoreWebView2PermissionSetting) ICoreWebView2PermissionSetting
type ICoreWebView2PermissionSettingCollectionView ¶
type ICoreWebView2PermissionSettingCollectionView interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2PermissionSettingCollectionView // property // ValueAtIndex // Gets the `ICoreWebView2PermissionSetting` at the specified index. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionsettingcollectionview#getvalueatindex">See the ICoreWebView2PermissionSettingCollectionView article.</a> ValueAtIndex(idx uint32) ICoreWebView2PermissionSetting // property // Count // The number of `ICoreWebView2PermissionSetting`s in the collection. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionsettingcollectionview#get_count">See the ICoreWebView2PermissionSettingCollectionView article.</a> Count() uint32 // property }
ICoreWebView2PermissionSettingCollectionView Parent: IObject
Read-only collection of PermissionSettings (origin, kind, and state). Used to list the nondefault permission settings on the profile that are persisted across sessions. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionsettingcollectionview">See the ICoreWebView2PermissionSettingCollectionView article.</a>
func AsCoreWebView2PermissionSettingCollectionView ¶
func AsCoreWebView2PermissionSettingCollectionView(obj interface{}) ICoreWebView2PermissionSettingCollectionView
AsCoreWebView2PermissionSettingCollectionView Convert a pointer object to an existing class object
func NewCoreWebView2PermissionSettingCollectionView ¶
func NewCoreWebView2PermissionSettingCollectionView(aBaseIntf ICoreWebView2PermissionSettingCollectionView) ICoreWebView2PermissionSettingCollectionView
type ICoreWebView2PointerInfo ¶
type ICoreWebView2PointerInfo interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2PointerInfo // property // PointerKind // Get the PointerKind of the pointer event. This corresponds to the // pointerKind property of the POINTER_INFO struct. The values are defined by // the POINTER_INPUT_KIND enum in the Windows SDK(winuser.h). Supports // PT_PEN and PT_TOUCH. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_pointerkind">See the ICoreWebView2PointerInfo article.</a> PointerKind() uint32 // property // SetPointerKind Set PointerKind SetPointerKind(AValue uint32) // property // PointerId // Get the PointerId of the pointer event. This corresponds to the pointerId // property of the POINTER_INFO struct as defined in the Windows SDK // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_pointerid">See the ICoreWebView2PointerInfo article.</a> PointerId() uint32 // property // SetPointerId Set PointerId SetPointerId(AValue uint32) // property // FrameId // Get the FrameID of the pointer event. This corresponds to the frameId // property of the POINTER_INFO struct as defined in the Windows SDK // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_frameid">See the ICoreWebView2PointerInfo article.</a> FrameId() uint32 // property // SetFrameId Set FrameId SetFrameId(AValue uint32) // property // PointerFlags // Get the PointerFlags of the pointer event. This corresponds to the // pointerFlags property of the POINTER_INFO struct. The values are defined // by the POINTER_FLAGS constants in the Windows SDK(winuser.h). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_pointerflags">See the ICoreWebView2PointerInfo article.</a> PointerFlags() uint32 // property // SetPointerFlags Set PointerFlags SetPointerFlags(AValue uint32) // property // PointerDeviceRect // Get the PointerDeviceRect of the sourceDevice property of the // POINTER_INFO struct as defined in the Windows SDK(winuser.h). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_pointerdevicerect">See the ICoreWebView2PointerInfo article.</a> PointerDeviceRect() (resultRect TRect) // property // SetPointerDeviceRect Set PointerDeviceRect SetPointerDeviceRect(AValue *TRect) // property // DisplayRect // Get the DisplayRect of the sourceDevice property of the POINTER_INFO // struct as defined in the Windows SDK(winuser.h). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_displayrect">See the ICoreWebView2PointerInfo article.</a> DisplayRect() (resultRect TRect) // property // SetDisplayRect Set DisplayRect SetDisplayRect(AValue *TRect) // property // PixelLocation // Get the PixelLocation of the pointer event. This corresponds to the // ptPixelLocation property of the POINTER_INFO struct as defined in the // Windows SDK(winuser.h). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_pixellocation">See the ICoreWebView2PointerInfo article.</a> PixelLocation() (resultPoint TPoint) // property // SetPixelLocation Set PixelLocation SetPixelLocation(AValue *TPoint) // property // HimetricLocation // Get the HimetricLocation of the pointer event. This corresponds to the // ptHimetricLocation property of the POINTER_INFO struct as defined in the // Windows SDK(winuser.h). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_himetriclocation">See the ICoreWebView2PointerInfo article.</a> HimetricLocation() (resultPoint TPoint) // property // SetHimetricLocation Set HimetricLocation SetHimetricLocation(AValue *TPoint) // property // PixelLocationRaw // Get the PixelLocationRaw of the pointer event. This corresponds to the // ptPixelLocationRaw property of the POINTER_INFO struct as defined in the // Windows SDK(winuser.h). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_pixellocationraw">See the ICoreWebView2PointerInfo article.</a> PixelLocationRaw() (resultPoint TPoint) // property // SetPixelLocationRaw Set PixelLocationRaw SetPixelLocationRaw(AValue *TPoint) // property // HimetricLocationRaw // Get the HimetricLocationRaw of the pointer event. This corresponds to the // ptHimetricLocationRaw property of the POINTER_INFO struct as defined in // the Windows SDK(winuser.h). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_himetriclocationraw">See the ICoreWebView2PointerInfo article.</a> HimetricLocationRaw() (resultPoint TPoint) // property // SetHimetricLocationRaw Set HimetricLocationRaw SetHimetricLocationRaw(AValue *TPoint) // property // Time // Get the Time of the pointer event. This corresponds to the dwTime property // of the POINTER_INFO struct as defined in the Windows SDK(winuser.h). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_time">See the ICoreWebView2PointerInfo article.</a> Time() uint32 // property // SetTime Set Time SetTime(AValue uint32) // property // HistoryCount // Get the HistoryCount of the pointer event. This corresponds to the // historyCount property of the POINTER_INFO struct as defined in the Windows // SDK(winuser.h). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_historycount">See the ICoreWebView2PointerInfo article.</a> HistoryCount() uint32 // property // SetHistoryCount Set HistoryCount SetHistoryCount(AValue uint32) // property // InputData // Get the InputData of the pointer event. This corresponds to the InputData // property of the POINTER_INFO struct as defined in the Windows SDK // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_inputdata">See the ICoreWebView2PointerInfo article.</a> InputData() int32 // property // SetInputData Set InputData SetInputData(AValue int32) // property // KeyStates // Get the KeyStates of the pointer event. This corresponds to the // dwKeyStates property of the POINTER_INFO struct as defined in the Windows // SDK(winuser.h). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_keystates">See the ICoreWebView2PointerInfo article.</a> KeyStates() uint32 // property // SetKeyStates Set KeyStates SetKeyStates(AValue uint32) // property // PerformanceCount // Get the PerformanceCount of the pointer event. This corresponds to the // PerformanceCount property of the POINTER_INFO struct as defined in the // Windows SDK(winuser.h). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_performancecount">See the ICoreWebView2PointerInfo article.</a> PerformanceCount() (resultUint64 uint64) // property // SetPerformanceCount Set PerformanceCount SetPerformanceCount(AValue uint64) // property // ButtonChangeKind // Get the ButtonChangeKind of the pointer event. This corresponds to the // ButtonChangeKind property of the POINTER_INFO struct. The values are // defined by the POINTER_BUTTON_CHANGE_KIND enum in the Windows SDK // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_buttonchangekind">See the ICoreWebView2PointerInfo article.</a> ButtonChangeKind() int32 // property // SetButtonChangeKind Set ButtonChangeKind SetButtonChangeKind(AValue int32) // property // PenFlags // Get the PenFlags of the pointer event. This corresponds to the penFlags // property of the POINTER_PEN_INFO struct. The values are defined by the // PEN_FLAGS constants in the Windows SDK(winuser.h). // This is a Pen specific attribute. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_penflags">See the ICoreWebView2PointerInfo article.</a> PenFlags() uint32 // property // SetPenFlags Set PenFlags SetPenFlags(AValue uint32) // property // PenMask // Get the PenMask of the pointer event. This corresponds to the penMask // property of the POINTER_PEN_INFO struct. The values are defined by the // PEN_MASK constants in the Windows SDK(winuser.h). // This is a Pen specific attribute. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_penmask">See the ICoreWebView2PointerInfo article.</a> PenMask() uint32 // property // SetPenMask Set PenMask SetPenMask(AValue uint32) // property // PenPressure // Get the PenPressure of the pointer event. This corresponds to the pressure // property of the POINTER_PEN_INFO struct as defined in the Windows SDK // This is a Pen specific attribute. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_penpressure">See the ICoreWebView2PointerInfo article.</a> PenPressure() uint32 // property // SetPenPressure Set PenPressure SetPenPressure(AValue uint32) // property // PenRotation // Get the PenRotation of the pointer event. This corresponds to the rotation // property of the POINTER_PEN_INFO struct as defined in the Windows SDK // This is a Pen specific attribute. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_penrotation">See the ICoreWebView2PointerInfo article.</a> PenRotation() uint32 // property // SetPenRotation Set PenRotation SetPenRotation(AValue uint32) // property // PenTiltX // Get the PenTiltX of the pointer event. This corresponds to the tiltX // property of the POINTER_PEN_INFO struct as defined in the Windows SDK // This is a Pen specific attribute. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_pentiltx">See the ICoreWebView2PointerInfo article.</a> PenTiltX() int32 // property // SetPenTiltX Set PenTiltX SetPenTiltX(AValue int32) // property // PenTiltY // Get the PenTiltY of the pointer event. This corresponds to the tiltY // property of the POINTER_PEN_INFO struct as defined in the Windows SDK // This is a Pen specific attribute. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_pentilty">See the ICoreWebView2PointerInfo article.</a> PenTiltY() int32 // property // SetPenTiltY Set PenTiltY SetPenTiltY(AValue int32) // property // TouchFlags // Get the TouchFlags of the pointer event. This corresponds to the // touchFlags property of the POINTER_TOUCH_INFO struct. The values are // defined by the TOUCH_FLAGS constants in the Windows SDK(winuser.h). // This is a Touch specific attribute. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_touchflags">See the ICoreWebView2PointerInfo article.</a> TouchFlags() uint32 // property // SetTouchFlags Set TouchFlags SetTouchFlags(AValue uint32) // property // TouchMask // Get the TouchMask of the pointer event. This corresponds to the // touchMask property of the POINTER_TOUCH_INFO struct. The values are // defined by the TOUCH_MASK constants in the Windows SDK(winuser.h). // This is a Touch specific attribute. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_touchmask">See the ICoreWebView2PointerInfo article.</a> TouchMask() uint32 // property // SetTouchMask Set TouchMask SetTouchMask(AValue uint32) // property // TouchContact // Get the TouchContact of the pointer event. This corresponds to the // rcContact property of the POINTER_TOUCH_INFO struct as defined in the // Windows SDK(winuser.h). // This is a Touch specific attribute. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_touchcontact">See the ICoreWebView2PointerInfo article.</a> TouchContact() (resultRect TRect) // property // SetTouchContact Set TouchContact SetTouchContact(AValue *TRect) // property // TouchContactRaw // Get the TouchContactRaw of the pointer event. This corresponds to the // rcContactRaw property of the POINTER_TOUCH_INFO struct as defined in the // Windows SDK(winuser.h). // This is a Touch specific attribute. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_touchcontactraw">See the ICoreWebView2PointerInfo article.</a> TouchContactRaw() (resultRect TRect) // property // SetTouchContactRaw Set TouchContactRaw SetTouchContactRaw(AValue *TRect) // property // TouchOrientation // Get the TouchOrientation of the pointer event. This corresponds to the // orientation property of the POINTER_TOUCH_INFO struct as defined in the // Windows SDK(winuser.h). // This is a Touch specific attribute. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_touchorientation">See the ICoreWebView2PointerInfo article.</a> TouchOrientation() uint32 // property // SetTouchOrientation Set TouchOrientation SetTouchOrientation(AValue uint32) // property // TouchPressure // Get the TouchPressure of the pointer event. This corresponds to the // pressure property of the POINTER_TOUCH_INFO struct as defined in the // Windows SDK(winuser.h). // This is a Touch specific attribute. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo#get_touchpressure">See the ICoreWebView2PointerInfo article.</a> TouchPressure() uint32 // property // SetTouchPressure Set TouchPressure SetTouchPressure(AValue uint32) // property }
ICoreWebView2PointerInfo Parent: IObject
This mostly represents a combined win32 POINTER_INFO/POINTER_TOUCH_INFO/POINTER_PEN_INFO object. It takes fields from all three and excludes some win32 specific data types like HWND and HANDLE. Note, sourceDevice is taken out but we expect the PointerDeviceRect and DisplayRect to cover the existing use cases of sourceDevice. Another big difference is that any of the point or rect locations are expected to be in WebView physical coordinates. That is, coordinates relative to the WebView and no DPI scaling applied. The PointerId, PointerFlags, ButtonChangeKind, PenFlags, PenMask, TouchFlags, and TouchMask are all #defined flags or enums in the POINTER_INFO/POINTER_TOUCH_INFO/POINTER_PEN_INFO structure. We define those properties here as UINT32 or INT32 and expect the developer to know how to populate those values based on the Windows definitions. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo">See the ICoreWebView2PointerInfo article.</a>
func AsCoreWebView2PointerInfo ¶
func AsCoreWebView2PointerInfo(obj interface{}) ICoreWebView2PointerInfo
AsCoreWebView2PointerInfo Convert a pointer object to an existing class object
func NewCoreWebView2PointerInfo ¶
func NewCoreWebView2PointerInfo(aBaseIntf ICoreWebView2PointerInfo) ICoreWebView2PointerInfo
type ICoreWebView2PrintCompletedHandler ¶
type ICoreWebView2PrintCompletedHandler interface { IObject }
ICoreWebView2PrintCompletedHandler Parent: IObject
Receives the result of the Print method. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printcompletedhandler">See the ICoreWebView2PrintCompletedHandler article.</a>
func AsCoreWebView2PrintCompletedHandler ¶
func AsCoreWebView2PrintCompletedHandler(obj interface{}) ICoreWebView2PrintCompletedHandler
AsCoreWebView2PrintCompletedHandler Convert a pointer object to an existing class object
func NewCoreWebView2PrintCompletedHandler ¶
func NewCoreWebView2PrintCompletedHandler(aEvents IWVBrowserEvents) ICoreWebView2PrintCompletedHandler
type ICoreWebView2PrintSettings ¶
type ICoreWebView2PrintSettings interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2PrintSettings // property // Orientation // The orientation can be portrait or landscape. The default orientation is // portrait. See `COREWEBVIEW2_PRINT_ORIENTATION`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings#get_orientation">See the ICoreWebView2PrintSettings article.</a> Orientation() TWVPrintOrientation // property // SetOrientation Set Orientation SetOrientation(AValue TWVPrintOrientation) // property // ScaleFactor // The scale factor is a value between 0.1 and 2.0. The default is 1.0. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings#get_scalefactor">See the ICoreWebView2PrintSettings article.</a> ScaleFactor() (resultDouble float64) // property // SetScaleFactor Set ScaleFactor SetScaleFactor(AValue float64) // property // PageWidth // The page width in inches. The default width is 8.5 inches. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings#get_pagewidth">See the ICoreWebView2PrintSettings article.</a> PageWidth() (resultDouble float64) // property // SetPageWidth Set PageWidth SetPageWidth(AValue float64) // property // PageHeight // The page height in inches. The default height is 11 inches. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings#get_pageheight">See the ICoreWebView2PrintSettings article.</a> PageHeight() (resultDouble float64) // property // SetPageHeight Set PageHeight SetPageHeight(AValue float64) // property // MarginTop // The top margin in inches. The default is 1 cm, or ~0.4 inches. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings#get_margintop">See the ICoreWebView2PrintSettings article.</a> MarginTop() (resultDouble float64) // property // SetMarginTop Set MarginTop SetMarginTop(AValue float64) // property // MarginBottom // The bottom margin in inches. The default is 1 cm, or ~0.4 inches. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings#get_marginbottom">See the ICoreWebView2PrintSettings article.</a> MarginBottom() (resultDouble float64) // property // SetMarginBottom Set MarginBottom SetMarginBottom(AValue float64) // property // MarginLeft // The left margin in inches. The default is 1 cm, or ~0.4 inches. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings#get_marginleft">See the ICoreWebView2PrintSettings article.</a> MarginLeft() (resultDouble float64) // property // SetMarginLeft Set MarginLeft SetMarginLeft(AValue float64) // property // MarginRight // The right margin in inches. The default is 1 cm, or ~0.4 inches. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings#get_marginright">See the ICoreWebView2PrintSettings article.</a> MarginRight() (resultDouble float64) // property // SetMarginRight Set MarginRight SetMarginRight(AValue float64) // property // ShouldPrintBackgrounds // `TRUE` if background colors and images should be printed. The default value // is `FALSE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings#get_shouldprintbackgrounds">See the ICoreWebView2PrintSettings article.</a> ShouldPrintBackgrounds() bool // property // SetShouldPrintBackgrounds Set ShouldPrintBackgrounds SetShouldPrintBackgrounds(AValue bool) // property // ShouldPrintSelectionOnly // `TRUE` if only the current end user's selection of HTML in the document // should be printed. The default value is `FALSE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings#get_shouldprintselectiononly">See the ICoreWebView2PrintSettings article.</a> ShouldPrintSelectionOnly() bool // property // SetShouldPrintSelectionOnly Set ShouldPrintSelectionOnly SetShouldPrintSelectionOnly(AValue bool) // property // `TRUE` if header and footer should be printed. The default value is `FALSE`. // The header consists of the date and time of printing, and the title of the // page. The footer consists of the URI and page number. The height of the // header and footer is 0.5 cm, or ~0.2 inches. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings#get_shouldprintheaderandfooter">See the ICoreWebView2PrintSettings article.</a> ShouldPrintHeaderAndFooter() bool // property SetShouldPrintHeaderAndFooter(AValue bool) // property // HeaderTitle // The title in the header if `ShouldPrintHeaderAndFooter` is `TRUE`. The // default value is the title of the current document. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings#get_headertitle">See the ICoreWebView2PrintSettings article.</a> HeaderTitle() string // property // SetHeaderTitle Set HeaderTitle SetHeaderTitle(AValue string) // property // The URI in the footer if `ShouldPrintHeaderAndFooter` is `TRUE`. The // default value is the current URI. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings#get_footeruri">See the ICoreWebView2PrintSettings article.</a> FooterUri() string // property SetFooterUri(AValue string) // property // PageRanges // Page range to print. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings2#get_pageranges">See the ICoreWebView2PrintSettings2 article.</a> PageRanges() string // property // SetPageRanges Set PageRanges SetPageRanges(AValue string) // property // PagesPerSide // Prints multiple pages of a document on a single piece of paper. Choose from 1, 2, 4, 6, 9 or 16. // The default value is 1. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings2#get_pagesperside">See the ICoreWebView2PrintSettings2 article.</a> PagesPerSide() int32 // property // SetPagesPerSide Set PagesPerSide SetPagesPerSide(AValue int32) // property // Copies // Number of copies to print. Minimum value is `1` and the maximum copies count is `999`. // The default value is 1. // This value is ignored in PrintToPdfStream method. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings2#get_copies">See the ICoreWebView2PrintSettings2 article.</a> Copies() int32 // property // SetCopies Set Copies SetCopies(AValue int32) // property // Collation // Printer collation. See `COREWEBVIEW2_PRINT_COLLATION` for descriptions of // collation. The default value is `COREWEBVIEW2_PRINT_COLLATION_DEFAULT`. // Printing uses default value of printer's collation if an invalid value is provided // for the specific printer. This value is ignored in PrintToPdfStream method. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings2#get_collation">See the ICoreWebView2PrintSettings2 article.</a> Collation() TWVPrintCollation // property // SetCollation Set Collation SetCollation(AValue TWVPrintCollation) // property // ColorMode // Printer color mode. See `COREWEBVIEW2_PRINT_COLOR_MODE` for descriptions // of color modes. The default value is `COREWEBVIEW2_PRINT_COLOR_MODE_DEFAULT`. // Printing uses default value of printer supported color if an invalid value is provided // for the specific printer. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings2#get_colormode">See the ICoreWebView2PrintSettings2 article.</a> ColorMode() TWVPrintColorMode // property // SetColorMode Set ColorMode SetColorMode(AValue TWVPrintColorMode) // property // Duplex // Printer duplex settings. See `COREWEBVIEW2_PRINT_DUPLEX` for descriptions of duplex. // The default value is `COREWEBVIEW2_PRINT_DUPLEX_DEFAULT`. // Printing uses default value of printer's duplex if an invalid value is provided // for the specific printer. This value is ignored in PrintToPdfStream method. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings2#get_duplex">See the ICoreWebView2PrintSettings2 article.</a> Duplex() TWVPrintDuplex // property // SetDuplex Set Duplex SetDuplex(AValue TWVPrintDuplex) // property // MediaSize // Printer media size. See `COREWEBVIEW2_PRINT_MEDIA_SIZE` for descriptions of media size. // The default value is `COREWEBVIEW2_PRINT_MEDIA_SIZE_DEFAULT`. // If media size is `COREWEBVIEW2_PRINT_MEDIA_SIZE_CUSTOM`, you should set the `PageWidth` // and `PageHeight`. // Printing uses default value of printer supported media size if an invalid value is provided // for the specific printer. This value is ignored in PrintToPdfStream method. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings2#get_mediasize">See the ICoreWebView2PrintSettings2 article.</a> MediaSize() TWVPrintMediaSize // property // SetMediaSize Set MediaSize SetMediaSize(AValue TWVPrintMediaSize) // property // PrinterName // The name of the printer to use. Defaults to empty string. // If the printer name is empty string or null, then it prints to the default // printer on the user OS. This value is ignored in PrintToPdfStream method. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings2#get_printername">See the ICoreWebView2PrintSettings2 article.</a> PrinterName() string // property // SetPrinterName Set PrinterName SetPrinterName(AValue string) // property }
ICoreWebView2PrintSettings Parent: IObject
Settings used by the PrintToPdf method. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings">See the ICoreWebView2PrintSettings article.</a>
func AsCoreWebView2PrintSettings ¶
func AsCoreWebView2PrintSettings(obj interface{}) ICoreWebView2PrintSettings
AsCoreWebView2PrintSettings Convert a pointer object to an existing class object
func NewCoreWebView2PrintSettings ¶
func NewCoreWebView2PrintSettings(aBaseIntf ICoreWebView2PrintSettings) ICoreWebView2PrintSettings
type ICoreWebView2PrintToPdfCompletedHandler ¶
type ICoreWebView2PrintToPdfCompletedHandler interface { IObject }
ICoreWebView2PrintToPdfCompletedHandler Parent: IObject
Receives the result of the PrintToPdf method. If the print to PDF operation succeeds, isSuccessful is true. Otherwise, if the operation failed, isSuccessful is set to false. An invalid path returns E_INVALIDARG. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printtopdfcompletedhandler">See the ICoreWebView2PrintToPdfCompletedHandler article.</a>
func AsCoreWebView2PrintToPdfCompletedHandler ¶
func AsCoreWebView2PrintToPdfCompletedHandler(obj interface{}) ICoreWebView2PrintToPdfCompletedHandler
AsCoreWebView2PrintToPdfCompletedHandler Convert a pointer object to an existing class object
func NewCoreWebView2PrintToPdfCompletedHandler ¶
func NewCoreWebView2PrintToPdfCompletedHandler(aEvents IWVBrowserEvents) ICoreWebView2PrintToPdfCompletedHandler
type ICoreWebView2PrintToPdfStreamCompletedHandler ¶
type ICoreWebView2PrintToPdfStreamCompletedHandler interface { IObject }
ICoreWebView2PrintToPdfStreamCompletedHandler Parent: IObject
Receives the result of the PrintToPdfStream method. errorCode returns S_OK if the PrintToPdfStream operation succeeded. The printable pdf data is returned in the pdfStream object. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printtopdfstreamcompletedhandler">See the ICoreWebView2PrintToPdfStreamCompletedHandler article.</a>
func AsCoreWebView2PrintToPdfStreamCompletedHandler ¶
func AsCoreWebView2PrintToPdfStreamCompletedHandler(obj interface{}) ICoreWebView2PrintToPdfStreamCompletedHandler
AsCoreWebView2PrintToPdfStreamCompletedHandler Convert a pointer object to an existing class object
func NewCoreWebView2PrintToPdfStreamCompletedHandler ¶
func NewCoreWebView2PrintToPdfStreamCompletedHandler(aEvents IWVBrowserEvents) ICoreWebView2PrintToPdfStreamCompletedHandler
type ICoreWebView2ProcessExtendedInfo ¶
type ICoreWebView2ProcessExtendedInfo interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ProcessExtendedInfo // property // SetBaseIntf Set BaseIntf SetBaseIntf(AValue ICoreWebView2ProcessExtendedInfo) // property // ProcessInfo // The process info of the current process. ProcessInfo() ICoreWebView2ProcessInfo // property // AssociatedFrameInfos // The collection of associated `FrameInfo`s which are actively running // (showing or hiding UI elements) in this renderer process. `AssociatedFrameInfos` // will only be populated when this `ICoreWebView2ProcessExtendedInfo` // corresponds to a renderer process. Non-renderer processes will always // have an empty `AssociatedFrameInfos`. The `AssociatedFrameInfos` may // also be empty for renderer processes that have no active frames. AssociatedFrameInfos() ICoreWebView2FrameInfoCollection // property }
ICoreWebView2ProcessExtendedInfo Parent: IObject
Provides process with associated extended information in the `ICoreWebView2Environment`. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processextendedinfo">See the ICoreWebView2ProcessExtendedInfo article.</a>
func AsCoreWebView2ProcessExtendedInfo ¶
func AsCoreWebView2ProcessExtendedInfo(obj interface{}) ICoreWebView2ProcessExtendedInfo
AsCoreWebView2ProcessExtendedInfo Convert a pointer object to an existing class object
func NewCoreWebView2ProcessExtendedInfo ¶
func NewCoreWebView2ProcessExtendedInfo(aBaseIntf ICoreWebView2ProcessExtendedInfo) ICoreWebView2ProcessExtendedInfo
type ICoreWebView2ProcessExtendedInfoCollection ¶
type ICoreWebView2ProcessExtendedInfoCollection interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ProcessExtendedInfoCollection // property // Count // The number of process contained in the `ICoreWebView2ProcessExtendedInfoCollection`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processextendedinfocollection#get_count">See the ICoreWebView2ProcessExtendedInfoCollection article.</a> Count() uint32 // property // Items // Gets the `ICoreWebView2ProcessExtendedInfo` located in the // `ICoreWebView2ProcessExtendedInfoCollection` at the given index. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processextendedinfocollection#getvalueatindex">See the ICoreWebView2ProcessExtendedInfoCollection article.</a> Items(idx uint32) ICoreWebView2ProcessExtendedInfo // property }
ICoreWebView2ProcessExtendedInfoCollection Parent: IObject
A list containing processInfo and associated extended information. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processextendedinfocollection">See the ICoreWebView2ProcessExtendedInfoCollection article.</a>
func AsCoreWebView2ProcessExtendedInfoCollection ¶
func AsCoreWebView2ProcessExtendedInfoCollection(obj interface{}) ICoreWebView2ProcessExtendedInfoCollection
AsCoreWebView2ProcessExtendedInfoCollection Convert a pointer object to an existing class object
func NewCoreWebView2ProcessExtendedInfoCollection ¶
func NewCoreWebView2ProcessExtendedInfoCollection(aBaseIntf ICoreWebView2ProcessExtendedInfoCollection) ICoreWebView2ProcessExtendedInfoCollection
type ICoreWebView2ProcessFailedEventArgs ¶
type ICoreWebView2ProcessFailedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ProcessFailedEventArgs // property // ProcessFailedKind // The kind of process failure that has occurred. This is a combination of // process kind(for example, browser, renderer, gpu) and failure(exit, // unresponsiveness). Renderer processes are further divided in _main frame_ // renderer(`RenderProcessExited`, `RenderProcessUnresponsive`) and // _subframe_ renderer(`FrameRenderProcessExited`). To learn about the // conditions under which each failure kind occurs, see // `COREWEBVIEW2_PROCESS_FAILED_KIND`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processfailedeventargs#get_processfailedkind">See the ICoreWebView2ProcessFailedEventArgs article.</a> ProcessFailedKind() TWVProcessFailedKind // property // Reason // The reason for the process failure. Some of the reasons are only // applicable to specific values of // `ICoreWebView2ProcessFailedEventArgs.ProcessFailedKind`, and the // following `ProcessFailedKind` values always return the indicated reason // value: // <code> // ProcessFailedKind | Reason // ---|--- // COREWEBVIEW2_PROCESS_FAILED_KIND_BROWSER_PROCESS_EXITED | COREWEBVIEW2_PROCESS_FAILED_REASON_UNEXPECTED // COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_UNRESPONSIVE | COREWEBVIEW2_PROCESS_FAILED_REASON_UNRESPONSIVE // </code> // For other `ProcessFailedKind` values, the reason may be any of the reason // values. To learn about what these values mean, see // `COREWEBVIEW2_PROCESS_FAILED_REASON`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processfailedeventargs2#get_reason">See the ICoreWebView2ProcessFailedEventArgs2 article.</a> Reason() TWVProcessFailedReason // property // ExtiCode // The exit code of the failing process, for telemetry purposes. The exit // code is always `STILL_ACTIVE`(`259`) when `ProcessFailedKind` is // `COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_UNRESPONSIVE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processfailedeventargs2#get_exitcode">See the ICoreWebView2ProcessFailedEventArgs2 article.</a> ExtiCode() int32 // property // ProcessDescription // Description of the process assigned by the WebView2 Runtime. This is a // technical English term appropriate for logging or development purposes, // and not localized for the end user. It applies to utility processes(for // example, "Audio Service", "Video Capture") and plugin processes(for // example, "Flash"). The returned `processDescription` is empty if the // WebView2 Runtime did not assign a description to the process. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processfailedeventargs2#get_processdescription">See the ICoreWebView2ProcessFailedEventArgs2 article.</a> ProcessDescription() string // property // FrameInfosForFailedProcess // The collection of `FrameInfo`s for frames in the `ICoreWebView2` that were // being rendered by the failed process. The content in these frames is // replaced with an error page. // This is only available when `ProcessFailedKind` is // `COREWEBVIEW2_PROCESS_FAILED_KIND_FRAME_RENDER_PROCESS_EXITED`; // `frames` is `null` for all other process failure kinds, including the case // in which the failed process was the renderer for the main frame and // subframes within it, for which the failure kind is // `COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_EXITED`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processfailedeventargs2#get_frameinfosforfailedprocess">See the ICoreWebView2ProcessFailedEventArgs2 article.</a> FrameInfosForFailedProcess() ICoreWebView2FrameInfoCollection // property }
ICoreWebView2ProcessFailedEventArgs Parent: IObject
Event args for the ProcessFailed event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processfailedeventargs">See the ICoreWebView2ProcessFailedEventArgs article.</a>
func AsCoreWebView2ProcessFailedEventArgs ¶
func AsCoreWebView2ProcessFailedEventArgs(obj interface{}) ICoreWebView2ProcessFailedEventArgs
AsCoreWebView2ProcessFailedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2ProcessFailedEventArgs ¶
func NewCoreWebView2ProcessFailedEventArgs(aArgs ICoreWebView2ProcessFailedEventArgs) ICoreWebView2ProcessFailedEventArgs
type ICoreWebView2ProcessInfo ¶
type ICoreWebView2ProcessInfo interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ProcessInfo // property // SetBaseIntf Set BaseIntf SetBaseIntf(AValue ICoreWebView2ProcessInfo) // property // Kind // The kind of the process. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processinfo#get_kind">See the ICoreWebView2ProcessInfo article.</a> Kind() TWVProcessKind // property // KindStr // The kind of the process in string format. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processinfo#get_kind">See the ICoreWebView2ProcessInfo article.</a> KindStr() string // property // ProcessId // The process id of the process. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processinfo#get_processid">See the ICoreWebView2ProcessInfo article.</a> ProcessId() int32 // property }
ICoreWebView2ProcessInfo Parent: IObject
Provides a set of properties for a process in the ICoreWebView2Environment. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processinfo">See the ICoreWebView2ProcessInfo article.</a>
func AsCoreWebView2ProcessInfo ¶
func AsCoreWebView2ProcessInfo(obj interface{}) ICoreWebView2ProcessInfo
AsCoreWebView2ProcessInfo Convert a pointer object to an existing class object
func NewCoreWebView2ProcessInfo ¶
func NewCoreWebView2ProcessInfo(aBaseIntf ICoreWebView2ProcessInfo) ICoreWebView2ProcessInfo
type ICoreWebView2ProcessInfoCollection ¶
type ICoreWebView2ProcessInfoCollection interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ProcessInfoCollection // property // Count // The number of process contained in the ICoreWebView2ProcessInfoCollection. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processinfocollection#get_count">See the ICoreWebView2ProcessInfoCollection article.</a> Count() uint32 // property // Items // Gets the `ICoreWebView2ProcessInfo` located in the `ICoreWebView2ProcessInfoCollection` // at the given index. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processinfocollection#getvalueatindex">See the ICoreWebView2ProcessInfoCollection article.</a> Items(idx uint32) ICoreWebView2ProcessInfo // property }
ICoreWebView2ProcessInfoCollection Parent: IObject
A list containing process id and corresponding process type. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processinfocollection">See the ICoreWebView2ProcessInfoCollection article.</a>
func AsCoreWebView2ProcessInfoCollection ¶
func AsCoreWebView2ProcessInfoCollection(obj interface{}) ICoreWebView2ProcessInfoCollection
AsCoreWebView2ProcessInfoCollection Convert a pointer object to an existing class object
func NewCoreWebView2ProcessInfoCollection ¶
func NewCoreWebView2ProcessInfoCollection(aBaseIntf ICoreWebView2ProcessInfoCollection) ICoreWebView2ProcessInfoCollection
type ICoreWebView2Profile ¶
type ICoreWebView2Profile interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2Profile // property // SetBaseIntf Set BaseIntf SetBaseIntf(AValue ICoreWebView2Profile) // property // ProfileName // Name of the profile. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_profilename">See the ICoreWebView2Profile article.</a> ProfileName() string // property // IsInPrivateModeEnabled // InPrivate mode is enabled or not. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_isinprivatemodeenabled">See the ICoreWebView2Profile article.</a> IsInPrivateModeEnabled() bool // property // ProfilePath // Full path of the profile directory. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_profilepath">See the ICoreWebView2Profile article.</a> ProfilePath() string // property // DefaultDownloadFolderPath // Gets the `DefaultDownloadFolderPath` property. The default value is the // system default download folder path for the user. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_defaultdownloadfolderpath">See the ICoreWebView2Profile article.</a> DefaultDownloadFolderPath() string // property // SetDefaultDownloadFolderPath Set DefaultDownloadFolderPath SetDefaultDownloadFolderPath(AValue string) // property // PreferredColorScheme // The PreferredColorScheme property sets the overall color scheme of the // WebView2s associated with this profile. This sets the color scheme for // WebView2 UI like dialogs, prompts, and context menus by setting the // media feature `prefers-color-scheme` for websites to respond to. // The default value for this is COREWEBVIEW2_PREFERRED_COLOR_AUTO, // which will follow whatever theme the OS is currently set to. // Returns the value of the `PreferredColorScheme` property. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_preferredcolorscheme">See the ICoreWebView2Profile article.</a> PreferredColorScheme() TWVPreferredColorScheme // property // SetPreferredColorScheme Set PreferredColorScheme SetPreferredColorScheme(AValue TWVPreferredColorScheme) // property // PreferredTrackingPreventionLevel // The `PreferredTrackingPreventionLevel` property allows you to control levels of tracking prevention for WebView2 // which are associated with a profile. This level would apply to the context of the profile. That is, all WebView2s // sharing the same profile will be affected and also the value is persisted in the user data folder. // See `COREWEBVIEW2_TRACKING_PREVENTION_LEVEL` for descriptions of levels. // If tracking prevention feature is enabled when creating the WebView2 environment, you can also disable tracking // prevention later using this property and `COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_NONE` value but that doesn't // improves runtime performance. // There is `ICoreWebView2EnvironmentOptions5::EnableTrackingPrevention` property to enable/disable tracking prevention feature // for all the WebView2's created in the same environment. If enabled, `PreferredTrackingPreventionLevel` is set to // `COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_BALANCED` by default for all the WebView2's and profiles created in the same // environment or is set to the level whatever value was last changed/persisted to the profile. If disabled // `PreferredTrackingPreventionLevel` is not respected by WebView2. If `PreferredTrackingPreventionLevel` is set when the // feature is disabled, the property value get changed and persisted but it will takes effect only if // `ICoreWebView2EnvironmentOptions5::EnableTrackingPrevention` is true. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile3#get_preferredtrackingpreventionlevel">See the ICoreWebView2Profile3 article.</a> PreferredTrackingPreventionLevel() TWVTrackingPreventionLevel // property // SetPreferredTrackingPreventionLevel Set PreferredTrackingPreventionLevel SetPreferredTrackingPreventionLevel(AValue TWVTrackingPreventionLevel) // property // CookieManager // Get the cookie manager for the profile. All CoreWebView2s associated with this // profile share the same cookie values. Changes to cookies in this cookie manager apply to all // CoreWebView2s associated with this profile. See ICoreWebView2CookieManager. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile5#get_cookiemanager">See the ICoreWebView2Profile5 article.</a> CookieManager() ICoreWebView2CookieManager // property // IsPasswordAutosaveEnabled // IsPasswordAutosaveEnabled controls whether autosave for password // information is enabled. The IsPasswordAutosaveEnabled property behaves // independently of the IsGeneralAutofillEnabled property. When IsPasswordAutosaveEnabled is // false, no new password data is saved and no Save/Update Password prompts are displayed. // However, if there was password data already saved before disabling this setting, // then that password information is auto-populated, suggestions are shown and clicking on // one will populate the fields. // When IsPasswordAutosaveEnabled is true, password information is auto-populated, // suggestions are shown and clicking on one will populate the fields, new data // is saved, and a Save/Update Password prompt is displayed. // It will take effect immediately after setting. The default value is `FALSE`. // This property has the same value as // `CoreWebView2Settings.IsPasswordAutosaveEnabled`, and changing one will // change the other. All `CoreWebView2`s with the same `CoreWebView2Profile` // will share the same value for this property, so for the `CoreWebView2`s // with the same profile, their // `CoreWebView2Settings.IsPasswordAutosaveEnabled` and // `CoreWebView2Profile.IsPasswordAutosaveEnabled` will always have the same // value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile6#get_ispasswordautosaveenabled">See the ICoreWebView2Profile6 article.</a> IsPasswordAutosaveEnabled() bool // property // SetIsPasswordAutosaveEnabled Set IsPasswordAutosaveEnabled SetIsPasswordAutosaveEnabled(AValue bool) // property // IsGeneralAutofillEnabled // IsGeneralAutofillEnabled controls whether autofill for information // like names, street and email addresses, phone numbers, and arbitrary input // is enabled. This excludes password and credit card information. When // IsGeneralAutofillEnabled is false, no suggestions appear, and no new information // is saved. When IsGeneralAutofillEnabled is true, information is saved, suggestions // appear and clicking on one will populate the form fields. // It will take effect immediately after setting. The default value is `TRUE`. // This property has the same value as // `CoreWebView2Settings.IsGeneralAutofillEnabled`, and changing one will // change the other. All `CoreWebView2`s with the same `CoreWebView2Profile` // will share the same value for this property, so for the `CoreWebView2`s // with the same profile, their // `CoreWebView2Settings.IsGeneralAutofillEnabled` and // `CoreWebView2Profile.IsGeneralAutofillEnabled` will always have the same // value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile6#get_isgeneralautofillenabled">See the ICoreWebView2Profile6 article.</a> IsGeneralAutofillEnabled() bool // property // SetIsGeneralAutofillEnabled Set IsGeneralAutofillEnabled SetIsGeneralAutofillEnabled(AValue bool) // property // AddAllBrowserEvents // Adds all the events of this class to an existing TWVBrowserBase instance. // <param name="aBrowserComponent">The TWVBrowserBase instance.</param> AddAllBrowserEvents(aBrowserComponent IComponent) bool // function // ClearBrowsingData // Clear browsing data based on a data type. This method takes two parameters, // the first being a mask of one or more `COREWEBVIEW2_BROWSING_DATA_KINDS`. OR // operation(s) can be applied to multiple `COREWEBVIEW2_BROWSING_DATA_KINDS` to // create a mask representing those data types. The browsing data kinds that are // supported are listed below. These data kinds follow a hierarchical structure in // which nested bullet points are included in their parent bullet point's data kind. // Ex: All DOM storage is encompassed in all site data which is encompassed in // all profile data.<code> // * All Profile // * All Site Data // * All DOM Storage: File Systems, Indexed DB, Local Storage, Web SQL, Cache // Storage // * Cookies // * Disk Cache // * Download History // * General Autofill // * Password Autosave // * Browsing History // * Settings</code> // The completed handler will be invoked when the browsing data has been cleared and // will indicate if the specified data was properly cleared. In the case in which // the operation is interrupted and the corresponding data is not fully cleared // the handler will return `E_ABORT` and otherwise will return `S_OK`. // Because this is an asynchronous operation, code that is dependent on the cleared // data must be placed in the callback of this operation. // If the WebView object is closed before the clear browsing data operation // has completed, the handler will be released, but not invoked. In this case // the clear browsing data operation may or may not be completed. // ClearBrowsingData clears the `dataKinds` regardless of timestamp. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdata">See the ICoreWebView2Profile2 article.</a> ClearBrowsingData(dataKinds TWVBrowsingDataKinds, handler ICoreWebView2ClearBrowsingDataCompletedHandler) bool // function // ClearBrowsingDataInTimeRange // ClearBrowsingDataInTimeRange behaves like ClearBrowsingData except that it // takes in two additional parameters for the start and end time for which it // should clear the data between. The `startTime` and `endTime` // parameters correspond to the number of seconds since the UNIX epoch. // `startTime` is inclusive while `endTime` is exclusive, therefore the data will // be cleared between [startTime, endTime). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdataintimerange">See the ICoreWebView2Profile2 article.</a> ClearBrowsingDataInTimeRange(dataKinds TWVBrowsingDataKinds, startTime, endTime float64, handler ICoreWebView2ClearBrowsingDataCompletedHandler) bool // function // ClearBrowsingDataAll // ClearBrowsingDataAll behaves like ClearBrowsingData except that it // clears the entirety of the data associated with the profile it is called on. // It clears the data regardless of timestamp. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdataall">See the ICoreWebView2Profile2 article.</a> ClearBrowsingDataAll(handler ICoreWebView2ClearBrowsingDataCompletedHandler) bool // function // SetPermissionState // Sets permission state for the given permission kind and origin // asynchronously. The change persists across sessions until it is changed by // another call to `SetPermissionState`, or by setting the `State` property // in `PermissionRequestedEventArgs`. Setting the state to // `COREWEBVIEW2_PERMISSION_STATE_DEFAULT` will erase any state saved in the // profile and restore the default behavior. // The origin should have a valid scheme and host(e.g. "https://www.example.com"), // otherwise the method fails with `E_INVALIDARG`. Additional URI parts like // path and fragment are ignored. For example, "https://wwww.example.com/app1/index.html/" // is treated the same as "https://wwww.example.com". See the // [MDN origin definition](https://developer.mozilla.org/en-US/docs/Glossary/Origin) // for more details. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile4#setpermissionstate">See the ICoreWebView2Profile4 article.</a> SetPermissionState(PermissionKind TWVPermissionKind, origin string, State TWVPermissionState, completedHandler ICoreWebView2SetPermissionStateCompletedHandler) bool // function // GetNonDefaultPermissionSettings // Invokes the handler with a collection of all nondefault permission settings. // Use this method to get the permission state set in the current and previous // sessions. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile4#getnondefaultpermissionsettings">See the ICoreWebView2Profile4 article.</a> GetNonDefaultPermissionSettings(completedHandler ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler) bool // function // AddBrowserExtension // Adds the [browser extension](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions) // using the extension path for unpacked extensions from the local device. Extension is // running right after installation. // The extension folder path is the topmost folder of an unpacked browser extension and // contains the browser extension manifest file. // If the `extensionFolderPath` is an invalid path or doesn't contain the extension manifest.json // file, this function will return `ERROR_FILE_NOT_FOUND` to callers. // Installed extension will default `IsEnabled` to true. // When `AreBrowserExtensionsEnabled` is `FALSE`, `AddBrowserExtension` will fail and return // HRESULT `ERROR_NOT_SUPPORTED`. // During installation, the content of the extension is not copied to the user data folder. // Once the extension is installed, changing the content of the extension will cause the // extension to be removed from the installed profile. // When an extension is added the extension is persisted in the corresponding profile. The // extension will still be installed the next time you use this profile. // When an extension is installed from a folder path, adding the same extension from the same // folder path means reinstalling this extension. When two extensions with the same Id are // installed, only the later installed extension will be kept. // Extensions that are designed to include any UI interactions(e.g. icon, badge, pop up, etc.) // can be loaded and used but will have missing UI entry points due to the lack of browser // UI elements to host these entry points in WebView2. // The following summarizes the possible error values that can be returned from // `AddBrowserExtension` and a description of why these errors occur. // <code> // Error value | Description // ----------------------------------------------- | -------------------------- // `HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)` | Extensions are disabled. // `HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)` | Cannot find `manifest.json` file or it is not a valid extension manifest. // `E_ACCESSDENIED` | Cannot load extension with file or directory name starting with \"_\", reserved for use by the system. // `E_FAIL` | Extension failed to install with other unknown reasons. // </code> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile7#addbrowserextension">See the ICoreWebView2Profile7 article.</a> AddBrowserExtension(extensionFolderPath string, completedHandler ICoreWebView2ProfileAddBrowserExtensionCompletedHandler) bool // function // GetBrowserExtensions // Gets a snapshot of the set of extensions installed at the time `GetBrowserExtensions` is // called. If an extension is installed or uninstalled after `GetBrowserExtensions` completes, // the list returned by `GetBrowserExtensions` remains the same. // When `AreBrowserExtensionsEnabled` is `FALSE`, `GetBrowserExtensions` won't return any // extensions on current user profile. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile7#getbrowserextensions">See the ICoreWebView2Profile7 article.</a> GetBrowserExtensions(completedHandler ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler) bool // function // Delete // After the API is called, the profile will be marked for deletion. The // local profile's directory will be deleted at browser process exit. If it // fails to delete, because something else is holding the files open, // WebView2 will try to delete the profile at all future browser process // starts until successful. // The corresponding CoreWebView2s will be closed and the // ICoreWebView2Profile.Deleted event will be raised. See // `ICoreWebView2Profile.Deleted` for more information. // If you try to create a new profile with the same name as an existing // profile that has been marked as deleted but hasn't yet been deleted, // profile creation will fail with HRESULT_FROM_WIN32(ERROR_DELETE_PENDING). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile8#delete">See the ICoreWebView2Profile8 article.</a> Delete() bool // function }
ICoreWebView2Profile Parent: IObject
Provides a set of properties to configure a Profile object. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile">See the ICoreWebView2Profile article.</a>
func AsCoreWebView2Profile ¶
func AsCoreWebView2Profile(obj interface{}) ICoreWebView2Profile
AsCoreWebView2Profile Convert a pointer object to an existing class object
func NewCoreWebView2Profile ¶
func NewCoreWebView2Profile(aBaseIntf ICoreWebView2Profile) ICoreWebView2Profile
type ICoreWebView2ProfileAddBrowserExtensionCompletedHandler ¶
type ICoreWebView2ProfileAddBrowserExtensionCompletedHandler interface { IObject }
ICoreWebView2ProfileAddBrowserExtensionCompletedHandler Parent: IObject
The caller implements this interface to receive the result of loading an browser Extension. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profileaddbrowserextensioncompletedhandler">See the ICoreWebView2ProfileAddBrowserExtensionCompletedHandler article.</a>
func AsCoreWebView2ProfileAddBrowserExtensionCompletedHandler ¶
func AsCoreWebView2ProfileAddBrowserExtensionCompletedHandler(obj interface{}) ICoreWebView2ProfileAddBrowserExtensionCompletedHandler
AsCoreWebView2ProfileAddBrowserExtensionCompletedHandler Convert a pointer object to an existing class object
func NewCoreWebView2ProfileAddBrowserExtensionCompletedHandler ¶
func NewCoreWebView2ProfileAddBrowserExtensionCompletedHandler(aEvents IWVBrowserEvents) ICoreWebView2ProfileAddBrowserExtensionCompletedHandler
type ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler ¶
type ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler interface { IObject }
ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler Parent: IObject
The caller implements this interface to receive the result of getting the browser Extensions. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profilegetbrowserextensionscompletedhandler">See the ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler article.</a>
func AsCoreWebView2ProfileGetBrowserExtensionsCompletedHandler ¶
func AsCoreWebView2ProfileGetBrowserExtensionsCompletedHandler(obj interface{}) ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler
AsCoreWebView2ProfileGetBrowserExtensionsCompletedHandler Convert a pointer object to an existing class object
func NewCoreWebView2ProfileGetBrowserExtensionsCompletedHandler ¶
func NewCoreWebView2ProfileGetBrowserExtensionsCompletedHandler(aEvents IWVBrowserEvents) ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler
type ICoreWebView2ScriptDialogOpeningEventArgs ¶
type ICoreWebView2ScriptDialogOpeningEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ScriptDialogOpeningEventArgs // property // URI // The URI of the page that requested the dialog box. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2scriptdialogopeningeventargs#get_uri">See the ICoreWebView2ScriptDialogOpeningEventArgs article.</a> URI() string // property // Kind // The kind of JavaScript dialog box. `alert`, `confirm`, `prompt`, or // `beforeunload`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2scriptdialogopeningeventargs#get_kind">See the ICoreWebView2ScriptDialogOpeningEventArgs article.</a> Kind() TWVScriptDialogKind // property // Message // The message of the dialog box. From JavaScript this is the first // parameter passed to `alert`, `confirm`, and `prompt` and is empty for // `beforeunload`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2scriptdialogopeningeventargs#get_message">See the ICoreWebView2ScriptDialogOpeningEventArgs article.</a> Message() string // property // DefaultText // The second parameter passed to the JavaScript prompt dialog. // The result of the prompt JavaScript function uses this value as the // default value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2scriptdialogopeningeventargs#get_defaulttext">See the ICoreWebView2ScriptDialogOpeningEventArgs article.</a> DefaultText() string // property // ResultText // The return value from the JavaScript prompt function if `Accept` is run. // This value is ignored for dialog kinds other than prompt. If `Accept` // is not run, this value is ignored and `FALSE` is returned from prompt. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2scriptdialogopeningeventargs#get_resulttext">See the ICoreWebView2ScriptDialogOpeningEventArgs article.</a> ResultText() string // property // SetResultText Set ResultText SetResultText(AValue string) // property // Deferral // Returns an `ICoreWebView2Deferral` object. Use this operation to // complete the event at a later time. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2scriptdialogopeningeventargs#getdeferral">See the ICoreWebView2ScriptDialogOpeningEventArgs article.</a> Deferral() ICoreWebView2Deferral // property // Accept // The host may run this to respond with **OK** to `confirm`, `prompt`, and // `beforeunload` dialogs. Do not run this method to indicate cancel. // From JavaScript, this means that the `confirm` and `beforeunload` function // returns `TRUE` if `Accept` is run. And for the prompt function it returns // the value of `ResultText` if `Accept` is run and otherwise returns // `FALSE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2scriptdialogopeningeventargs#accept">See the ICoreWebView2ScriptDialogOpeningEventArgs article.</a> Accept() bool // function }
ICoreWebView2ScriptDialogOpeningEventArgs Parent: IObject
Event args for the ScriptDialogOpening event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2scriptdialogopeningeventargs">See the ICoreWebView2ScriptDialogOpeningEventArgs article.</a>
func AsCoreWebView2ScriptDialogOpeningEventArgs ¶
func AsCoreWebView2ScriptDialogOpeningEventArgs(obj interface{}) ICoreWebView2ScriptDialogOpeningEventArgs
AsCoreWebView2ScriptDialogOpeningEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2ScriptDialogOpeningEventArgs ¶
func NewCoreWebView2ScriptDialogOpeningEventArgs(aArgs ICoreWebView2ScriptDialogOpeningEventArgs) ICoreWebView2ScriptDialogOpeningEventArgs
type ICoreWebView2ScriptException ¶
type ICoreWebView2ScriptException interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ScriptException // property // LineNumber // The line number of the source where the exception occurred. // In the JSON it is `exceptionDetail.lineNumber`. // Note that this position starts at 0. LineNumber() uint32 // property // ColumnNumber // The column number of the source where the exception occurred. // In the JSON it is `exceptionDetail.columnNumber`. // Note that this position starts at 0. ColumnNumber() uint32 // property // Name // The Name is the exception's class name. // In the JSON it is `exceptionDetail.exception.className`. // This is the empty string if the exception doesn't have a class name. // This can happen if the script throws a non-Error object such as `throw "abc";` Name() string // property // Message // The Message is the exception's message and potentially stack. // In the JSON it is exceptionDetail.exception.description. // This is the empty string if the exception doesn't have a description. // This can happen if the script throws a non-Error object such as throw "abc";. Message() string // property // ToJson // This will return all details of the exception as a JSON string. // In the case that script has thrown a non-Error object such as `throw "abc";` // or any other non-Error object, you can get object specific properties. ToJson() string // function }
ICoreWebView2ScriptException Parent: IObject
This interface represents a JavaScript exception. If the CoreWebView2.ExecuteScriptWithResult result has Succeeded as false, you can use the result's Exception property to get the script exception. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2scriptexception">See the ICoreWebView2ScriptException article.</a>
func AsCoreWebView2ScriptException ¶
func AsCoreWebView2ScriptException(obj interface{}) ICoreWebView2ScriptException
AsCoreWebView2ScriptException Convert a pointer object to an existing class object
func NewCoreWebView2ScriptException ¶
func NewCoreWebView2ScriptException(aBaseIntf ICoreWebView2ScriptException) ICoreWebView2ScriptException
type ICoreWebView2ServerCertificateErrorDetectedEventArgs ¶
type ICoreWebView2ServerCertificateErrorDetectedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2ServerCertificateErrorDetectedEventArgs // property // ErrorStatus // The TLS error code for the invalid certificate. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2servercertificateerrordetectedeventargs#get_errorstatus">See the ICoreWebView2ServerCertificateErrorDetectedEventArgs article.</a> ErrorStatus() TWVWebErrorStatus // property // RequestUri // URI associated with the request for the invalid certificate. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2servercertificateerrordetectedeventargs#get_requesturi">See the ICoreWebView2ServerCertificateErrorDetectedEventArgs article.</a> RequestUri() string // property // ServerCertificate // Returns the server certificate. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2servercertificateerrordetectedeventargs#get_servercertificate">See the ICoreWebView2ServerCertificateErrorDetectedEventArgs article.</a> ServerCertificate() ICoreWebView2Certificate // property // Action // The action of the server certificate error detection. // The default value is `COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION_DEFAULT`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2servercertificateerrordetectedeventargs#get_action">See the ICoreWebView2ServerCertificateErrorDetectedEventArgs article.</a> Action() TWVServerCertificateErrorAction // property // SetAction Set Action SetAction(AValue TWVServerCertificateErrorAction) // property // Deferral // Returns an `ICoreWebView2Deferral` object. Use this operation to // complete the event at a later time. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2servercertificateerrordetectedeventargs#getdeferral">See the ICoreWebView2ServerCertificateErrorDetectedEventArgs article.</a> Deferral() ICoreWebView2Deferral // property }
ICoreWebView2ServerCertificateErrorDetectedEventArgs Parent: IObject
Event args for the ServerCertificateErrorDetected event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2servercertificateerrordetectedeventargs">See the ICoreWebView2ServerCertificateErrorDetectedEventArgs article.</a>
func AsCoreWebView2ServerCertificateErrorDetectedEventArgs ¶
func AsCoreWebView2ServerCertificateErrorDetectedEventArgs(obj interface{}) ICoreWebView2ServerCertificateErrorDetectedEventArgs
AsCoreWebView2ServerCertificateErrorDetectedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2ServerCertificateErrorDetectedEventArgs ¶
func NewCoreWebView2ServerCertificateErrorDetectedEventArgs(aArgs ICoreWebView2ServerCertificateErrorDetectedEventArgs) ICoreWebView2ServerCertificateErrorDetectedEventArgs
type ICoreWebView2SetPermissionStateCompletedHandler ¶
type ICoreWebView2SetPermissionStateCompletedHandler interface { IObject }
ICoreWebView2SetPermissionStateCompletedHandler Parent: IObject
The caller implements this interface to handle the result of SetPermissionState. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2setpermissionstatecompletedhandler">See the ICoreWebView2SetPermissionStateCompletedHandler article.</a>
func AsCoreWebView2SetPermissionStateCompletedHandler ¶
func AsCoreWebView2SetPermissionStateCompletedHandler(obj interface{}) ICoreWebView2SetPermissionStateCompletedHandler
AsCoreWebView2SetPermissionStateCompletedHandler Convert a pointer object to an existing class object
func NewCoreWebView2SetPermissionStateCompletedHandler ¶
func NewCoreWebView2SetPermissionStateCompletedHandler(aEvents IWVBrowserEvents) ICoreWebView2SetPermissionStateCompletedHandler
type ICoreWebView2Settings ¶
type ICoreWebView2Settings interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2Settings // property // IsBuiltInErrorPageEnabled // The `IsBuiltInErrorPageEnabled` property is used to disable built in // error page for navigation failure and render process failure. When // disabled, a blank page is displayed when the related error happens. // The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_isbuiltinerrorpageenabled">See the ICoreWebView2Settings article.</a> IsBuiltInErrorPageEnabled() bool // property // SetIsBuiltInErrorPageEnabled Set IsBuiltInErrorPageEnabled SetIsBuiltInErrorPageEnabled(AValue bool) // property // AreDefaultContextMenusEnabled // The `AreDefaultContextMenusEnabled` property is used to prevent default // context menus from being shown to user in WebView. // The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_aredefaultcontextmenusenabled">See the ICoreWebView2Settings article.</a> AreDefaultContextMenusEnabled() bool // property // SetAreDefaultContextMenusEnabled Set AreDefaultContextMenusEnabled SetAreDefaultContextMenusEnabled(AValue bool) // property // AreDefaultScriptDialogsEnabled // `AreDefaultScriptDialogsEnabled` is used when loading a new HTML // document. If set to `FALSE`, WebView2 does not render the default JavaScript // dialog box(Specifically those displayed by the JavaScript alert, // confirm, prompt functions and `beforeunload` event). Instead, if an // event handler is set using `add_ScriptDialogOpening`, WebView sends an // event that contains all of the information for the dialog and allow the // host app to show a custom UI. // The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_aredefaultscriptdialogsenabled">See the ICoreWebView2Settings article.</a> AreDefaultScriptDialogsEnabled() bool // property // SetAreDefaultScriptDialogsEnabled Set AreDefaultScriptDialogsEnabled SetAreDefaultScriptDialogsEnabled(AValue bool) // property // AreDevToolsEnabled // `AreDevToolsEnabled` controls whether the user is able to use the context // menu or keyboard shortcuts to open the DevTools window. // The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_aredevtoolsenabled">See the ICoreWebView2Settings article.</a> AreDevToolsEnabled() bool // property // SetAreDevToolsEnabled Set AreDevToolsEnabled SetAreDevToolsEnabled(AValue bool) // property // IsScriptEnabled // Controls if running JavaScript is enabled in all future navigations in // the WebView. This only affects scripts in the document. Scripts // injected with `ExecuteScript` runs even if script is disabled. // The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_isscriptenabled">See the ICoreWebView2Settings article.</a> IsScriptEnabled() bool // property // SetIsScriptEnabled Set IsScriptEnabled SetIsScriptEnabled(AValue bool) // property // IsStatusBarEnabled // `IsStatusBarEnabled` controls whether the status bar is displayed. The // status bar is usually displayed in the lower left of the WebView and // shows things such as the URI of a link when the user hovers over it and // other information. The default value is `TRUE`. The status bar UI can be // altered by web content and should not be considered secure. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_isstatusbarenabled">See the ICoreWebView2Settings article.</a> IsStatusBarEnabled() bool // property // SetIsStatusBarEnabled Set IsStatusBarEnabled SetIsStatusBarEnabled(AValue bool) // property // IsWebMessageEnabled // The `IsWebMessageEnabled` property is used when loading a new HTML // document. If set to `TRUE`, communication from the host to the top-level // HTML document of the WebView is allowed using `PostWebMessageAsJson`, // `PostWebMessageAsString`, and message event of `window.chrome.webview`. // For more information, navigate to PostWebMessageAsJson. Communication // from the top-level HTML document of the WebView to the host is allowed // using the postMessage function of `window.chrome.webview` and // `add_WebMessageReceived` method. For more information, navigate to // [add_WebMessageReceived](/microsoft-edge/webview2/reference/win32/icorewebview2#add_webmessagereceived). // If set to false, then communication is disallowed. `PostWebMessageAsJson` // and `PostWebMessageAsString` fails with `E_ACCESSDENIED` and // `window.chrome.webview.postMessage` fails by throwing an instance of an // `Error` object. The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_iswebmessageenabled">See the ICoreWebView2Settings article.</a> IsWebMessageEnabled() bool // property // SetIsWebMessageEnabled Set IsWebMessageEnabled SetIsWebMessageEnabled(AValue bool) // property // IsZoomControlEnabled // The `IsZoomControlEnabled` property is used to prevent the user from // impacting the zoom of the WebView. When disabled, the user is not able // to zoom using Ctrl++, Ctrl+-, or Ctrl+mouse wheel, but the zoom // is set using `ZoomFactor` API. The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_iszoomcontrolenabled">See the ICoreWebView2Settings article.</a> IsZoomControlEnabled() bool // property // SetIsZoomControlEnabled Set IsZoomControlEnabled SetIsZoomControlEnabled(AValue bool) // property // AreHostObjectsAllowed // The `AreHostObjectsAllowed` property is used to control whether host // objects are accessible from the page in WebView. // The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_arehostobjectsallowed">See the ICoreWebView2Settings article.</a> AreHostObjectsAllowed() bool // property // SetAreHostObjectsAllowed Set AreHostObjectsAllowed SetAreHostObjectsAllowed(AValue bool) // property // UserAgent // Returns the User Agent. The default value is the default User Agent of the // Microsoft Edge browser. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings2#get_useragent">See the ICoreWebView2Settings2 article.</a> UserAgent() string // property // SetUserAgent Set UserAgent SetUserAgent(AValue string) // property // AreBrowserAcceleratorKeysEnabled // When this setting is set to FALSE, it disables all accelerator keys that // access features specific to a web browser, including but not limited to: // - Ctrl-F and F3 for Find on Page // - Ctrl-P for Print // - Ctrl-R and F5 for Reload // - Ctrl-Plus and Ctrl-Minus for zooming // - Ctrl-Shift-C and F12 for DevTools // - Special keys for browser functions, such as Back, Forward, and Search // It does not disable accelerator keys related to movement and text editing, // such as: // - Home, End, Page Up, and Page Down // - Ctrl-X, Ctrl-C, Ctrl-V // - Ctrl-A for Select All // - Ctrl-Z for Undo // Those accelerator keys will always be enabled unless they are handled in // the `AcceleratorKeyPressed` event. // This setting has no effect on the `AcceleratorKeyPressed` event. The event // will be fired for all accelerator keys, whether they are enabled or not. // The default value for `AreBrowserAcceleratorKeysEnabled` is TRUE. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings3#get_arebrowseracceleratorkeysenabled">See the ICoreWebView2Settings3 article.</a> AreBrowserAcceleratorKeysEnabled() bool // property // SetAreBrowserAcceleratorKeysEnabled Set AreBrowserAcceleratorKeysEnabled SetAreBrowserAcceleratorKeysEnabled(AValue bool) // property // IsPasswordAutosaveEnabled // IsPasswordAutosaveEnabled controls whether autosave for password // information is enabled. The IsPasswordAutosaveEnabled property behaves // independently of the IsGeneralAutofillEnabled property. When IsPasswordAutosaveEnabled is // false, no new password data is saved and no Save/Update Password prompts are displayed. // However, if there was password data already saved before disabling this setting, // then that password information is auto-populated, suggestions are shown and clicking on // one will populate the fields. // When IsPasswordAutosaveEnabled is true, password information is auto-populated, // suggestions are shown and clicking on one will populate the fields, new data // is saved, and a Save/Update Password prompt is displayed. // It will take effect immediately after setting. // The default value is `FALSE`. // This property has the same value as // `CoreWebView2Profile.IsPasswordAutosaveEnabled`, and changing one will // change the other. All `CoreWebView2`s with the same `CoreWebView2Profile` // will share the same value for this property, so for the `CoreWebView2`s // with the same profile, their // `CoreWebView2Settings.IsPasswordAutosaveEnabled` and // `CoreWebView2Profile.IsPasswordAutosaveEnabled` will always have the same // value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings4#get_ispasswordautosaveenabled">See the ICoreWebView2Settings4 article.</a> IsPasswordAutosaveEnabled() bool // property // SetIsPasswordAutosaveEnabled Set IsPasswordAutosaveEnabled SetIsPasswordAutosaveEnabled(AValue bool) // property // IsGeneralAutofillEnabled // IsGeneralAutofillEnabled controls whether autofill for information // like names, street and email addresses, phone numbers, and arbitrary input // is enabled. This excludes password and credit card information. When // IsGeneralAutofillEnabled is false, no suggestions appear, and no new information // is saved. When IsGeneralAutofillEnabled is true, information is saved, suggestions // appear and clicking on one will populate the form fields. // It will take effect immediately after setting. // The default value is `TRUE`. // This property has the same value as // `CoreWebView2Profile.IsGeneralAutofillEnabled`, and changing one will // change the other. All `CoreWebView2`s with the same `CoreWebView2Profile` // will share the same value for this property, so for the `CoreWebView2`s // with the same profile, their // `CoreWebView2Settings.IsGeneralAutofillEnabled` and // `CoreWebView2Profile.IsGeneralAutofillEnabled` will always have the same // value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings4#get_isgeneralautofillenabled">See the ICoreWebView2Settings4 article.</a> IsGeneralAutofillEnabled() bool // property // SetIsGeneralAutofillEnabled Set IsGeneralAutofillEnabled SetIsGeneralAutofillEnabled(AValue bool) // property // IsPinchZoomEnabled // Pinch-zoom, referred to as "Page Scale" zoom, is performed as a post-rendering step, // it changes the page scale factor property and scales the surface the web page is // rendered onto when user performs a pinch zooming action. It does not change the layout // but rather changes the viewport and clips the web content, the content outside of the // viewport isn't visible onscreen and users can't reach this content using mouse. // The `IsPinchZoomEnabled` property enables or disables the ability of // the end user to use a pinching motion on touch input enabled devices // to scale the web content in the WebView2. It defaults to `TRUE`. // When set to `FALSE`, the end user cannot pinch zoom after the next navigation. // Disabling/Enabling `IsPinchZoomEnabled` only affects the end user's ability to use // pinch motions and does not change the page scale factor. // This API only affects the Page Scale zoom and has no effect on the // existing browser zoom properties(`IsZoomControlEnabled` and `ZoomFactor`) // or other end user mechanisms for zooming. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings5#get_ispinchzoomenabled">See the ICoreWebView2Settings5 article.</a> IsPinchZoomEnabled() bool // property // SetIsPinchZoomEnabled Set IsPinchZoomEnabled SetIsPinchZoomEnabled(AValue bool) // property // The `IsSwipeNavigationEnabled` property enables or disables the ability of the // end user to use swiping gesture on touch input enabled devices to // navigate in WebView2. It defaults to `TRUE`. // When this property is `TRUE`, then all configured navigation gestures are enabled: // 1. Swiping left and right to navigate forward and backward is always configured. // 2. Swiping down to refresh is off by default and not exposed via our API currently, // it requires the "--pull-to-refresh" option to be included in the additional browser // arguments to be configured.(See put_AdditionalBrowserArguments.) // When set to `FALSE`, the end user cannot swipe to navigate or pull to refresh. // This API only affects the overscrolling navigation functionality and has no // effect on the scrolling interaction used to explore the web content shown // in WebView2. // Disabling/Enabling IsSwipeNavigationEnabled takes effect after the // next navigation. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings6#get_isswipenavigationenabled">See the ICoreWebView2Settings6 article.</a> IsSwipeNavigationEnabled() bool // property SetIsSwipeNavigationEnabled(AValue bool) // property // HiddenPdfToolbarItems // `HiddenPdfToolbarItems` is used to customize the PDF toolbar items. By default, it is COREWEBVIEW2_PDF_TOOLBAR_ITEMS_NONE and so it displays all of the items. // Changes to this property apply to all CoreWebView2s in the same environment and using the same profile. // Changes to this setting apply only after the next navigation. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings7#get_hiddenpdftoolbaritems">See the ICoreWebView2Settings7 article.</a> HiddenPdfToolbarItems() TWVPDFToolbarItems // property // SetHiddenPdfToolbarItems Set HiddenPdfToolbarItems SetHiddenPdfToolbarItems(AValue TWVPDFToolbarItems) // property // IsReputationCheckingRequired // SmartScreen helps webviews identify reported phishing and malware websites // and also helps users make informed decisions about downloads. // `IsReputationCheckingRequired` is used to control whether SmartScreen // enabled or not. SmartScreen is enabled or disabled for all CoreWebView2s // using the same user data folder. If // CoreWebView2Setting.IsReputationCheckingRequired is true for any // CoreWebView2 using the same user data folder, then SmartScreen is enabled. // If CoreWebView2Setting.IsReputationCheckingRequired is false for all // CoreWebView2 using the same user data folder, then SmartScreen is // disabled. When it is changed, the change will be applied to all WebViews // using the same user data folder on the next navigation or download. The // default value for `IsReputationCheckingRequired` is true. If the newly // created CoreWebview2 does not set SmartScreen to false, when // navigating(Such as Navigate(), LoadDataUrl(), ExecuteScript(), etc.), the // default value will be applied to all CoreWebview2 using the same user data // folder. // SmartScreen of WebView2 apps can be controlled by Windows system setting // "SmartScreen for Microsoft Edge", specially, for WebView2 in Windows // Store apps, SmartScreen is controlled by another Windows system setting // "SmartScreen for Microsoft Store apps". When the Windows setting is enabled, the // SmartScreen operates under the control of the `IsReputationCheckingRequired`. // When the Windows setting is disabled, the SmartScreen will be disabled // regardless of the `IsReputationCheckingRequired` value set in WebView2 apps. // In other words, under this circumstance the value of // `IsReputationCheckingRequired` will be saved but overridden by system setting. // Upon re-enabling the Windows setting, the CoreWebview2 will reference the // `IsReputationCheckingRequired` to determine the SmartScreen status. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings8#get_isreputationcheckingrequired">See the ICoreWebView2Settings8 article.</a> IsReputationCheckingRequired() bool // property // SetIsReputationCheckingRequired Set IsReputationCheckingRequired SetIsReputationCheckingRequired(AValue bool) // property }
ICoreWebView2Settings Parent: IObject
Defines properties that enable, disable, or modify WebView features. Changes to IsGeneralAutofillEnabled and IsPasswordAutosaveEnabled apply immediately, while other setting changes made after NavigationStarting event do not apply until the next top-level navigation. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings">See the ICoreWebView2Settings article.</a>
func AsCoreWebView2Settings ¶
func AsCoreWebView2Settings(obj interface{}) ICoreWebView2Settings
AsCoreWebView2Settings Convert a pointer object to an existing class object
func NewCoreWebView2Settings ¶
func NewCoreWebView2Settings(aBaseIntf ICoreWebView2Settings) ICoreWebView2Settings
type ICoreWebView2SharedBuffer ¶
type ICoreWebView2SharedBuffer interface { IObject // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // Returns the interface implemented by this class. BaseIntf() ICoreWebView2SharedBuffer // property // The size of the shared buffer in bytes. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2sharedbuffer#get_size">See the ICoreWebView2SharedBuffer article.</a> Size() (resultInt64 int64) // property // The memory address of the shared buffer. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2sharedbuffer#get_buffer">See the ICoreWebView2SharedBuffer article.</a> Buffer() PByte // property // Get an IStream object that can be used to access the shared buffer. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2sharedbuffer#openstream">See the ICoreWebView2SharedBuffer article.</a> OpenStream() IStream // property // Returns a handle to the file mapping object that backs this shared buffer. // The returned handle is owned by the shared buffer object. You should not // call CloseHandle on it. // Normal app should use `Buffer` or `OpenStream` to get memory address // or IStream object to access the buffer. // For advanced scenarios, you could use file mapping APIs to obtain other views // or duplicate this handle to another application process and create a view from // the duplicated handle in that process to access the buffer from that separate process. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2sharedbuffer#get_filemappinghandle">See the ICoreWebView2SharedBuffer article.</a> FileMappingHandle() HANDLE // property // Release the backing shared memory. The application should call this API when no // access to the buffer is needed any more, to ensure that the underlying resources // are released timely even if the shared buffer object itself is not released due to // some leaked reference. // After the shared buffer is closed, the buffer address and file mapping handle previously // obtained becomes invalid and cannot be used anymore. Accessing properties of the object // will fail with `RO_E_CLOSED`. Operations like Read or Write on the IStream objects returned // from `OpenStream` will fail with `RO_E_CLOSED`. `PostSharedBufferToScript` will also // fail with `RO_E_CLOSED`. // The script code should call `chrome.webview.releaseBuffer` with // the shared buffer as the parameter to release underlying resources as soon // as it does not need access the shared buffer any more. // When script tries to access the buffer after calling `chrome.webview.releaseBuffer`, // JavaScript `TypeError` exception will be raised complaining about accessing a // detached ArrayBuffer, the same exception when trying to access a transferred ArrayBuffer. // Closing the buffer object on native side doesn't impact access from Script and releasing // the buffer from script doesn't impact access to the buffer from native side. // The underlying shared memory will be released by the OS when both native and script side // release the buffer. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2sharedbuffer#close">See the ICoreWebView2SharedBuffer article.</a> Close() bool // function }
ICoreWebView2SharedBuffer Parent: IObject
The shared buffer object that is created by CreateSharedBuffer. The object is presented to script as ArrayBuffer when posted to script with PostSharedBufferToScript. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2sharedbuffer">See the ICoreWebView2SharedBuffer article.</a> <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment12#createsharedbuffer">See the CreateSharedBuffer article.</a> <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_17#postsharedbuffertoscript">See the PostSharedBufferToScript article.</a>
func AsCoreWebView2SharedBuffer ¶
func AsCoreWebView2SharedBuffer(obj interface{}) ICoreWebView2SharedBuffer
AsCoreWebView2SharedBuffer Convert a pointer object to an existing class object
func NewCoreWebView2SharedBuffer ¶
func NewCoreWebView2SharedBuffer(aBaseIntf ICoreWebView2SharedBuffer) ICoreWebView2SharedBuffer
type ICoreWebView2SourceChangedEventArgs ¶
type ICoreWebView2SourceChangedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2SourceChangedEventArgs // property // IsNewDocument // `TRUE` if the page being navigated to is a new document. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2sourcechangedeventargs#get_isnewdocument">See the ICoreWebView2SourceChangedEventArgs article.</a> IsNewDocument() bool // property }
ICoreWebView2SourceChangedEventArgs Parent: IObject
Event args for the SourceChanged event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2sourcechangedeventargs">See the ICoreWebView2SourceChangedEventArgs article.</a>
func AsCoreWebView2SourceChangedEventArgs ¶
func AsCoreWebView2SourceChangedEventArgs(obj interface{}) ICoreWebView2SourceChangedEventArgs
AsCoreWebView2SourceChangedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2SourceChangedEventArgs ¶
func NewCoreWebView2SourceChangedEventArgs(aArgs ICoreWebView2SourceChangedEventArgs) ICoreWebView2SourceChangedEventArgs
type ICoreWebView2StringCollection ¶
type ICoreWebView2StringCollection interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2StringCollection // property // Count // The number of strings contained in ICoreWebView2StringCollection. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2stringcollection#get_count">See the ICoreWebView2StringCollection article.</a> Count() uint32 // property // Items // Gets the value at a given index. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2stringcollection#getvalueatindex">See the ICoreWebView2StringCollection article.</a> Items(idx uint32) string // property }
ICoreWebView2StringCollection Parent: IObject
A collection of strings. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2stringcollection">See the ICoreWebView2StringCollection article.</a>
func AsCoreWebView2StringCollection ¶
func AsCoreWebView2StringCollection(obj interface{}) ICoreWebView2StringCollection
AsCoreWebView2StringCollection Convert a pointer object to an existing class object
func NewCoreWebView2StringCollection ¶
func NewCoreWebView2StringCollection(aBaseIntf ICoreWebView2StringCollection) ICoreWebView2StringCollection
type ICoreWebView2TrySuspendCompletedHandler ¶
type ICoreWebView2TrySuspendCompletedHandler interface { IObject }
ICoreWebView2TrySuspendCompletedHandler Parent: IObject
The caller implements this interface to receive the TrySuspend result. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2trysuspendcompletedhandler">See the ICoreWebView2TrySuspendCompletedHandler article.</a>
func AsCoreWebView2TrySuspendCompletedHandler ¶
func AsCoreWebView2TrySuspendCompletedHandler(obj interface{}) ICoreWebView2TrySuspendCompletedHandler
AsCoreWebView2TrySuspendCompletedHandler Convert a pointer object to an existing class object
func NewCoreWebView2TrySuspendCompletedHandler ¶
func NewCoreWebView2TrySuspendCompletedHandler(aEvents IWVBrowserEvents) ICoreWebView2TrySuspendCompletedHandler
type ICoreWebView2WebMessageReceivedEventArgs ¶
type ICoreWebView2WebMessageReceivedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2WebMessageReceivedEventArgs // property // Source // The URI of the document that sent this web message. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webmessagereceivedeventargs#get_source">See the ICoreWebView2WebMessageReceivedEventArgs article.</a> Source() string // property // WebMessageAsJson // The message posted from the WebView content to the host converted to a // JSON string. Run this operation to communicate using JavaScript objects. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webmessagereceivedeventargs#get_webmessageasjson">See the ICoreWebView2WebMessageReceivedEventArgs article.</a> WebMessageAsJson() string // property // WebMessageAsString // If the message posted from the WebView content to the host is a string // type, this method returns the value of that string. If the message // posted is some other kind of JavaScript type this method fails with the // following error. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webmessagereceivedeventargs#trygetwebmessageasstring">See the ICoreWebView2WebMessageReceivedEventArgs article.</a> WebMessageAsString() string // property // AdditionalObjects // Additional received WebMessage objects. To pass `additionalObjects` via // WebMessage to the app, use the // `chrome.webview.postMessageWithAdditionalObjects` content API. // Any DOM object type that can be natively representable that has been // passed in to `additionalObjects` parameter will be accessible here. // Currently a WebMessage object can be the `ICoreWebView2File` type. // Entries in the collection can be `nullptr` if `null` or `undefined` was // passed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webmessagereceivedeventargs2#get_additionalobjects">See the ICoreWebView2WebMessageReceivedEventArgs2 article.</a> AdditionalObjects() ICoreWebView2ObjectCollectionView // property }
ICoreWebView2WebMessageReceivedEventArgs Parent: IObject
Event args for the WebMessageReceived event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webmessagereceivedeventargs">See the ICoreWebView2WebMessageReceivedEventArgs article.</a>
func AsCoreWebView2WebMessageReceivedEventArgs ¶
func AsCoreWebView2WebMessageReceivedEventArgs(obj interface{}) ICoreWebView2WebMessageReceivedEventArgs
AsCoreWebView2WebMessageReceivedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2WebMessageReceivedEventArgs ¶
func NewCoreWebView2WebMessageReceivedEventArgs(aArgs ICoreWebView2WebMessageReceivedEventArgs) ICoreWebView2WebMessageReceivedEventArgs
type ICoreWebView2WebResourceRequestRef ¶
type ICoreWebView2WebResourceRequestRef interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2WebResourceRequestRef // property // URI // The request URI. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourcerequest#get_uri">See the ICoreWebView2WebResourceRequest article.</a> URI() string // property // SetURI Set URI SetURI(AValue string) // property // Method // The HTTP request method. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourcerequest#get_method">See the ICoreWebView2WebResourceRequest article.</a> Method() string // property // SetMethod Set Method SetMethod(AValue string) // property // Content // The HTTP request message body as stream. POST data should be here. If a // stream is set, which overrides the message body, the stream must have // all the content data available by the time the `WebResourceRequested` // event deferral of this response is completed. Stream should be agile or // be created from a background STA to prevent performance impact to the UI // thread. `Null` means no content data. `IStream` semantics apply // (return `S_OK` to `Read` runs until all data is exhausted). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourcerequest#get_content">See the ICoreWebView2WebResourceRequest article.</a> Content() IStream // property // SetContent Set Content SetContent(AValue IStream) // property // Headers // The mutable HTTP request headers. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourcerequest#get_headers">See the ICoreWebView2WebResourceRequest article.</a> Headers() ICoreWebView2HttpRequestHeaders // property }
ICoreWebView2WebResourceRequestRef Parent: IObject
An HTTP request used with the WebResourceRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourcerequest">See the ICoreWebView2WebResourceRequest article.</a>
func AsCoreWebView2WebResourceRequest ¶
func AsCoreWebView2WebResourceRequest(obj uintptr) ICoreWebView2WebResourceRequestRef
AsCoreWebView2WebResourceRequest Convert a pointer object to an existing class object
func AsCoreWebView2WebResourceRequestRef ¶
func AsCoreWebView2WebResourceRequestRef(obj interface{}) ICoreWebView2WebResourceRequestRef
AsCoreWebView2WebResourceRequestRef Convert a pointer object to an existing class object
func NewCoreWebView2WebResourceRequestRef ¶
func NewCoreWebView2WebResourceRequestRef(aBaseIntf ICoreWebView2WebResourceRequestRef) ICoreWebView2WebResourceRequestRef
type ICoreWebView2WebResourceRequestedEventArgs ¶
type ICoreWebView2WebResourceRequestedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2WebResourceRequestedEventArgs // property // Request // The Web resource request. The request object may be missing some headers // that are added by network stack at a later time. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourcerequestedeventargs#get_request">See the ICoreWebView2WebResourceRequestedEventArgs article.</a> Request() ICoreWebView2WebResourceRequestRef // property // Response // A placeholder for the web resource response object. If this object is // set, the web resource request is completed with the specified response. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourcerequestedeventargs#get_response">See the ICoreWebView2WebResourceRequestedEventArgs article.</a> Response() ICoreWebView2WebResourceResponse // property // SetResponse Set Response SetResponse(AValue ICoreWebView2WebResourceResponse) // property // Deferral // Obtain an `ICoreWebView2Deferral` object and put the event into a // deferred state. Use the `ICoreWebView2Deferral` object to complete the // request at a later time. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourcerequestedeventargs#getdeferral">See the ICoreWebView2WebResourceRequestedEventArgs article.</a> Deferral() ICoreWebView2Deferral // property // ResourceContext // The web resource request context. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourcerequestedeventargs#get_resourcecontext">See the ICoreWebView2WebResourceRequestedEventArgs article.</a> ResourceContext() TWVWebResourceContext // property }
ICoreWebView2WebResourceRequestedEventArgs Parent: IObject
Event args for the WebResourceRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourcerequestedeventargs">See the ICoreWebView2WebResourceRequestedEventArgs article.</a>
func AsCoreWebView2WebResourceRequestedEventArgs ¶
func AsCoreWebView2WebResourceRequestedEventArgs(obj interface{}) ICoreWebView2WebResourceRequestedEventArgs
AsCoreWebView2WebResourceRequestedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2WebResourceRequestedEventArgs ¶
func NewCoreWebView2WebResourceRequestedEventArgs(aArgs ICoreWebView2WebResourceRequestedEventArgs) ICoreWebView2WebResourceRequestedEventArgs
type ICoreWebView2WebResourceResponse ¶
type ICoreWebView2WebResourceResponse interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2WebResourceResponse // property // StatusCode // The HTTP response status code. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponse#get_statuscode">See the ICoreWebView2WebResourceResponse article.</a> StatusCode() int32 // property // SetStatusCode Set StatusCode SetStatusCode(AValue int32) // property // ReasonPhrase // The HTTP response reason phrase. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponse#get_reasonphrase">See the ICoreWebView2WebResourceResponse article.</a> ReasonPhrase() string // property // SetReasonPhrase Set ReasonPhrase SetReasonPhrase(AValue string) // property // Content // HTTP response content as stream. Stream must have all the content data // available by the time the `WebResourceRequested` event deferral of this // response is completed. Stream should be agile or be created from a // background thread to prevent performance impact to the UI thread. `Null` // means no content data. `IStream` semantics apply(return `S_OK` to // `Read` runs until all data is exhausted). // When providing the response data, you should consider relevant HTTP // request headers just like an HTTP server would do. For example, if the // request was for a video resource in a HTML video element, the request may // contain the [Range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range) // header to request only a part of the video that is streaming. In this // case, your response stream should be only the portion of the video // specified by the range HTTP request headers and you should set the // appropriate // [Content-Range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) // header in the response. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponse#get_content">See the ICoreWebView2WebResourceResponse article.</a> Content() IStream // property // SetContent Set Content SetContent(AValue IStream) // property // Headers // Overridden HTTP response headers. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponse#get_headers">See the ICoreWebView2WebResourceResponse article.</a> Headers() ICoreWebView2HttpResponseHeaders // property }
ICoreWebView2WebResourceResponse Parent: IObject
An HTTP response used with the WebResourceRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponse">See the ICoreWebView2WebResourceResponse article.</a>
func AsCoreWebView2WebResourceResponse ¶
func AsCoreWebView2WebResourceResponse(obj interface{}) ICoreWebView2WebResourceResponse
AsCoreWebView2WebResourceResponse Convert a pointer object to an existing class object
func NewCoreWebView2WebResourceResponse ¶
func NewCoreWebView2WebResourceResponse(aBaseIntf ICoreWebView2WebResourceResponse) ICoreWebView2WebResourceResponse
type ICoreWebView2WebResourceResponseReceivedEventArgs ¶
type ICoreWebView2WebResourceResponseReceivedEventArgs interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2WebResourceResponseReceivedEventArgs // property // Request // The request object for the web resource, as committed. This includes // headers added by the network stack that were not be included during the // associated WebResourceRequested event, such as Authentication headers. // Modifications to this object have no effect on how the request is // processed as it has already been sent. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponsereceivedeventargs#get_request">See the ICoreWebView2WebResourceResponseReceivedEventArgs article.</a> Request() ICoreWebView2WebResourceRequestRef // property // Response // View of the response object received for the web resource. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponsereceivedeventargs#get_response">See the ICoreWebView2WebResourceResponseReceivedEventArgs article.</a> Response() ICoreWebView2WebResourceResponseView // property }
ICoreWebView2WebResourceResponseReceivedEventArgs Parent: IObject
Event args for the WebResourceResponseReceived event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponsereceivedeventargs">See the ICoreWebView2WebResourceResponseReceivedEventArgs article.</a>
func AsCoreWebView2WebResourceResponseReceivedEventArgs ¶
func AsCoreWebView2WebResourceResponseReceivedEventArgs(obj interface{}) ICoreWebView2WebResourceResponseReceivedEventArgs
AsCoreWebView2WebResourceResponseReceivedEventArgs Convert a pointer object to an existing class object
func NewCoreWebView2WebResourceResponseReceivedEventArgs ¶
func NewCoreWebView2WebResourceResponseReceivedEventArgs(aArgs ICoreWebView2WebResourceResponseReceivedEventArgs) ICoreWebView2WebResourceResponseReceivedEventArgs
type ICoreWebView2WebResourceResponseView ¶
type ICoreWebView2WebResourceResponseView interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2WebResourceResponseView // property // StatusCode // The HTTP response status code. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponseview#get_statuscode">See the ICoreWebView2WebResourceResponseView article.</a> StatusCode() int32 // property // ReasonPhrase // The HTTP response reason phrase. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponseview#get_reasonphrase">See the ICoreWebView2WebResourceResponseView article.</a> ReasonPhrase() string // property // Headers // The HTTP response headers as received. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponseview#get_headers">See the ICoreWebView2WebResourceResponseView article.</a> Headers() ICoreWebView2HttpResponseHeaders // property // GetContent // Get the response content asynchronously. The handler will receive the // response content stream. // This method returns null if content size is more than 123MB or for navigations that become downloads // or if response is downloadable content type(e.g., application/octet-stream). // See `add_DownloadStarting` event to handle the response. // If this method is being called again before a first call has completed, // the handler will be invoked at the same time the handlers from prior calls // are invoked. // If this method is being called after a first call has completed, the // handler will be invoked immediately. // TCoreWebView2WebResourceResponseView.GetContent will trigger the // TWVBrowserBase.OnWebResourceResponseViewGetContentCompleted event with the resource contents. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponseview#getcontent">See the ICoreWebView2WebResourceResponseView article.</a> GetContent(aHandler ICoreWebView2WebResourceResponseViewGetContentCompletedHandler) bool // function }
ICoreWebView2WebResourceResponseView Parent: IObject
View of the HTTP representation for a web resource response. The properties of this object are not mutable. This response view is used with the TWVBrowserBase.OnWebResourceResponseReceived event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponseview">See the ICoreWebView2WebResourceResponseView article.</a>
func AsCoreWebView2WebResourceResponseView ¶
func AsCoreWebView2WebResourceResponseView(obj interface{}) ICoreWebView2WebResourceResponseView
AsCoreWebView2WebResourceResponseView Convert a pointer object to an existing class object
func NewCoreWebView2WebResourceResponseView ¶
func NewCoreWebView2WebResourceResponseView(aBaseIntf ICoreWebView2WebResourceResponseView) ICoreWebView2WebResourceResponseView
type ICoreWebView2WebResourceResponseViewGetContentCompletedHandler ¶
type ICoreWebView2WebResourceResponseViewGetContentCompletedHandler interface { IObject ResourceID() int32 // property }
ICoreWebView2WebResourceResponseViewGetContentCompletedHandler Parent: IObject
Receives the result of the ICoreWebView2WebResourceResponseView.GetContent method. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponseviewgetcontentcompletedhandler">See the ICoreWebView2WebResourceResponseViewGetContentCompletedHandler article.</a>
func AsCoreWebView2WebResourceResponseViewGetContentCompletedHandler ¶
func AsCoreWebView2WebResourceResponseViewGetContentCompletedHandler(obj interface{}) ICoreWebView2WebResourceResponseViewGetContentCompletedHandler
AsCoreWebView2WebResourceResponseViewGetContentCompletedHandler Convert a pointer object to an existing class object
func NewCoreWebView2WebResourceResponseViewGetContentCompletedHandler ¶
func NewCoreWebView2WebResourceResponseViewGetContentCompletedHandler(aEvents IWVBrowserEvents, aResourceID int32) ICoreWebView2WebResourceResponseViewGetContentCompletedHandler
type ICoreWebView2WindowFeatures ¶
type ICoreWebView2WindowFeatures interface { IObject // Initialized // Returns true when the interface implemented by this class is fully initialized. Initialized() bool // property // BaseIntf // Returns the interface implemented by this class. BaseIntf() ICoreWebView2WindowFeatures // property // HasPosition // Specifies left and top values. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2windowfeatures#get_hasposition">See the ICoreWebView2WindowFeatures article.</a> HasPosition() bool // property // HasSize // Specifies height and width values. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2windowfeatures#get_hassize">See the ICoreWebView2WindowFeatures article.</a> HasSize() bool // property // Left // Specifies the left position of the window. If `HasPosition` is set to // `FALSE`, this field is ignored. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2windowfeatures#get_left">See the ICoreWebView2WindowFeatures article.</a> Left() uint32 // property // Top // Specifies the top position of the window. If `HasPosition` is set to // `FALSE`, this field is ignored. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2windowfeatures#get_top">See the ICoreWebView2WindowFeatures article.</a> Top() uint32 // property // Width // Specifies the width of the window. Minimum value is `100`. If `HasSize` // is set to `FALSE`, this field is ignored. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2windowfeatures#get_width">See the ICoreWebView2WindowFeatures article.</a> Width() uint32 // property // Height // Specifies the height of the window. Minimum value is `100`. If // `HasSize` is set to `FALSE`, this field is ignored. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2windowfeatures#get_height">See the ICoreWebView2WindowFeatures article.</a> Height() uint32 // property // ShouldDisplayMenuBar // Indicates that the menu bar is displayed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2windowfeatures#get_shoulddisplaymenubar">See the ICoreWebView2WindowFeatures article.</a> ShouldDisplayMenuBar() bool // property // ShouldDisplayStatus // Indicates that the status bar is displayed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2windowfeatures#get_shoulddisplaystatus">See the ICoreWebView2WindowFeatures article.</a> ShouldDisplayStatus() bool // property // ShouldDisplayToolbar // Indicates that the browser toolbar is displayed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2windowfeatures#get_shoulddisplaytoolbar">See the ICoreWebView2WindowFeatures article.</a> ShouldDisplayToolbar() bool // property // ShouldDisplayScrollBars // Indicates that the scroll bars are displayed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2windowfeatures#get_shoulddisplayscrollbars">See the ICoreWebView2WindowFeatures article.</a> ShouldDisplayScrollBars() bool // property CopyToRecord(aWindowFeatures *TWVWindowFeatures) // procedure }
ICoreWebView2WindowFeatures Parent: IObject
The window features for a WebView popup window. The fields match the windowFeatures passed to window.open as specified in [Window features](https://developer.mozilla.org/docs/Web/API/Window/open#Window_features) on MDN. There is no requirement for you to respect the values. If your app does not have corresponding UI features (for example, no toolbar) or if all instance of WebView are opened in tabs and do not have distinct size or positions, then your app does not respect the values. You may want to respect values, but perhaps only some apply to the UI of you app. Accordingly, you may respect all, some, or none of the properties as appropriate for your app. For all numeric properties, if the value that is passed to window.open is outside the range of an unsigned 32bit int, the resulting value is the absolute value of the maximum for unsigned 32bit integer. If you are not able to parse the value an integer, it is considered 0. If the value is a floating point value, it is rounded down to an integer. In runtime versions 98 or later, the values of ShouldDisplayMenuBar, ShouldDisplayStatus, ShouldDisplayToolbar, and ShouldDisplayScrollBars will not directly depend on the equivalent fields in the windowFeatures string. Instead, they will all be false if the window is expected to be a popup, and true if it is not. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2windowfeatures">See the ICoreWebView2WindowFeatures article.</a>
func AsCoreWebView2WindowFeatures ¶
func AsCoreWebView2WindowFeatures(obj interface{}) ICoreWebView2WindowFeatures
AsCoreWebView2WindowFeatures Convert a pointer object to an existing class object
func NewCoreWebView2WindowFeatures ¶
func NewCoreWebView2WindowFeatures(aBaseIntf ICoreWebView2WindowFeatures) ICoreWebView2WindowFeatures
type IDataObject ¶
type IDataObject = lcl.IDataObject
IDataObject ActiveX > IDataObject
ole: github.com/go-ole/go-ole UUID: '{0000010e-0000-0000-C000-000000000046}' COM https://learn.microsoft.com/zh-cn/windows/win32/api/objidl/
func AsDataObject ¶
func AsDataObject(obj uintptr) IDataObject
AsDataObject Convert a pointer object to an existing class object
type ISequentialStream ¶
type ISequentialStream lcl.ISequentialStream
ISequentialStream Types > ISequentialStream
type IWVBrowser ¶
type IWVBrowser interface { IWVBrowserBase }
IWVBrowser Parent: IWVBrowserBase
VCL and LCL version of TWVBrowserBase that puts together all browser procedures, functions, properties and events in one place. It has all you need to create, modify and destroy a web browser.
func AsWVBrowser ¶
func AsWVBrowser(obj interface{}) IWVBrowser
AsWVBrowser Convert a pointer object to an existing class object
func NewWVBrowser ¶
func NewWVBrowser(AOwner IComponent) IWVBrowser
type IWVBrowserBase ¶
type IWVBrowserBase interface { IComponent // Initialized // Custom properties Initialized() bool // property // CoreWebView2PrintSettings // Settings used for printing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings">See the ICoreWebView2PrintSettings article.</a> CoreWebView2PrintSettings() ICoreWebView2PrintSettings // property // CoreWebView2Settings // CoreWebView2Settings contains various modifiable settings for the running WebView. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings">See the ICoreWebView2Settings article.</a> CoreWebView2Settings() ICoreWebView2Settings // property // CoreWebView2Environment // Represents the WebView2 Environment. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment">See the ICoreWebView2Environment article.</a> CoreWebView2Environment() ICoreWebView2Environment // property // CoreWebView2Controller // The owner of the `CoreWebView2` object that provides support for resizing, // showing and hiding, focusing, and other functionality related to // windowing and composition. The `CoreWebView2Controller` owns the // `CoreWebView2`, and if all references to the `CoreWebView2Controller` go // away, the WebView is closed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller">See the ICoreWebView2Controller article.</a> CoreWebView2Controller() ICoreWebView2Controller // property // CoreWebView2CompositionController // ICoreWebView2CompositionController wrapper used by this browser. // This interface is an extension of the ICoreWebView2Controller interface to // support visual hosting. An object implementing the // ICoreWebView2CompositionController interface will also implement // ICoreWebView2Controller. Callers are expected to use // ICoreWebView2Controller for resizing, visibility, focus, and so on, and // then use ICoreWebView2CompositionController to connect to a composition // tree and provide input meant for the WebView. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller">See the ICoreWebView2CompositionController article.</a> CoreWebView2CompositionController() ICoreWebView2CompositionController // property // CoreWebView2 // ICoreWebView2 wrapper used by this browser. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2">See the ICoreWebView2 article.</a> CoreWebView2() ICoreWebView2 // property // Profile // The associated `ICoreWebView2Profile` object. If this CoreWebView2 was created with a // CoreWebView2ControllerOptions, the CoreWebView2Profile will match those specified options. // Otherwise if this CoreWebView2 was created without a CoreWebView2ControllerOptions, then // this will be the default CoreWebView2Profile for the corresponding CoreWebView2Environment. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_13#get_profile">See the ICoreWebView2_13 article.</a> Profile() ICoreWebView2Profile // property // DefaultURL // First URL loaded by the browser after its creation. DefaultURL() string // property // SetDefaultURL Set DefaultURL SetDefaultURL(AValue string) // property // Returns true after OnNavigationStarting and before OnNavigationCompleted. IsNavigating() bool // property // ZoomPct // Returns the current zoom value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_zoomfactor">See the ICoreWebView2Controller article.</a> ZoomPct() (resultDouble float64) // property // SetZoomPct Set ZoomPct SetZoomPct(AValue float64) // property // ZoomStep // Returns the current zoom value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_zoomfactor">See the ICoreWebView2Controller article.</a> ZoomStep() byte // property // SetZoomStep Set ZoomStep SetZoomStep(AValue byte) // property // Widget0CompHWND // Handle of one to the child controls created automatically by the browser to show the web contents. Widget0CompHWND() THandle // property // Widget1CompHWND // Handle of one to the child controls created automatically by the browser to show the web contents. Widget1CompHWND() THandle // property // RenderCompHWND // Handle of one to the child controls created automatically by the browser to show the web contents. RenderCompHWND() THandle // property // D3DWindowCompHWND // Handle of one to the child controls created automatically by the browser to show the web contents. D3DWindowCompHWND() THandle // property // ScreenScale // Returns the GlobalWebView2Loader.DeviceScaleFactor value. ScreenScale() (resultSingle float32) // property // Offline // Uses the Network.emulateNetworkConditions DevTool method to set the browser in offline mode. // The TWVBrowserBase.OnOfflineCompleted event is triggered asynchronously after setting this property. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-emulateNetworkConditions">See the Network Domain article.</a> Offline() bool // property // SetOffline Set Offline SetOffline(AValue bool) // property // IgnoreCertificateErrors // Uses the Security.setIgnoreCertificateErrors DevTool method to enable/disable whether all certificate errors should be ignored. // The TWVBrowserBase.OnIgnoreCertificateErrorsCompleted event is triggered asynchronously after setting this property. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Security/#method-setIgnoreCertificateErrors">See the Security Domain article.</a> IgnoreCertificateErrors() bool // property // SetIgnoreCertificateErrors Set IgnoreCertificateErrors SetIgnoreCertificateErrors(AValue bool) // property // BrowserExecPath // Properties used in the ICoreWebView2Environment creation BrowserExecPath() string // property // SetBrowserExecPath Set BrowserExecPath SetBrowserExecPath(AValue string) // property // UserDataFolder // Returns the user data folder that all CoreWebView2's created from this // environment are using. // This could be either the value passed in by the developer when creating // the environment object or the calculated one for default handling. It // will always be an absolute path. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment7#get_userdatafolder">See the ICoreWebView2Environment7 article.</a> UserDataFolder() string // property // SetUserDataFolder Set UserDataFolder SetUserDataFolder(AValue string) // property // AdditionalBrowserArguments // Additional command line switches. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions.get_AdditionalBrowserArguments. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions">See the ICoreWebView2EnvironmentOptions article.</a> AdditionalBrowserArguments() string // property // SetAdditionalBrowserArguments Set AdditionalBrowserArguments SetAdditionalBrowserArguments(AValue string) // property // Language // The default display language for WebView. It applies to browser UI such as // context menu and dialogs. It also applies to the `accept-languages` HTTP // header that WebView sends to websites. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions.get_Language. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions">See the ICoreWebView2EnvironmentOptions article.</a> Language() string // property // SetLanguage Set Language SetLanguage(AValue string) // property // TargetCompatibleBrowserVersion // Specifies the version of the WebView2 Runtime binaries required to be // compatible with your app. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions.get_TargetCompatibleBrowserVersion. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions">See the ICoreWebView2EnvironmentOptions article.</a> TargetCompatibleBrowserVersion() string // property // SetTargetCompatibleBrowserVersion Set TargetCompatibleBrowserVersion SetTargetCompatibleBrowserVersion(AValue string) // property // AllowSingleSignOnUsingOSPrimaryAccount // Used to enable single sign on with Azure Active Directory(AAD) and personal Microsoft // Account(MSA) resources inside WebView. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions.get_AllowSingleSignOnUsingOSPrimaryAccount. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions">See the ICoreWebView2EnvironmentOptions article.</a> AllowSingleSignOnUsingOSPrimaryAccount() bool // property // SetAllowSingleSignOnUsingOSPrimaryAccount Set AllowSingleSignOnUsingOSPrimaryAccount SetAllowSingleSignOnUsingOSPrimaryAccount(AValue bool) // property // ExclusiveUserDataFolderAccess // Whether other processes can create WebView2 from WebView2Environment created with the // same user data folder and therefore sharing the same WebView browser process instance. // Default is FALSE. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions2.Get_ExclusiveUserDataFolderAccess. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions2">See the ICoreWebView2EnvironmentOptions2 article.</a> ExclusiveUserDataFolderAccess() bool // property // SetExclusiveUserDataFolderAccess Set ExclusiveUserDataFolderAccess SetExclusiveUserDataFolderAccess(AValue bool) // property // CustomCrashReportingEnabled // When `CustomCrashReportingEnabled` is set to `TRUE`, Windows won't send crash data to Microsoft endpoint. // `CustomCrashReportingEnabled` is default to be `FALSE`, in this case, WebView will respect OS consent. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions3.Get_IsCustomCrashReportingEnabled. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions3">See the ICoreWebView2EnvironmentOptions3 article.</a> CustomCrashReportingEnabled() bool // property // SetCustomCrashReportingEnabled Set CustomCrashReportingEnabled SetCustomCrashReportingEnabled(AValue bool) // property // EnableTrackingPrevention // The `EnableTrackingPrevention` property is used to enable/disable tracking prevention // feature in WebView2. This property enable/disable tracking prevention for all the // WebView2's created in the same environment. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions5.Get_EnableTrackingPrevention. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions5">See the ICoreWebView2EnvironmentOptions5 article.</a> EnableTrackingPrevention() bool // property // SetEnableTrackingPrevention Set EnableTrackingPrevention SetEnableTrackingPrevention(AValue bool) // property // AreBrowserExtensionsEnabled // When `AreBrowserExtensionsEnabled` is set to `TRUE`, new extensions can be added to user // profile and used. `AreBrowserExtensionsEnabled` is default to be `FALSE`, in this case, // new extensions can't be installed, and already installed extension won't be // available to use in user profile. // If connecting to an already running environment with a different value for `AreBrowserExtensionsEnabled` // property, it will fail with `HRESULT_FROM_WIN32(ERROR_INVALID_STATE)`. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions6.Get_AreBrowserExtensionsEnabled. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions6">See the ICoreWebView2EnvironmentOptions6 article.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextension">See the ICoreWebView2BrowserExtension article for Extensions API details.</a> AreBrowserExtensionsEnabled() bool // property // SetAreBrowserExtensionsEnabled Set AreBrowserExtensionsEnabled SetAreBrowserExtensionsEnabled(AValue bool) // property // BrowserVersionInfo // The browser version info of the current `ICoreWebView2Environment`, // including channel name if it is not the WebView2 Runtime. It matches the // format of the `GetAvailableCoreWebView2BrowserVersionString` API. // Channel names are `beta`, `dev`, and `canary`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment#get_browserversionstring">See the ICoreWebView2Environment article.</a> BrowserVersionInfo() string // property // BrowserProcessID // The process ID of the browser process that hosts the WebView. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#get_browserprocessid">See the ICoreWebView2 article.</a> BrowserProcessID() uint32 // property // CanGoBack // `TRUE` if the WebView is able to navigate to a previous page in the // navigation history. If `CanGoBack` changes value, the `HistoryChanged` // event runs. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2##get_cangoback">See the ICoreWebView2 article.</a> CanGoBack() bool // property // CanGoForward // `TRUE` if the WebView is able to navigate to a next page in the // navigation history. If `CanGoForward` changes value, the // `HistoryChanged` event runs. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#get_cangoforward">See the ICoreWebView2 article.</a> CanGoForward() bool // property // ContainsFullScreenElement // Indicates if the WebView contains a fullscreen HTML element. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#get_containsfullscreenelement">See the ICoreWebView2 article.</a> ContainsFullScreenElement() bool // property // DocumentTitle // The title for the current top-level document. If the document has no // explicit title or is otherwise empty, a default that may or may not match // the URI of the document is used. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#get_documenttitle">See the ICoreWebView2 article.</a> DocumentTitle() string // property // Source // The URI of the current top level document. This value potentially // changes as a part of the `SourceChanged` event that runs for some cases // such as navigating to a different site or fragment navigations. It // remains the same for other types of navigations such as page refreshes // or `history.pushState` with the same URL as the current page. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#get_source">See the ICoreWebView2 article.</a> Source() string // property // CookieManager // Gets the cookie manager object associated with this ICoreWebView2. // See ICoreWebView2CookieManager. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_2#get_cookiemanager">See the ICoreWebView2_2 article.</a> CookieManager() ICoreWebView2CookieManager // property // IsSuspended // Whether WebView is suspended. // `TRUE` when WebView is suspended, from the time when TrySuspend has completed // successfully until WebView is resumed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_3#get_issuspended">See the ICoreWebView2_3 article.</a> IsSuspended() bool // property // IsDocumentPlayingAudio // Indicates whether any audio output from this CoreWebView2 is playing. // This property will be true if audio is playing even if IsMuted is true. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_8#get_isdocumentplayingaudio">See the ICoreWebView2_8 article.</a> IsDocumentPlayingAudio() bool // property // IsMuted // Indicates whether all audio output from this CoreWebView2 is muted or not. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_8#get_ismuted">See the ICoreWebView2_8 article.</a> IsMuted() bool // property // SetIsMuted Set IsMuted SetIsMuted(AValue bool) // property // DefaultDownloadDialogCornerAlignment // Get the default download dialog corner alignment. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_9#get_defaultdownloaddialogcorneralignment">See the ICoreWebView2_9 article.</a> DefaultDownloadDialogCornerAlignment() TWVDefaultDownloadDialogCornerAlignment // property // SetDefaultDownloadDialogCornerAlignment Set DefaultDownloadDialogCornerAlignment SetDefaultDownloadDialogCornerAlignment(AValue TWVDefaultDownloadDialogCornerAlignment) // property // DefaultDownloadDialogMargin // Get the default download dialog margin. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_9#get_defaultdownloaddialogmargin">See the ICoreWebView2_9 article.</a> DefaultDownloadDialogMargin() (resultPoint TPoint) // property // SetDefaultDownloadDialogMargin Set DefaultDownloadDialogMargin SetDefaultDownloadDialogMargin(AValue *TPoint) // property // IsDefaultDownloadDialogOpen // `TRUE` if the default download dialog is currently open. The value of this // property changes only when the default download dialog is explicitly // opened or closed. Hiding the WebView implicitly hides the dialog, but does // not change the value of this property. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_9#get_isdefaultdownloaddialogopen">See the ICoreWebView2_9 article.</a> IsDefaultDownloadDialogOpen() bool // property // StatusBarText // The status message text. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_12#get_statusbartext">See the ICoreWebView2_12 article.</a> StatusBarText() string // property // FaviconURI // Get the current Uri of the favicon as a string. // If the value is null, then the return value is `E_POINTER`, otherwise it is `S_OK`. // If a page has no favicon then the value is an empty string. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_15#get_faviconuri">See the ICoreWebView2_15 article.</a> FaviconURI() string // property // MemoryUsageTargetLevel // `MemoryUsageTargetLevel` indicates desired memory consumption level of // WebView. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_19#get_memoryusagetargetlevel">See the ICoreWebView2_19 article.</a> MemoryUsageTargetLevel() TWVMemoryUsageTargetLevel // property // SetMemoryUsageTargetLevel Set MemoryUsageTargetLevel SetMemoryUsageTargetLevel(AValue TWVMemoryUsageTargetLevel) // property // Bounds // The WebView bounds. Bounds are relative to the parent `HWND`. The app // has two ways to position a WebView. // * Create a child `HWND` that is the WebView parent `HWND`. Position // the window where the WebView should be. Use `(0, 0)` for the // top-left corner(the offset) of the `Bounds` of the WebView. // * Use the top-most window of the app as the WebView parent HWND. For // example, to position WebView correctly in the app, set the top-left // corner of the Bound of the WebView. // The values of `Bounds` are limited by the coordinate space of the host. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_bounds">See the ICoreWebView2Controller article.</a> Bounds() (resultRect TRect) // property // SetBounds Set Bounds SetBounds(AValue *TRect) // property // IsVisible // The `IsVisible` property determines whether to show or hide the WebView2. // If `IsVisible` is set to `FALSE`, the WebView2 is transparent and is // not rendered. However, this does not affect the window containing the // WebView2(the `HWND` parameter that was passed to // `CreateCoreWebView2Controller`). If you want that window to disappear // too, run `ShowWindow` on it directly in addition to modifying the // `IsVisible` property. WebView2 as a child window does not get window // messages when the top window is minimized or restored. For performance // reasons, developers should set the `IsVisible` property of the WebView to // `FALSE` when the app window is minimized and back to `TRUE` when the app // window is restored. The app window does this by handling // `SIZE_MINIMIZED and SIZE_RESTORED` command upon receiving `WM_SIZE` // message. // There are CPU and memory benefits when the page is hidden. For instance, // Chromium has code that throttles activities on the page like animations // and some tasks are run less frequently. Similarly, WebView2 will // purge some caches to reduce memory usage. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_isvisible">See the ICoreWebView2Controller article.</a> IsVisible() bool // property // SetIsVisible Set IsVisible SetIsVisible(AValue bool) // property // ParentWindow // The parent window provided by the app that this WebView is using to // render content. This API initially returns the window passed into // `CreateCoreWebView2Controller`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_parentwindow">See the ICoreWebView2Controller article.</a> // <a href="https://github.com/salvadordf/WebView4Delphi/issues/13">See the WebView4Delphi issue #13 to know how to reparent a browser.</a> ParentWindow() THandle // property // SetParentWindow Set ParentWindow SetParentWindow(AValue THandle) // property // ZoomFactor // The zoom factor for the WebView. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_zoomfactor">See the ICoreWebView2Controller article.</a> ZoomFactor() (resultDouble float64) // property // SetZoomFactor Set ZoomFactor SetZoomFactor(AValue float64) // property // DefaultBackgroundColor // The `DefaultBackgroundColor` property is the color WebView renders // underneath all web content. This means WebView renders this color when // there is no web content loaded such as before the initial navigation or // between navigations. This also means web pages with undefined css // background properties or background properties containing transparent // pixels will render their contents over this color. Web pages with defined // and opaque background properties that span the page will obscure the // `DefaultBackgroundColor` and display normally. The default value for this // property is white to resemble the native browser experience. // The Color is specified by the COREWEBVIEW2_COLOR that represents an RGBA // value. The `A` represents an Alpha value, meaning // `DefaultBackgroundColor` can be transparent. In the case of a transparent // `DefaultBackgroundColor` WebView will render hosting app content as the // background. This Alpha value is not supported on Windows 7. Any `A` value // other than 255 will result in E_INVALIDARG on Windows 7. // It is supported on all other WebView compatible platforms. // Semi-transparent colors are not currently supported by this API and // setting `DefaultBackgroundColor` to a semi-transparent color will fail // with E_INVALIDARG. The only supported alpha values are 0 and 255, all // other values will result in E_INVALIDARG. // `DefaultBackgroundColor` can only be an opaque color or transparent. // This value may also be set by using the // `WEBVIEW2_DEFAULT_BACKGROUND_COLOR` environment variable. There is a // known issue with background color where setting the color by API can // still leave the app with a white flicker before the // `DefaultBackgroundColor` takes effect. Setting the color via environment // variable solves this issue. The value must be a hex value that can // optionally prepend a 0x. The value must account for the alpha value // which is represented by the first 2 digits. So any hex value fewer than 8 // digits will assume a prepended 00 to the hex value and result in a // transparent color. // `get_DefaultBackgroundColor` will return the result of this environment // variable if used. This environment variable can only set the // `DefaultBackgroundColor` once. Subsequent updates to background color // must be done through API call. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller2#get_defaultbackgroundcolor">See the ICoreWebView2Controller2 article.</a> DefaultBackgroundColor() TColor // property // SetDefaultBackgroundColor Set DefaultBackgroundColor SetDefaultBackgroundColor(AValue TColor) // property // BoundsMode // BoundsMode affects how setting the Bounds and RasterizationScale // properties work. Bounds mode can either be in COREWEBVIEW2_BOUNDS_MODE_USE_RAW_PIXELS // mode or COREWEBVIEW2_BOUNDS_MODE_USE_RASTERIZATION_SCALE mode. // When the mode is in COREWEBVIEW2_BOUNDS_MODE_USE_RAW_PIXELS, setting the bounds // property will set the size of the WebView in raw screen pixels. Changing // the rasterization scale in this mode won't change the raw pixel size of // the WebView and will only change the rasterization scale. // When the mode is in COREWEBVIEW2_BOUNDS_MODE_USE_RASTERIZATION_SCALE, setting the // bounds property will change the logical size of the WebView which can be // described by the following equation: Logical size * rasterization scale = Raw Pixel size // In this case, changing the rasterization scale will keep the logical size // the same and change the raw pixel size. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller3#get_boundsmode">See the ICoreWebView2Controller3 article.</a> BoundsMode() TWVBoundsMode // property // SetBoundsMode Set BoundsMode SetBoundsMode(AValue TWVBoundsMode) // property // RasterizationScale // The rasterization scale for the WebView. The rasterization scale is the // combination of the monitor DPI scale and text scaling set by the user. // This value should be updated when the DPI scale of the app's top level // window changes(i.e. monitor DPI scale changes or window changes monitor) // or when the text scale factor of the system changes. // Rasterization scale applies to the WebView content, as well as // popups, context menus, scroll bars, and so on. Normal app scaling // scenarios should use the ZoomFactor property or SetBoundsAndZoomFactor // API which only scale the rendered HTML content and not popups, context // menus, scroll bars, and so on. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller3#get_rasterizationscale">See the ICoreWebView2Controller3 article.</a> RasterizationScale() (resultDouble float64) // property // SetRasterizationScale Set RasterizationScale SetRasterizationScale(AValue float64) // property // ShouldDetectMonitorScaleChanges // ShouldDetectMonitorScaleChanges property determines whether the WebView // attempts to track monitor DPI scale changes. When true, the WebView will // track monitor DPI scale changes, update the RasterizationScale property, // and raises RasterizationScaleChanged event. When false, the WebView will // not track monitor DPI scale changes, and the app must update the // RasterizationScale property itself. RasterizationScaleChanged event will // never raise when ShouldDetectMonitorScaleChanges is false. Apps that want // to set their own rasterization scale should set this property to false to // avoid the WebView2 updating the RasterizationScale property to match the // monitor DPI scale. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller3#get_shoulddetectmonitorscalechanges">See the ICoreWebView2Controller3 article.</a> ShouldDetectMonitorScaleChanges() bool // property // SetShouldDetectMonitorScaleChanges Set ShouldDetectMonitorScaleChanges SetShouldDetectMonitorScaleChanges(AValue bool) // property // AllowExternalDrop // Gets the `AllowExternalDrop` property which is used to configure the // capability that dragging objects from outside the bounds of webview2 and // dropping into webview2 is allowed or disallowed. The default value is // TRUE. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller4#get_allowexternaldrop">See the ICoreWebView2Controller4 article.</a> AllowExternalDrop() bool // property // SetAllowExternalDrop Set AllowExternalDrop SetAllowExternalDrop(AValue bool) // property // DefaultContextMenusEnabled // The `DefaultContextMenusEnabled` property is used to prevent default // context menus from being shown to user in WebView. // The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_aredefaultcontextmenusenabled">See the ICoreWebView2Settings article.</a> DefaultContextMenusEnabled() bool // property // SetDefaultContextMenusEnabled Set DefaultContextMenusEnabled SetDefaultContextMenusEnabled(AValue bool) // property // DefaultScriptDialogsEnabled // `DefaultScriptDialogsEnabled` is used when loading a new HTML // document. If set to `FALSE`, WebView2 does not render the default JavaScript // dialog box(Specifically those displayed by the JavaScript alert, // confirm, prompt functions and `beforeunload` event). Instead, if an // event handler is set using `add_ScriptDialogOpening`, WebView sends an // event that contains all of the information for the dialog and allow the // host app to show a custom UI. The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_aredefaultscriptdialogsenabled">See the ICoreWebView2Settings article.</a> DefaultScriptDialogsEnabled() bool // property // SetDefaultScriptDialogsEnabled Set DefaultScriptDialogsEnabled SetDefaultScriptDialogsEnabled(AValue bool) // property // DevToolsEnabled // `DevToolsEnabled` controls whether the user is able to use the context // menu or keyboard shortcuts to open the DevTools window. // The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_aredevtoolsenabled">See the ICoreWebView2Settings article.</a> DevToolsEnabled() bool // property // SetDevToolsEnabled Set DevToolsEnabled SetDevToolsEnabled(AValue bool) // property // AreHostObjectsAllowed // The `AreHostObjectsAllowed` property is used to control whether host // objects are accessible from the page in WebView. // The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_arehostobjectsallowed">See the ICoreWebView2Settings article.</a> AreHostObjectsAllowed() bool // property // SetAreHostObjectsAllowed Set AreHostObjectsAllowed SetAreHostObjectsAllowed(AValue bool) // property // BuiltInErrorPageEnabled // The `BuiltInErrorPageEnabled` property is used to disable built in // error page for navigation failure and render process failure. When // disabled, a blank page is displayed when the related error happens. // The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_isbuiltinerrorpageenabled">See the ICoreWebView2Settings article.</a> BuiltInErrorPageEnabled() bool // property // SetBuiltInErrorPageEnabled Set BuiltInErrorPageEnabled SetBuiltInErrorPageEnabled(AValue bool) // property // ScriptEnabled // Controls if running JavaScript is enabled in all future navigations in // the WebView. This only affects scripts in the document. Scripts // injected with `ExecuteScript` runs even if script is disabled. // The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_isscriptenabled">See the ICoreWebView2Settings article.</a> ScriptEnabled() bool // property // SetScriptEnabled Set ScriptEnabled SetScriptEnabled(AValue bool) // property // StatusBarEnabled // `StatusBarEnabled` controls whether the status bar is displayed. The // status bar is usually displayed in the lower left of the WebView and // shows things such as the URI of a link when the user hovers over it and // other information. The default value is `TRUE`. The status bar UI can be // altered by web content and should not be considered secure. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_isstatusbarenabled">See the ICoreWebView2Settings article.</a> StatusBarEnabled() bool // property // SetStatusBarEnabled Set StatusBarEnabled SetStatusBarEnabled(AValue bool) // property // WebMessageEnabled // The `WebMessageEnabled` property is used when loading a new HTML // document. If set to `TRUE`, communication from the host to the top-level // HTML document of the WebView is allowed using `PostWebMessageAsJson`, // `PostWebMessageAsString`, and message event of `window.chrome.webview`. // For more information, navigate to PostWebMessageAsJson. Communication // from the top-level HTML document of the WebView to the host is allowed // using the postMessage function of `window.chrome.webview` and // `add_WebMessageReceived` method. // If set to false, then communication is disallowed. `PostWebMessageAsJson` // and `PostWebMessageAsString` fails with `E_ACCESSDENIED` and // `window.chrome.webview.postMessage` fails by throwing an instance of an // `Error` object. The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_webmessagereceived">See the add_WebMessageReceived method article.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_iswebmessageenabled">See the ICoreWebView2Settings article.</a> WebMessageEnabled() bool // property // SetWebMessageEnabled Set WebMessageEnabled SetWebMessageEnabled(AValue bool) // property // ZoomControlEnabled // The `ZoomControlEnabled` property is used to prevent the user from // impacting the zoom of the WebView. When disabled, the user is not able // to zoom using Ctrl++, Ctrl+-, or Ctrl+mouse wheel, but the zoom // is set using `ZoomFactor` API. The default value is `TRUE`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings#get_iszoomcontrolenabled">See the ICoreWebView2Settings article.</a> ZoomControlEnabled() bool // property // SetZoomControlEnabled Set ZoomControlEnabled SetZoomControlEnabled(AValue bool) // property // UserAgent // Returns the User Agent. The default value is the default User Agent of the // Microsoft Edge browser. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings2#get_useragent">See the ICoreWebView2Settings2 article.</a> UserAgent() string // property // SetUserAgent Set UserAgent SetUserAgent(AValue string) // property // AreBrowserAcceleratorKeysEnabled // When this setting is set to FALSE, it disables all accelerator keys that // access features specific to a web browser. // The default value for `AreBrowserAcceleratorKeysEnabled` is TRUE. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings3#get_arebrowseracceleratorkeysenabled">See the ICoreWebView2Settings3 article.</a> AreBrowserAcceleratorKeysEnabled() bool // property // SetAreBrowserAcceleratorKeysEnabled Set AreBrowserAcceleratorKeysEnabled SetAreBrowserAcceleratorKeysEnabled(AValue bool) // property // IsGeneralAutofillEnabled // IsGeneralAutofillEnabled controls whether autofill for information // like names, street and email addresses, phone numbers, and arbitrary input // is enabled. This excludes password and credit card information. When // IsGeneralAutofillEnabled is false, no suggestions appear, and no new information // is saved. When IsGeneralAutofillEnabled is true, information is saved, suggestions // appear and clicking on one will populate the form fields. It will take effect // immediately after setting. The default value is `TRUE`. // This property has the same value as // `CoreWebView2Profile.IsGeneralAutofillEnabled`, and changing one will // change the other. All `CoreWebView2`s with the same `CoreWebView2Profile` // will share the same value for this property, so for the `CoreWebView2`s // with the same profile, their // `CoreWebView2Settings.IsGeneralAutofillEnabled` and // `CoreWebView2Profile.IsGeneralAutofillEnabled` will always have the same // value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings4#get_isgeneralautofillenabled">See the ICoreWebView2Settings4 article.</a> IsGeneralAutofillEnabled() bool // property // SetIsGeneralAutofillEnabled Set IsGeneralAutofillEnabled SetIsGeneralAutofillEnabled(AValue bool) // property // IsPasswordAutosaveEnabled // IsPasswordAutosaveEnabled controls whether autosave for password // information is enabled. The IsPasswordAutosaveEnabled property behaves // independently of the IsGeneralAutofillEnabled property. When IsPasswordAutosaveEnabled is // false, no new password data is saved and no Save/Update Password prompts are displayed. // However, if there was password data already saved before disabling this setting, // then that password information is auto-populated, suggestions are shown and clicking on // one will populate the fields. // When IsPasswordAutosaveEnabled is true, password information is auto-populated, // suggestions are shown and clicking on one will populate the fields, new data // is saved, and a Save/Update Password prompt is displayed. // It will take effect immediately after setting. The default value is `FALSE`. // This property has the same value as // `CoreWebView2Profile.IsPasswordAutosaveEnabled`, and changing one will // change the other. All `CoreWebView2`s with the same `CoreWebView2Profile` // will share the same value for this property, so for the `CoreWebView2`s // with the same profile, their // `CoreWebView2Settings.IsPasswordAutosaveEnabled` and // `CoreWebView2Profile.IsPasswordAutosaveEnabled` will always have the same // value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings4#get_ispasswordautosaveenabled">See the ICoreWebView2Settings4 article.</a> IsPasswordAutosaveEnabled() bool // property // SetIsPasswordAutosaveEnabled Set IsPasswordAutosaveEnabled SetIsPasswordAutosaveEnabled(AValue bool) // property // IsPinchZoomEnabled // Pinch-zoom, referred to as "Page Scale" zoom, is performed as a post-rendering step, // it changes the page scale factor property and scales the surface the web page is // rendered onto when user performs a pinch zooming action. It does not change the layout // but rather changes the viewport and clips the web content, the content outside of the // viewport isn't visible onscreen and users can't reach this content using mouse. // The `IsPinchZoomEnabled` property enables or disables the ability of // the end user to use a pinching motion on touch input enabled devices // to scale the web content in the WebView2. It defaults to `TRUE`. // When set to `FALSE`, the end user cannot pinch zoom after the next navigation. // Disabling/Enabling `IsPinchZoomEnabled` only affects the end user's ability to use // pinch motions and does not change the page scale factor. // This API only affects the Page Scale zoom and has no effect on the // existing browser zoom properties(`IsZoomControlEnabled` and `ZoomFactor`) // or other end user mechanisms for zooming. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings5#get_ispinchzoomenabled">See the ICoreWebView2Settings5 article.</a> IsPinchZoomEnabled() bool // property // SetIsPinchZoomEnabled Set IsPinchZoomEnabled SetIsPinchZoomEnabled(AValue bool) // property // The `IsSwipeNavigationEnabled` property enables or disables the ability of the // end user to use swiping gesture on touch input enabled devices to // navigate in WebView2. It defaults to `TRUE`. // When this property is `TRUE`, then all configured navigation gestures are enabled: // 1. Swiping left and right to navigate forward and backward is always configured. // 2. Swiping down to refresh is off by default and not exposed via our API currently, // it requires the "--pull-to-refresh" option to be included in the additional browser // arguments to be configured.(See put_AdditionalBrowserArguments.) // When set to `FALSE`, the end user cannot swipe to navigate or pull to refresh. // This API only affects the overscrolling navigation functionality and has no // effect on the scrolling interaction used to explore the web content shown // in WebView2. // Disabling/Enabling IsSwipeNavigationEnabled takes effect after the // next navigation. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings6#get_isswipenavigationenabled">See the ICoreWebView2Settings6 article.</a> IsSwipeNavigationEnabled() bool // property SetIsSwipeNavigationEnabled(AValue bool) // property // HiddenPdfToolbarItems // `HiddenPdfToolbarItems` is used to customize the PDF toolbar items. By default, it is COREWEBVIEW2_PDF_TOOLBAR_ITEMS_NONE and so it displays all of the items. // Changes to this property apply to all CoreWebView2s in the same environment and using the same profile. // Changes to this setting apply only after the next navigation. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings7#get_hiddenpdftoolbaritems">See the ICoreWebView2Settings7 article.</a> HiddenPdfToolbarItems() TWVPDFToolbarItems // property // SetHiddenPdfToolbarItems Set HiddenPdfToolbarItems SetHiddenPdfToolbarItems(AValue TWVPDFToolbarItems) // property // IsReputationCheckingRequired // SmartScreen helps webviews identify reported phishing and malware websites // and also helps users make informed decisions about downloads. // `IsReputationCheckingRequired` is used to control whether SmartScreen // enabled or not. SmartScreen is enabled or disabled for all CoreWebView2s // using the same user data folder. If // CoreWebView2Setting.IsReputationCheckingRequired is true for any // CoreWebView2 using the same user data folder, then SmartScreen is enabled. // If CoreWebView2Setting.IsReputationCheckingRequired is false for all // CoreWebView2 using the same user data folder, then SmartScreen is // disabled. When it is changed, the change will be applied to all WebViews // using the same user data folder on the next navigation or download. The // default value for `IsReputationCheckingRequired` is true. If the newly // created CoreWebview2 does not set SmartScreen to false, when // navigating(Such as Navigate(), LoadDataUrl(), ExecuteScript(), etc.), the // default value will be applied to all CoreWebview2 using the same user data // folder. // SmartScreen of WebView2 apps can be controlled by Windows system setting // "SmartScreen for Microsoft Edge", specially, for WebView2 in Windows // Store apps, SmartScreen is controlled by another Windows system setting // "SmartScreen for Microsoft Store apps". When the Windows setting is enabled, the // SmartScreen operates under the control of the `IsReputationCheckingRequired`. // When the Windows setting is disabled, the SmartScreen will be disabled // regardless of the `IsReputationCheckingRequired` value set in WebView2 apps. // In other words, under this circumstance the value of // `IsReputationCheckingRequired` will be saved but overridden by system setting. // Upon re-enabling the Windows setting, the CoreWebview2 will reference the // `IsReputationCheckingRequired` to determine the SmartScreen status. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings8#get_isreputationcheckingrequired">See the ICoreWebView2Settings8 article.</a> IsReputationCheckingRequired() bool // property // SetIsReputationCheckingRequired Set IsReputationCheckingRequired SetIsReputationCheckingRequired(AValue bool) // property // Cursor // The current cursor that WebView thinks it should be. The cursor should be // set in WM_SETCURSOR through \::SetCursor or set on the corresponding // parent/ancestor HWND of the WebView through \::SetClassLongPtr. The HCURSOR // can be freed so CopyCursor/DestroyCursor is recommended to keep your own // copy if you are doing more than immediately setting the cursor. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller#get_cursor">See the ICoreWebView2CompositionController article.</a> Cursor() HCURSOR // property // RootVisualTarget // The RootVisualTarget is a visual in the hosting app's visual tree. This // visual is where the WebView will connect its visual tree. The app uses // this visual to position the WebView within the app. The app still needs // to use the Bounds property to size the WebView. The RootVisualTarget // property can be an IDCompositionVisual or a // Windows::UI::Composition::ContainerVisual. WebView will connect its visual // tree to the provided visual before returning from the property setter. The // app needs to commit on its device setting the RootVisualTarget property. // The RootVisualTarget property supports being set to nullptr to disconnect // the WebView from the app's visual tree. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller#get_rootvisualtarget">See the ICoreWebView2CompositionController article.</a> RootVisualTarget() IUnknown // property // SetRootVisualTarget Set RootVisualTarget SetRootVisualTarget(AValue IUnknown) // property // SystemCursorID // The current system cursor ID reported by the underlying rendering engine // for WebView. For example, most of the time, when the cursor is over text, // this will return the int value for IDC_IBEAM. The systemCursorId is only // valid if the rendering engine reports a default Windows cursor resource // value. Navigate to // [LoadCursorW](/windows/win32/api/winuser/nf-winuser-loadcursorw) for more // details. Otherwise, if custom CSS cursors are being used, this will return // 0. To actually use systemCursorId in LoadCursor or LoadImage, // MAKEINTRESOURCE must be called on it first. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller#get_systemcursorid">See the ICoreWebView2CompositionController article.</a> SystemCursorID() uint32 // property // AutomationProvider // Returns the Automation Provider for the WebView. This object implements // IRawElementProviderSimple. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller2#get_automationprovider">See the ICoreWebView2CompositionController2 article.</a> AutomationProvider() IUnknown // property // ProcessInfos // Returns the `ICoreWebView2ProcessInfoCollection`. Provide a list of all // process using same user data folder except for crashpad process. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment8#getprocessinfos">See the ICoreWebView2Environment8 article.</a> ProcessInfos() ICoreWebView2ProcessInfoCollection // property // ProfileName // `ProfileName` property is to specify a profile name, which is only allowed to contain // the following ASCII characters. It has a maximum length of 64 characters excluding the null-terminator. // It is ASCII case insensitive. // * alphabet characters: a-z and A-Z // * digit characters: 0-9 // * and '#', '@', '$', '(', ')', '+', '-', '_', '~', '.', ' '(space). // Note: the text must not end with a period '.' or ' '(space). And, although upper-case letters are // allowed, they're treated just as lower-case counterparts because the profile name will be mapped to // the real profile directory path on disk and Windows file system handles path names in a case-insensitive way. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controlleroptions#get_profilename">See the ICoreWebView2ControllerOptions article.</a> ProfileName() string // property // SetProfileName Set ProfileName SetProfileName(AValue string) // property // IsInPrivateModeEnabled // `IsInPrivateModeEnabled` property is to enable/disable InPrivate mode. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controlleroptions#get_isinprivatemodeenabled">See the ICoreWebView2ControllerOptions article.</a> IsInPrivateModeEnabled() bool // property // SetIsInPrivateModeEnabled Set IsInPrivateModeEnabled SetIsInPrivateModeEnabled(AValue bool) // property // ScriptLocale // The default locale for the WebView2. It sets the default locale for all // Intl JavaScript APIs and other JavaScript APIs that depend on it, namely // `Intl.DateTimeFormat()` which affects string formatting like // in the time/date formats. Example: `Intl.DateTimeFormat().format(new Date())` // The intended locale value is in the format of // BCP 47 Language Tags. More information can be found from // [IETF BCP47](https://www.ietf.org/rfc/bcp/bcp47.html). // This property sets the locale for a CoreWebView2Environment used to create the // WebView2ControllerOptions object, which is passed as a parameter in // `CreateCoreWebView2ControllerWithOptions`. // Changes to the ScriptLocale property apply to renderer processes created after // the change. Any existing renderer processes will continue to use the previous // ScriptLocale value. To ensure changes are applied to all renderer process, // close and restart the CoreWebView2Environment and all associated WebView2 objects. // The default value for ScriptLocale will depend on the WebView2 language // and OS region. If the language portions of the WebView2 language and OS region // match, then it will use the OS region. Otherwise, it will use the WebView2 // language. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controlleroptions2#get_scriptlocale">See the ICoreWebView2ControllerOptions2 article.</a> ScriptLocale() string // property // SetScriptLocale Set ScriptLocale SetScriptLocale(AValue string) // property // ProfilePath // Full path of the profile directory. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_profilepath">See the ICoreWebView2Profile article.</a> ProfilePath() string // property // DefaultDownloadFolderPath // Gets the `DefaultDownloadFolderPath` property. The default value is the // system default download folder path for the user. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_defaultdownloadfolderpath">See the ICoreWebView2Profile article.</a> DefaultDownloadFolderPath() string // property // SetDefaultDownloadFolderPath Set DefaultDownloadFolderPath SetDefaultDownloadFolderPath(AValue string) // property // PreferredColorScheme // The PreferredColorScheme property sets the overall color scheme of the // WebView2s associated with this profile. This sets the color scheme for // WebView2 UI like dialogs, prompts, and context menus by setting the // media feature `prefers-color-scheme` for websites to respond to. // The default value for this is COREWEBVIEW2_PREFERRED_COLOR_AUTO, // which will follow whatever theme the OS is currently set to. // Returns the value of the `PreferredColorScheme` property. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile#get_preferredcolorscheme">See the ICoreWebView2Profile article.</a> PreferredColorScheme() TWVPreferredColorScheme // property // SetPreferredColorScheme Set PreferredColorScheme SetPreferredColorScheme(AValue TWVPreferredColorScheme) // property // PreferredTrackingPreventionLevel // The `PreferredTrackingPreventionLevel` property allows you to control levels of tracking prevention for WebView2 // which are associated with a profile. This level would apply to the context of the profile. That is, all WebView2s // sharing the same profile will be affected and also the value is persisted in the user data folder. // See `COREWEBVIEW2_TRACKING_PREVENTION_LEVEL` for descriptions of levels. // If tracking prevention feature is enabled when creating the WebView2 environment, you can also disable tracking // prevention later using this property and `COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_NONE` value but that doesn't // improves runtime performance. // There is `ICoreWebView2EnvironmentOptions5.EnableTrackingPrevention` property to enable/disable tracking prevention feature // for all the WebView2's created in the same environment. If enabled, `PreferredTrackingPreventionLevel` is set to // `COREWEBVIEW2_TRACKING_PREVENTION_LEVEL_BALANCED` by default for all the WebView2's and profiles created in the same // environment or is set to the level whatever value was last changed/persisted to the profile. If disabled // `PreferredTrackingPreventionLevel` is not respected by WebView2. If `PreferredTrackingPreventionLevel` is set when the // feature is disabled, the property value get changed and persisted but it will takes effect only if // `ICoreWebView2EnvironmentOptions5.EnableTrackingPrevention` is true. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile3#get_preferredtrackingpreventionlevel">See the ICoreWebView2Profile3 article.</a> PreferredTrackingPreventionLevel() TWVTrackingPreventionLevel // property // SetPreferredTrackingPreventionLevel Set PreferredTrackingPreventionLevel SetPreferredTrackingPreventionLevel(AValue TWVTrackingPreventionLevel) // property // ProfileCookieManager // Get the cookie manager for the profile. All CoreWebView2s associated with this // profile share the same cookie values. Changes to cookies in this cookie manager apply to all // CoreWebView2s associated with this profile. See ICoreWebView2CookieManager. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile5#get_cookiemanager">See the ICoreWebView2Profile5 article.</a> ProfileCookieManager() ICoreWebView2CookieManager // property // ProfileIsPasswordAutosaveEnabled // IsPasswordAutosaveEnabled controls whether autosave for password // information is enabled. The IsPasswordAutosaveEnabled property behaves // independently of the IsGeneralAutofillEnabled property. When IsPasswordAutosaveEnabled is // false, no new password data is saved and no Save/Update Password prompts are displayed. // However, if there was password data already saved before disabling this setting, // then that password information is auto-populated, suggestions are shown and clicking on // one will populate the fields. // When IsPasswordAutosaveEnabled is true, password information is auto-populated, // suggestions are shown and clicking on one will populate the fields, new data // is saved, and a Save/Update Password prompt is displayed. // It will take effect immediately after setting. The default value is `FALSE`. // This property has the same value as // `CoreWebView2Settings.IsPasswordAutosaveEnabled`, and changing one will // change the other. All `CoreWebView2`s with the same `CoreWebView2Profile` // will share the same value for this property, so for the `CoreWebView2`s // with the same profile, their // `CoreWebView2Settings.IsPasswordAutosaveEnabled` and // `CoreWebView2Profile.IsPasswordAutosaveEnabled` will always have the same // value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile6#get_ispasswordautosaveenabled">See the ICoreWebView2Profile6 article.</a> ProfileIsPasswordAutosaveEnabled() bool // property // SetProfileIsPasswordAutosaveEnabled Set ProfileIsPasswordAutosaveEnabled SetProfileIsPasswordAutosaveEnabled(AValue bool) // property // ProfileIsGeneralAutofillEnabled // IsGeneralAutofillEnabled controls whether autofill for information // like names, street and email addresses, phone numbers, and arbitrary input // is enabled. This excludes password and credit card information. When // IsGeneralAutofillEnabled is false, no suggestions appear, and no new information // is saved. When IsGeneralAutofillEnabled is true, information is saved, suggestions // appear and clicking on one will populate the form fields. // It will take effect immediately after setting. The default value is `TRUE`. // This property has the same value as // `CoreWebView2Settings.IsGeneralAutofillEnabled`, and changing one will // change the other. All `CoreWebView2`s with the same `CoreWebView2Profile` // will share the same value for this property, so for the `CoreWebView2`s // with the same profile, their // `CoreWebView2Settings.IsGeneralAutofillEnabled` and // `CoreWebView2Profile.IsGeneralAutofillEnabled` will always have the same // value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile6#get_isgeneralautofillenabled">See the ICoreWebView2Profile6 article.</a> ProfileIsGeneralAutofillEnabled() bool // property // SetProfileIsGeneralAutofillEnabled Set ProfileIsGeneralAutofillEnabled SetProfileIsGeneralAutofillEnabled(AValue bool) // property // FrameId // The unique identifier of the main frame. It's the same kind of ID as // with the `FrameId` in `ICoreWebView2Frame` and via `ICoreWebView2FrameInfo`. // Note that `FrameId` may not be valid if `ICoreWebView2` has not done // any navigation. It's safe to get this value during or after the first // `ContentLoading` event. Otherwise, it could return the invalid frame Id 0. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_20#get_frameid">See the ICoreWebView2_20 article.</a> FrameId() uint32 // property // CreateBrowser // Used to create the browser using the global environment by default. // The browser will be fully initialized when the TWVBrowserBase.OnAfterCreated // event is triggered. // <param name="aHandle">The TWVWindowParent handle.</param> // <param name="aUseDefaultEnvironment">Use the global environment or create a new one for this browser.</param> CreateBrowser(aHandle THandle, aUseDefaultEnvironment bool) bool // function // CreateBrowser1 // Used to create the browser using a custom environment. The browser will be // fully initialized when the TWVBrowserBase.OnAfterCreated event is triggered. // <param name="aHandle">The TWVWindowParent handle.</param> // <param name="aEnvironment">Custom environment to be used by this browser.</param> CreateBrowser1(aHandle THandle, aEnvironment ICoreWebView2Environment) bool // function // CreateWindowlessBrowser // Used to create a windowless browser using the global environment by default. // The browser will be fully initialized when the TWVBrowserBase.OnAfterCreated // event is triggered. // <param name="aHandle">The TWVDirectCompositionHost handle.</param> // <param name="aUseDefaultEnvironment">Use the global environment or create a new one for this browser.</param> CreateWindowlessBrowser(aHandle THandle, aUseDefaultEnvironment bool) bool // function // CreateWindowlessBrowser1 // Used to create a windowless browser using a custom environment. The browser will be // fully initialized when the TWVBrowserBase.OnAfterCreated event is triggered. // <param name="aHandle">The TWVDirectCompositionHost handle.</param> // <param name="aEnvironment">Custom environment to be used by this browser.</param> CreateWindowlessBrowser1(aHandle THandle, aEnvironment ICoreWebView2Environment) bool // function // GoBack // Navigates the WebView to the previous page in the navigation history. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#goback">See the ICoreWebView2 article.</a> GoBack() bool // function // GoForward // Navigates the WebView to the next page in the navigation history. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#goforward">See the ICoreWebView2 article.</a> GoForward() bool // function // Refresh // Reload the current page. This is similar to navigating to the URI of // current top level document including all navigation events firing and // respecting any entries in the HTTP cache. But, the back or forward // history are not modified. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#reload">See the ICoreWebView2 article.</a> Refresh() bool // function // RefreshIgnoreCache // Reload the current page. Browser cache is ignored as if the user pressed Shift+refresh. // This function is asynchronous and it triggers the TWVBrowserBase.OnRefreshIgnoreCacheCompleted event when it finishes executing. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-reload">See the Page Domain article.</a> RefreshIgnoreCache() bool // function // Stop // Stop all navigations and pending resource fetches. Does not stop scripts. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#stop">See the ICoreWebView2 article.</a> Stop() bool // function // Cause a navigation of the top-level document to run to the specified URI. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#navigate">See the ICoreWebView2 article.</a> Navigate(aURI string) bool // function // Initiates a navigation to aHTMLContent as source HTML of a new document. // The origin of the new page is `about:blank`. // <param name="aHTMLContent">Source HTML. It may not be larger than 2 MB(2 * 1024 * 1024 bytes) in total size.</param> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#navigatetostring">See the ICoreWebView2 article.</a> NavigateToString(aHTMLContent string) bool // function // Navigates using a constructed ICoreWebView2WebResourceRequest object. This lets you // provide post data or additional request headers during navigation. // The headers in aRequest override headers added by WebView2 runtime except for Cookie headers. // Method can only be either "GET" or "POST". Provided post data will only // be sent only if the method is "POST" and the uri scheme is HTTP(S). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_2#navigatewithwebresourcerequest">See the ICoreWebView2_2 article.</a> NavigateWithWebResourceRequest(aRequest ICoreWebView2WebResourceRequestRef) bool // function // SubscribeToDevToolsProtocolEvent // Subscribe to a DevTools protocol event. The TWVBrowserBase.OnDevToolsProtocolEventReceived // event will be triggered on each DevTools event. // <param name="aEventName">The DevTools protocol event name.</param> // <param name="aEventID">A custom event ID that will be passed as a parameter in the TWVBrowserBase event.</param> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2devtoolsprotocoleventreceiver#add_devtoolsprotocoleventreceived">See the ICoreWebView2DevToolsProtocolEventReceiver article.</a> SubscribeToDevToolsProtocolEvent(aEventName string, aEventID int32) bool // function // CallDevToolsProtocolMethod // Runs an asynchronous `DevToolsProtocol` method. // The TWVBrowserBase.OnCallDevToolsProtocolMethodCompleted event is triggered // when it finishes executing. This function returns E_INVALIDARG if the `aMethodName` is // unknown or the `aParametersAsJson` has an error. In the case of such an error, the // `aReturnObjectAsJson` parameter of the event will include information // about the error. // Note even though WebView2 dispatches the CDP messages in the order called, // CDP method calls may be processed out of order. // If you require CDP methods to run in a particular order, you should wait // for the previous method is finished before calling the next method. // <param name="aMethodName">The DevTools protocol full method name.</param> // <param name="aParametersAsJson">JSON formatted string containing the parameters for the corresponding method.</param> // <param name="aExecutionID">A custom event ID that will be passed as a parameter in the TWVBrowserBase event.</param> // <a href="https://chromedevtools.github.io/devtools-protocol/tot">See the Chrome DevTools Protocol web page.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#calldevtoolsprotocolmethod">See the ICoreWebView2 article.</a> CallDevToolsProtocolMethod(aMethodName, aParametersAsJson string, aExecutionID int32) bool // function // CallDevToolsProtocolMethodForSession // Runs an asynchronous `DevToolsProtocol` method for a specific session of // an attached target. // There could be multiple `DevToolsProtocol` targets in a WebView. // Besides the top level page, iframes from different origin and web workers // are also separate targets. Attaching to these targets allows interaction with them. // When the DevToolsProtocol is attached to a target, the connection is identified // by a sessionId. // To use this API, you must set the `flatten` parameter to true when calling // `Target.attachToTarget` or `Target.setAutoAttach` `DevToolsProtocol` method. // Using `Target.setAutoAttach` is recommended as that would allow you to attach // to dedicated worker targets, which are not discoverable via other APIs like // `Target.getTargets`. // The TWVBrowserBase.OnCallDevToolsProtocolMethodCompleted event is triggered // when it finishes executing. This function returns E_INVALIDARG if the `aMethodName` is // unknown or the `aParametersAsJson` has an error. In the case of such an error, the // `aReturnObjectAsJson` parameter of the event will include information // about the error. // Note even though WebView2 dispatches the CDP messages in the order called, // CDP method calls may be processed out of order. // If you require CDP methods to run in a particular order, you should wait // for the previous method is finished before calling the next method. // <param name="aSessionId">The sessionId for an attached target. An empty string is treated as the session for the default target for the top page.</param> // <param name="aMethodName">The DevTools protocol full method name.</param> // <param name="aParametersAsJson">JSON formatted string containing the parameters for the corresponding method.</param> // <param name="aExecutionID">A custom event ID that will be passed as a parameter in the TWVBrowserBase event.</param> // <a href="https://chromedevtools.github.io/devtools-protocol/tot">See the Chrome DevTools Protocol web page.</a> // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Target">Information about targets and sessions.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_11#calldevtoolsprotocolmethodforsession">See the ICoreWebView2_11 article.</a> CallDevToolsProtocolMethodForSession(aSessionId, aMethodName, aParametersAsJson string, aExecutionID int32) bool // function // SetFocus // Moves focus into WebView. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#movefocus">See the ICoreWebView2Controller article.</a> SetFocus() bool // function // FocusNext // Moves the focus to the next element. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#movefocus">See the ICoreWebView2Controller article.</a> FocusNext() bool // function // FocusPrevious // Moves the focus to the previous element. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#movefocus">See the ICoreWebView2Controller article.</a> FocusPrevious() bool // function // ExecuteScriptWithResult // Run JavaScript code from the JavaScript parameter in the current // top-level document rendered in the WebView. // The TWVBrowserBase.OnExecuteScriptWithResultCompleted event is triggered // when it finishes executing. // The result of the execution is returned asynchronously in the ICoreWebView2ExecuteScriptResult object // which has methods and properties to obtain the successful result of script execution as well as any // unhandled JavaScript exceptions. // If this method is run after the NavigationStarting event during a navigation, the script // runs in the new document when loading it, around the time // ContentLoading is run. This operation executes the script even if // ICoreWebView2Settings.IsScriptEnabled is set to FALSE. // <param name="aJavaScript">The JavaScript code.</param> // <param name="aExecutionID">A custom event ID that will be passed as a parameter in the TWVBrowserBase event.</param> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_21#executescriptwithresult">See the icorewebview2_21 article.</a> ExecuteScriptWithResult(aJavaScript string, aExecutionID int32) bool // function // ExecuteScript // Run JavaScript code from the aJavaScript parameter in the current // top-level document rendered in the WebView. // The TWVBrowserBase.OnExecuteScriptCompleted event is triggered // when it finishes executing. // The result of evaluating the provided JavaScript is available in the // aResultObjectAsJson parameter of the TWVBrowserBase.OnExecuteScriptCompleted // event as a JSON encoded string. If the result is undefined, contains a reference // cycle, or otherwise is not able to be encoded into JSON, then the result // is considered to be null, which is encoded in JSON as the string "null". // If the script that was run throws an unhandled exception, then the result is // also "null". // If the method is run after the `NavigationStarting` event during a navigation, // the script runs in the new document when loading it, around the time // `ContentLoading` is run. This operation executes the script even if // `ICoreWebView2Settings.IsScriptEnabled` is set to `FALSE`. // <param name="aJavaScript">The JavaScript code.</param> // <param name="aExecutionID">A custom event ID that will be passed as a parameter in the TWVBrowserBase event.</param> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#executescript">See the ICoreWebView2 article.</a> ExecuteScript(aJavaScript string, aExecutionID int32) bool // function // CapturePreview // Capture an image of what WebView is displaying. Specify the format of // the image with the aImageFormat parameter. The resulting image binary // data is written to the provided aImageStream parameter. This method fails if called // before the first ContentLoading event. For example if this is called in // the NavigationStarting event for the first navigation it will fail. // For subsequent navigations, the method may not fail, but will not capture // an image of a given webpage until the ContentLoading event has been fired // for it. Any call to this method prior to that will result in a capture of // the page being navigated away from. When this function finishes writing to the stream, // the TWVBrowserBase.OnCapturePreviewCompleted event is triggered. // <param name="aImageFormat">The format of the image.</param> // <param name="aImageStream">The resulting image binary data is written to this stream.</param> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#capturepreview">See the ICoreWebView2 article.</a> CapturePreview(aImageFormat TWVCapturePreviewImageFormat, aImageStream IStream) bool // function // NotifyParentWindowPositionChanged // This is a notification that tells WebView that the main WebView parent // (or any ancestor) `HWND` moved. This is needed for accessibility and // certain dialogs in WebView to work correctly. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#notifyparentwindowpositionchanged">See the ICoreWebView2Controller article.</a> NotifyParentWindowPositionChanged() bool // function // SetPermissionState // Sets permission state for the given permission kind and origin // asynchronously. The change persists across sessions until it is changed by // another call to `SetPermissionState`, or by setting the `State` property // in `PermissionRequestedEventArgs`. // Setting the state to `COREWEBVIEW2_PERMISSION_STATE_DEFAULT` will // erase any state saved in the profile and restore the default behavior. // The origin should have a valid scheme and host(e.g. "https://www.example.com"), // otherwise the method fails with `E_INVALIDARG`. Additional URI parts like // path and fragment are ignored. For example, "https://wwww.example.com/app1/index.html/" // is treated the same as "https://wwww.example.com". // This function triggers the TWVBrowserBase.OnSetPermissionStateCompleted event. // <a href="https://developer.mozilla.org/en-US/docs/Glossary/Origin">See the MDN origin definition.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile4#setpermissionstate">See the ICoreWebView2Profile4 article.</a> SetPermissionState(aPermissionKind TWVPermissionKind, aOrigin string, aState TWVPermissionState) bool // function // GetNonDefaultPermissionSettings // Invokes the handler with a collection of all nondefault permission settings. // Use this method to get the permission state set in the current and previous // sessions. // This function triggers the TWVBrowserBase.OnGetNonDefaultPermissionSettingsCompleted event. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile4#getnondefaultpermissionsettings">See the ICoreWebView2Profile4 article.</a> GetNonDefaultPermissionSettings() bool // function // AddBrowserExtension // Adds the [browser extension](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions) // using the extension path for unpacked extensions from the local device. Extension is // running right after installation. // The extension folder path is the topmost folder of an unpacked browser extension and // contains the browser extension manifest file. // If the `extensionFolderPath` is an invalid path or doesn't contain the extension manifest.json // file, this function will return `ERROR_FILE_NOT_FOUND` to callers. // Installed extension will default `IsEnabled` to true. // When `AreBrowserExtensionsEnabled` is `FALSE`, `AddBrowserExtension` will fail and return // HRESULT `ERROR_NOT_SUPPORTED`. // During installation, the content of the extension is not copied to the user data folder. // Once the extension is installed, changing the content of the extension will cause the // extension to be removed from the installed profile. // When an extension is added the extension is persisted in the corresponding profile. The // extension will still be installed the next time you use this profile. // When an extension is installed from a folder path, adding the same extension from the same // folder path means reinstalling this extension. When two extensions with the same Id are // installed, only the later installed extension will be kept. // Extensions that are designed to include any UI interactions(e.g. icon, badge, pop up, etc.) // can be loaded and used but will have missing UI entry points due to the lack of browser // UI elements to host these entry points in WebView2. // The following summarizes the possible error values that can be returned from // `AddBrowserExtension` and a description of why these errors occur. // <code> // Error value | Description // ----------------------------------------------- | -------------------------- // `HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)` | Extensions are disabled. // `HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)` | Cannot find `manifest.json` file or it is not a valid extension manifest. // `E_ACCESSDENIED` | Cannot load extension with file or directory name starting with \"_\", reserved for use by the system. // `E_FAIL` | Extension failed to install with other unknown reasons. // </code> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile7#addbrowserextension">See the ICoreWebView2Profile7 article.</a> // The TWVBrowserBase.OnProfileAddBrowserExtensionCompleted event is triggered when TWVBrowserBase.AddBrowserExtension finishes executing. AddBrowserExtension(extensionFolderPath string) bool // function // GetBrowserExtensions // Gets a snapshot of the set of extensions installed at the time `GetBrowserExtensions` is // called. If an extension is installed or uninstalled after `GetBrowserExtensions` completes, // the list returned by `GetBrowserExtensions` remains the same. // When `AreBrowserExtensionsEnabled` is `FALSE`, `GetBrowserExtensions` won't return any // extensions on current user profile. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile7#getbrowserextensions">See the ICoreWebView2Profile7 article.</a> // The TWVBrowserBase.OnProfileGetBrowserExtensionsCompleted event is triggered when TWVBrowserBase.GetBrowserExtensions finishes executing. GetBrowserExtensions() bool // function // DeleteProfile // After the API is called, the profile will be marked for deletion. The // local profile's directory will be deleted at browser process exit. If it // fails to delete, because something else is holding the files open, // WebView2 will try to delete the profile at all future browser process // starts until successful. // The corresponding CoreWebView2s will be closed and the // CoreWebView2Profile.Deleted event will be raised. See // `CoreWebView2Profile.Deleted` for more information. // If you try to create a new profile with the same name as an existing // profile that has been marked as deleted but hasn't yet been deleted, // profile creation will fail with HRESULT_FROM_WIN32(ERROR_DELETE_PENDING). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile8#delete">See the ICoreWebView2Profile8 article.</a> DeleteProfile() bool // function // TrySuspend // An app may call the `TrySuspend` API to have the WebView2 consume less memory. // This is useful when a Win32 app becomes invisible, or when a Universal Windows // Platform app is being suspended, during the suspended event handler before completing // the suspended event. // The IsVisible property must be false when the API is called. // Otherwise, the API fails with `HRESULT_FROM_WIN32(ERROR_INVALID_STATE)`. // Suspending is similar to putting a tab to sleep in the Edge browser. Suspending pauses // WebView script timers and animations, minimizes CPU usage for the associated // browser renderer process and allows the operating system to reuse the memory that was // used by the renderer process for other processes. // Note that Suspend is best effort and considered completed successfully once the request // is sent to browser renderer process. If there is a running script, the script will continue // to run and the renderer process will be suspended after that script is done. // for conditions that might prevent WebView from being suspended. In those situations, // the completed handler will be invoked with isSuccessful as false and errorCode as S_OK. // The WebView will be automatically resumed when it becomes visible. Therefore, the // app normally does not have to call `Resume` explicitly. // The app can call `Resume` and then `TrySuspend` periodically for an invisible WebView so that // the invisible WebView can sync up with latest data and the page ready to show fresh content // when it becomes visible. // All WebView APIs can still be accessed when a WebView is suspended. Some APIs like Navigate // will auto resume the WebView. To avoid unexpected auto resume, check `IsSuspended` property // before calling APIs that might change WebView state. // This function is asynchronous and it triggers the TWVBrowserBase.OnTrySuspendCompleted event when it finishes executing. // <a href="https://techcommunity.microsoft.com/t5/articles/sleeping-tabs-faq/m-p/1705434">See the sleeping Tabs FAQ.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_3#trysuspend">See the ICoreWebView2_3 article.</a> TrySuspend() bool // function // Resume // Resumes the WebView so that it resumes activities on the web page. // This API can be called while the WebView2 controller is invisible. // The app can interact with the WebView immediately after `Resume`. // WebView will be automatically resumed when it becomes visible. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_3#resume">See the ICoreWebView2_3 article.</a> Resume() bool // function // SetVirtualHostNameToFolderMapping // Sets a mapping between a virtual host name and a folder path to make available to web sites // via that host name. // After setting the mapping, documents loaded in the WebView can use HTTP or HTTPS URLs at // the specified host name specified by hostName to access files in the local folder specified // by folderPath. // <param name="aHostName">Host name to access files in the local folder specified by aFolderPath.</param> // <param name="aFolderPath">The path to the local files. Both absolute and relative paths are supported. Relative paths are interpreted as relative to the folder where the exe of the app is in. Note that the aFolderPath length must not exceed the Windows MAX_PATH limit.</param> // <param name="aAccessKind">aAccessKind specifies the level of access to resources under the virtual host from other sites.</param> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_3#setvirtualhostnametofoldermapping">See the ICoreWebView2_3 article.</a> SetVirtualHostNameToFolderMapping(aHostName, aFolderPath string, aAccessKind TWVHostResourceAcccessKind) bool // function // ClearVirtualHostNameToFolderMapping // Clears a host name mapping for local folder that was added by `SetVirtualHostNameToFolderMapping`. // <param name="aHostName">Host name used previously with SetVirtualHostNameToFolderMapping to access files in the local folder.</param> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_3#clearvirtualhostnametofoldermapping">See the ICoreWebView2_3 article.</a> ClearVirtualHostNameToFolderMapping(aHostName string) bool // function // RetrieveHTML // Retrieve the HTML contents. The TWVBrowserBase.OnRetrieveHTMLCompleted event is triggered asynchronously with the HTML contents. RetrieveHTML() bool // function // RetrieveText // Retrieve the text contents. The TWVBrowserBase.OnRetrieveTextCompleted event is triggered asynchronously with the text contents. RetrieveText() bool // function // RetrieveMHTML // Retrieve the web page contents in MHTML format. The TWVBrowserBase.OnRetrieveMHTMLCompleted event is triggered asynchronously with the MHTML contents. RetrieveMHTML() bool // function // Print // Print the current web page asynchronously to the specified printer with the TWVBrowserBase.CoreWebView2PrintSettings settings. // This function is asynchronous and it triggers the TWVBrowserBase.OnPrintCompleted event when it finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_16#print">See the ICoreWebView2_16 article.</a> Print() bool // function // ShowPrintUI // Opens the print dialog to print the current web page using the system print dialog or the browser print preview dialog. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_16#showprintui">See the ICoreWebView2_16 article.</a> ShowPrintUI(aUseSystemPrintDialog bool) bool // function // PrintToPdf // Print the current page to PDF asynchronously with the TWVBrowserBase.CoreWebView2PrintSettings settings. // This function is asynchronous and it triggers the TWVBrowserBase.OnPrintToPdfCompleted event when it finishes executing. // <param name="aResultFilePath">The path to the PDF file.</param> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_7#printtopdf">See the ICoreWebView2_7 article.</a> PrintToPdf(aResultFilePath string) bool // function // PrintToPdfStream // Provides the Pdf data of current web page asynchronously for the TWVBrowserBase.CoreWebView2PrintSettings settings. // Stream will be rewound to the start of the pdf data. // This function is asynchronous and it triggers the TWVBrowserBase.OnPrintToPdfStreamCompleted event. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_16#printtopdfstream">See the ICoreWebView2_16 article.</a> PrintToPdfStream() bool // function // OpenDevToolsWindow // Opens the DevTools window for the current document in the WebView. Does // nothing if run when the DevTools window is already open. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#opendevtoolswindow">See the ICoreWebView2 article.</a> OpenDevToolsWindow() bool // function // OpenTaskManagerWindow // Opens the Browser Task Manager view as a new window in the foreground. // If the Browser Task Manager is already open, this will bring it into // the foreground. WebView2 currently blocks the Shift+Esc shortcut for // opening the task manager. An end user can open the browser task manager // manually via the `Browser task manager` entry of the DevTools window's // title bar's context menu. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_6#opentaskmanagerwindow">See the ICoreWebView2_6 article.</a> OpenTaskManagerWindow() bool // function // PostWebMessageAsJson // Post the specified webMessage to the top level document in this WebView. // The main page receives the message by subscribing to the `message` event of the // `window.chrome.webview` of the page document. // <code> // “`cpp // window.chrome.webview.addEventListener('message', handler) // window.chrome.webview.removeEventListener('message', handler) // “` // </code> // The event args is an instance of `MessageEvent`. The // `ICoreWebView2Settings.IsWebMessageEnabled` setting must be `TRUE` or // the web message will not be sent. The `data` property of the event // arg is the `webMessage` string parameter parsed as a JSON string into a // JavaScript object. The `source` property of the event arg is a reference // to the `window.chrome.webview` object. For information about sending // messages from the HTML document in the WebView to the host, navigate to // [add_WebMessageReceived](/microsoft-edge/webview2/reference/win32/icorewebview2#add_webmessagereceived). // The message is delivered asynchronously. If a navigation occurs before // the message is posted to the page, the message is discarded. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#postwebmessageasjson">See the ICoreWebView2 article.</a> PostWebMessageAsJson(aWebMessageAsJson string) bool // function // PostWebMessageAsString // Posts a message that is a simple string rather than a JSON string // representation of a JavaScript object. This behaves in exactly the same // manner as `PostWebMessageAsJson`, but the `data` property of the event // arg of the `window.chrome.webview` message is a string with the same // value as `aWebMessageAsString`. Use this instead of // `PostWebMessageAsJson` if you want to communicate using simple strings // rather than JSON objects. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#postwebmessageasstring">See the ICoreWebView2 article.</a> PostWebMessageAsString(aWebMessageAsString string) bool // function // AddWebResourceRequestedFilter // Adds a URI and resource context filter for the `WebResourceRequested` // event. A web resource request with a resource context that matches this // filter's resource context and a URI that matches this filter's URI // wildcard string will be raised via the `WebResourceRequested` event. // The `aURI` parameter value is a wildcard string matched against the URI // of the web resource request. This is a glob style // wildcard string in which a `*` matches zero or more characters and a `?` // matches exactly one character. // These wildcard characters can be escaped using a backslash just before // the wildcard character in order to represent the literal `*` or `?`. // The matching occurs over the URI as a whole string and not limiting // wildcard matches to particular parts of the URI. // The wildcard filter is compared to the URI after the URI has been // normalized, any URI fragment has been removed, and non-ASCII hostnames // have been converted to punycode. // Specifying an empty string for aURI matches no URIs. // For more information about resource context filters, navigate to // [COREWEBVIEW2_WEB_RESOURCE_CONTEXT](/microsoft-edge/webview2/reference/win32/webview2-idl#corewebview2_web_resource_context). // <code> // | URI Filter String | Request URI | Match | Notes | // | ---- | ---- | ---- | ---- | // | `*` | `https://contoso.com/a/b/c` | Yes | A single * will match all URIs | // | `*://contoso.com/*` | `https://contoso.com/a/b/c` | Yes | Matches everything in contoso.com across all schemes | // | `*://contoso.com/*` | `https://example.com/?https://contoso.com/` | Yes | But also matches a URI with just the same text anywhere in the URI | // | `example` | `https://contoso.com/example` | No | The filter does not perform partial matches | // | `*example` | `https://contoso.com/example` | Yes | The filter matches across URI parts | // | `*example` | `https://contoso.com/path/?example` | Yes | The filter matches across URI parts | // | `*example` | `https://contoso.com/path/?query#example` | No | The filter is matched against the URI with no fragment | // | `*example` | `https://example` | No | The URI is normalized before filter matching so the actual URI used for comparison is `https://example/` | // | `*example/` | `https://example` | Yes | Just like above, but this time the filter ends with a / just like the normalized URI | // | `https://xn--qei.example/` | `https://❤.example/` | Yes | Non-ASCII hostnames are normalized to punycode before wildcard comparison | // | `https://❤.example/` | `https://xn--qei.example/` | No | Non-ASCII hostnames are normalized to punycode before wildcard comparison | // </code> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#addwebresourcerequestedfilter">See the ICoreWebView2 article.</a> AddWebResourceRequestedFilter(aURI string, aResourceContext TWVWebResourceContext) bool // function // RemoveWebResourceRequestedFilter // Removes a matching WebResource filter that was previously added for the // `WebResourceRequested` event. If the same filter was added multiple // times, then it must be removed as many times as it was added for the // removal to be effective. Returns false for a filter that was // never added. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#removewebresourcerequestedfilter">See the ICoreWebView2 article.</a> RemoveWebResourceRequestedFilter(aURI string, aResourceContext TWVWebResourceContext) bool // function // RemoveHostObjectFromScript // Remove the host object specified by the name so that it is no longer // accessible from JavaScript code in the WebView. While new access // attempts are denied, if the object is already obtained by JavaScript code // in the WebView, the JavaScript code continues to have access to that // object. Run this method for a name that is already removed or never // added fails. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#removehostobjectfromscript">See the ICoreWebView2 article.</a> RemoveHostObjectFromScript(aName string) bool // function // AddScriptToExecuteOnDocumentCreated // Add the provided JavaScript to a list of scripts that should be run after // the global object has been created, but before the HTML document has // been parsed and before any other script included by the HTML document is // run. This method injects a script that runs on all top-level document // and child frame page navigations. This method runs asynchronously, and // you must wait for the completion handler to finish before the injected // script is ready to run. When this method completes, the `Invoke` method // of the handler is run with the `id` of the injected script. `id` is a // string. To remove the injected script, use // `RemoveScriptToExecuteOnDocumentCreated`. // This function is asynchronous and it triggers the TWVBrowserBase.OnAddScriptToExecuteOnDocumentCreatedCompleted event when it finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#addscripttoexecuteondocumentcreated">See the ICoreWebView2 article.</a> AddScriptToExecuteOnDocumentCreated(JavaScript string) bool // function // RemoveScriptToExecuteOnDocumentCreated // Remove the corresponding JavaScript added using // `AddScriptToExecuteOnDocumentCreated` with the specified script ID. The // script ID should be the one returned by the `AddScriptToExecuteOnDocumentCreated`. // Both use `AddScriptToExecuteOnDocumentCreated` and this method in `NewWindowRequested` // event handler at the same time sometimes causes trouble. Since invalid scripts will // be ignored, the script IDs you got may not be valid anymore. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#removescripttoexecuteondocumentcreated">See the ICoreWebView2 article.</a> RemoveScriptToExecuteOnDocumentCreated(aID string) bool // function // CreateCookie // Create a cookie object with a specified name, value, domain, and path. // One can set other optional properties after cookie creation. // This only creates a cookie object and it is not added to the cookie // manager until you call AddOrUpdateCookie. // Leading or trailing whitespace(s), empty string, and special characters // are not allowed for name. // See ICoreWebView2Cookie for more details. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager#createcookie">See the ICoreWebView2CookieManager article.</a> CreateCookie(aName, aValue, aDomain, aPath string) ICoreWebView2Cookie // function // CopyCookie // Creates a cookie whose params matches those of the specified cookie. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager#copycookie">See the ICoreWebView2CookieManager article.</a> CopyCookie(aCookie ICoreWebView2Cookie) ICoreWebView2Cookie // function // GetCookies // Gets a list of cookies matching the specific URI. // If uri is empty string or null, all cookies under the same profile are // returned. // You can modify the cookie objects by calling // ICoreWebView2CookieManager.AddOrUpdateCookie, and the changes // will be applied to the webview. // The TWVBrowserBase.OnGetCookiesCompleted event is triggered asynchronously with the cookies. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager#getcookies">See the ICoreWebView2CookieManager article.</a> GetCookies(aURI string) bool // function // AddOrUpdateCookie // Adds or updates a cookie with the given cookie data; may overwrite // cookies with matching name, domain, and path if they exist. // This method will fail if the domain of the given cookie is not specified. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager#addorupdatecookie">See the ICoreWebView2CookieManager article.</a> AddOrUpdateCookie(aCookie ICoreWebView2Cookie) bool // function // DeleteCookie // Deletes a cookie whose name and domain/path pair // match those of the specified cookie. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager#deletecookie">See the ICoreWebView2CookieManager article.</a> DeleteCookie(aCookie ICoreWebView2Cookie) bool // function // DeleteCookies // Deletes cookies with matching name and uri. // Cookie name is required. // All cookies with the given name where domain // and path match provided URI are deleted. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager#deletecookies">See the ICoreWebView2CookieManager article.</a> DeleteCookies(aName, aURI string) bool // function // DeleteCookiesWithDomainAndPath // Deletes cookies with matching name and domain/path pair. // Cookie name is required. // If domain is specified, deletes only cookies with the exact domain. // If path is specified, deletes only cookies with the exact path. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager#deletecookieswithdomainandpath">See the ICoreWebView2CookieManager article.</a> DeleteCookiesWithDomainAndPath(aName, aDomain, aPath string) bool // function // DeleteAllCookies // Deletes all cookies under the same profile. // This could affect other WebViews under the same user profile. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager#deleteallcookies">See the ICoreWebView2CookieManager article.</a> DeleteAllCookies() bool // function // SetBoundsAndZoomFactor // Updates `Bounds` and `ZoomFactor` properties at the same time. This // operation is atomic from the perspective of the host. After returning // from this function, the `Bounds` and `ZoomFactor` properties are both // updated if the function is successful, or neither is updated if the // function fails. If `Bounds` and `ZoomFactor` are both updated by the // same scale(for example, `Bounds` and `ZoomFactor` are both doubled), // then the page does not display a change in `window.innerWidth` or // `window.innerHeight` and the WebView renders the content at the new size // and zoom without intermediate renderings. This function also updates // just one of `ZoomFactor` or `Bounds` by passing in the new value for one // and the current value for the other. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#setboundsandzoomfactor">See the ICoreWebView2Controller article.</a> SetBoundsAndZoomFactor(aBounds *TRect, aZoomFactor float64) bool // function // OpenDefaultDownloadDialog // Open the default download dialog. If the dialog is opened before there // are recent downloads, the dialog shows all past downloads for the // current profile. Otherwise, the dialog shows only the recent downloads // with a "See more" button for past downloads. Calling this method raises // the `IsDefaultDownloadDialogOpenChanged` event if the dialog was closed. // No effect if the dialog is already open. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_9#opendefaultdownloaddialog">See the ICoreWebView2_9 article.</a> OpenDefaultDownloadDialog() bool // function // CloseDefaultDownloadDialog // Close the default download dialog. Calling this method raises the // IsDefaultDownloadDialogOpenChanged event if the dialog was open. // No effect if the dialog is already closed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_9#opendefaultdownloaddialog">See the ICoreWebView2_9 article.</a> CloseDefaultDownloadDialog() bool // function // SimulateEditingCommand // Simulate editing commands using the "Input.dispatchKeyEvent" DevTools method. // <a href="https://chromedevtools.github.io/devtools-protocol/1-3/Input/#method-dispatchKeyEvent">See the "Input.dispatchKeyEvent" DevTools method.</a> // <a href="https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h">See the Chromium sources.</a> SimulateEditingCommand(aEditingCommand TWV2EditingCommand) bool // function // SimulateKeyEvent // Dispatches a key event to the page using the "Input.dispatchKeyEvent" // DevTools method. The browser has to be focused before simulating any // key event. This function is asynchronous and it triggers the // TWVBrowserBase.OnSimulateKeyEventCompleted event when it finishes executing. // <param name="type_">Type of the key event.</param> // <param name="modifiers">Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8.</param> // <param name="windowsVirtualKeyCode">Windows virtual key code.</param> // <param name="nativeVirtualKeyCode">Native virtual key code.</param> // <param name="timestamp">Time at which the event occurred.</param> // <param name="location">Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right.</param> // <param name="autoRepeat">Whether the event was generated from auto repeat.</param> // <param name="isKeypad">Whether the event was generated from the keypad.</param> // <param name="isSystemKey">Whether the event was a system key event.</param> // <param name="text">Text as generated by processing a virtual key code with a keyboard layout. Not needed for for keyUp and rawKeyDown events.</param> // <param name="unmodifiedtext">Text that would have been generated by the keyboard if no modifiers were pressed(except for shift). Useful for shortcut(accelerator) key handling.</param> // <param name="keyIdentifier">Unique key identifier(e.g., 'U+0041').</param> // <param name="code">Unique DOM defined string value for each physical key(e.g., 'KeyA').</param> // <param name="key">Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc(e.g., 'AltGr').</param> // <a href="https://chromedevtools.github.io/devtools-protocol/1-3/Input/#method-dispatchKeyEvent">See the "Input.dispatchKeyEvent" DevTools method.</a> SimulateKeyEvent(type_ TWV2KeyEventType, modifiers, windowsVirtualKeyCode, nativeVirtualKeyCode int32, timestamp int32, location int32, autoRepeat bool, isKeypad bool, isSystemKey bool, text string, unmodifiedtext string, keyIdentifier string, code string, key string) bool // function // KeyboardShortcutSearch // Simulate that the F3 key was pressed and released. // The browser has to be focused before simulating any key event. // This key information was logged using a Spanish keyboard. It might not work with different keyboard layouts. // This function is asynchronous and it triggers the TWVBrowserBase.OnSimulateKeyEventCompleted event several times. // <a href="https://chromedevtools.github.io/devtools-protocol/1-3/Input/#method-dispatchKeyEvent">See the "Input.dispatchKeyEvent" DevTools method.</a> KeyboardShortcutSearch() bool // function // KeyboardShortcutRefreshIgnoreCache // Simulate that SHIFT + F5 keys were pressed and released. // The browser has to be focused before simulating any key event. // This key information was logged using a Spanish keyboard. It might not work with different keyboard layouts. // This function is asynchronous and it triggers the TWVBrowserBase.OnSimulateKeyEventCompleted event several times. // <a href="https://chromedevtools.github.io/devtools-protocol/1-3/Input/#method-dispatchKeyEvent">See the "Input.dispatchKeyEvent" DevTools method.</a> KeyboardShortcutRefreshIgnoreCache() bool // function // SendMouseInput // This function is only available in "Windowless mode" and provides mouse input meant for the WebView. // If eventKind is COREWEBVIEW2_MOUSE_EVENT_KIND_HORIZONTAL_WHEEL or // COREWEBVIEW2_MOUSE_EVENT_KIND_WHEEL, then mouseData specifies the amount of // wheel movement. A positive value indicates that the wheel was rotated // forward, away from the user; a negative value indicates that the wheel was // rotated backward, toward the user. One wheel click is defined as // WHEEL_DELTA, which is 120. // If eventKind is COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_DOUBLE_CLICK // COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_DOWN, or // COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_UP, then mouseData specifies which X // buttons were pressed or released. This value should be 1 if the first X // button is pressed/released and 2 if the second X button is // pressed/released. // If eventKind is COREWEBVIEW2_MOUSE_EVENT_KIND_LEAVE, then virtualKeys, // mouseData, and point should all be zero. // If eventKind is any other value, then mouseData should be zero. // Point is expected to be in the client coordinate space of the WebView. // To track mouse events that start in the WebView and can potentially move // outside of the WebView and host application, calling SetCapture and // ReleaseCapture is recommended. // To dismiss hover popups, it is also recommended to send // COREWEBVIEW2_MOUSE_EVENT_KIND_LEAVE messages. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller#sendmouseinput">See the ICoreWebView2CompositionController article.</a> SendMouseInput(aEventKind TWVMouseEventKind, aVirtualKeys TWVMouseEventVirtualKeys, aMouseData uint32, aPoint *TPoint) bool // function // SendPointerInput // This function is only available in "Windowless mode" and provides pointer input meant for the WebView. // SendPointerInput accepts touch or pen pointer input of types defined in // COREWEBVIEW2_POINTER_EVENT_KIND. Any pointer input from the system must be // converted into an ICoreWebView2PointerInfo first. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller#sendpointerinput">See the ICoreWebView2CompositionController article.</a> SendPointerInput(aEventKind TWVPointerEventKind, aPointerInfo ICoreWebView2PointerInfo) bool // function // DragEnter // This function is only available in "Windowless mode" and corresponds to // [IDropTarget::DragEnter](/windows/win32/api/oleidl/nf-oleidl-idroptarget-dragenter). // This function has a dependency on AllowExternalDrop property of // CoreWebView2Controller and return E_FAIL to callers to indicate this // operation is not allowed if AllowExternalDrop property is set to false. // The hosting application must register as an IDropTarget and implement // and forward DragEnter calls to this function. // point parameter must be modified to include the WebView's offset and be in // the WebView's client coordinates(Similar to how SendMouseInput works). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller3#dragenter">See the ICoreWebView2CompositionController3 article.</a> DragEnter(dataObject IDataObject, keyState uint32, point *TPoint, OutEffect *uint32) int32 // function // DragLeave // This function is only available in "Windowless mode" and corresponds to // [IDropTarget::DragLeave](/windows/win32/api/oleidl/nf-oleidl-idroptarget-dragleave). // This function has a dependency on AllowExternalDrop property of // CoreWebView2Controller and return E_FAIL to callers to indicate this // operation is not allowed if AllowExternalDrop property is set to false. // The hosting application must register as an IDropTarget and implement // and forward DragLeave calls to this function. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller3#dragleave">See the ICoreWebView2CompositionController3 article.</a> DragLeave() int32 // function // DragOver // This function is only available in "Windowless mode" and corresponds to // [IDropTarget::DragOver](/windows/win32/api/oleidl/nf-oleidl-idroptarget-dragover). // This function has a dependency on AllowExternalDrop property of // CoreWebView2Controller and return E_FAIL to callers to indicate this // operation is not allowed if AllowExternalDrop property is set to false. // The hosting application must register as an IDropTarget and implement // and forward DragOver calls to this function. // point parameter must be modified to include the WebView's offset and be in // the WebView's client coordinates(Similar to how SendMouseInput works). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller3#dragover">See the ICoreWebView2CompositionController3 article.</a> DragOver(keyState uint32, point *TPoint, OutEffect *uint32) int32 // function // Drop // This function is only available in "Windowless mode" and corresponds to // [IDropTarget::Drop](/windows/win32/api/oleidl/nf-oleidl-idroptarget-drop). // This function has a dependency on AllowExternalDrop property of // CoreWebView2Controller and return E_FAIL to callers to indicate this // operation is not allowed if AllowExternalDrop property is set to false. // The hosting application must register as an IDropTarget and implement // and forward Drop calls to this function. // point parameter must be modified to include the WebView's offset and be in // the WebView's client coordinates(Similar to how SendMouseInput works). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller3#drop">See the ICoreWebView2CompositionController3 article.</a> Drop(dataObject IDataObject, keyState uint32, point *TPoint, OutEffect *uint32) int32 // function // ClearCache // Clears the browser cache. This function is asynchronous and it triggers the TWVBrowserBase.OnClearCacheCompleted event when it finishes executing. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-clearBrowserCache">See the Chrome DevTools Protocol page about the Network.clearBrowserCache method.</a> ClearCache() bool // function // ClearDataForOrigin // Clears the storage for origin. This function is asynchronous and it triggers the TWVBrowserBase.OnClearDataForOriginCompleted event when it finishes executing. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-clearDataForOrigin">See the Chrome DevTools Protocol page about the Storage.clearDataForOrigin method.</a> ClearDataForOrigin(aOrigin string, aStorageTypes TWVClearDataStorageTypes) bool // function // ClearBrowsingData // Clear browsing data based on a data type. This method takes two parameters, // the first being a mask of one or more `COREWEBVIEW2_BROWSING_DATA_KINDS`. OR // operation(s) can be applied to multiple `COREWEBVIEW2_BROWSING_DATA_KINDS` to // create a mask representing those data types. // This function is asynchronous and it triggers the TWVBrowserBase.OnClearBrowsingDataCompleted event when it finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdata">See the ICoreWebView2Profile2 article.</a> ClearBrowsingData(dataKinds TWVBrowsingDataKinds) bool // function // ClearBrowsingDataInTimeRange // ClearBrowsingDataInTimeRange behaves like ClearBrowsingData except that it // takes in two additional parameters for the start and end time for which it // should clear the data between. The `startTime` and `endTime` // parameters correspond to the number of seconds since the UNIX epoch. // `startTime` is inclusive while `endTime` is exclusive, therefore the data will // be cleared between startTime and endTime. // This function is asynchronous and it triggers the TWVBrowserBase.OnClearBrowsingDataCompleted event when it finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdataintimerange">See the ICoreWebView2Profile2 article.</a> ClearBrowsingDataInTimeRange(dataKinds TWVBrowsingDataKinds, startTime, endTime float64) bool // function // ClearBrowsingDataAll // ClearBrowsingDataAll behaves like ClearBrowsingData except that it // clears the entirety of the data associated with the profile it is called on. // It clears the data regardless of timestamp. // This function is asynchronous and it triggers the TWVBrowserBase.OnClearBrowsingDataCompleted event when it finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdataall">See the ICoreWebView2Profile2 article.</a> ClearBrowsingDataAll() bool // function // ClearServerCertificateErrorActions // Clears all cached decisions to proceed with TLS certificate errors from the // OnServerCertificateErrorDetected event for all WebView2's sharing the same session. // This function is asynchronous and it triggers the TWVBrowserBase.OnServerCertificateErrorActionsCompleted event when it finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_14#clearservercertificateerroractions">See the ICoreWebView2_14 article.</a> ClearServerCertificateErrorActions() bool // function // GetFavicon // Async function for getting the actual image data of the favicon. // This function is asynchronous and it triggers the TWVBrowserBase.OnGetFaviconCompleted event when it finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_15#getfavicon">See the ICoreWebView2_15 article.</a> GetFavicon(aFormat TWVFaviconImageFormat) bool // function // Create a shared memory based buffer with the specified size in bytes. // The buffer can be shared with web contents in WebView by calling // `PostSharedBufferToScript` on `CoreWebView2` or `CoreWebView2Frame` object. // Once shared, the same content of the buffer will be accessible from both // the app process and script in WebView. Modification to the content will be visible // to all parties that have access to the buffer. // The shared buffer is presented to the script as ArrayBuffer. All JavaScript APIs // that work for ArrayBuffer including Atomics APIs can be used on it. // There is currently a limitation that only size less than 2GB is supported. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment12#createsharedbuffer">See the ICoreWebView2Environment12 article.</a> CreateSharedBuffer(aSize int64, aSharedBuffer *ICoreWebView2SharedBuffer) bool // function // Share a shared buffer object with script of the main frame in the WebView. // The script will receive a `sharedbufferreceived` event from chrome.webview. // Read the linked article for all the details. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_17#postsharedbuffertoscript">See the ICoreWebView2_17 article.</a> PostSharedBufferToScript(aSharedBuffer ICoreWebView2SharedBuffer, aAccess TWVSharedBufferAccess, aAdditionalDataAsJson string) bool // function // GetProcessExtendedInfos // Gets a snapshot collection of `ProcessExtendedInfo`s corresponding to all // currently running processes associated with this `ICoreWebView2Environment` // excludes crashpad process. // This provides the same list of `ProcessInfo`s as what's provided in // `GetProcessInfos`, but additionally provides a list of associated `FrameInfo`s // which are actively running(showing or hiding UI elements) in the renderer // process. See `AssociatedFrameInfos` for more information. // <returns>True if successfull.</return> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment13#getprocessextendedinfos">See the ICoreWebView2Environment13 article.</a> // This function triggers the TWVBrowserBase.OnGetProcessExtendedInfosCompleted event. GetProcessExtendedInfos() bool // function // MoveFormTo // Move the parent form to the x and y coordinates. MoveFormTo(x, y int32) // procedure Is Abstract // MoveFormBy // Move the parent form adding x and y to the coordinates. MoveFormBy(x, y int32) // procedure Is Abstract // ResizeFormWidthTo // Add x to the parent form width. ResizeFormWidthTo(x int32) // procedure Is Abstract // ResizeFormHeightTo // Add y to the parent form height. ResizeFormHeightTo(y int32) // procedure Is Abstract // SetFormLeftTo // Set the parent form left property to x. SetFormLeftTo(x int32) // procedure Is Abstract // SetFormTopTo // Set the parent form top property to y. SetFormTopTo(y int32) // procedure Is Abstract // IncZoomStep // Increments the browser zoom. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_zoomfactor">See the ICoreWebView2Controller article.</a> IncZoomStep() // procedure // DecZoomStep // Decrements the browser zoom. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_zoomfactor">See the ICoreWebView2Controller article.</a> DecZoomStep() // procedure // ResetZoom // Sets the browser zoom to 100%. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#get_zoomfactor">See the ICoreWebView2Controller article.</a> ResetZoom() // procedure // ToggleMuteState // Enables or disables all audio output from this browser. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_8#get_ismuted">See the ICoreWebView2_8 article.</a> ToggleMuteState() // procedure // SetOnBrowserProcessExited // The OnBrowserProcessExited event is triggered when the collection of WebView2 // Runtime processes for the browser process of this environment terminate // due to browser process failure or normal shutdown(for example, when all // associated WebViews are closed), after all resources have been released // (including the user data folder). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment5#add_browserprocessexited">See the ICoreWebView2Environment5 article.</a> SetOnBrowserProcessExited(fn TOnBrowserProcessExitedEvent) // property event // SetOnProcessInfosChanged // OnProcessInfosChanged is triggered when the ProcessInfos property has changed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment8#add_processinfoschanged">See the ICoreWebView2Environment8 article.</a> SetOnProcessInfosChanged(fn TOnProcessInfosChangedEvent) // property event // SetOnContainsFullScreenElementChanged // `OnContainsFullScreenElementChanged` triggers when the // `ContainsFullScreenElement` property changes. An HTML element inside the // WebView may enter fullscreen to the size of the WebView or leave // fullscreen. This event is useful when, for example, a video element // requests to go fullscreen. The listener of // `ContainsFullScreenElementChanged` may resize the WebView in response. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_containsfullscreenelementchanged">See the ICoreWebView2 article.</a> SetOnContainsFullScreenElementChanged(fn TNotifyEvent) // property event // SetOnContentLoading // `OnContentLoading` triggers before any content is loaded, including scripts added with // `AddScriptToExecuteOnDocumentCreated`. `ContentLoading` does not trigger // if a same page navigation occurs(such as through `fragment` // navigations or `history.pushState` navigations). This operation // follows the `NavigationStarting` and `SourceChanged` events and precedes // the `HistoryChanged` and `NavigationCompleted` events. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_contentloading">See the ICoreWebView2 article.</a> SetOnContentLoading(fn TOnContentLoadingEvent) // property event // SetOnDocumentTitleChanged // `OnDocumentTitleChanged` runs when the `DocumentTitle` property of the // WebView changes and may run before or after the `NavigationCompleted` // event. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_documenttitlechanged">See the ICoreWebView2 article.</a> SetOnDocumentTitleChanged(fn TNotifyEvent) // property event // `OnFrameNavigationCompleted` triggers when a child frame has completely // loaded(concurrently when `body.onload` has triggered) or loading stopped with error. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_framenavigationcompleted">See the ICoreWebView2 article.</a> SetOnFrameNavigationCompleted(fn TOnNavigationCompletedEvent) // property event // `OnFrameNavigationStarting` triggers when a child frame in the WebView // requests permission to navigate to a different URI. Redirects trigger // this operation as well, and the navigation id is the same as the original // one. Navigations will be blocked until all `FrameNavigationStarting` event // handlers return. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_framenavigationstarting">See the ICoreWebView2 article.</a> SetOnFrameNavigationStarting(fn TOnNavigationStartingEvent) // property event // SetOnHistoryChanged // `OnHistoryChanged` is raised for changes to joint session history, which consists of top-level // and manual frame navigations. Use `HistoryChanged` to verify that the // `CanGoBack` or `CanGoForward` value has changed. `HistoryChanged` also // runs for using `GoBack` or `GoForward`. `HistoryChanged` runs after // `SourceChanged` and `ContentLoading`. `CanGoBack` is false for // navigations initiated through ICoreWebView2Frame APIs if there has not yet // been a user gesture. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_historychanged">See the ICoreWebView2 article.</a> SetOnHistoryChanged(fn TNotifyEvent) // property event // `OnNavigationCompleted` runs when the WebView has completely loaded // (concurrently when `body.onload` runs) or loading stopped with error. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_navigationcompleted">See the ICoreWebView2 article.</a> SetOnNavigationCompleted(fn TOnNavigationCompletedEvent) // property event // `OnNavigationStarting` runs when the WebView main frame is requesting // permission to navigate to a different URI. Redirects trigger this // operation as well, and the navigation id is the same as the original // one. Navigations will be blocked until all `NavigationStarting` event handlers // return. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_navigationstarting">See the ICoreWebView2 article.</a> SetOnNavigationStarting(fn TOnNavigationStartingEvent) // property event // SetOnNewWindowRequested // `OnNewWindowRequested` runs when content inside the WebView requests to // open a new window, such as through `window.open`. The app can pass a // target WebView that is considered the opened window or mark the event as // `Handled`, in which case WebView2 does not open a window. // If either `Handled` or `NewWindow` properties are not set, the target // content will be opened on a popup window. // If a deferral is not taken on the event args, scripts that resulted in the // new window that are requested are blocked until the event handler returns. // If a deferral is taken, then scripts are blocked until the deferral is // completed or new window is set. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_newwindowrequested">See the ICoreWebView2 article.</a> SetOnNewWindowRequested(fn TOnNewWindowRequestedEvent) // property event // SetOnPermissionRequested // `OnPermissionRequested` runs when content in a WebView requests permission // to access some privileged resources. If a deferral is not taken on the event // args, the subsequent scripts are blocked until the event handler returns. // If a deferral is taken, the scripts are blocked until the deferral is completed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_permissionrequested">See the ICoreWebView2 article.</a> SetOnPermissionRequested(fn TOnPermissionRequestedEvent) // property event // SetOnProcessFailed // `OnProcessFailed` runs when any of the processes in the // [WebView2 Process Group](https://learn.microsoft.com/microsoft-edge/webview2/concepts/process-model?tabs=csharp#processes-in-the-webview2-runtime) // encounters one of the following conditions: // <code> // Condition | Details // ---|--- // Unexpected exit | The process indicated by the event args has exited unexpectedly(usually due to a crash). The failure might or might not be recoverable and some failures are auto-recoverable. // Unresponsiveness | The process indicated by the event args has become unresponsive to user input. This is only reported for renderer processes, and will run every few seconds until the process becomes responsive again. // </code> // NOTE: When the failing process is the browser process, a // `ICoreWebView2Environment5.BrowserProcessExited` event will run too. // Your application can use `ICoreWebView2ProcessFailedEventArgs` and // `ICoreWebView2ProcessFailedEventArgs2` to identify which condition and // process the event is for, and to collect diagnostics and handle recovery // if necessary. For more details about which cases need to be handled by // your application, see `COREWEBVIEW2_PROCESS_FAILED_KIND`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_processfailed">See the ICoreWebView2 article.</a> SetOnProcessFailed(fn TOnProcessFailedEvent) // property event // SetOnScriptDialogOpening // `OnScriptDialogOpening` runs when a JavaScript dialog(`alert`, `confirm`, // `prompt`, or `beforeunload`) displays for the webview. This event only // triggers if the `ICoreWebView2Settings.AreDefaultScriptDialogsEnabled` // property is set to `FALSE`. The `ScriptDialogOpening` event suppresses // dialogs or replaces default dialogs with custom dialogs. // If a deferral is not taken on the event args, the subsequent scripts are // blocked until the event handler returns. If a deferral is taken, the // scripts are blocked until the deferral is completed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_scriptdialogopening">See the ICoreWebView2 article.</a> SetOnScriptDialogOpening(fn TOnScriptDialogOpeningEvent) // property event // SetOnSourceChanged // `OnSourceChanged` triggers when the `Source` property changes. `SourceChanged` runs when // navigating to a different site or fragment navigations. It does not // trigger for other types of navigations such as page refreshes or // `history.pushState` with the same URL as the current page. // `SourceChanged` runs before `ContentLoading` for navigation to a new // document. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_sourcechanged">See the ICoreWebView2 article.</a> SetOnSourceChanged(fn TOnSourceChangedEvent) // property event // SetOnWebMessageReceived // `OnWebMessageReceived` runs when the `ICoreWebView2Settings.IsWebMessageEnabled` // setting is set and the top-level document of the WebView runs // `window.chrome.webview.postMessage`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_webmessagereceived">See the ICoreWebView2 article.</a> SetOnWebMessageReceived(fn TOnWebMessageReceivedEvent) // property event // SetOnWebResourceRequested // `OnWebResourceRequested` runs when the WebView is performing a URL request // to a matching URL and resource context filter that was added with // `AddWebResourceRequestedFilter`. At least one filter must be added for // the event to run. // The web resource requested may be blocked until the event handler returns // if a deferral is not taken on the event args. If a deferral is taken, // then the web resource requested is blocked until the deferral is // completed. // If this event is subscribed in the add_NewWindowRequested handler it should be called // after the new window is set. For more details see `ICoreWebView2NewWindowRequestedEventArgs.put_NewWindow`. // This event is by default raised for file, http, and https URI schemes. // This is also raised for registered custom URI schemes. For more details // see `ICoreWebView2CustomSchemeRegistration`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_webresourcerequested">See the ICoreWebView2 article.</a> SetOnWebResourceRequested(fn TOnWebResourceRequestedEvent) // property event // SetOnWindowCloseRequested // `OnWindowCloseRequested` triggers when content inside the WebView // requested to close the window, such as after `window.close` is run. The // app should close the WebView and related app window if that makes sense // to the app. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_windowcloserequested">See the ICoreWebView2 article.</a> SetOnWindowCloseRequested(fn TNotifyEvent) // property event // SetOnDOMContentLoaded // OnDOMContentLoaded is raised when the initial html document has been parsed. // This aligns with the document's DOMContentLoaded event in html. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_2#add_domcontentloaded">See the ICoreWebView2_2 article.</a> SetOnDOMContentLoaded(fn TOnDOMContentLoadedEvent) // property event // SetOnWebResourceResponseReceived // OnWebResourceResponseReceived is raised when the WebView receives the // response for a request for a web resource(any URI resolution performed by // the WebView; such as HTTP/HTTPS, file and data requests from redirects, // navigations, declarations in HTML, implicit favicon lookups, and fetch API // usage in the document). The host app can use this event to view the actual // request and response for a web resource. There is no guarantee about the // order in which the WebView processes the response and the host app's // handler runs. The app's handler will not block the WebView from processing // the response. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_2#add_webresourceresponsereceived">See the ICoreWebView2_2 article.</a> SetOnWebResourceResponseReceived(fn TOnWebResourceResponseReceivedEvent) // property event // SetOnDownloadStarting // This event is raised when a download has begun, blocking the default download dialog, // but not blocking the progress of the download. // The host can choose to cancel a download, change the result file path, // and hide the default download dialog. // If the host chooses to cancel the download, the download is not saved, no // dialog is shown, and the state is changed to // COREWEBVIEW2_DOWNLOAD_STATE_INTERRUPTED with interrupt reason // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_CANCELED. Otherwise, the // download is saved to the default path after the event completes, // and default download dialog is shown if the host did not choose to hide it. // The host can change the visibility of the download dialog using the // `Handled` property. If the event is not handled, downloads complete // normally with the default dialog shown. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_4#add_downloadstarting">See the ICoreWebView2_4 article.</a> SetOnDownloadStarting(fn TOnDownloadStartingEvent) // property event // SetOnFrameCreated // Raised when a new iframe is created. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_4#add_framecreated">See the ICoreWebView2_4 article.</a> SetOnFrameCreated(fn TOnFrameCreatedEvent) // property event // SetOnClientCertificateRequested // The OnClientCertificateRequested event is raised when the WebView2 // is making a request to an HTTP server that needs a client certificate // for HTTP authentication. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_5#add_clientcertificaterequested">See the ICoreWebView2_5 article.</a> SetOnClientCertificateRequested(fn TOnClientCertificateRequestedEvent) // property event // SetOnIsDocumentPlayingAudioChanged // `OnIsDocumentPlayingAudioChanged` is raised when the IsDocumentPlayingAudio property changes value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_8#add_isdocumentplayingaudiochanged">See the ICoreWebView2_8 article.</a> SetOnIsDocumentPlayingAudioChanged(fn TOnIsDocumentPlayingAudioChangedEvent) // property event // SetOnIsMutedChanged // `OnIsMutedChanged` is raised when the IsMuted property changes value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_8#add_ismutedchanged">See the ICoreWebView2_8 article.</a> SetOnIsMutedChanged(fn TOnIsMutedChangedEvent) // property event // SetOnIsDefaultDownloadDialogOpenChanged // Raised when the `IsDefaultDownloadDialogOpen` property changes. This event // comes after the `DownloadStarting` event. Setting the `Handled` property // on the `DownloadStartingEventArgs` disables the default download dialog // and ensures that this event is never raised. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_9#add_isdefaultdownloaddialogopenchanged">See the ICoreWebView2_9 article.</a> SetOnIsDefaultDownloadDialogOpenChanged(fn TOnIsDefaultDownloadDialogOpenChangedEvent) // property event // SetOnBasicAuthenticationRequested // Add an event handler for the BasicAuthenticationRequested event. // BasicAuthenticationRequested event is raised when WebView encounters a // Basic HTTP Authentication request as described in // https://developer.mozilla.org/docs/Web/HTTP/Authentication, a Digest // HTTP Authentication request as described in // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization#digest, // an NTLM authentication or a Proxy Authentication request. // The host can provide a response with credentials for the authentication or // cancel the request. If the host sets the Cancel property to false but does not // provide either UserName or Password properties on the Response property, then // WebView2 will show the default authentication challenge dialog prompt to // the user. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_10#add_basicauthenticationrequested">See the ICoreWebView2_10 article.</a> SetOnBasicAuthenticationRequested(fn TOnBasicAuthenticationRequestedEvent) // property event // SetOnContextMenuRequested // `OnContextMenuRequested` event is raised when a context menu is requested by the user // and the content inside WebView hasn't disabled context menus. // The host has the option to create their own context menu with the information provided in // the event or can add items to or remove items from WebView context menu. // If the host doesn't handle the event, WebView will display the default context menu. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_11#add_contextmenurequested">See the ICoreWebView2_11 article.</a> SetOnContextMenuRequested(fn TOnContextMenuRequestedEvent) // property event // SetOnStatusBarTextChanged // `OnStatusBarTextChanged` fires when the WebView is showing a status message, // a URL, or an empty string(an indication to hide the status bar). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_12#add_statusbartextchanged">See the ICoreWebView2_12 article.</a> SetOnStatusBarTextChanged(fn TOnStatusBarTextChangedEvent) // property event // SetOnServerCertificateErrorActionsCompleted // Event triggered when TWVBrowserBase.ClearServerCertificateErrorActions finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_14#clearservercertificateerroractions">See the ICoreWebView2_14 article.</a> SetOnServerCertificateErrorActionsCompleted(fn TOnServerCertificateErrorActionsCompletedEvent) // property event // SetOnServerCertificateErrorDetected // The OnServerCertificateErrorDetected event is raised when the WebView2 // cannot verify server's digital certificate while loading a web page. // This event will raise for all web resources and follows the `WebResourceRequested` event. // If you don't handle the event, WebView2 will show the default TLS interstitial error page to the user // for navigations, and for non-navigations the web request is cancelled. // Note that WebView2 before raising `OnServerCertificateErrorDetected` raises a `OnNavigationCompleted` event // with `IsSuccess` as FALSE and any of the below WebErrorStatuses that indicate a certificate failure. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_14#add_servercertificateerrordetected">See the ICoreWebView2_14 article.</a> SetOnServerCertificateErrorDetected(fn TOnServerCertificateErrorDetectedEvent) // property event // SetOnFaviconChanged // The `OnFaviconChanged` event is raised when the // [favicon](https://developer.mozilla.org/docs/Glossary/Favicon) // had a different URL then the previous URL. // The OnFaviconChanged event will be raised for first navigating to a new // document, whether or not a document declares a Favicon in HTML if the // favicon is different from the previous fav icon. The event will // be raised again if a favicon is declared in its HTML or has script // to set its favicon. The favicon information can then be retrieved with // `GetFavicon` and `FaviconUri`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_15#add_faviconchanged">See the ICoreWebView2_15 article.</a> SetOnFaviconChanged(fn TOnFaviconChangedEvent) // property event // SetOnGetFaviconCompleted // The TWVBrowserBase.OnGetFaviconCompleted event is triggered when the TWVBrowserBase.GetFavicon call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_15#getfavicon">See the ICoreWebView2_15 article.</a> SetOnGetFaviconCompleted(fn TOnGetFaviconCompletedEvent) // property event // SetOnPrintCompleted // The TWVBrowserBase.OnPrintCompleted event is triggered when the TWVBrowserBase.Print call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_16#print">See the ICoreWebView2_16 article.</a> SetOnPrintCompleted(fn TOnPrintCompletedEvent) // property event // SetOnPrintToPdfStreamCompleted // The TWVBrowserBase.OnPrintCompleted event is triggered when the TWVBrowserBase.PrintToPdfStream call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_16#printtopdfstream">See the ICoreWebView2_16 article.</a> SetOnPrintToPdfStreamCompleted(fn TOnPrintToPdfStreamCompletedEvent) // property event // SetOnAcceleratorKeyPressed // `OnAcceleratorKeyPressed` runs when an accelerator key or key combo is // pressed or released while the WebView is focused. A key is considered an // accelerator if either of the following conditions are true. // * Ctrl or Alt is currently being held. // * The pressed key does not map to a character. // A few specific keys are never considered accelerators, such as Shift. // The `Escape` key is always considered an accelerator. // Auto-repeated key events caused by holding the key down also triggers // this event. Filter out the auto-repeated key events by verifying the // `KeyEventLParam` or `PhysicalKeyStatus` event args. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#add_acceleratorkeypressed">See the ICoreWebView2Controller article.</a> SetOnAcceleratorKeyPressed(fn TOnAcceleratorKeyPressedEvent) // property event // SetOnGotFocus // `OnGotFocus` runs when WebView has focus. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#add_gotfocus">See the ICoreWebView2Controller article.</a> SetOnGotFocus(fn TNotifyEvent) // property event // SetOnLostFocus // `OnLostFocus` runs when WebView loses focus. In the case where `OnMoveFocusRequested` event is // run, the focus is still on WebView when `OnMoveFocusRequested` event runs. // `LostFocus` only runs afterwards when code of the app or default action // of `OnMoveFocusRequested` event set focus away from WebView. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#add_lostfocus">See the ICoreWebView2Controller article.</a> SetOnLostFocus(fn TNotifyEvent) // property event // SetOnMoveFocusRequested // `OnMoveFocusRequested` runs when user tries to tab out of the WebView. The // focus of the WebView has not changed when this event is run. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#add_movefocusrequested">See the ICoreWebView2Controller article.</a> SetOnMoveFocusRequested(fn TOnMoveFocusRequestedEvent) // property event // SetOnZoomFactorChanged // `OnZoomFactorChanged` runs when the `ZoomFactor` property of the WebView // changes. The event may run because the `ZoomFactor` property was // modified, or due to the user manually modifying the zoom. When it is // modified using the `ZoomFactor` property, the internal zoom factor is // updated immediately and no `OnZoomFactorChanged` event is triggered. // WebView associates the last used zoom factor for each site. It is // possible for the zoom factor to change when navigating to a different // page. When the zoom factor changes due to a navigation change, the // `OnZoomFactorChanged` event runs right after the `ContentLoading` event. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#add_zoomfactorchanged">See the ICoreWebView2Controller article.</a> SetOnZoomFactorChanged(fn TNotifyEvent) // property event // SetOnRasterizationScaleChanged // The event is raised when the WebView detects that the monitor DPI scale // has changed, ShouldDetectMonitorScaleChanges is true, and the WebView has // changed the RasterizationScale property. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller3#add_rasterizationscalechanged">See the ICoreWebView2Controller3 article.</a> SetOnRasterizationScaleChanged(fn TNotifyEvent) // property event // SetOnCursorChanged // The event is raised when WebView thinks the cursor should be changed. For // example, when the mouse cursor is currently the default cursor but is then // moved over text, it may try to change to the IBeam cursor. // It is expected for the developer to send // COREWEBVIEW2_MOUSE_EVENT_KIND_LEAVE messages(in addition to // COREWEBVIEW2_MOUSE_EVENT_KIND_MOVE messages) through the SendMouseInput // API. This is to ensure that the mouse is actually within the WebView that // sends out CursorChanged events. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller#add_cursorchanged">See the ICoreWebView2CompositionController article.</a> SetOnCursorChanged(fn TNotifyEvent) // property event // SetOnBytesReceivedChanged // The event is raised when the number of received bytes for a download operation changes. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#add_bytesreceivedchanged">See the ICoreWebView2DownloadOperation article.</a> SetOnBytesReceivedChanged(fn TOnBytesReceivedChangedEvent) // property event // SetOnEstimatedEndTimeChanged // The event is raised when the estimated end time for a download operation changes. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#add_estimatedendtimechanged">See the ICoreWebView2DownloadOperation article.</a> SetOnEstimatedEndTimeChanged(fn TOnEstimatedEndTimeChangedEvent) // property event // SetOnDownloadStateChanged // The event is raised when the download operation state changes. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#add_statechanged">See the ICoreWebView2DownloadOperation article.</a> SetOnDownloadStateChanged(fn TOnDownloadStateChangedEvent) // property event // SetOnFrameDestroyed // The OnFrameDestroyed event is raised when the iframe corresponding // to this CoreWebView2Frame object is removed or the document // containing that iframe is destroyed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame#add_destroyed">See the ICoreWebView2Frame article.</a> SetOnFrameDestroyed(fn TOnFrameDestroyedEvent) // property event // SetOnFrameNameChanged // Raised when the iframe changes its window.name property. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame#add_namechanged">See the ICoreWebView2Frame article.</a> SetOnFrameNameChanged(fn TOnFrameNameChangedEvent) // property event // A frame navigation will raise a `OnFrameNavigationStarting2` event and // a `OnFrameNavigationStarting` event. All of the // `FrameNavigationStarting` event handlers for the current frame will be // run before the `OnFrameNavigationStarting2` event handlers. All of the event handlers // share a common `NavigationStartingEventArgs` object. Whichever event handler is // last to change the `NavigationStartingEventArgs.Cancel` property will // decide if the frame navigation will be cancelled. Redirects raise this // event as well, and the navigation id is the same as the original one. // Navigations will be blocked until all `OnFrameNavigationStarting2` and // `OnFrameNavigationStarting` event handlers return. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame2#add_navigationstarting">See the ICoreWebView2Frame2 article.</a> SetOnFrameNavigationStarting2(fn TOnFrameNavigationStartingEvent) // property event // `OnFrameNavigationCompleted2` runs when the CoreWebView2Frame has completely // loaded(concurrently when `body.onload` runs) or loading stopped with error. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame2#add_navigationcompleted">See the ICoreWebView2Frame2 article.</a> SetOnFrameNavigationCompleted2(fn TOnFrameNavigationCompletedEvent) // property event // SetOnFrameContentLoading // `OnFrameContentLoading` triggers before any content is loaded, including scripts added with // `AddScriptToExecuteOnDocumentCreated`. `OnFrameContentLoading` does not trigger // if a same page navigation occurs(such as through `fragment` // navigations or `history.pushState` navigations). This operation // follows the `OnFrameNavigationStarting2` and precedes `OnFrameNavigationCompleted2` events. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame2#add_contentloading">See the ICoreWebView2Frame2 article.</a> SetOnFrameContentLoading(fn TOnFrameContentLoadingEvent) // property event // SetOnFrameDOMContentLoaded // OnFrameDOMContentLoaded is raised when the iframe html document has been parsed. // This aligns with the document's DOMContentLoaded event in html. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame2#add_domcontentloaded">See the ICoreWebView2Frame2 article.</a> SetOnFrameDOMContentLoaded(fn TOnFrameDOMContentLoadedEvent) // property event // SetOnFrameWebMessageReceived // `OnFrameWebMessageReceived` runs when the // `ICoreWebView2Settings.IsWebMessageEnabled` setting is set and the // frame document runs `window.chrome.webview.postMessage`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame2#add_webmessagereceived">See the ICoreWebView2Frame2 article.</a> SetOnFrameWebMessageReceived(fn TOnFrameWebMessageReceivedEvent) // property event // SetOnFramePermissionRequested // `OnFramePermissionRequested` is raised when content in an iframe any of its // descendant iframes requests permission to privileged resources. // This relates to the `OnPermissionRequested` event on the `CoreWebView2`. // Both these events will be raised in the case of an iframe requesting // permission. The `CoreWebView2Frame`'s event handlers will be invoked // before the event handlers on the `CoreWebView2`. If the `Handled` property // of the `PermissionRequestedEventArgs` is set to TRUE within the // `CoreWebView2Frame` event handler, then the event will not be // raised on the `CoreWebView2`, and it's event handlers will not be invoked. // In the case of nested iframes, the 'OnFramePermissionRequested' event will // be raised from the top level iframe. // If a deferral is not taken on the event args, the subsequent scripts are // blocked until the event handler returns. If a deferral is taken, the // scripts are blocked until the deferral is completed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame3#add_permissionrequested">See the ICoreWebView2Frame3 article.</a> SetOnFramePermissionRequested(fn TOnFramePermissionRequestedEvent) // property event // SetOnDevToolsProtocolEventReceived // OnDevToolsProtocolEventReceived is triggered when a DevTools protocol // event runs. It's necessary to subscribe to that event with a // SubscribeToDevToolsProtocolEvent call. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2devtoolsprotocoleventreceiver#add_devtoolsprotocoleventreceived">See the ICoreWebView2DevToolsProtocolEventReceiver article.</a> SetOnDevToolsProtocolEventReceived(fn TOnDevToolsProtocolEventReceivedEvent) // property event // SetOnCustomItemSelected // `OnCustomItemSelected` event is raised when the user selects a custom `ContextMenuItem`. // Will only be raised for end developer created context menu items. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitem#add_customitemselected">See the ICoreWebView2ContextMenuItem article.</a> SetOnCustomItemSelected(fn TOnCustomItemSelectedEvent) // property event // SetOnClearBrowsingDataCompleted // This event is triggered when the TWVBrowserBase.ClearBrowsingData call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdata">See the ICoreWebView2Profile2 article.</a> SetOnClearBrowsingDataCompleted(fn TOnClearBrowsingDataCompletedEvent) // property event // SetOnInitializationError // Called if any of the browser initialization steps fail. SetOnInitializationError(fn TOnInitializationErrorEvent) // property event // SetOnEnvironmentCompleted // Called when the environment was created successfully. SetOnEnvironmentCompleted(fn TNotifyEvent) // property event // SetOnControllerCompleted // Called when the controller was created successfully. SetOnControllerCompleted(fn TNotifyEvent) // property event // SetOnAfterCreated // Called after a new browser is created and it's ready to navigate to the default URL. SetOnAfterCreated(fn TNotifyEvent) // property event // SetOnExecuteScriptCompleted // Triggered when a TWVBrowserBase.ExecuteScript call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#executescript">See the ICoreWebView2 article.</a> SetOnExecuteScriptCompleted(fn TOnExecuteScriptCompletedEvent) // property event // SetOnCapturePreviewCompleted // Triggered when a TWVBrowserBase.CapturePreview call finishes writting the image to the stream. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#capturepreview">See the ICoreWebView2 article.</a> SetOnCapturePreviewCompleted(fn TOnCapturePreviewCompletedEvent) // property event // SetOnGetCookiesCompleted // Triggered when a TWVBrowserBase.GetCookies call finishes executing. This event includes the requested cookies. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager#getcookies">See the ICoreWebView2CookieManager article.</a> SetOnGetCookiesCompleted(fn TOnGetCookiesCompletedEvent) // property event // SetOnTrySuspendCompleted // The TWVBrowserBase.OnTrySuspendCompleted event is triggered when a TWVBrowserBase.TrySuspend call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_3#trysuspend">See the ICoreWebView2_3 article.</a> SetOnTrySuspendCompleted(fn TOnTrySuspendCompletedEvent) // property event // SetOnPrintToPdfCompleted // The TWVBrowserBase.OnPrintToPdfCompleted event is triggered when the TWVBrowserBase.PrintToPdf call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_7#printtopdf">See the ICoreWebView2_7 article.</a> SetOnPrintToPdfCompleted(fn TOnPrintToPdfCompletedEvent) // property event // SetOnCompositionControllerCompleted // Called when the composition controller was created successfully. SetOnCompositionControllerCompleted(fn TNotifyEvent) // property event // SetOnCallDevToolsProtocolMethodCompleted // The TWVBrowserBase.OnCallDevToolsProtocolMethodCompleted event is triggered // when TWVBrowserBase.CallDevToolsProtocolMethod finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#calldevtoolsprotocolmethod">See the ICoreWebView2 article.</a> SetOnCallDevToolsProtocolMethodCompleted(fn TOnCallDevToolsProtocolMethodCompletedEvent) // property event // SetOnAddScriptToExecuteOnDocumentCreatedCompleted // The TWVBrowserBase.OnAddScriptToExecuteOnDocumentCreatedCompleted event is triggered // when TWVBrowserBase.AddScriptToExecuteOnDocumentCreated finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#addscripttoexecuteondocumentcreated">See the ICoreWebView2 article.</a> SetOnAddScriptToExecuteOnDocumentCreatedCompleted(fn TOnAddScriptToExecuteOnDocumentCreatedCompletedEvent) // property event // SetOnWebResourceResponseViewGetContentCompleted // The TWVBrowserBase.OnWebResourceResponseViewGetContentCompleted event is triggered // when TCoreWebView2WebResourceResponseView.GetContent finishes executing. This event includes the resource contents. // See the MiniBrowser demo for an example. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponseview#getcontent">See the ICoreWebView2WebResourceResponseView article.</a> SetOnWebResourceResponseViewGetContentCompleted(fn TOnWebResourceResponseViewGetContentCompletedEvent) // property event // SetOnWidget0CompMsg // Event triggered when the window called 'Chrome_WidgetWin_0' receives a message. SetOnWidget0CompMsg(fn TOnCompMsgEvent) // property event // SetOnWidget1CompMsg // Event triggered when the window called 'Chrome_WidgetWin_1' receives a message. SetOnWidget1CompMsg(fn TOnCompMsgEvent) // property event // SetOnRenderCompMsg // Event triggered when the window called 'Chrome_RenderWidgetHostHWND' receives a message. SetOnRenderCompMsg(fn TOnCompMsgEvent) // property event // SetOnD3DWindowCompMsg // Event triggered when the window called 'Intermediate D3D Window' receives a message. SetOnD3DWindowCompMsg(fn TOnCompMsgEvent) // property event // SetOnRetrieveHTMLCompleted // The TWVBrowserBase.OnRetrieveHTMLCompleted event is triggered when TWVBrowserBase.RetrieveHTML finishes executing. It includes the HTML contents. SetOnRetrieveHTMLCompleted(fn TOnRetrieveHTMLCompletedEvent) // property event // SetOnRetrieveTextCompleted // The TWVBrowserBase.OnRetrieveTextCompleted event is triggered when TWVBrowserBase.RetrieveText finishes executing. It includes the text contents. SetOnRetrieveTextCompleted(fn TOnRetrieveTextCompletedEvent) // property event // SetOnRetrieveMHTMLCompleted // The TWVBrowserBase.OnRetrieveMHTMLCompleted event is triggered when TWVBrowserBase.RetrieveMHTML finishes executing. It includes the MHTML contents. SetOnRetrieveMHTMLCompleted(fn TOnRetrieveMHTMLCompletedEvent) // property event // SetOnClearCacheCompleted // The TWVBrowserBase.OnClearCacheCompleted event is triggered when TWVBrowserBase.ClearCache finishes executing. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-clearBrowserCache">See the Chrome DevTools Protocol page about the Network.clearBrowserCache method.</a> SetOnClearCacheCompleted(fn TOnClearCacheCompletedEvent) // property event // SetOnClearDataForOriginCompleted // The TWVBrowserBase.OnClearDataForOriginCompleted event is triggered when TWVBrowserBase.ClearDataForOrigin finishes executing. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-clearDataForOrigin">See the Chrome DevTools Protocol page about the Storage.clearDataForOrigin method.</a> SetOnClearDataForOriginCompleted(fn TOnClearDataForOriginCompletedEvent) // property event // SetOnOfflineCompleted // The TWVBrowserBase.OnOfflineCompleted event is triggered after setting the TWVBrowserBase.Offline property. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-emulateNetworkConditions">See the Network Domain article.</a> SetOnOfflineCompleted(fn TOnOfflineCompletedEvent) // property event // SetOnIgnoreCertificateErrorsCompleted // The TWVBrowserBase.OnIgnoreCertificateErrorsCompleted event is triggered after setting the TWVBrowserBase.IgnoreCertificateErrors property. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Security/#method-setIgnoreCertificateErrors">See the Security Domain article.</a> SetOnIgnoreCertificateErrorsCompleted(fn TOnIgnoreCertificateErrorsCompletedEvent) // property event // SetOnRefreshIgnoreCacheCompleted // The TWVBrowserBase.OnRefreshIgnoreCacheCompleted event is triggered when TWVBrowserBase.RefreshIgnoreCache finishes executing. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-reload">See the Page Domain article.</a> SetOnRefreshIgnoreCacheCompleted(fn TOnRefreshIgnoreCacheCompletedEvent) // property event // SetOnSimulateKeyEventCompleted // The TWVBrowserBase.OnSimulateKeyEventCompleted event is triggered when TWVBrowserBase.SimulateKeyEvent or TWVBrowserBase.SimulateEditingCommand finish executing. // <a href="https://chromedevtools.github.io/devtools-protocol/1-3/Input/#method-dispatchKeyEvent">See the "Input.dispatchKeyEvent" DevTools method.</a> SetOnSimulateKeyEventCompleted(fn TOnSimulateKeyEventCompletedEvent) // property event // SetOnGetCustomSchemes // OnGetCustomSchemes is triggered automatically before creaing the environment to register custom schemes. // Fill the aCustomSchemes event parameter with all the information to create one or more // ICoreWebView2CustomSchemeRegistration instances that will be used during the creation of the Environment. // <a cref="uWVTypes|TWVCustomSchemeInfo">See TWVCustomSchemeInfo.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2customschemeregistration">See the ICoreWebView2CustomSchemeRegistration article.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions4">See the ICoreWebView2EnvironmentOptions4 article.</a> SetOnGetCustomSchemes(fn TOnGetCustomSchemesEvent) // property event // SetOnGetNonDefaultPermissionSettingsCompleted // The TWVBrowserBase.OnGetNonDefaultPermissionSettingsCompleted event is triggered when TWVBrowserBase.GetNonDefaultPermissionSettings finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile4#getnondefaultpermissionsettings">See the ICoreWebView2Profile4 article.</a> SetOnGetNonDefaultPermissionSettingsCompleted(fn TOnGetNonDefaultPermissionSettingsCompletedEvent) // property event // SetOnSetPermissionStateCompleted // The TWVBrowserBase.OnSetPermissionStateCompleted event is triggered when TWVBrowserBase.SetPermissionState finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile4#setpermissionstate">See the ICoreWebView2Profile4 article.</a> SetOnSetPermissionStateCompleted(fn TOnSetPermissionStateCompletedEvent) // property event // SetOnLaunchingExternalUriScheme // The `OnLaunchingExternalUriScheme` event is raised when a navigation request is made to // a URI scheme that is registered with the OS. // The `OnLaunchingExternalUriScheme` event handler may suppress the default dialog // or replace the default dialog with a custom dialog. // If a deferral is not taken on the event args, the external URI scheme launch is // blocked until the event handler returns. If a deferral is taken, the // external URI scheme launch is blocked until the deferral is completed. // The host also has the option to cancel the URI scheme launch. // The `NavigationStarting` and `NavigationCompleted` events will be raised, // regardless of whether the `Cancel` property is set to `TRUE` or // `FALSE`. The `NavigationCompleted` event will be raised with the `IsSuccess` property // set to `FALSE` and the `WebErrorStatus` property set to `ConnectionAborted` regardless of // whether the host sets the `Cancel` property on the // `ICoreWebView2LaunchingExternalUriSchemeEventArgs`. The `SourceChanged`, `ContentLoading`, // and `HistoryChanged` events will not be raised for this navigation to the external URI // scheme regardless of the `Cancel` property. // The `OnLaunchingExternalUriScheme` event will be raised after the // `NavigationStarting` event and before the `NavigationCompleted` event. // The default `CoreWebView2Settings` will also be updated upon navigation to an external // URI scheme. If a setting on the `CoreWebView2Settings` interface has been changed, // navigating to an external URI scheme will trigger the `CoreWebView2Settings` to update. // The WebView2 may not display the default dialog based on user settings, browser settings, // and whether the origin is determined as a // [trustworthy origin](https://w3c.github.io/webappsec-secure-contexts# // potentially-trustworthy-origin); however, the event will still be raised. // If the request is initiated by a cross-origin frame without a user gesture, // the request will be blocked and the `OnLaunchingExternalUriScheme` event will not // be raised. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_18#add_launchingexternalurischeme">See the ICoreWebView2_18 article.</a> SetOnLaunchingExternalUriScheme(fn TOnLaunchingExternalUriSchemeEvent) // property event // SetOnGetProcessExtendedInfosCompleted // The TWVBrowserBase.OnGetProcessExtendedInfosCompleted event is triggered when TWVBrowserBase.GetProcessExtendedInfos finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment13#getprocessextendedinfos">See the ICoreWebView2Environment13 article.</a> SetOnGetProcessExtendedInfosCompleted(fn TOnGetProcessExtendedInfosCompletedEvent) // property event // SetOnBrowserExtensionRemoveCompleted // The TWVBrowserBase.OnBrowserExtensionRemoveCompleted event is triggered when TCoreWebView2BrowserExtension.Remove finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextension#remove">See the ICoreWebView2BrowserExtension article.</a> SetOnBrowserExtensionRemoveCompleted(fn TOnBrowserExtensionRemoveCompletedEvent) // property event // SetOnBrowserExtensionEnableCompleted // The TWVBrowserBase.OnBrowserExtensionEnableCompleted event is triggered when TCoreWebView2BrowserExtension.Enable finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextension#enable">See the ICoreWebView2BrowserExtension article.</a> SetOnBrowserExtensionEnableCompleted(fn TOnBrowserExtensionEnableCompletedEvent) // property event // SetOnProfileAddBrowserExtensionCompleted // The TWVBrowserBase.OnProfileAddBrowserExtensionCompleted event is triggered when TWVBrowserBase.AddBrowserExtension finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile7#addbrowserextension">See the ICoreWebView2Profile7 article.</a> SetOnProfileAddBrowserExtensionCompleted(fn TOnProfileAddBrowserExtensionCompletedEvent) // property event // SetOnProfileGetBrowserExtensionsCompleted // The TWVBrowserBase.OnProfileGetBrowserExtensionsCompleted event is triggered when TWVBrowserBase.GetBrowserExtensions finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile7#getbrowserextensions">See the ICoreWebView2Profile7 article.</a> SetOnProfileGetBrowserExtensionsCompleted(fn TOnProfileGetBrowserExtensionsCompletedEvent) // property event // SetOnProfileDeleted // The TWVBrowserBase.OnProfileDeleted event is triggered when TWVBrowserBase.Delete finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile8#delete">See the ICoreWebView2Profile8 article.</a> SetOnProfileDeleted(fn TOnProfileDeletedEvent) // property event // SetOnExecuteScriptWithResultCompleted // Provides the result of ExecuteScriptWithResult. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_21#executescriptwithresult">See the ICoreWebView2_21 article.</a> SetOnExecuteScriptWithResultCompleted(fn TOnExecuteScriptWithResultCompletedEvent) // property event }
IWVBrowserBase Is Abstract Class Parent: IComponent
Parent class of TWVBrowser and TWVFMXBrowser that puts together all browser procedures, functions, properties and events in one place. It has all you need to create, modify and destroy a web browser.
func AsWVBrowserBase ¶
func AsWVBrowserBase(obj interface{}) IWVBrowserBase
AsWVBrowserBase Convert a pointer object to an existing class object
type IWVBrowserEvents ¶
type IWVBrowserEvents interface { IComponent // Instance // return instance uintptr Instance() uintptr // SetOnBrowserProcessExited // The OnBrowserProcessExited event is triggered when the collection of WebView2 // Runtime processes for the browser process of this environment terminate // due to browser process failure or normal shutdown(for example, when all // associated WebViews are closed), after all resources have been released // (including the user data folder). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment5#add_browserprocessexited">See the ICoreWebView2Environment5 article.</a> SetOnBrowserProcessExited(fn TOnBrowserProcessExitedEvent) // property event // SetOnProcessInfosChanged // OnProcessInfosChanged is triggered when the ProcessInfos property has changed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment8#add_processinfoschanged">See the ICoreWebView2Environment8 article.</a> SetOnProcessInfosChanged(fn TOnProcessInfosChangedEvent) // property event // SetOnContainsFullScreenElementChanged // `OnContainsFullScreenElementChanged` triggers when the // `ContainsFullScreenElement` property changes. An HTML element inside the // WebView may enter fullscreen to the size of the WebView or leave // fullscreen. This event is useful when, for example, a video element // requests to go fullscreen. The listener of // `ContainsFullScreenElementChanged` may resize the WebView in response. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_containsfullscreenelementchanged">See the ICoreWebView2 article.</a> SetOnContainsFullScreenElementChanged(fn TNotifyEvent) // property event // SetOnContentLoading // `OnContentLoading` triggers before any content is loaded, including scripts added with // `AddScriptToExecuteOnDocumentCreated`. `ContentLoading` does not trigger // if a same page navigation occurs(such as through `fragment` // navigations or `history.pushState` navigations). This operation // follows the `NavigationStarting` and `SourceChanged` events and precedes // the `HistoryChanged` and `NavigationCompleted` events. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_contentloading">See the ICoreWebView2 article.</a> SetOnContentLoading(fn TOnContentLoadingEvent) // property event // SetOnDocumentTitleChanged // `OnDocumentTitleChanged` runs when the `DocumentTitle` property of the // WebView changes and may run before or after the `NavigationCompleted` // event. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_documenttitlechanged">See the ICoreWebView2 article.</a> SetOnDocumentTitleChanged(fn TNotifyEvent) // property event // `OnFrameNavigationCompleted` triggers when a child frame has completely // loaded(concurrently when `body.onload` has triggered) or loading stopped with error. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_framenavigationcompleted">See the ICoreWebView2 article.</a> SetOnFrameNavigationCompleted(fn TOnNavigationCompletedEvent) // property event // `OnFrameNavigationStarting` triggers when a child frame in the WebView // requests permission to navigate to a different URI. Redirects trigger // this operation as well, and the navigation id is the same as the original // one. Navigations will be blocked until all `FrameNavigationStarting` event // handlers return. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_framenavigationstarting">See the ICoreWebView2 article.</a> SetOnFrameNavigationStarting(fn TOnNavigationStartingEvent) // property event // SetOnHistoryChanged // `OnHistoryChanged` is raised for changes to joint session history, which consists of top-level // and manual frame navigations. Use `HistoryChanged` to verify that the // `CanGoBack` or `CanGoForward` value has changed. `HistoryChanged` also // runs for using `GoBack` or `GoForward`. `HistoryChanged` runs after // `SourceChanged` and `ContentLoading`. `CanGoBack` is false for // navigations initiated through ICoreWebView2Frame APIs if there has not yet // been a user gesture. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_historychanged">See the ICoreWebView2 article.</a> SetOnHistoryChanged(fn TNotifyEvent) // property event // `OnNavigationCompleted` runs when the WebView has completely loaded // (concurrently when `body.onload` runs) or loading stopped with error. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_navigationcompleted">See the ICoreWebView2 article.</a> SetOnNavigationCompleted(fn TOnNavigationCompletedEvent) // property event // `OnNavigationStarting` runs when the WebView main frame is requesting // permission to navigate to a different URI. Redirects trigger this // operation as well, and the navigation id is the same as the original // one. Navigations will be blocked until all `NavigationStarting` event handlers // return. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_navigationstarting">See the ICoreWebView2 article.</a> SetOnNavigationStarting(fn TOnNavigationStartingEvent) // property event // SetOnNewWindowRequested // `OnNewWindowRequested` runs when content inside the WebView requests to // open a new window, such as through `window.open`. The app can pass a // target WebView that is considered the opened window or mark the event as // `Handled`, in which case WebView2 does not open a window. // If either `Handled` or `NewWindow` properties are not set, the target // content will be opened on a popup window. // If a deferral is not taken on the event args, scripts that resulted in the // new window that are requested are blocked until the event handler returns. // If a deferral is taken, then scripts are blocked until the deferral is // completed or new window is set. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_newwindowrequested">See the ICoreWebView2 article.</a> SetOnNewWindowRequested(fn TOnNewWindowRequestedEvent) // property event // SetOnPermissionRequested // `OnPermissionRequested` runs when content in a WebView requests permission // to access some privileged resources. If a deferral is not taken on the event // args, the subsequent scripts are blocked until the event handler returns. // If a deferral is taken, the scripts are blocked until the deferral is completed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_permissionrequested">See the ICoreWebView2 article.</a> SetOnPermissionRequested(fn TOnPermissionRequestedEvent) // property event // SetOnProcessFailed // `OnProcessFailed` runs when any of the processes in the // [WebView2 Process Group](https://learn.microsoft.com/microsoft-edge/webview2/concepts/process-model?tabs=csharp#processes-in-the-webview2-runtime) // encounters one of the following conditions: // <code> // Condition | Details // ---|--- // Unexpected exit | The process indicated by the event args has exited unexpectedly(usually due to a crash). The failure might or might not be recoverable and some failures are auto-recoverable. // Unresponsiveness | The process indicated by the event args has become unresponsive to user input. This is only reported for renderer processes, and will run every few seconds until the process becomes responsive again. // </code> // NOTE: When the failing process is the browser process, a // `ICoreWebView2Environment5.BrowserProcessExited` event will run too. // Your application can use `ICoreWebView2ProcessFailedEventArgs` and // `ICoreWebView2ProcessFailedEventArgs2` to identify which condition and // process the event is for, and to collect diagnostics and handle recovery // if necessary. For more details about which cases need to be handled by // your application, see `COREWEBVIEW2_PROCESS_FAILED_KIND`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_processfailed">See the ICoreWebView2 article.</a> SetOnProcessFailed(fn TOnProcessFailedEvent) // property event // SetOnScriptDialogOpening // `OnScriptDialogOpening` runs when a JavaScript dialog(`alert`, `confirm`, // `prompt`, or `beforeunload`) displays for the webview. This event only // triggers if the `ICoreWebView2Settings.AreDefaultScriptDialogsEnabled` // property is set to `FALSE`. The `ScriptDialogOpening` event suppresses // dialogs or replaces default dialogs with custom dialogs. // If a deferral is not taken on the event args, the subsequent scripts are // blocked until the event handler returns. If a deferral is taken, the // scripts are blocked until the deferral is completed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_scriptdialogopening">See the ICoreWebView2 article.</a> SetOnScriptDialogOpening(fn TOnScriptDialogOpeningEvent) // property event // SetOnSourceChanged // `OnSourceChanged` triggers when the `Source` property changes. `SourceChanged` runs when // navigating to a different site or fragment navigations. It does not // trigger for other types of navigations such as page refreshes or // `history.pushState` with the same URL as the current page. // `SourceChanged` runs before `ContentLoading` for navigation to a new // document. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_sourcechanged">See the ICoreWebView2 article.</a> SetOnSourceChanged(fn TOnSourceChangedEvent) // property event // SetOnWebMessageReceived // `OnWebMessageReceived` runs when the `ICoreWebView2Settings.IsWebMessageEnabled` // setting is set and the top-level document of the WebView runs // `window.chrome.webview.postMessage`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_webmessagereceived">See the ICoreWebView2 article.</a> SetOnWebMessageReceived(fn TOnWebMessageReceivedEvent) // property event // SetOnWebResourceRequested // `OnWebResourceRequested` runs when the WebView is performing a URL request // to a matching URL and resource context filter that was added with // `AddWebResourceRequestedFilter`. At least one filter must be added for // the event to run. // The web resource requested may be blocked until the event handler returns // if a deferral is not taken on the event args. If a deferral is taken, // then the web resource requested is blocked until the deferral is // completed. // If this event is subscribed in the add_NewWindowRequested handler it should be called // after the new window is set. For more details see `ICoreWebView2NewWindowRequestedEventArgs.put_NewWindow`. // This event is by default raised for file, http, and https URI schemes. // This is also raised for registered custom URI schemes. For more details // see `ICoreWebView2CustomSchemeRegistration`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_webresourcerequested">See the ICoreWebView2 article.</a> SetOnWebResourceRequested(fn TOnWebResourceRequestedEvent) // property event // SetOnWindowCloseRequested // `OnWindowCloseRequested` triggers when content inside the WebView // requested to close the window, such as after `window.close` is run. The // app should close the WebView and related app window if that makes sense // to the app. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#add_windowcloserequested">See the ICoreWebView2 article.</a> SetOnWindowCloseRequested(fn TNotifyEvent) // property event // SetOnDOMContentLoaded // OnDOMContentLoaded is raised when the initial html document has been parsed. // This aligns with the document's DOMContentLoaded event in html. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_2#add_domcontentloaded">See the ICoreWebView2_2 article.</a> SetOnDOMContentLoaded(fn TOnDOMContentLoadedEvent) // property event // SetOnWebResourceResponseReceived // OnWebResourceResponseReceived is raised when the WebView receives the // response for a request for a web resource(any URI resolution performed by // the WebView; such as HTTP/HTTPS, file and data requests from redirects, // navigations, declarations in HTML, implicit favicon lookups, and fetch API // usage in the document). The host app can use this event to view the actual // request and response for a web resource. There is no guarantee about the // order in which the WebView processes the response and the host app's // handler runs. The app's handler will not block the WebView from processing // the response. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_2#add_webresourceresponsereceived">See the ICoreWebView2_2 article.</a> SetOnWebResourceResponseReceived(fn TOnWebResourceResponseReceivedEvent) // property event // SetOnDownloadStarting // This event is raised when a download has begun, blocking the default download dialog, // but not blocking the progress of the download. // The host can choose to cancel a download, change the result file path, // and hide the default download dialog. // If the host chooses to cancel the download, the download is not saved, no // dialog is shown, and the state is changed to // COREWEBVIEW2_DOWNLOAD_STATE_INTERRUPTED with interrupt reason // COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_CANCELED. Otherwise, the // download is saved to the default path after the event completes, // and default download dialog is shown if the host did not choose to hide it. // The host can change the visibility of the download dialog using the // `Handled` property. If the event is not handled, downloads complete // normally with the default dialog shown. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_4#add_downloadstarting">See the ICoreWebView2_4 article.</a> SetOnDownloadStarting(fn TOnDownloadStartingEvent) // property event // SetOnFrameCreated // Raised when a new iframe is created. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_4#add_framecreated">See the ICoreWebView2_4 article.</a> SetOnFrameCreated(fn TOnFrameCreatedEvent) // property event // SetOnClientCertificateRequested // The OnClientCertificateRequested event is raised when the WebView2 // is making a request to an HTTP server that needs a client certificate // for HTTP authentication. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_5#add_clientcertificaterequested">See the ICoreWebView2_5 article.</a> SetOnClientCertificateRequested(fn TOnClientCertificateRequestedEvent) // property event // SetOnIsDocumentPlayingAudioChanged // `OnIsDocumentPlayingAudioChanged` is raised when the IsDocumentPlayingAudio property changes value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_8#add_isdocumentplayingaudiochanged">See the ICoreWebView2_8 article.</a> SetOnIsDocumentPlayingAudioChanged(fn TOnIsDocumentPlayingAudioChangedEvent) // property event // SetOnIsMutedChanged // `OnIsMutedChanged` is raised when the IsMuted property changes value. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_8#add_ismutedchanged">See the ICoreWebView2_8 article.</a> SetOnIsMutedChanged(fn TOnIsMutedChangedEvent) // property event // SetOnIsDefaultDownloadDialogOpenChanged // Raised when the `IsDefaultDownloadDialogOpen` property changes. This event // comes after the `DownloadStarting` event. Setting the `Handled` property // on the `DownloadStartingEventArgs` disables the default download dialog // and ensures that this event is never raised. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_9#add_isdefaultdownloaddialogopenchanged">See the ICoreWebView2_9 article.</a> SetOnIsDefaultDownloadDialogOpenChanged(fn TOnIsDefaultDownloadDialogOpenChangedEvent) // property event // SetOnBasicAuthenticationRequested // Add an event handler for the BasicAuthenticationRequested event. // BasicAuthenticationRequested event is raised when WebView encounters a // Basic HTTP Authentication request as described in // https://developer.mozilla.org/docs/Web/HTTP/Authentication, a Digest // HTTP Authentication request as described in // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization#digest, // an NTLM authentication or a Proxy Authentication request. // The host can provide a response with credentials for the authentication or // cancel the request. If the host sets the Cancel property to false but does not // provide either UserName or Password properties on the Response property, then // WebView2 will show the default authentication challenge dialog prompt to // the user. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_10#add_basicauthenticationrequested">See the ICoreWebView2_10 article.</a> SetOnBasicAuthenticationRequested(fn TOnBasicAuthenticationRequestedEvent) // property event // SetOnContextMenuRequested // `OnContextMenuRequested` event is raised when a context menu is requested by the user // and the content inside WebView hasn't disabled context menus. // The host has the option to create their own context menu with the information provided in // the event or can add items to or remove items from WebView context menu. // If the host doesn't handle the event, WebView will display the default context menu. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_11#add_contextmenurequested">See the ICoreWebView2_11 article.</a> SetOnContextMenuRequested(fn TOnContextMenuRequestedEvent) // property event // SetOnStatusBarTextChanged // `OnStatusBarTextChanged` fires when the WebView is showing a status message, // a URL, or an empty string(an indication to hide the status bar). // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_12#add_statusbartextchanged">See the ICoreWebView2_12 article.</a> SetOnStatusBarTextChanged(fn TOnStatusBarTextChangedEvent) // property event // SetOnServerCertificateErrorActionsCompleted // Event triggered when TWVBrowserBase.ClearServerCertificateErrorActions finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_14#clearservercertificateerroractions">See the ICoreWebView2_14 article.</a> SetOnServerCertificateErrorActionsCompleted(fn TOnServerCertificateErrorActionsCompletedEvent) // property event // SetOnServerCertificateErrorDetected // The OnServerCertificateErrorDetected event is raised when the WebView2 // cannot verify server's digital certificate while loading a web page. // This event will raise for all web resources and follows the `WebResourceRequested` event. // If you don't handle the event, WebView2 will show the default TLS interstitial error page to the user // for navigations, and for non-navigations the web request is cancelled. // Note that WebView2 before raising `OnServerCertificateErrorDetected` raises a `OnNavigationCompleted` event // with `IsSuccess` as FALSE and any of the below WebErrorStatuses that indicate a certificate failure. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_14#add_servercertificateerrordetected">See the ICoreWebView2_14 article.</a> SetOnServerCertificateErrorDetected(fn TOnServerCertificateErrorDetectedEvent) // property event // SetOnFaviconChanged // The `OnFaviconChanged` event is raised when the // [favicon](https://developer.mozilla.org/docs/Glossary/Favicon) // had a different URL then the previous URL. // The OnFaviconChanged event will be raised for first navigating to a new // document, whether or not a document declares a Favicon in HTML if the // favicon is different from the previous fav icon. The event will // be raised again if a favicon is declared in its HTML or has script // to set its favicon. The favicon information can then be retrieved with // `GetFavicon` and `FaviconUri`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_15#add_faviconchanged">See the ICoreWebView2_15 article.</a> SetOnFaviconChanged(fn TOnFaviconChangedEvent) // property event // SetOnGetFaviconCompleted // The TWVBrowserBase.OnGetFaviconCompleted event is triggered when the TWVBrowserBase.GetFavicon call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_15#getfavicon">See the ICoreWebView2_15 article.</a> SetOnGetFaviconCompleted(fn TOnGetFaviconCompletedEvent) // property event // SetOnPrintCompleted // The TWVBrowserBase.OnPrintCompleted event is triggered when the TWVBrowserBase.Print call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_16#print">See the ICoreWebView2_16 article.</a> SetOnPrintCompleted(fn TOnPrintCompletedEvent) // property event // SetOnPrintToPdfStreamCompleted // The TWVBrowserBase.OnPrintCompleted event is triggered when the TWVBrowserBase.PrintToPdfStream call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_16#printtopdfstream">See the ICoreWebView2_16 article.</a> SetOnPrintToPdfStreamCompleted(fn TOnPrintToPdfStreamCompletedEvent) // property event // SetOnAcceleratorKeyPressed // `OnAcceleratorKeyPressed` runs when an accelerator key or key combo is // pressed or released while the WebView is focused. A key is considered an // accelerator if either of the following conditions are true. // * Ctrl or Alt is currently being held. // * The pressed key does not map to a character. // A few specific keys are never considered accelerators, such as Shift. // The `Escape` key is always considered an accelerator. // Auto-repeated key events caused by holding the key down also triggers // this event. Filter out the auto-repeated key events by verifying the // `KeyEventLParam` or `PhysicalKeyStatus` event args. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#add_acceleratorkeypressed">See the ICoreWebView2Controller article.</a> SetOnAcceleratorKeyPressed(fn TOnAcceleratorKeyPressedEvent) // property event // SetOnGotFocus // `OnGotFocus` runs when WebView has focus. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#add_gotfocus">See the ICoreWebView2Controller article.</a> SetOnGotFocus(fn TNotifyEvent) // property event // SetOnLostFocus // `OnLostFocus` runs when WebView loses focus. In the case where `OnMoveFocusRequested` event is // run, the focus is still on WebView when `OnMoveFocusRequested` event runs. // `LostFocus` only runs afterwards when code of the app or default action // of `OnMoveFocusRequested` event set focus away from WebView. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#add_lostfocus">See the ICoreWebView2Controller article.</a> SetOnLostFocus(fn TNotifyEvent) // property event // SetOnMoveFocusRequested // `OnMoveFocusRequested` runs when user tries to tab out of the WebView. The // focus of the WebView has not changed when this event is run. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#add_movefocusrequested">See the ICoreWebView2Controller article.</a> SetOnMoveFocusRequested(fn TOnMoveFocusRequestedEvent) // property event // SetOnZoomFactorChanged // `OnZoomFactorChanged` runs when the `ZoomFactor` property of the WebView // changes. The event may run because the `ZoomFactor` property was // modified, or due to the user manually modifying the zoom. When it is // modified using the `ZoomFactor` property, the internal zoom factor is // updated immediately and no `OnZoomFactorChanged` event is triggered. // WebView associates the last used zoom factor for each site. It is // possible for the zoom factor to change when navigating to a different // page. When the zoom factor changes due to a navigation change, the // `OnZoomFactorChanged` event runs right after the `ContentLoading` event. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller#add_zoomfactorchanged">See the ICoreWebView2Controller article.</a> SetOnZoomFactorChanged(fn TNotifyEvent) // property event // SetOnRasterizationScaleChanged // The event is raised when the WebView detects that the monitor DPI scale // has changed, ShouldDetectMonitorScaleChanges is true, and the WebView has // changed the RasterizationScale property. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller3#add_rasterizationscalechanged">See the ICoreWebView2Controller3 article.</a> SetOnRasterizationScaleChanged(fn TNotifyEvent) // property event // SetOnCursorChanged // The event is raised when WebView thinks the cursor should be changed. For // example, when the mouse cursor is currently the default cursor but is then // moved over text, it may try to change to the IBeam cursor. // It is expected for the developer to send // COREWEBVIEW2_MOUSE_EVENT_KIND_LEAVE messages(in addition to // COREWEBVIEW2_MOUSE_EVENT_KIND_MOVE messages) through the SendMouseInput // API. This is to ensure that the mouse is actually within the WebView that // sends out CursorChanged events. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller#add_cursorchanged">See the ICoreWebView2CompositionController article.</a> SetOnCursorChanged(fn TNotifyEvent) // property event // SetOnBytesReceivedChanged // The event is raised when the number of received bytes for a download operation changes. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#add_bytesreceivedchanged">See the ICoreWebView2DownloadOperation article.</a> SetOnBytesReceivedChanged(fn TOnBytesReceivedChangedEvent) // property event // SetOnEstimatedEndTimeChanged // The event is raised when the estimated end time for a download operation changes. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#add_estimatedendtimechanged">See the ICoreWebView2DownloadOperation article.</a> SetOnEstimatedEndTimeChanged(fn TOnEstimatedEndTimeChangedEvent) // property event // SetOnDownloadStateChanged // The event is raised when the download operation state changes. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation#add_statechanged">See the ICoreWebView2DownloadOperation article.</a> SetOnDownloadStateChanged(fn TOnDownloadStateChangedEvent) // property event // SetOnFrameDestroyed // The OnFrameDestroyed event is raised when the iframe corresponding // to this CoreWebView2Frame object is removed or the document // containing that iframe is destroyed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame#add_destroyed">See the ICoreWebView2Frame article.</a> SetOnFrameDestroyed(fn TOnFrameDestroyedEvent) // property event // SetOnFrameNameChanged // Raised when the iframe changes its window.name property. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame#add_namechanged">See the ICoreWebView2Frame article.</a> SetOnFrameNameChanged(fn TOnFrameNameChangedEvent) // property event // A frame navigation will raise a `OnFrameNavigationStarting2` event and // a `OnFrameNavigationStarting` event. All of the // `FrameNavigationStarting` event handlers for the current frame will be // run before the `OnFrameNavigationStarting2` event handlers. All of the event handlers // share a common `NavigationStartingEventArgs` object. Whichever event handler is // last to change the `NavigationStartingEventArgs.Cancel` property will // decide if the frame navigation will be cancelled. Redirects raise this // event as well, and the navigation id is the same as the original one. // Navigations will be blocked until all `OnFrameNavigationStarting2` and // `OnFrameNavigationStarting` event handlers return. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame2#add_navigationstarting">See the ICoreWebView2Frame2 article.</a> SetOnFrameNavigationStarting2(fn TOnFrameNavigationStartingEvent) // property event // `OnFrameNavigationCompleted2` runs when the CoreWebView2Frame has completely // loaded(concurrently when `body.onload` runs) or loading stopped with error. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame2#add_navigationcompleted">See the ICoreWebView2Frame2 article.</a> SetOnFrameNavigationCompleted2(fn TOnFrameNavigationCompletedEvent) // property event // SetOnFrameContentLoading // `OnFrameContentLoading` triggers before any content is loaded, including scripts added with // `AddScriptToExecuteOnDocumentCreated`. `OnFrameContentLoading` does not trigger // if a same page navigation occurs(such as through `fragment` // navigations or `history.pushState` navigations). This operation // follows the `OnFrameNavigationStarting2` and precedes `OnFrameNavigationCompleted2` events. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame2#add_contentloading">See the ICoreWebView2Frame2 article.</a> SetOnFrameContentLoading(fn TOnFrameContentLoadingEvent) // property event // SetOnFrameDOMContentLoaded // OnFrameDOMContentLoaded is raised when the iframe html document has been parsed. // This aligns with the document's DOMContentLoaded event in html. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame2#add_domcontentloaded">See the ICoreWebView2Frame2 article.</a> SetOnFrameDOMContentLoaded(fn TOnFrameDOMContentLoadedEvent) // property event // SetOnFrameWebMessageReceived // `OnFrameWebMessageReceived` runs when the // `ICoreWebView2Settings.IsWebMessageEnabled` setting is set and the // frame document runs `window.chrome.webview.postMessage`. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame2#add_webmessagereceived">See the ICoreWebView2Frame2 article.</a> SetOnFrameWebMessageReceived(fn TOnFrameWebMessageReceivedEvent) // property event // SetOnFramePermissionRequested // `OnFramePermissionRequested` is raised when content in an iframe any of its // descendant iframes requests permission to privileged resources. // This relates to the `OnPermissionRequested` event on the `CoreWebView2`. // Both these events will be raised in the case of an iframe requesting // permission. The `CoreWebView2Frame`'s event handlers will be invoked // before the event handlers on the `CoreWebView2`. If the `Handled` property // of the `PermissionRequestedEventArgs` is set to TRUE within the // `CoreWebView2Frame` event handler, then the event will not be // raised on the `CoreWebView2`, and it's event handlers will not be invoked. // In the case of nested iframes, the 'OnFramePermissionRequested' event will // be raised from the top level iframe. // If a deferral is not taken on the event args, the subsequent scripts are // blocked until the event handler returns. If a deferral is taken, the // scripts are blocked until the deferral is completed. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame3#add_permissionrequested">See the ICoreWebView2Frame3 article.</a> SetOnFramePermissionRequested(fn TOnFramePermissionRequestedEvent) // property event // SetOnDevToolsProtocolEventReceived // OnDevToolsProtocolEventReceived is triggered when a DevTools protocol // event runs. It's necessary to subscribe to that event with a // SubscribeToDevToolsProtocolEvent call. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2devtoolsprotocoleventreceiver#add_devtoolsprotocoleventreceived">See the ICoreWebView2DevToolsProtocolEventReceiver article.</a> SetOnDevToolsProtocolEventReceived(fn TOnDevToolsProtocolEventReceivedEvent) // property event // SetOnCustomItemSelected // `OnCustomItemSelected` event is raised when the user selects a custom `ContextMenuItem`. // Will only be raised for end developer created context menu items. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitem#add_customitemselected">See the ICoreWebView2ContextMenuItem article.</a> SetOnCustomItemSelected(fn TOnCustomItemSelectedEvent) // property event // SetOnClearBrowsingDataCompleted // This event is triggered when the TWVBrowserBase.ClearBrowsingData call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile2#clearbrowsingdata">See the ICoreWebView2Profile2 article.</a> SetOnClearBrowsingDataCompleted(fn TOnClearBrowsingDataCompletedEvent) // property event // SetOnInitializationError // Called if any of the browser initialization steps fail. SetOnInitializationError(fn TOnInitializationErrorEvent) // property event // SetOnEnvironmentCompleted // Called when the environment was created successfully. SetOnEnvironmentCompleted(fn TNotifyEvent) // property event // SetOnControllerCompleted // Called when the controller was created successfully. SetOnControllerCompleted(fn TNotifyEvent) // property event // SetOnAfterCreated // Called after a new browser is created and it's ready to navigate to the default URL. SetOnAfterCreated(fn TNotifyEvent) // property event // SetOnExecuteScriptCompleted // Triggered when a TWVBrowserBase.ExecuteScript call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#executescript">See the ICoreWebView2 article.</a> SetOnExecuteScriptCompleted(fn TOnExecuteScriptCompletedEvent) // property event // SetOnCapturePreviewCompleted // Triggered when a TWVBrowserBase.CapturePreview call finishes writting the image to the stream. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#capturepreview">See the ICoreWebView2 article.</a> SetOnCapturePreviewCompleted(fn TOnCapturePreviewCompletedEvent) // property event // SetOnGetCookiesCompleted // Triggered when a TWVBrowserBase.GetCookies call finishes executing. This event includes the requested cookies. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager#getcookies">See the ICoreWebView2CookieManager article.</a> SetOnGetCookiesCompleted(fn TOnGetCookiesCompletedEvent) // property event // SetOnTrySuspendCompleted // The TWVBrowserBase.OnTrySuspendCompleted event is triggered when a TWVBrowserBase.TrySuspend call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_3#trysuspend">See the ICoreWebView2_3 article.</a> SetOnTrySuspendCompleted(fn TOnTrySuspendCompletedEvent) // property event // SetOnPrintToPdfCompleted // The TWVBrowserBase.OnPrintToPdfCompleted event is triggered when the TWVBrowserBase.PrintToPdf call finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_7#printtopdf">See the ICoreWebView2_7 article.</a> SetOnPrintToPdfCompleted(fn TOnPrintToPdfCompletedEvent) // property event // SetOnCompositionControllerCompleted // Called when the composition controller was created successfully. SetOnCompositionControllerCompleted(fn TNotifyEvent) // property event // SetOnCallDevToolsProtocolMethodCompleted // The TWVBrowserBase.OnCallDevToolsProtocolMethodCompleted event is triggered // when TWVBrowserBase.CallDevToolsProtocolMethod finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#calldevtoolsprotocolmethod">See the ICoreWebView2 article.</a> SetOnCallDevToolsProtocolMethodCompleted(fn TOnCallDevToolsProtocolMethodCompletedEvent) // property event // SetOnAddScriptToExecuteOnDocumentCreatedCompleted // The TWVBrowserBase.OnAddScriptToExecuteOnDocumentCreatedCompleted event is triggered // when TWVBrowserBase.AddScriptToExecuteOnDocumentCreated finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#addscripttoexecuteondocumentcreated">See the ICoreWebView2 article.</a> SetOnAddScriptToExecuteOnDocumentCreatedCompleted(fn TOnAddScriptToExecuteOnDocumentCreatedCompletedEvent) // property event // SetOnWebResourceResponseViewGetContentCompleted // The TWVBrowserBase.OnWebResourceResponseViewGetContentCompleted event is triggered // when TCoreWebView2WebResourceResponseView.GetContent finishes executing. This event includes the resource contents. // See the MiniBrowser demo for an example. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponseview#getcontent">See the ICoreWebView2WebResourceResponseView article.</a> SetOnWebResourceResponseViewGetContentCompleted(fn TOnWebResourceResponseViewGetContentCompletedEvent) // property event // SetOnWidget0CompMsg // Event triggered when the window called 'Chrome_WidgetWin_0' receives a message. SetOnWidget0CompMsg(fn TOnCompMsgEvent) // property event // SetOnWidget1CompMsg // Event triggered when the window called 'Chrome_WidgetWin_1' receives a message. SetOnWidget1CompMsg(fn TOnCompMsgEvent) // property event // SetOnRenderCompMsg // Event triggered when the window called 'Chrome_RenderWidgetHostHWND' receives a message. SetOnRenderCompMsg(fn TOnCompMsgEvent) // property event // SetOnD3DWindowCompMsg // Event triggered when the window called 'Intermediate D3D Window' receives a message. SetOnD3DWindowCompMsg(fn TOnCompMsgEvent) // property event // SetOnRetrieveHTMLCompleted // The TWVBrowserBase.OnRetrieveHTMLCompleted event is triggered when TWVBrowserBase.RetrieveHTML finishes executing. It includes the HTML contents. SetOnRetrieveHTMLCompleted(fn TOnRetrieveHTMLCompletedEvent) // property event // SetOnRetrieveTextCompleted // The TWVBrowserBase.OnRetrieveTextCompleted event is triggered when TWVBrowserBase.RetrieveText finishes executing. It includes the text contents. SetOnRetrieveTextCompleted(fn TOnRetrieveTextCompletedEvent) // property event // SetOnRetrieveMHTMLCompleted // The TWVBrowserBase.OnRetrieveMHTMLCompleted event is triggered when TWVBrowserBase.RetrieveMHTML finishes executing. It includes the MHTML contents. SetOnRetrieveMHTMLCompleted(fn TOnRetrieveMHTMLCompletedEvent) // property event // SetOnClearCacheCompleted // The TWVBrowserBase.OnClearCacheCompleted event is triggered when TWVBrowserBase.ClearCache finishes executing. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-clearBrowserCache">See the Chrome DevTools Protocol page about the Network.clearBrowserCache method.</a> SetOnClearCacheCompleted(fn TOnClearCacheCompletedEvent) // property event // SetOnClearDataForOriginCompleted // The TWVBrowserBase.OnClearDataForOriginCompleted event is triggered when TWVBrowserBase.ClearDataForOrigin finishes executing. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-clearDataForOrigin">See the Chrome DevTools Protocol page about the Storage.clearDataForOrigin method.</a> SetOnClearDataForOriginCompleted(fn TOnClearDataForOriginCompletedEvent) // property event // SetOnOfflineCompleted // The TWVBrowserBase.OnOfflineCompleted event is triggered after setting the TWVBrowserBase.Offline property. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-emulateNetworkConditions">See the Network Domain article.</a> SetOnOfflineCompleted(fn TOnOfflineCompletedEvent) // property event // SetOnIgnoreCertificateErrorsCompleted // The TWVBrowserBase.OnIgnoreCertificateErrorsCompleted event is triggered after setting the TWVBrowserBase.IgnoreCertificateErrors property. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Security/#method-setIgnoreCertificateErrors">See the Security Domain article.</a> SetOnIgnoreCertificateErrorsCompleted(fn TOnIgnoreCertificateErrorsCompletedEvent) // property event // SetOnRefreshIgnoreCacheCompleted // The TWVBrowserBase.OnRefreshIgnoreCacheCompleted event is triggered when TWVBrowserBase.RefreshIgnoreCache finishes executing. // <a href="https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-reload">See the Page Domain article.</a> SetOnRefreshIgnoreCacheCompleted(fn TOnRefreshIgnoreCacheCompletedEvent) // property event // SetOnSimulateKeyEventCompleted // The TWVBrowserBase.OnSimulateKeyEventCompleted event is triggered when TWVBrowserBase.SimulateKeyEvent or TWVBrowserBase.SimulateEditingCommand finish executing. // <a href="https://chromedevtools.github.io/devtools-protocol/1-3/Input/#method-dispatchKeyEvent">See the "Input.dispatchKeyEvent" DevTools method.</a> SetOnSimulateKeyEventCompleted(fn TOnSimulateKeyEventCompletedEvent) // property event // SetOnGetCustomSchemes // OnGetCustomSchemes is triggered automatically before creaing the environment to register custom schemes. // Fill the aCustomSchemes event parameter with all the information to create one or more // ICoreWebView2CustomSchemeRegistration instances that will be used during the creation of the Environment. // <a cref="uWVTypes|TWVCustomSchemeInfo">See TWVCustomSchemeInfo.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2customschemeregistration">See the ICoreWebView2CustomSchemeRegistration article.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions4">See the ICoreWebView2EnvironmentOptions4 article.</a> SetOnGetCustomSchemes(fn TOnGetCustomSchemesEvent) // property event // SetOnGetNonDefaultPermissionSettingsCompleted // The TWVBrowserBase.OnGetNonDefaultPermissionSettingsCompleted event is triggered when TWVBrowserBase.GetNonDefaultPermissionSettings finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile4#getnondefaultpermissionsettings">See the ICoreWebView2Profile4 article.</a> SetOnGetNonDefaultPermissionSettingsCompleted(fn TOnGetNonDefaultPermissionSettingsCompletedEvent) // property event // SetOnSetPermissionStateCompleted // The TWVBrowserBase.OnSetPermissionStateCompleted event is triggered when TWVBrowserBase.SetPermissionState finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile4#setpermissionstate">See the ICoreWebView2Profile4 article.</a> SetOnSetPermissionStateCompleted(fn TOnSetPermissionStateCompletedEvent) // property event // SetOnLaunchingExternalUriScheme // The `OnLaunchingExternalUriScheme` event is raised when a navigation request is made to // a URI scheme that is registered with the OS. // The `OnLaunchingExternalUriScheme` event handler may suppress the default dialog // or replace the default dialog with a custom dialog. // If a deferral is not taken on the event args, the external URI scheme launch is // blocked until the event handler returns. If a deferral is taken, the // external URI scheme launch is blocked until the deferral is completed. // The host also has the option to cancel the URI scheme launch. // The `NavigationStarting` and `NavigationCompleted` events will be raised, // regardless of whether the `Cancel` property is set to `TRUE` or // `FALSE`. The `NavigationCompleted` event will be raised with the `IsSuccess` property // set to `FALSE` and the `WebErrorStatus` property set to `ConnectionAborted` regardless of // whether the host sets the `Cancel` property on the // `ICoreWebView2LaunchingExternalUriSchemeEventArgs`. The `SourceChanged`, `ContentLoading`, // and `HistoryChanged` events will not be raised for this navigation to the external URI // scheme regardless of the `Cancel` property. // The `OnLaunchingExternalUriScheme` event will be raised after the // `NavigationStarting` event and before the `NavigationCompleted` event. // The default `CoreWebView2Settings` will also be updated upon navigation to an external // URI scheme. If a setting on the `CoreWebView2Settings` interface has been changed, // navigating to an external URI scheme will trigger the `CoreWebView2Settings` to update. // The WebView2 may not display the default dialog based on user settings, browser settings, // and whether the origin is determined as a // [trustworthy origin](https://w3c.github.io/webappsec-secure-contexts# // potentially-trustworthy-origin); however, the event will still be raised. // If the request is initiated by a cross-origin frame without a user gesture, // the request will be blocked and the `OnLaunchingExternalUriScheme` event will not // be raised. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_18#add_launchingexternalurischeme">See the ICoreWebView2_18 article.</a> SetOnLaunchingExternalUriScheme(fn TOnLaunchingExternalUriSchemeEvent) // property event // SetOnGetProcessExtendedInfosCompleted // The TWVBrowserBase.OnGetProcessExtendedInfosCompleted event is triggered when TWVBrowserBase.GetProcessExtendedInfos finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment13#getprocessextendedinfos">See the ICoreWebView2Environment13 article.</a> SetOnGetProcessExtendedInfosCompleted(fn TOnGetProcessExtendedInfosCompletedEvent) // property event // SetOnBrowserExtensionRemoveCompleted // The TWVBrowserBase.OnBrowserExtensionRemoveCompleted event is triggered when TCoreWebView2BrowserExtension.Remove finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextension#remove">See the ICoreWebView2BrowserExtension article.</a> SetOnBrowserExtensionRemoveCompleted(fn TOnBrowserExtensionRemoveCompletedEvent) // property event // SetOnBrowserExtensionEnableCompleted // The TWVBrowserBase.OnBrowserExtensionEnableCompleted event is triggered when TCoreWebView2BrowserExtension.Enable finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextension#enable">See the ICoreWebView2BrowserExtension article.</a> SetOnBrowserExtensionEnableCompleted(fn TOnBrowserExtensionEnableCompletedEvent) // property event // SetOnProfileAddBrowserExtensionCompleted // The TWVBrowserBase.OnProfileAddBrowserExtensionCompleted event is triggered when TWVBrowserBase.AddBrowserExtension finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile7#addbrowserextension">See the ICoreWebView2Profile7 article.</a> SetOnProfileAddBrowserExtensionCompleted(fn TOnProfileAddBrowserExtensionCompletedEvent) // property event // SetOnProfileGetBrowserExtensionsCompleted // The TWVBrowserBase.OnProfileGetBrowserExtensionsCompleted event is triggered when TWVBrowserBase.GetBrowserExtensions finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile7#getbrowserextensions">See the ICoreWebView2Profile7 article.</a> SetOnProfileGetBrowserExtensionsCompleted(fn TOnProfileGetBrowserExtensionsCompletedEvent) // property event // SetOnProfileDeleted // The TWVBrowserBase.OnProfileDeleted event is triggered when TWVBrowserBase.Delete finishes executing. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile8#delete">See the ICoreWebView2Profile8 article.</a> SetOnProfileDeleted(fn TOnProfileDeletedEvent) // property event // SetOnExecuteScriptWithResultCompleted // Provides the result of ExecuteScriptWithResult. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_21#executescriptwithresult">See the ICoreWebView2_21 article.</a> SetOnExecuteScriptWithResultCompleted(fn TOnExecuteScriptWithResultCompletedEvent) // property event }
IWVBrowserEvents
{4E06D91F-1213-46C1-ABB8-D41D8CC19E81} Proxy Object Event Interface, Event callback from: IWVBrowser IWVBrowserBase
func NewWVBrowserDelegateEvents ¶
func NewWVBrowserDelegateEvents() IWVBrowserEvents
NewWVBrowserDelegateEvents
IWVBrowserEvents 代理对象,设置事件接收对象 该对象和默认的浏览器对象不同,它被创建后是单独的,默认不会执行浏览器事件 只有在用户设置事件接收对象时有效,且会触发对应的事件
type IWVLoader ¶
type IWVLoader interface { IComponent SetOnEnvironmentCreated(fn TOnLoaderNotifyEvent) SetOnInitializationError(fn TOnLoaderNotifyEvent) SetOnGetCustomSchemes(fn TOnLoaderGetCustomSchemesEvent) SetOnNewBrowserVersionAvailable(fn TOnLoaderNewBrowserVersionAvailableEvent) SetOnBrowserProcessExited(fn TOnLoaderBrowserProcessExitedEvent) SetOnProcessInfosChanged(fn TOnLoaderProcessInfosChangedEvent) // Environment // Represents the global WebView2 Environment. Environment() ICoreWebView2Environment // property // Status // Returns the TWVLoader initialization status. Status() TWV2LoaderStatus // property // AvailableBrowserVersion // Get the browser version info including channel name if it is not the // WebView2 Runtime. Channel names are Beta, Dev, and Canary. AvailableBrowserVersion() string // property // ErrorMessage // Returns all the text appended to the error log with AppendErrorLog. ErrorMessage() string // property // ErrorCode // Returns the last initialization error code. ErrorCode() (resultInt64 int64) // property // SetCurrentDir // Used to set the current directory when the WebView2 library is loaded. This is required if the application is launched from a different application. SetCurrentDir() bool // property // SetSetCurrentDir Set SetCurrentDir SetSetCurrentDir(AValue bool) // property // Initialized // Returns true if the Status is wvlsInitialized. Initialized() bool // property // InitializationError // Returns true if the Status is wvlsError. InitializationError() bool // property // CheckFiles // Checks if the WebView2 library is present and the DLL version. CheckFiles() bool // property // SetCheckFiles Set CheckFiles SetCheckFiles(AValue bool) // property // ShowMessageDlg // Set to true when you need to use a showmessage dialog to show the error messages. ShowMessageDlg() bool // property // SetShowMessageDlg Set ShowMessageDlg SetShowMessageDlg(AValue bool) // property // InitCOMLibrary // Set to true to call CoInitializeEx and CoUnInitialize in TWVLoader.Create and TWVLoader.Destroy. InitCOMLibrary() bool // property // SetInitCOMLibrary Set InitCOMLibrary SetInitCOMLibrary(AValue bool) // property // CustomCommandLineSwitches // Custom command line switches used by TCoreWebView2EnvironmentOptions.Create to initialize WebView2. CustomCommandLineSwitches() string // property // DeviceScaleFactor // Returns the device scale factor. DeviceScaleFactor() (resultSingle float32) // property // ReRaiseExceptions // Set to true to raise all exceptions. ReRaiseExceptions() bool // property // SetReRaiseExceptions Set ReRaiseExceptions SetReRaiseExceptions(AValue bool) // property // InstalledRuntimeVersion // Returns the installed WebView2 runtime version. InstalledRuntimeVersion() string // property // LoaderDllPath // Full path to WebView2Loader.dll. Leave empty to load WebView2Loader.dll from the current directory. LoaderDllPath() string // property // SetLoaderDllPath Set LoaderDllPath SetLoaderDllPath(AValue string) // property // UseInternalLoader // Use a WebView2Loader.dll replacement based on the OpenWebView2Loader project. // <a href="https://github.com/jchv/OpenWebView2Loader">See the OpenWebView2Loader project repository at GitHub.</a> UseInternalLoader() bool // property // SetUseInternalLoader Set UseInternalLoader SetUseInternalLoader(AValue bool) // property // BrowserExecPath // Use BrowserExecPath to specify whether WebView2 controls use a fixed or // installed version of the WebView2 Runtime that exists on a user machine. // To use a fixed version of the WebView2 Runtime, pass the folder path that // contains the fixed version of the WebView2 Runtime to BrowserExecPath. // BrowserExecPath supports both relative(to the application's executable) // and absolute files paths. To create WebView2 controls that use the installed // version of the WebView2 Runtime that exists on user machines, // pass an empty string to BrowserExecPath. // Property used to create the environment. Used as the browserExecutableFolder parameter of CreateCoreWebView2EnvironmentWithOptions. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#createcorewebview2environmentwithoptions">See the Globals article.</a> BrowserExecPath() string // property // SetBrowserExecPath Set BrowserExecPath SetBrowserExecPath(AValue string) // property // UserDataFolder // You may specify the userDataFolder to change the default user data folder // location for WebView2. The path is either an absolute file path or a relative // file path that is interpreted as relative to the compiled code for the // current process. // Property used to create the environment. Used as the userDataFolder parameter of CreateCoreWebView2EnvironmentWithOptions. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#createcorewebview2environmentwithoptions">See the Globals article.</a> UserDataFolder() string // property // SetUserDataFolder Set UserDataFolder SetUserDataFolder(AValue string) // property // AdditionalBrowserArguments // Additional command line switches. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions.get_AdditionalBrowserArguments. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions">See the ICoreWebView2EnvironmentOptions article.</a> AdditionalBrowserArguments() string // property // SetAdditionalBrowserArguments Set AdditionalBrowserArguments SetAdditionalBrowserArguments(AValue string) // property // Language // The default display language for WebView. It applies to browser UI such as // context menu and dialogs. It also applies to the `accept-languages` HTTP // header that WebView sends to websites. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions.get_Language. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions">See the ICoreWebView2EnvironmentOptions article.</a> Language() string // property // SetLanguage Set Language SetLanguage(AValue string) // property // TargetCompatibleBrowserVersion // Specifies the version of the WebView2 Runtime binaries required to be // compatible with your app. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions.get_TargetCompatibleBrowserVersion. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions">See the ICoreWebView2EnvironmentOptions article.</a> TargetCompatibleBrowserVersion() string // property // SetTargetCompatibleBrowserVersion Set TargetCompatibleBrowserVersion SetTargetCompatibleBrowserVersion(AValue string) // property // AllowSingleSignOnUsingOSPrimaryAccount // Used to enable single sign on with Azure Active Directory(AAD) and personal Microsoft // Account(MSA) resources inside WebView. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions.get_AllowSingleSignOnUsingOSPrimaryAccount. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions">See the ICoreWebView2EnvironmentOptions article.</a> AllowSingleSignOnUsingOSPrimaryAccount() bool // property // SetAllowSingleSignOnUsingOSPrimaryAccount Set AllowSingleSignOnUsingOSPrimaryAccount SetAllowSingleSignOnUsingOSPrimaryAccount(AValue bool) // property // ExclusiveUserDataFolderAccess // Whether other processes can create WebView2 from WebView2Environment created with the // same user data folder and therefore sharing the same WebView browser process instance. // Default is FALSE. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions2.Get_ExclusiveUserDataFolderAccess. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions2">See the ICoreWebView2EnvironmentOptions2 article.</a> ExclusiveUserDataFolderAccess() bool // property // SetExclusiveUserDataFolderAccess Set ExclusiveUserDataFolderAccess SetExclusiveUserDataFolderAccess(AValue bool) // property // CustomCrashReportingEnabled // When `CustomCrashReportingEnabled` is set to `TRUE`, Windows won't send crash data to Microsoft endpoint. // `CustomCrashReportingEnabled` is default to be `FALSE`, in this case, WebView will respect OS consent. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions3.Get_IsCustomCrashReportingEnabled. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions3">See the ICoreWebView2EnvironmentOptions3 article.</a> CustomCrashReportingEnabled() bool // property // SetCustomCrashReportingEnabled Set CustomCrashReportingEnabled SetCustomCrashReportingEnabled(AValue bool) // property // EnableTrackingPrevention // The `EnableTrackingPrevention` property is used to enable/disable tracking prevention // feature in WebView2. This property enable/disable tracking prevention for all the // WebView2's created in the same environment. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions5.Get_EnableTrackingPrevention. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions5">See the ICoreWebView2EnvironmentOptions5 article.</a> EnableTrackingPrevention() bool // property // SetEnableTrackingPrevention Set EnableTrackingPrevention SetEnableTrackingPrevention(AValue bool) // property // AreBrowserExtensionsEnabled // When `AreBrowserExtensionsEnabled` is set to `TRUE`, new extensions can be added to user // profile and used. `AreBrowserExtensionsEnabled` is default to be `FALSE`, in this case, // new extensions can't be installed, and already installed extension won't be // available to use in user profile. // If connecting to an already running environment with a different value for `AreBrowserExtensionsEnabled` // property, it will fail with `HRESULT_FROM_WIN32(ERROR_INVALID_STATE)`. // Property used to create the environment. Used as ICoreWebView2EnvironmentOptions6.Get_AreBrowserExtensionsEnabled. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions6">See the ICoreWebView2EnvironmentOptions6 article.</a> // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextension">See the ICoreWebView2BrowserExtension article for Extensions API details.</a> AreBrowserExtensionsEnabled() bool // property // SetAreBrowserExtensionsEnabled Set AreBrowserExtensionsEnabled SetAreBrowserExtensionsEnabled(AValue bool) // property // EnableGPU // Enable GPU hardware acceleration. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --disable-gpu</a> // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --disable-gpu-compositing</a> EnableGPU() bool // property // SetEnableGPU Set EnableGPU SetEnableGPU(AValue bool) // property // EnableFeatures // List of feature names to enable. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --enable-features</a> // The list of features you can enable is here: // https://chromium.googlesource.com/chromium/src/+/master/chrome/common/chrome_features.cc // https://source.chromium.org/chromium/chromium/src/+/main:content/public/common/content_features.cc // https://source.chromium.org/search?q=base::Feature EnableFeatures() string // property // SetEnableFeatures Set EnableFeatures SetEnableFeatures(AValue string) // property // DisableFeatures // List of feature names to disable. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --disable-features</a> // The list of features you can disable is here: // https://chromium.googlesource.com/chromium/src/+/master/chrome/common/chrome_features.cc // https://source.chromium.org/chromium/chromium/src/+/main:content/public/common/content_features.cc // https://source.chromium.org/search?q=base::Feature DisableFeatures() string // property // SetDisableFeatures Set DisableFeatures SetDisableFeatures(AValue string) // property // EnableBlinkFeatures // Enable one or more Blink runtime-enabled features. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --enable-blink-features</a> // The list of Blink features you can enable is here: // https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/runtime_enabled_features.json5 EnableBlinkFeatures() string // property // SetEnableBlinkFeatures Set EnableBlinkFeatures SetEnableBlinkFeatures(AValue string) // property // DisableBlinkFeatures // Disable one or more Blink runtime-enabled features. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --disable-blink-features</a> // The list of Blink features you can disable is here: // https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/runtime_enabled_features.json5 DisableBlinkFeatures() string // property // SetDisableBlinkFeatures Set DisableBlinkFeatures SetDisableBlinkFeatures(AValue string) // property // BlinkSettings // Set blink settings. Format is <name>[=<value],<name>[=<value>],... // The names are declared in Settings.json5. For boolean type, use "true", "false", // or omit '=<value>' part to set to true. For enum type, use the int value of the // enum value. Applied after other command line flags and prefs. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --blink-settings</a> // The list of Blink settings you can disable is here: // https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/frame/settings.json5 BlinkSettings() string // property // SetBlinkSettings Set BlinkSettings SetBlinkSettings(AValue string) // property // ForceFieldTrials // This option can be used to force field trials when testing changes locally. // The argument is a list of name and value pairs, separated by slashes. // If a trial name is prefixed with an asterisk, that trial will start activated. // For example, the following argument defines two trials, with the second one // activated: "GoogleNow/Enable/*MaterialDesignNTP/Default/" This option can also // be used by the browser process to send the list of trials to a non-browser // process, using the same format. See FieldTrialList::CreateTrialsFromString() // in field_trial.h for details. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --force-fieldtrials</a> // https://source.chromium.org/chromium/chromium/src/+/master:base/base_switches.cc ForceFieldTrials() string // property // SetForceFieldTrials Set ForceFieldTrials SetForceFieldTrials(AValue string) // property // ForceFieldTrialParams // This option can be used to force parameters of field trials when testing // changes locally. The argument is a param list of(key, value) pairs prefixed // by an associated(trial, group) pair. You specify the param list for multiple // (trial, group) pairs with a comma separator. // Example: "Trial1.Group1:k1/v1/k2/v2,Trial2.Group2:k3/v3/k4/v4" // Trial names, groups names, parameter names, and value should all be URL // escaped for all non-alphanumeric characters. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --force-fieldtrial-params</a> // https://source.chromium.org/chromium/chromium/src/+/master:components/variations/variations_switches.cc ForceFieldTrialParams() string // property // SetForceFieldTrialParams Set ForceFieldTrialParams SetForceFieldTrialParams(AValue string) // property // SmartScreenProtectionEnabled // Workaround given my Microsoft to disable the SmartScreen protection. SmartScreenProtectionEnabled() bool // property // SetSmartScreenProtectionEnabled Set SmartScreenProtectionEnabled SetSmartScreenProtectionEnabled(AValue bool) // property // AllowInsecureLocalhost // Enables TLS/SSL errors on localhost to be ignored(no interstitial, no blocking of requests). // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --allow-insecure-localhost</a> AllowInsecureLocalhost() bool // property // SetAllowInsecureLocalhost Set AllowInsecureLocalhost SetAllowInsecureLocalhost(AValue bool) // property // DisableWebSecurity // Don't enforce the same-origin policy. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --disable-web-security</a> DisableWebSecurity() bool // property // SetDisableWebSecurity Set DisableWebSecurity SetDisableWebSecurity(AValue bool) // property // TouchEvents // Enable support for touch event feature detection. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --touch-events</a> TouchEvents() TWVState // property // SetTouchEvents Set TouchEvents SetTouchEvents(AValue TWVState) // property // HyperlinkAuditing // Don't send hyperlink auditing pings. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --no-pings</a> HyperlinkAuditing() bool // property // SetHyperlinkAuditing Set HyperlinkAuditing SetHyperlinkAuditing(AValue bool) // property // AutoplayPolicy // Autoplay policy. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --autoplay-policy</a> AutoplayPolicy() TWVAutoplayPolicy // property // SetAutoplayPolicy Set AutoplayPolicy SetAutoplayPolicy(AValue TWVAutoplayPolicy) // property // MuteAudio // Mutes audio sent to the audio device so it is not audible during automated testing. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --mute-audio</a> MuteAudio() bool // property // SetMuteAudio Set MuteAudio SetMuteAudio(AValue bool) // property // KioskPrinting // Default encoding. // <a href="https://bitbucket.org/chromiumembedded/cef/src/master/libcef/common/cef_switches.cc">Uses the following command line switch: --default-encoding</a> // Enable automatically pressing the print button in print preview. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --kiosk-printing</a> KioskPrinting() bool // property // SetKioskPrinting Set KioskPrinting SetKioskPrinting(AValue bool) // property // ProxySettings // Configure the browser to use a proxy server. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --no-proxy-server</a> // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --proxy-auto-detect</a> // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --proxy-bypass-list</a> // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --proxy-pac-url</a> // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --proxy-server</a> ProxySettings() IWVProxySettings // property // AllowFileAccessFromFiles // By default, file:// URIs cannot read other file:// URIs. This is an override for developers who need the old behavior for testing. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --allow-file-access-from-files</a> AllowFileAccessFromFiles() bool // property // SetAllowFileAccessFromFiles Set AllowFileAccessFromFiles SetAllowFileAccessFromFiles(AValue bool) // property // AllowRunningInsecureContent // By default, an https page cannot run JavaScript, CSS or plugins from http URLs. This provides an override to get the old insecure behavior. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --allow-running-insecure-content</a> AllowRunningInsecureContent() bool // property // SetAllowRunningInsecureContent Set AllowRunningInsecureContent SetAllowRunningInsecureContent(AValue bool) // property // DisableBackgroundNetworking // Disable several subsystems which run network requests in the background. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --disable-background-networking</a> DisableBackgroundNetworking() bool // property // SetDisableBackgroundNetworking Set DisableBackgroundNetworking SetDisableBackgroundNetworking(AValue bool) // property // ForcedDeviceScaleFactor // Overrides the device scale factor for the browser UI and the contents. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --force-device-scale-factor</a> ForcedDeviceScaleFactor() (resultSingle float32) // property // SetForcedDeviceScaleFactor Set ForcedDeviceScaleFactor SetForcedDeviceScaleFactor(AValue float32) // property // RemoteDebuggingPort // Set to a value between 1024 and 65535 to enable remote debugging on the // specified port. Also configurable using the "remote-debugging-port" // command-line switch. Remote debugging can be accessed by loading the // chrome://inspect page in Google Chrome. Port numbers 9222 and 9229 are // discoverable by default. Other port numbers may need to be configured via // "Discover network targets" on the Devices tab. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --remote-debugging-port</a> RemoteDebuggingPort() int32 // property // SetRemoteDebuggingPort Set RemoteDebuggingPort SetRemoteDebuggingPort(AValue int32) // property // RemoteAllowOrigins // Enables web socket connections from the specified origins only. '*' allows any origin. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --remote-allow-origins</a> RemoteAllowOrigins() string // property // SetRemoteAllowOrigins Set RemoteAllowOrigins SetRemoteAllowOrigins(AValue string) // property // DebugLog // Force logging to be enabled. Logging is disabled by default in release builds. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --enable-logging</a> DebugLog() TWV2DebugLog // property // SetDebugLog Set DebugLog SetDebugLog(AValue TWV2DebugLog) // property // DebugLogLevel // Sets the minimum log level. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --log-level</a> DebugLogLevel() TWV2DebugLogLevel // property // SetDebugLogLevel Set DebugLogLevel SetDebugLogLevel(AValue TWV2DebugLogLevel) // property // JavaScriptFlags // Specifies the flags passed to JS engine. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --js-flags</a> JavaScriptFlags() string // property // SetJavaScriptFlags Set JavaScriptFlags SetJavaScriptFlags(AValue string) // property // DisableEdgePitchNotification // Workaround given my Microsoft to disable the "Download Edge" notifications. DisableEdgePitchNotification() bool // property // SetDisableEdgePitchNotification Set DisableEdgePitchNotification SetDisableEdgePitchNotification(AValue bool) // property // TreatInsecureOriginAsSecure // Treat given(insecure) origins as secure origins. // Multiple origins can be supplied as a comma-separated list. // For the definition of secure contexts, see https://w3c.github.io/webappsec-secure-contexts/ // and https://www.w3.org/TR/powerful-features/#is-origin-trustworthy // Example: --unsafely-treat-insecure-origin-as-secure=http://a.test,http://b.test // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --unsafely-treat-insecure-origin-as-secure</a> TreatInsecureOriginAsSecure() string // property // SetTreatInsecureOriginAsSecure Set TreatInsecureOriginAsSecure SetTreatInsecureOriginAsSecure(AValue string) // property // AutoAcceptCamAndMicCapture // Bypasses the dialog prompting the user for permission to capture cameras and microphones. // Useful in automatic tests of video-conferencing Web applications. This is nearly // identical to kUseFakeUIForMediaStream, with the exception being that this flag does NOT // affect screen-capture. // <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --auto-accept-camera-and-microphone-capture</a> AutoAcceptCamAndMicCapture() bool // property // SetAutoAcceptCamAndMicCapture Set AutoAcceptCamAndMicCapture SetAutoAcceptCamAndMicCapture(AValue bool) // property // SupportsCompositionController // Returns true if the current WebView2 runtime version supports Composition Controllers. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment3">See the ICoreWebView2Environment3 article.</a> SupportsCompositionController() bool // property // ProcessInfos // Returns the `ICoreWebView2ProcessInfoCollection` // Provide a list of all process using same user data folder except for crashpad process. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment8">See the ICoreWebView2Environment8 article.</a> ProcessInfos() ICoreWebView2ProcessInfoCollection // property // SupportsControllerOptions // Returns true if the current WebView2 runtime version supports Controller Options. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment10">See the ICoreWebView2Environment10 article.</a> SupportsControllerOptions() bool // property // FailureReportFolderPath // `FailureReportFolderPath` returns the path of the folder where minidump files are written. // Whenever a WebView2 process crashes, a crash dump file will be created in the crash dump folder. // The crash dump format is minidump files. // Please see [Minidump Files documentation](/windows/win32/debug/minidump-files) for detailed information. // Normally when a single child process fails, a minidump will be generated and written to disk, // then the `ProcessFailed` event is raised. But for unexpected crashes, a minidump file might not be generated // at all, despite whether `ProcessFailed` event is raised. If there are multiple // process failures at once, multiple minidump files could be generated. Thus `FailureReportFolderPath` // could contain old minidump files that are not associated with a specific `ProcessFailed` event. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment11#get_failurereportfolderpath">See the ICoreWebView2Environment11 article.</a> FailureReportFolderPath() string // property // StartWebView2 // This function is used to initialize WebView2. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#createcorewebview2environmentwithoptions">See the Globals article.</a> StartWebView2() bool // function // CompareVersions // This method is for anyone want to compare version correctly to determine // which version is newer, older or same.Use it to determine whether // to use webview2 or certain feature based upon version. Sets the value of // aCompRslt to -1, 0 or 1 if aVersion1 is less than, equal or greater // than aVersion2 respectively. Returns false if it fails to parse // any of the version strings. // <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/webview2-idl#comparebrowserversions">See the Globals article.</a> CompareVersions(aVersion1, aVersion2 string, aCompRslt *int32) bool // function // UpdateDeviceScaleFactor // Update the DeviceScaleFactor property value with the current scale or the ForcedDeviceScaleFactor value. UpdateDeviceScaleFactor() // procedure // AppendErrorLog // Append aText to the ErrorMessage property. AppendErrorLog(aText string) // procedure }
IWVLoader Parent: IComponent
Class used to simplify the WebView2 initialization and destruction.
func AsWVLoader ¶
func AsWVLoader(obj interface{}) IWVLoader
AsWVLoader Convert a pointer object to an existing class object
func GlobalWebView2Loader ¶
func GlobalWebView2Loader() IWVLoader
GlobalWebView2Loader Global instance of TWVLoader used to simplify the WebView2 initialization and destruction.
func NewWVLoader ¶
func NewWVLoader(AOwner IComponent) IWVLoader
type IWVProxySettings ¶
type IWVProxySettings interface { IObject NoProxyServer() bool // property SetNoProxyServer(AValue bool) // property AutoDetect() bool // property SetAutoDetect(AValue bool) // property ByPassList() string // property SetByPassList(AValue string) // property PacUrl() string // property SetPacUrl(AValue string) // property Server() string // property SetServer(AValue string) // property }
IWVProxySettings Parent: IObject
Class used by the TWVLoader.ProxySettigns property to configure a custom proxy server using the following command line switches: --no-proxy-server, --proxy-auto-detect, --proxy-bypass-list, --proxy-pac-url and --proxy-server. <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --no-proxy-server</a> <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --proxy-auto-detect</a> <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --proxy-bypass-list</a> <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --proxy-pac-url</a> <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --proxy-server</a>
func AsWVProxySettings ¶
func AsWVProxySettings(obj interface{}) IWVProxySettings
AsWVProxySettings Convert a pointer object to an existing class object
func NewWVProxySettings ¶
func NewWVProxySettings() IWVProxySettings
type IWVWinControl ¶
type IWVWinControl interface { IWinControl // ChildWindowHandle // Handle of the first child control created by the browser. ChildWindowHandle() THandle // property DragKind() TDragKind // property SetDragKind(AValue TDragKind) // property DragCursor() TCursor // property SetDragCursor(AValue TCursor) // property DragMode() TDragMode // property SetDragMode(AValue TDragMode) // property // CreateHandle // Creates underlying screen object. CreateHandle() // procedure // InvalidateChildren // Invalidates all child controls created by the browser. InvalidateChildren() // procedure // UpdateSize // Updates the size of the child controls created by the browser. UpdateSize() // procedure SetOnDragDrop(fn TDragDropEvent) // property event SetOnDragOver(fn TDragOverEvent) // property event SetOnStartDrag(fn TStartDragEvent) // property event SetOnEndDrag(fn TEndDragEvent) // property event }
IWVWinControl Parent: IWinControl
Parent control that will be used by TWVWindowParent in VCL and LCL applications to show the web contents.
func AsWVWinControl ¶
func AsWVWinControl(obj interface{}) IWVWinControl
AsWVWinControl Convert a pointer object to an existing class object
func NewWVWinControl ¶
func NewWVWinControl(TheOwner IComponent) IWVWinControl
type IWVWindowParent ¶
type IWVWindowParent interface { IWVWinControl // Browser // Browser associated to this control to show web contents. Browser() IWVBrowserBase // property // SetBrowser Set Browser SetBrowser(AValue IWVBrowserBase) // property }
IWVWindowParent Parent: IWVWinControl
Parent control used by VCL and LCL applications to show the web contents.
func AsWVWindowParent ¶
func AsWVWindowParent(obj interface{}) IWVWindowParent
AsWVWindowParent Convert a pointer object to an existing class object
func NewWVWindowParent ¶
func NewWVWindowParent(AOwner IComponent) IWVWindowParent
type OleVariant ¶
type OleVariant struct {
// contains filtered or unexported fields
}
OleVariant OLE TODO no impl
type SequentialStream ¶
type SequentialStream = lcl.SequentialStream
SequentialStream Types > ISequentialStream
type TComponent ¶
type TComponent = lcl.TComponent
type TCoreWebView2 ¶
type TCoreWebView2 struct {
TObject
}
TCoreWebView2 Parent: TObject
func (*TCoreWebView2) AddAllBrowserEvents ¶
func (m *TCoreWebView2) AddAllBrowserEvents(aBrowserComponent IComponent) bool
func (*TCoreWebView2) AddHostObjectToScript ¶
func (m *TCoreWebView2) AddHostObjectToScript(name string, object OleVariant) bool
AddHostObjectToScript
Add the provided host object to script running in the WebView with the specified name. Host objects are exposed as host object proxies using `window.chrome.webview.hostObjects.{name}`. Host object proxies are promises and resolves to an object representing the host object. The promise is rejected if the app has not added an object with the name. When JavaScript code access a property or method of the object, a promise is return, which resolves to the value returned from the host for the property or method, or rejected in case of error, for example, no property or method on the object or parameters are not valid. NOTE: While simple types, `IDispatch` and array are supported, and `IUnknown` objects that also implement `IDispatch` are treated as `IDispatch`, generic `IUnknown`, `VT_DECIMAL`, or `VT_RECORD` variant is not supported. Remote JavaScript objects like callback functions are represented as an `VT_DISPATCH` `VARIANT` with the object implementing `IDispatch`. The JavaScript callback method may be invoked using `DISPID_VALUE` for the `DISPID`. Such callback method invocations will return immediately and will not wait for the JavaScript function to run and so will not provide the return value of the JavaScript function. Nested arrays are supported up to a depth of 3. Arrays of by reference types are not supported. `VT_EMPTY` and `VT_NULL` are mapped into JavaScript as `null`. In JavaScript, `null` and undefined are mapped to `VT_EMPTY`. Additionally, all host objects are exposed as `window.chrome.webview.hostObjects.sync.{name}`. Here the host objects are exposed as synchronous host object proxies. These are not promises and function runtimes or property access synchronously block running script waiting to communicate cross process for the host code to run. Accordingly the result may have reliability issues and it is recommended that you use the promise-based asynchronous `window.chrome.webview.hostObjects.{name}` API. Synchronous host object proxies and asynchronous host object proxies may both use a proxy to the same host object. Remote changes made by one proxy propagates to any other proxy of that same host object whether the other proxies and synchronous or asynchronous. While JavaScript is blocked on a synchronous run to native code, that native code is unable to run back to JavaScript. Attempts to do so fail with `HRESULT_FROM_WIN32(ERROR_POSSIBLE_DEADLOCK)`. Host object proxies are JavaScript Proxy objects that intercept all property get, property set, and method invocations. Properties or methods that are a part of the Function or Object prototype are run locally. Additionally any property or method in the `chrome.webview.hostObjects.options.forceLocalProperties` array are also run locally. This defaults to including optional methods that have meaning in JavaScript like `toJSON` and `Symbol.toPrimitive`. Add more to the array as required. The `chrome.webview.hostObjects.cleanupSome` method performs a best effort garbage collection on host object proxies. The `chrome.webview.hostObjects.options` object provides the ability to change some functionality of host objects. <code> Options property | Details ---|--- `forceLocalProperties` | This is an array of host object property names that will be run locally, instead of being called on the native host object. This defaults to `then`, `toJSON`, `Symbol.toString`, and `Symbol.toPrimitive`. You can add other properties to specify that they should be run locally on the javascript host object proxy. `log` | This is a callback that will be called with debug information. For example, you can set this to `console.log.bind(console)` to have it print debug information to the console to help when troubleshooting host object usage. By default this is null. `shouldSerializeDates` | By default this is false, and javascript Date objects will be sent to host objects as a string using `JSON.stringify`. You can set this property to true to have Date objects properly serialize as a `VT_DATE` when sending to the native host object, and have `VT_DATE` properties and return values create a javascript Date object. `defaultSyncProxy` | When calling a method on a synchronous proxy, the result should also be a synchronous proxy. But in some cases, the sync/async context is lost (for example, when providing to native code a reference to a function, and then calling that function in native code). In these cases, the proxy will be asynchronous, unless this property is set. `forceAsyncMethodMatches ` | This is an array of regular expressions. When calling a method on a synchronous proxy, the method call will be performed asynchronously if the method name matches a string or regular expression in this array. Setting this value to `Async` will make any method that ends with Async be an asynchronous method call. If an async method doesn't match here and isn't forced to be asynchronous, the method will be invoked synchronously, blocking execution of the calling JavaScript and then returning the resolution of the promise, rather than returning a promise. `ignoreMemberNotFoundError` | By default, an exception is thrown when attempting to get the value of a proxy property that doesn't exist on the corresponding native class. Setting this property to `true` switches the behavior to match Chakra WinRT projection (and general JavaScript) behavior of returning `undefined` with no error. </code> Host object proxies additionally have the following methods which run locally. <code> Method name | Details ---|---
`applyHostFunction`, `getHostProperty`, `setHostProperty` | Perform a method invocation, property get, or property set on the host object. Use the methods to explicitly force a method or property to run remotely if a conflicting local method or property exists. For instance, `proxy.toString()` runs the local `toString` method on the proxy object. But proxy.applyHostFunction('toString') runs `toString` on the host proxied object instead. `getLocalProperty`, `setLocalProperty` | Perform property get, or property set locally. Use the methods to force getting or setting a property on the host object proxy rather than on the host object it represents. For instance, `proxy.unknownProperty` gets the property named `unknownProperty` from the host proxied object. But proxy.getLocalProperty('unknownProperty') gets the value of the property `unknownProperty` on the proxy object. `sync` | Asynchronous host object proxies expose a sync method which returns a promise for a synchronous host object proxy for the same host object. For example, `chrome.webview.hostObjects.sample.methodCall()` returns an asynchronous host object proxy. Use the `sync` method to obtain a synchronous host object proxy instead: `const syncProxy = await chrome.webview.hostObjects.sample.methodCall().sync()`. `async` | Synchronous host object proxies expose an async method which blocks and returns an asynchronous host object proxy for the same host object. For example, `chrome.webview.hostObjects.sync.sample.methodCall()` returns a synchronous host object proxy. Running the `async` method on this blocks and then returns an asynchronous host object proxy for the same host object: `const asyncProxy = chrome.webview.hostObjects.sync.sample.methodCall().async()`. `then` | Asynchronous host object proxies have a `then` method. Allows proxies to be awaitable. `then` returns a promise that resolves with a representation of the host object. If the proxy represents a JavaScript literal, a copy of that is returned locally. If the proxy represents a function, a non-awaitable proxy is returned. If the proxy represents a JavaScript object with a mix of literal properties and function properties, the a copy of the object is returned with some properties as host object proxies.
</code> All other property and method invocations (other than the above Remote object proxy methods, `forceLocalProperties` list, and properties on Function and Object prototypes) are run remotely. Asynchronous host object proxies return a promise representing asynchronous completion of remotely invoking the method, or getting the property. The promise resolves after the remote operations complete and the promises resolve to the resulting value of the operation. Synchronous host object proxies work similarly, but block running JavaScript and wait for the remote operation to complete. Setting a property on an asynchronous host object proxy works slightly differently. The set returns immediately and the return value is the value that is set. This is a requirement of the JavaScript Proxy object. If you need to asynchronously wait for the property set to complete, use the `setHostProperty` method which returns a promise as described above. Synchronous object property set property synchronously blocks until the property is set.
func (*TCoreWebView2) AddScriptToExecuteOnDocumentCreated ¶
func (m *TCoreWebView2) AddScriptToExecuteOnDocumentCreated(JavaScript string, aBrowserComponent IComponent) bool
func (*TCoreWebView2) AddWebResourceRequestedFilter ¶
func (m *TCoreWebView2) AddWebResourceRequestedFilter(URI string, ResourceContext TWVWebResourceContext) bool
func (*TCoreWebView2) BaseIntf ¶
func (m *TCoreWebView2) BaseIntf() ICoreWebView2
func (*TCoreWebView2) BrowserProcessID ¶
func (m *TCoreWebView2) BrowserProcessID() DWORD
func (*TCoreWebView2) CallDevToolsProtocolMethod ¶
func (m *TCoreWebView2) CallDevToolsProtocolMethod(aMethodName, aParametersAsJson string, aExecutionID int32, aBrowserComponent IComponent) bool
func (*TCoreWebView2) CallDevToolsProtocolMethodForSession ¶
func (m *TCoreWebView2) CallDevToolsProtocolMethodForSession(aSessionId, aMethodName, aParametersAsJson string, aExecutionID int32, aBrowserComponent IComponent) bool
func (*TCoreWebView2) CanGoBack ¶
func (m *TCoreWebView2) CanGoBack() bool
func (*TCoreWebView2) CanGoForward ¶
func (m *TCoreWebView2) CanGoForward() bool
func (*TCoreWebView2) CapturePreview ¶
func (m *TCoreWebView2) CapturePreview(aImageFormat TWVCapturePreviewImageFormat, aImageStream IStream, aBrowserComponent IComponent) bool
func (*TCoreWebView2) ClearServerCertificateErrorActions ¶
func (m *TCoreWebView2) ClearServerCertificateErrorActions(aBrowserComponent IComponent) bool
func (*TCoreWebView2) ClearVirtualHostNameToFolderMapping ¶
func (m *TCoreWebView2) ClearVirtualHostNameToFolderMapping(aHostName string) bool
func (*TCoreWebView2) CloseDefaultDownloadDialog ¶
func (m *TCoreWebView2) CloseDefaultDownloadDialog() bool
func (*TCoreWebView2) ContainsFullScreenElement ¶
func (m *TCoreWebView2) ContainsFullScreenElement() bool
func (*TCoreWebView2) CookieManager ¶
func (m *TCoreWebView2) CookieManager() ICoreWebView2CookieManager
func (*TCoreWebView2) DefaultDownloadDialogCornerAlignment ¶
func (m *TCoreWebView2) DefaultDownloadDialogCornerAlignment() TWVDefaultDownloadDialogCornerAlignment
func (*TCoreWebView2) DefaultDownloadDialogMargin ¶
func (m *TCoreWebView2) DefaultDownloadDialogMargin() (resultPoint TPoint)
func (*TCoreWebView2) DocumentTitle ¶
func (m *TCoreWebView2) DocumentTitle() string
func (*TCoreWebView2) Environment ¶
func (m *TCoreWebView2) Environment() ICoreWebView2Environment
func (*TCoreWebView2) ExecuteScript ¶
func (m *TCoreWebView2) ExecuteScript(JavaScript string, aExecutionID int32, aBrowserComponent IComponent) bool
func (*TCoreWebView2) ExecuteScriptWithResult ¶
func (m *TCoreWebView2) ExecuteScriptWithResult(JavaScript string, aExecutionID int32, aBrowserComponent IComponent) bool
func (*TCoreWebView2) FaviconURI ¶
func (m *TCoreWebView2) FaviconURI() string
func (*TCoreWebView2) FrameId ¶
func (m *TCoreWebView2) FrameId() uint32
func (*TCoreWebView2) GetFavicon ¶
func (m *TCoreWebView2) GetFavicon(aFormat TWVFaviconImageFormat, aBrowserComponent IComponent) bool
func (*TCoreWebView2) GoBack ¶
func (m *TCoreWebView2) GoBack() bool
func (*TCoreWebView2) GoForward ¶
func (m *TCoreWebView2) GoForward() bool
func (*TCoreWebView2) Initialized ¶
func (m *TCoreWebView2) Initialized() bool
func (*TCoreWebView2) IsDefaultDownloadDialogOpen ¶
func (m *TCoreWebView2) IsDefaultDownloadDialogOpen() bool
func (*TCoreWebView2) IsDocumentPlayingAudio ¶
func (m *TCoreWebView2) IsDocumentPlayingAudio() bool
func (*TCoreWebView2) IsMuted ¶
func (m *TCoreWebView2) IsMuted() bool
func (*TCoreWebView2) IsSuspended ¶
func (m *TCoreWebView2) IsSuspended() bool
func (*TCoreWebView2) MemoryUsageTargetLevel ¶
func (m *TCoreWebView2) MemoryUsageTargetLevel() TWVMemoryUsageTargetLevel
func (*TCoreWebView2) Navigate ¶
func (m *TCoreWebView2) Navigate(aURI string) bool
func (*TCoreWebView2) NavigateToString ¶
func (m *TCoreWebView2) NavigateToString(aHTMLContent string) bool
func (*TCoreWebView2) NavigateWithWebResourceRequest ¶
func (m *TCoreWebView2) NavigateWithWebResourceRequest(aRequest ICoreWebView2WebResourceRequestRef) bool
func (*TCoreWebView2) OpenDefaultDownloadDialog ¶
func (m *TCoreWebView2) OpenDefaultDownloadDialog() bool
func (*TCoreWebView2) OpenDevToolsWindow ¶
func (m *TCoreWebView2) OpenDevToolsWindow() bool
func (*TCoreWebView2) OpenTaskManagerWindow ¶
func (m *TCoreWebView2) OpenTaskManagerWindow() bool
func (*TCoreWebView2) PostSharedBufferToScript ¶
func (m *TCoreWebView2) PostSharedBufferToScript(aSharedBuffer ICoreWebView2SharedBuffer, aAccess TWVSharedBufferAccess, aAdditionalDataAsJson string) bool
func (*TCoreWebView2) PostWebMessageAsJson ¶
func (m *TCoreWebView2) PostWebMessageAsJson(aWebMessageAsJson string) bool
func (*TCoreWebView2) PostWebMessageAsString ¶
func (m *TCoreWebView2) PostWebMessageAsString(aWebMessageAsString string) bool
func (*TCoreWebView2) Print ¶
func (m *TCoreWebView2) Print(aPrintSettings ICoreWebView2PrintSettings, aHandler ICoreWebView2PrintCompletedHandler) bool
func (*TCoreWebView2) PrintToPdf ¶
func (m *TCoreWebView2) PrintToPdf(aResultFilePath string, aPrintSettings ICoreWebView2PrintSettings, aHandler ICoreWebView2PrintToPdfCompletedHandler) bool
func (*TCoreWebView2) PrintToPdfStream ¶
func (m *TCoreWebView2) PrintToPdfStream(aPrintSettings ICoreWebView2PrintSettings, aHandler ICoreWebView2PrintToPdfStreamCompletedHandler) bool
func (*TCoreWebView2) Profile ¶
func (m *TCoreWebView2) Profile() ICoreWebView2Profile
func (*TCoreWebView2) Reload ¶
func (m *TCoreWebView2) Reload() bool
func (*TCoreWebView2) RemoveHostObjectFromScript ¶
func (m *TCoreWebView2) RemoveHostObjectFromScript(aName string) bool
func (*TCoreWebView2) RemoveScriptToExecuteOnDocumentCreated ¶
func (m *TCoreWebView2) RemoveScriptToExecuteOnDocumentCreated(aID string) bool
func (*TCoreWebView2) RemoveWebResourceRequestedFilter ¶
func (m *TCoreWebView2) RemoveWebResourceRequestedFilter(URI string, ResourceContext TWVWebResourceContext) bool
func (*TCoreWebView2) Resume ¶
func (m *TCoreWebView2) Resume() bool
func (*TCoreWebView2) SetDefaultDownloadDialogCornerAlignment ¶
func (m *TCoreWebView2) SetDefaultDownloadDialogCornerAlignment(AValue TWVDefaultDownloadDialogCornerAlignment)
func (*TCoreWebView2) SetDefaultDownloadDialogMargin ¶
func (m *TCoreWebView2) SetDefaultDownloadDialogMargin(AValue *TPoint)
func (*TCoreWebView2) SetIsMuted ¶
func (m *TCoreWebView2) SetIsMuted(AValue bool)
func (*TCoreWebView2) SetMemoryUsageTargetLevel ¶
func (m *TCoreWebView2) SetMemoryUsageTargetLevel(AValue TWVMemoryUsageTargetLevel)
func (*TCoreWebView2) SetVirtualHostNameToFolderMapping ¶
func (m *TCoreWebView2) SetVirtualHostNameToFolderMapping(aHostName, aFolderPath string, aAccessKind TWVHostResourceAcccessKind) bool
func (*TCoreWebView2) Settings ¶
func (m *TCoreWebView2) Settings() ICoreWebView2Settings
func (*TCoreWebView2) ShowPrintUI ¶
func (m *TCoreWebView2) ShowPrintUI(aPrintDialogKind TWVPrintDialogKind) bool
func (*TCoreWebView2) Source ¶
func (m *TCoreWebView2) Source() string
func (*TCoreWebView2) StatusBarText ¶
func (m *TCoreWebView2) StatusBarText() string
func (*TCoreWebView2) Stop ¶
func (m *TCoreWebView2) Stop() bool
func (*TCoreWebView2) SubscribeToDevToolsProtocolEvent ¶
func (m *TCoreWebView2) SubscribeToDevToolsProtocolEvent(aEventName string, aEventID int32, aBrowserComponent IComponent) bool
func (*TCoreWebView2) TrySuspend ¶
func (m *TCoreWebView2) TrySuspend(aHandler ICoreWebView2TrySuspendCompletedHandler) bool
type TCoreWebView2AcceleratorKeyPressedEventArgs ¶
type TCoreWebView2AcceleratorKeyPressedEventArgs struct {
TObject
}
TCoreWebView2AcceleratorKeyPressedEventArgs Parent: TObject
Event args for the AcceleratorKeyPressed event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2acceleratorkeypressedeventargs">See the ICoreWebView2AcceleratorKeyPressedEventArgs article.</a>
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) BaseIntf ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) BaseIntf() ICoreWebView2AcceleratorKeyPressedEventArgs
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) Handled ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) Handled() bool
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) Initialized ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) Initialized() bool
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) IsBrowserAcceleratorKeyEnabled ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) IsBrowserAcceleratorKeyEnabled() bool
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) IsExtendedKey ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) IsExtendedKey() bool
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) IsKeyReleased ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) IsKeyReleased() bool
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) IsMenuKeyDown ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) IsMenuKeyDown() bool
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) KeyEventKind ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) KeyEventKind() TWVKeyEventKind
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) KeyEventLParam ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) KeyEventLParam() int32
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) RepeatCount ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) RepeatCount() uint32
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) ScanCode ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) ScanCode() uint32
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) SetHandled ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) SetHandled(AValue bool)
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) SetIsBrowserAcceleratorKeyEnabled ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) SetIsBrowserAcceleratorKeyEnabled(AValue bool)
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) VirtualKey ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) VirtualKey() uint32
func (*TCoreWebView2AcceleratorKeyPressedEventArgs) WasKeyDown ¶
func (m *TCoreWebView2AcceleratorKeyPressedEventArgs) WasKeyDown() bool
type TCoreWebView2BasicAuthenticationRequestedEventArgs ¶
type TCoreWebView2BasicAuthenticationRequestedEventArgs struct {
TObject
}
TCoreWebView2BasicAuthenticationRequestedEventArgs Parent: TObject
Event args for the BasicAuthenticationRequested event. Will contain the request that led to the HTTP authorization challenge, the challenge and allows the host to provide authentication response or cancel the request. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationrequestedeventargs">See the ICoreWebView2BasicAuthenticationRequestedEventArgs article.</a>
func (*TCoreWebView2BasicAuthenticationRequestedEventArgs) Cancel ¶
func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) Cancel() bool
func (*TCoreWebView2BasicAuthenticationRequestedEventArgs) Challenge ¶
func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) Challenge() string
func (*TCoreWebView2BasicAuthenticationRequestedEventArgs) Deferral ¶
func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) Deferral() ICoreWebView2Deferral
func (*TCoreWebView2BasicAuthenticationRequestedEventArgs) Initialized ¶
func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) Initialized() bool
func (*TCoreWebView2BasicAuthenticationRequestedEventArgs) SetCancel ¶
func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) SetCancel(AValue bool)
func (*TCoreWebView2BasicAuthenticationRequestedEventArgs) Uri ¶
func (m *TCoreWebView2BasicAuthenticationRequestedEventArgs) Uri() string
type TCoreWebView2BasicAuthenticationResponse ¶
type TCoreWebView2BasicAuthenticationResponse struct {
TObject
}
TCoreWebView2BasicAuthenticationResponse Parent: TObject
Represents a Basic HTTP authentication response that contains a user name and a password as according to RFC7617 (https://tools.ietf.org/html/rfc7617) <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationresponse">See the ICoreWebView2BasicAuthenticationResponse article.</a>
func (*TCoreWebView2BasicAuthenticationResponse) BaseIntf ¶
func (m *TCoreWebView2BasicAuthenticationResponse) BaseIntf() ICoreWebView2BasicAuthenticationResponse
func (*TCoreWebView2BasicAuthenticationResponse) Initialized ¶
func (m *TCoreWebView2BasicAuthenticationResponse) Initialized() bool
func (*TCoreWebView2BasicAuthenticationResponse) Password ¶
func (m *TCoreWebView2BasicAuthenticationResponse) Password() string
func (*TCoreWebView2BasicAuthenticationResponse) SetBaseIntf ¶
func (m *TCoreWebView2BasicAuthenticationResponse) SetBaseIntf(AValue ICoreWebView2BasicAuthenticationResponse)
func (*TCoreWebView2BasicAuthenticationResponse) SetPassword ¶
func (m *TCoreWebView2BasicAuthenticationResponse) SetPassword(AValue string)
func (*TCoreWebView2BasicAuthenticationResponse) SetUserName ¶
func (m *TCoreWebView2BasicAuthenticationResponse) SetUserName(AValue string)
func (*TCoreWebView2BasicAuthenticationResponse) UserName ¶
func (m *TCoreWebView2BasicAuthenticationResponse) UserName() string
type TCoreWebView2BrowserExtension ¶
type TCoreWebView2BrowserExtension struct {
TObject
}
TCoreWebView2BrowserExtension Parent: TObject
Provides a set of properties for managing an Extension, which includes an ID, name, and whether it is enabled or not, and the ability to Remove the Extension, and enable or disable it. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextension">See the ICoreWebView2BrowserExtension article.</a>
func (*TCoreWebView2BrowserExtension) BaseIntf ¶
func (m *TCoreWebView2BrowserExtension) BaseIntf() ICoreWebView2BrowserExtension
func (*TCoreWebView2BrowserExtension) Enable ¶
func (m *TCoreWebView2BrowserExtension) Enable(aIsEnabled bool, aBrowserComponent IComponent) bool
func (*TCoreWebView2BrowserExtension) ID ¶
func (m *TCoreWebView2BrowserExtension) ID() string
func (*TCoreWebView2BrowserExtension) Initialized ¶
func (m *TCoreWebView2BrowserExtension) Initialized() bool
func (*TCoreWebView2BrowserExtension) IsEnabled ¶
func (m *TCoreWebView2BrowserExtension) IsEnabled() bool
func (*TCoreWebView2BrowserExtension) Name ¶
func (m *TCoreWebView2BrowserExtension) Name() string
func (*TCoreWebView2BrowserExtension) Remove ¶
func (m *TCoreWebView2BrowserExtension) Remove(aBrowserComponent IComponent) bool
func (*TCoreWebView2BrowserExtension) SetBaseIntf ¶
func (m *TCoreWebView2BrowserExtension) SetBaseIntf(AValue ICoreWebView2BrowserExtension)
type TCoreWebView2BrowserExtensionEnableCompletedHandler ¶
type TCoreWebView2BrowserExtensionEnableCompletedHandler struct {
TObject
}
TCoreWebView2BrowserExtensionEnableCompletedHandler Parent: TObject
The caller implements this interface to receive the result of setting the browser Extension as enabled or disabled. If enabled, the browser Extension is running in WebView instances. If disabled, the browser Extension is not running in WebView instances. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextensionenablecompletedhandler">See the ICoreWebView2BrowserExtensionEnableCompletedHandler article.</a>
type TCoreWebView2BrowserExtensionList ¶
type TCoreWebView2BrowserExtensionList struct {
TObject
}
TCoreWebView2BrowserExtensionList Parent: TObject
Provides a set of properties for managing browser Extension Lists from user profile. This includes the number of browser Extensions in the list, and the ability to get an browser Extension from the list at a particular index. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextensionlist">See the ICoreWebView2BrowserExtensionList article.</a>
func (*TCoreWebView2BrowserExtensionList) BaseIntf ¶
func (m *TCoreWebView2BrowserExtensionList) BaseIntf() ICoreWebView2BrowserExtensionList
func (*TCoreWebView2BrowserExtensionList) Count ¶
func (m *TCoreWebView2BrowserExtensionList) Count() uint32
func (*TCoreWebView2BrowserExtensionList) Initialized ¶
func (m *TCoreWebView2BrowserExtensionList) Initialized() bool
func (*TCoreWebView2BrowserExtensionList) Items ¶
func (m *TCoreWebView2BrowserExtensionList) Items(idx uint32) ICoreWebView2BrowserExtension
type TCoreWebView2BrowserExtensionRemoveCompletedHandler ¶
type TCoreWebView2BrowserExtensionRemoveCompletedHandler struct {
TObject
}
TCoreWebView2BrowserExtensionRemoveCompletedHandler Parent: TObject
The caller implements this interface to receive the result of removing the browser Extension from the Profile. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserextensionremovecompletedhandler">See the ICoreWebView2BrowserExtensionRemoveCompletedHandler article.</a>
type TCoreWebView2BrowserProcessExitedEventArgs ¶
type TCoreWebView2BrowserProcessExitedEventArgs struct {
TObject
}
TCoreWebView2BrowserProcessExitedEventArgs Parent: TObject
Event args for the BrowserProcessExited event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2browserprocessexitedeventargs">See the ICoreWebView2BrowserProcessExitedEventArgs article.</a>
func (*TCoreWebView2BrowserProcessExitedEventArgs) BaseIntf ¶
func (m *TCoreWebView2BrowserProcessExitedEventArgs) BaseIntf() ICoreWebView2BrowserProcessExitedEventArgs
func (*TCoreWebView2BrowserProcessExitedEventArgs) BrowserProcessExitKind ¶
func (m *TCoreWebView2BrowserProcessExitedEventArgs) BrowserProcessExitKind() TWVBrowserProcessExitKind
func (*TCoreWebView2BrowserProcessExitedEventArgs) BrowserProcessId ¶
func (m *TCoreWebView2BrowserProcessExitedEventArgs) BrowserProcessId() uint32
func (*TCoreWebView2BrowserProcessExitedEventArgs) Initialized ¶
func (m *TCoreWebView2BrowserProcessExitedEventArgs) Initialized() bool
type TCoreWebView2Certificate ¶
type TCoreWebView2Certificate struct {
TObject
}
TCoreWebView2Certificate Parent: TObject
Provides access to the certificate metadata. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2certificate">See the ICoreWebView2Certificate article.</a>
func (*TCoreWebView2Certificate) BaseIntf ¶
func (m *TCoreWebView2Certificate) BaseIntf() ICoreWebView2Certificate
func (*TCoreWebView2Certificate) DerEncodedSerialNumber ¶
func (m *TCoreWebView2Certificate) DerEncodedSerialNumber() string
func (*TCoreWebView2Certificate) DisplayName ¶
func (m *TCoreWebView2Certificate) DisplayName() string
func (*TCoreWebView2Certificate) Initialized ¶
func (m *TCoreWebView2Certificate) Initialized() bool
func (*TCoreWebView2Certificate) Issuer ¶
func (m *TCoreWebView2Certificate) Issuer() string
func (*TCoreWebView2Certificate) PemEncodedIssuerCertificateChain ¶
func (m *TCoreWebView2Certificate) PemEncodedIssuerCertificateChain() ICoreWebView2StringCollection
func (*TCoreWebView2Certificate) SetBaseIntf ¶
func (m *TCoreWebView2Certificate) SetBaseIntf(AValue ICoreWebView2Certificate)
func (*TCoreWebView2Certificate) Subject ¶
func (m *TCoreWebView2Certificate) Subject() string
func (*TCoreWebView2Certificate) ToPemEncoding ¶
func (m *TCoreWebView2Certificate) ToPemEncoding() string
func (*TCoreWebView2Certificate) ValidFrom ¶
func (m *TCoreWebView2Certificate) ValidFrom() (resultDateTime float64)
func (*TCoreWebView2Certificate) ValidTo ¶
func (m *TCoreWebView2Certificate) ValidTo() (resultDateTime float64)
type TCoreWebView2ClearBrowsingDataCompletedHandler ¶
type TCoreWebView2ClearBrowsingDataCompletedHandler struct {
TObject
}
TCoreWebView2ClearBrowsingDataCompletedHandler Parent: TObject
The caller implements this interface to receive the ClearBrowsingData result. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clearbrowsingdatacompletedhandler">See the ICoreWebView2ClearBrowsingDataCompletedHandler article.</a>
type TCoreWebView2ClientCertificate ¶
type TCoreWebView2ClientCertificate struct {
TObject
}
TCoreWebView2ClientCertificate Parent: TObject
Provides access to the client certificate metadata. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificate">See the ICoreWebView2ClientCertificate article.</a>
func (*TCoreWebView2ClientCertificate) BaseIntf ¶
func (m *TCoreWebView2ClientCertificate) BaseIntf() ICoreWebView2ClientCertificate
func (*TCoreWebView2ClientCertificate) DerEncodedSerialNumber ¶
func (m *TCoreWebView2ClientCertificate) DerEncodedSerialNumber() string
func (*TCoreWebView2ClientCertificate) DisplayName ¶
func (m *TCoreWebView2ClientCertificate) DisplayName() string
func (*TCoreWebView2ClientCertificate) Initialized ¶
func (m *TCoreWebView2ClientCertificate) Initialized() bool
func (*TCoreWebView2ClientCertificate) Issuer ¶
func (m *TCoreWebView2ClientCertificate) Issuer() string
func (*TCoreWebView2ClientCertificate) Kind ¶
func (m *TCoreWebView2ClientCertificate) Kind() TWVClientCertificateKind
func (*TCoreWebView2ClientCertificate) PemEncodedIssuerCertificateChain ¶
func (m *TCoreWebView2ClientCertificate) PemEncodedIssuerCertificateChain() ICoreWebView2StringCollection
func (*TCoreWebView2ClientCertificate) SetBaseIntf ¶
func (m *TCoreWebView2ClientCertificate) SetBaseIntf(AValue ICoreWebView2ClientCertificate)
func (*TCoreWebView2ClientCertificate) Subject ¶
func (m *TCoreWebView2ClientCertificate) Subject() string
func (*TCoreWebView2ClientCertificate) ToPemEncoding ¶
func (m *TCoreWebView2ClientCertificate) ToPemEncoding() string
func (*TCoreWebView2ClientCertificate) ValidFrom ¶
func (m *TCoreWebView2ClientCertificate) ValidFrom() (resultDateTime float64)
func (*TCoreWebView2ClientCertificate) ValidTo ¶
func (m *TCoreWebView2ClientCertificate) ValidTo() (resultDateTime float64)
type TCoreWebView2ClientCertificateCollection ¶
type TCoreWebView2ClientCertificateCollection struct {
TObject
}
TCoreWebView2ClientCertificateCollection Parent: TObject
A collection of client certificate object. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificatecollection">See the ICoreWebView2ClientCertificateCollection article.</a>
func (*TCoreWebView2ClientCertificateCollection) BaseIntf ¶
func (m *TCoreWebView2ClientCertificateCollection) BaseIntf() ICoreWebView2ClientCertificateCollection
func (*TCoreWebView2ClientCertificateCollection) Count ¶
func (m *TCoreWebView2ClientCertificateCollection) Count() uint32
func (*TCoreWebView2ClientCertificateCollection) Initialized ¶
func (m *TCoreWebView2ClientCertificateCollection) Initialized() bool
func (*TCoreWebView2ClientCertificateCollection) Items ¶
func (m *TCoreWebView2ClientCertificateCollection) Items(idx uint32) ICoreWebView2ClientCertificate
type TCoreWebView2ClientCertificateRequestedEventArgs ¶
type TCoreWebView2ClientCertificateRequestedEventArgs struct {
TObject
}
TCoreWebView2ClientCertificateRequestedEventArgs Parent: TObject
Event args for the ClientCertificateRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2clientcertificaterequestedeventargs">See the ICoreWebView2ClientCertificateRequestedEventArgs article.</a>
func (*TCoreWebView2ClientCertificateRequestedEventArgs) AllowedCertificateAuthorities ¶
func (m *TCoreWebView2ClientCertificateRequestedEventArgs) AllowedCertificateAuthorities() ICoreWebView2StringCollection
func (*TCoreWebView2ClientCertificateRequestedEventArgs) Cancel ¶
func (m *TCoreWebView2ClientCertificateRequestedEventArgs) Cancel() bool
func (*TCoreWebView2ClientCertificateRequestedEventArgs) Deferral ¶
func (m *TCoreWebView2ClientCertificateRequestedEventArgs) Deferral() ICoreWebView2Deferral
func (*TCoreWebView2ClientCertificateRequestedEventArgs) Handled ¶
func (m *TCoreWebView2ClientCertificateRequestedEventArgs) Handled() bool
func (*TCoreWebView2ClientCertificateRequestedEventArgs) Host ¶
func (m *TCoreWebView2ClientCertificateRequestedEventArgs) Host() string
func (*TCoreWebView2ClientCertificateRequestedEventArgs) Initialized ¶
func (m *TCoreWebView2ClientCertificateRequestedEventArgs) Initialized() bool
func (*TCoreWebView2ClientCertificateRequestedEventArgs) IsProxy ¶
func (m *TCoreWebView2ClientCertificateRequestedEventArgs) IsProxy() bool
func (*TCoreWebView2ClientCertificateRequestedEventArgs) MutuallyTrustedCertificates ¶
func (m *TCoreWebView2ClientCertificateRequestedEventArgs) MutuallyTrustedCertificates() ICoreWebView2ClientCertificateCollection
func (*TCoreWebView2ClientCertificateRequestedEventArgs) Port ¶
func (m *TCoreWebView2ClientCertificateRequestedEventArgs) Port() int32
func (*TCoreWebView2ClientCertificateRequestedEventArgs) SelectedCertificate ¶
func (m *TCoreWebView2ClientCertificateRequestedEventArgs) SelectedCertificate() ICoreWebView2ClientCertificate
func (*TCoreWebView2ClientCertificateRequestedEventArgs) SetCancel ¶
func (m *TCoreWebView2ClientCertificateRequestedEventArgs) SetCancel(AValue bool)
func (*TCoreWebView2ClientCertificateRequestedEventArgs) SetHandled ¶
func (m *TCoreWebView2ClientCertificateRequestedEventArgs) SetHandled(AValue bool)
func (*TCoreWebView2ClientCertificateRequestedEventArgs) SetSelectedCertificate ¶
func (m *TCoreWebView2ClientCertificateRequestedEventArgs) SetSelectedCertificate(AValue ICoreWebView2ClientCertificate)
type TCoreWebView2CompositionController ¶
type TCoreWebView2CompositionController struct {
TObject
}
TCoreWebView2CompositionController Parent: TObject
This interface is an extension of the ICoreWebView2Controller interface to support visual hosting. An object implementing the ICoreWebView2CompositionController interface will also implement ICoreWebView2Controller. Callers are expected to use ICoreWebView2Controller for resizing, visibility, focus, and so on, and then use ICoreWebView2CompositionController to connect to a composition tree and provide input meant for the WebView. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2compositioncontroller">See the ICoreWebView2CompositionController article.</a>
func (*TCoreWebView2CompositionController) AddAllBrowserEvents ¶
func (m *TCoreWebView2CompositionController) AddAllBrowserEvents(aBrowserComponent IComponent) bool
func (*TCoreWebView2CompositionController) AutomationProvider ¶
func (m *TCoreWebView2CompositionController) AutomationProvider() IUnknown
func (*TCoreWebView2CompositionController) BaseIntf ¶
func (m *TCoreWebView2CompositionController) BaseIntf() ICoreWebView2CompositionController
func (*TCoreWebView2CompositionController) Cursor ¶
func (m *TCoreWebView2CompositionController) Cursor() HCURSOR
func (*TCoreWebView2CompositionController) DragEnter ¶
func (m *TCoreWebView2CompositionController) DragEnter(dataObject IDataObject, keyState uint32, point *TPoint, OutEffect *uint32) int32
func (*TCoreWebView2CompositionController) DragLeave ¶
func (m *TCoreWebView2CompositionController) DragLeave() int32
func (*TCoreWebView2CompositionController) DragOver ¶
func (m *TCoreWebView2CompositionController) DragOver(keyState uint32, point *TPoint, OutEffect *uint32) int32
func (*TCoreWebView2CompositionController) Drop ¶
func (m *TCoreWebView2CompositionController) Drop(dataObject IDataObject, keyState uint32, point *TPoint, OutEffect *uint32) int32
func (*TCoreWebView2CompositionController) Initialized ¶
func (m *TCoreWebView2CompositionController) Initialized() bool
func (*TCoreWebView2CompositionController) RootVisualTarget ¶
func (m *TCoreWebView2CompositionController) RootVisualTarget() IUnknown
func (*TCoreWebView2CompositionController) SendMouseInput ¶
func (m *TCoreWebView2CompositionController) SendMouseInput(aEventKind TWVMouseEventKind, aVirtualKeys TWVMouseEventVirtualKeys, aMouseData uint32, aPoint *TPoint) bool
func (*TCoreWebView2CompositionController) SendPointerInput ¶
func (m *TCoreWebView2CompositionController) SendPointerInput(aEventKind TWVPointerEventKind, aPointerInfo ICoreWebView2PointerInfo) bool
func (*TCoreWebView2CompositionController) SetRootVisualTarget ¶
func (m *TCoreWebView2CompositionController) SetRootVisualTarget(AValue IUnknown)
func (*TCoreWebView2CompositionController) SystemCursorID ¶
func (m *TCoreWebView2CompositionController) SystemCursorID() uint32
type TCoreWebView2ContentLoadingEventArgs ¶
type TCoreWebView2ContentLoadingEventArgs struct {
TObject
}
TCoreWebView2ContentLoadingEventArgs Parent: TObject
Receives ContentLoading events. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contentloadingeventargs">See the ICoreWebView2ContentLoadingEventArgs article.</a>
func (*TCoreWebView2ContentLoadingEventArgs) BaseIntf ¶
func (m *TCoreWebView2ContentLoadingEventArgs) BaseIntf() ICoreWebView2ContentLoadingEventArgs
func (*TCoreWebView2ContentLoadingEventArgs) Initialized ¶
func (m *TCoreWebView2ContentLoadingEventArgs) Initialized() bool
func (*TCoreWebView2ContentLoadingEventArgs) IsErrorPage ¶
func (m *TCoreWebView2ContentLoadingEventArgs) IsErrorPage() bool
func (*TCoreWebView2ContentLoadingEventArgs) NavigationId ¶
func (m *TCoreWebView2ContentLoadingEventArgs) NavigationId() (resultUint64 uint64)
type TCoreWebView2ContextMenuItem ¶
type TCoreWebView2ContextMenuItem struct {
TObject
}
TCoreWebView2ContextMenuItem Parent: TObject
Represents a context menu item of a context menu displayed by WebView. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitem">See the ICoreWebView2ContextMenuItem article.</a>
func (*TCoreWebView2ContextMenuItem) AddAllBrowserEvents ¶
func (m *TCoreWebView2ContextMenuItem) AddAllBrowserEvents(aBrowserComponent IComponent) bool
func (*TCoreWebView2ContextMenuItem) BaseIntf ¶
func (m *TCoreWebView2ContextMenuItem) BaseIntf() ICoreWebView2ContextMenuItem
func (*TCoreWebView2ContextMenuItem) Children ¶
func (m *TCoreWebView2ContextMenuItem) Children() ICoreWebView2ContextMenuItemCollection
func (*TCoreWebView2ContextMenuItem) CommandId ¶
func (m *TCoreWebView2ContextMenuItem) CommandId() int32
func (*TCoreWebView2ContextMenuItem) Icon ¶
func (m *TCoreWebView2ContextMenuItem) Icon() IStream
func (*TCoreWebView2ContextMenuItem) Initialized ¶
func (m *TCoreWebView2ContextMenuItem) Initialized() bool
func (*TCoreWebView2ContextMenuItem) IsChecked ¶
func (m *TCoreWebView2ContextMenuItem) IsChecked() bool
func (*TCoreWebView2ContextMenuItem) IsEnabled ¶
func (m *TCoreWebView2ContextMenuItem) IsEnabled() bool
func (*TCoreWebView2ContextMenuItem) Kind ¶
func (m *TCoreWebView2ContextMenuItem) Kind() TWVMenuItemKind
func (*TCoreWebView2ContextMenuItem) Label ¶
func (m *TCoreWebView2ContextMenuItem) Label() string
func (*TCoreWebView2ContextMenuItem) Name ¶
func (m *TCoreWebView2ContextMenuItem) Name() string
func (*TCoreWebView2ContextMenuItem) SetBaseIntf ¶
func (m *TCoreWebView2ContextMenuItem) SetBaseIntf(AValue ICoreWebView2ContextMenuItem)
func (*TCoreWebView2ContextMenuItem) SetIsChecked ¶
func (m *TCoreWebView2ContextMenuItem) SetIsChecked(AValue bool)
func (*TCoreWebView2ContextMenuItem) SetIsEnabled ¶
func (m *TCoreWebView2ContextMenuItem) SetIsEnabled(AValue bool)
func (*TCoreWebView2ContextMenuItem) ShortcutKeyDescription ¶
func (m *TCoreWebView2ContextMenuItem) ShortcutKeyDescription() string
type TCoreWebView2ContextMenuItemCollection ¶
type TCoreWebView2ContextMenuItemCollection struct {
TObject
}
TCoreWebView2ContextMenuItemCollection Parent: TObject
Represents a collection of ContextMenuItem objects. Used to get, remove and add ContextMenuItem objects at the specified index. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenuitemcollection">See the ICoreWebView2ContextMenuItemCollection article.</a>
func (*TCoreWebView2ContextMenuItemCollection) AppendValue ¶
func (m *TCoreWebView2ContextMenuItemCollection) AppendValue(aValue ICoreWebView2ContextMenuItem) bool
func (*TCoreWebView2ContextMenuItemCollection) BaseIntf ¶
func (m *TCoreWebView2ContextMenuItemCollection) BaseIntf() ICoreWebView2ContextMenuItemCollection
func (*TCoreWebView2ContextMenuItemCollection) Count ¶
func (m *TCoreWebView2ContextMenuItemCollection) Count() uint32
func (*TCoreWebView2ContextMenuItemCollection) Initialized ¶
func (m *TCoreWebView2ContextMenuItemCollection) Initialized() bool
func (*TCoreWebView2ContextMenuItemCollection) InsertValueAtIndex ¶
func (m *TCoreWebView2ContextMenuItemCollection) InsertValueAtIndex(index uint32, aValue ICoreWebView2ContextMenuItem) bool
func (*TCoreWebView2ContextMenuItemCollection) Items ¶
func (m *TCoreWebView2ContextMenuItemCollection) Items(idx uint32) ICoreWebView2ContextMenuItem
func (*TCoreWebView2ContextMenuItemCollection) RemoveAllMenuItems ¶
func (m *TCoreWebView2ContextMenuItemCollection) RemoveAllMenuItems()
func (*TCoreWebView2ContextMenuItemCollection) RemoveMenuItem ¶
func (m *TCoreWebView2ContextMenuItemCollection) RemoveMenuItem(aCommandId int32)
func (*TCoreWebView2ContextMenuItemCollection) RemoveMenuItem1 ¶
func (m *TCoreWebView2ContextMenuItemCollection) RemoveMenuItem1(aLabel string)
func (*TCoreWebView2ContextMenuItemCollection) RemoveValueAtIndex ¶
func (m *TCoreWebView2ContextMenuItemCollection) RemoveValueAtIndex(index uint32) bool
type TCoreWebView2ContextMenuRequestedEventArgs ¶
type TCoreWebView2ContextMenuRequestedEventArgs struct {
TObject
}
TCoreWebView2ContextMenuRequestedEventArgs Parent: TObject
Event args for the ContextMenuRequested event. Will contain the selection information and a collection of all of the default context menu items that the WebView would show. Allows the app to draw its own context menu or add/remove from the default context menu. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenurequestedeventargs">See the ICoreWebView2ContextMenuRequestedEventArgs article.</a>
func (*TCoreWebView2ContextMenuRequestedEventArgs) BaseIntf ¶
func (m *TCoreWebView2ContextMenuRequestedEventArgs) BaseIntf() ICoreWebView2ContextMenuRequestedEventArgs
func (*TCoreWebView2ContextMenuRequestedEventArgs) ContextMenuTarget ¶
func (m *TCoreWebView2ContextMenuRequestedEventArgs) ContextMenuTarget() ICoreWebView2ContextMenuTarget
func (*TCoreWebView2ContextMenuRequestedEventArgs) Deferral ¶
func (m *TCoreWebView2ContextMenuRequestedEventArgs) Deferral() ICoreWebView2Deferral
func (*TCoreWebView2ContextMenuRequestedEventArgs) Handled ¶
func (m *TCoreWebView2ContextMenuRequestedEventArgs) Handled() bool
func (*TCoreWebView2ContextMenuRequestedEventArgs) Initialized ¶
func (m *TCoreWebView2ContextMenuRequestedEventArgs) Initialized() bool
func (*TCoreWebView2ContextMenuRequestedEventArgs) Location ¶
func (m *TCoreWebView2ContextMenuRequestedEventArgs) Location() (resultPoint TPoint)
func (*TCoreWebView2ContextMenuRequestedEventArgs) MenuItems ¶
func (m *TCoreWebView2ContextMenuRequestedEventArgs) MenuItems() ICoreWebView2ContextMenuItemCollection
func (*TCoreWebView2ContextMenuRequestedEventArgs) SelectedCommandId ¶
func (m *TCoreWebView2ContextMenuRequestedEventArgs) SelectedCommandId() int32
func (*TCoreWebView2ContextMenuRequestedEventArgs) SetHandled ¶
func (m *TCoreWebView2ContextMenuRequestedEventArgs) SetHandled(AValue bool)
func (*TCoreWebView2ContextMenuRequestedEventArgs) SetSelectedCommandId ¶
func (m *TCoreWebView2ContextMenuRequestedEventArgs) SetSelectedCommandId(AValue int32)
type TCoreWebView2ContextMenuTarget ¶
type TCoreWebView2ContextMenuTarget struct {
TObject
}
TCoreWebView2ContextMenuTarget Parent: TObject
Represents the information regarding the context menu target. Includes the context selected and the appropriate data used for the actions of a context menu. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2contextmenutarget">See the ICoreWebView2ContextMenuTarget article.</a>
func (*TCoreWebView2ContextMenuTarget) BaseIntf ¶
func (m *TCoreWebView2ContextMenuTarget) BaseIntf() ICoreWebView2ContextMenuTarget
func (*TCoreWebView2ContextMenuTarget) FrameUri ¶
func (m *TCoreWebView2ContextMenuTarget) FrameUri() string
func (*TCoreWebView2ContextMenuTarget) HasLinkText ¶
func (m *TCoreWebView2ContextMenuTarget) HasLinkText() bool
func (*TCoreWebView2ContextMenuTarget) HasLinkUri ¶
func (m *TCoreWebView2ContextMenuTarget) HasLinkUri() bool
func (*TCoreWebView2ContextMenuTarget) HasSelection ¶
func (m *TCoreWebView2ContextMenuTarget) HasSelection() bool
func (*TCoreWebView2ContextMenuTarget) HasSourceUri ¶
func (m *TCoreWebView2ContextMenuTarget) HasSourceUri() bool
func (*TCoreWebView2ContextMenuTarget) Initialized ¶
func (m *TCoreWebView2ContextMenuTarget) Initialized() bool
func (*TCoreWebView2ContextMenuTarget) IsEditable ¶
func (m *TCoreWebView2ContextMenuTarget) IsEditable() bool
func (*TCoreWebView2ContextMenuTarget) IsRequestedForMainFrame ¶
func (m *TCoreWebView2ContextMenuTarget) IsRequestedForMainFrame() bool
func (*TCoreWebView2ContextMenuTarget) Kind ¶
func (m *TCoreWebView2ContextMenuTarget) Kind() TWVMenuTargetKind
func (*TCoreWebView2ContextMenuTarget) LinkText ¶
func (m *TCoreWebView2ContextMenuTarget) LinkText() string
func (*TCoreWebView2ContextMenuTarget) LinkUri ¶
func (m *TCoreWebView2ContextMenuTarget) LinkUri() string
func (*TCoreWebView2ContextMenuTarget) PageUri ¶
func (m *TCoreWebView2ContextMenuTarget) PageUri() string
func (*TCoreWebView2ContextMenuTarget) SelectionText ¶
func (m *TCoreWebView2ContextMenuTarget) SelectionText() string
func (*TCoreWebView2ContextMenuTarget) SourceUri ¶
func (m *TCoreWebView2ContextMenuTarget) SourceUri() string
type TCoreWebView2Controller ¶
type TCoreWebView2Controller struct {
TObject
}
TCoreWebView2Controller Parent: TObject
The owner of the `CoreWebView2` object that provides support for resizing, showing and hiding, focusing, and other functionality related to windowing and composition. The `CoreWebView2Controller` owns the `CoreWebView2`, and if all references to the `CoreWebView2Controller` go away, the WebView is closed. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller">See the ICoreWebView2Controller article.</a>
func (*TCoreWebView2Controller) AddAllBrowserEvents ¶
func (m *TCoreWebView2Controller) AddAllBrowserEvents(aBrowserComponent IComponent) bool
func (*TCoreWebView2Controller) AllowExternalDrop ¶
func (m *TCoreWebView2Controller) AllowExternalDrop() bool
func (*TCoreWebView2Controller) BaseIntf ¶
func (m *TCoreWebView2Controller) BaseIntf() ICoreWebView2Controller
func (*TCoreWebView2Controller) Bounds ¶
func (m *TCoreWebView2Controller) Bounds() (resultRect TRect)
func (*TCoreWebView2Controller) BoundsMode ¶
func (m *TCoreWebView2Controller) BoundsMode() TWVBoundsMode
func (*TCoreWebView2Controller) Close ¶
func (m *TCoreWebView2Controller) Close() bool
func (*TCoreWebView2Controller) CoreWebView2 ¶
func (m *TCoreWebView2Controller) CoreWebView2() ICoreWebView2
func (*TCoreWebView2Controller) DefaultBackgroundColor ¶
func (m *TCoreWebView2Controller) DefaultBackgroundColor() TColor
func (*TCoreWebView2Controller) Initialized ¶
func (m *TCoreWebView2Controller) Initialized() bool
func (*TCoreWebView2Controller) IsVisible ¶
func (m *TCoreWebView2Controller) IsVisible() bool
func (*TCoreWebView2Controller) MoveFocus ¶
func (m *TCoreWebView2Controller) MoveFocus(aReason TWVMoveFocusReason) bool
func (*TCoreWebView2Controller) NotifyParentWindowPositionChanged ¶
func (m *TCoreWebView2Controller) NotifyParentWindowPositionChanged() bool
func (*TCoreWebView2Controller) ParentWindow ¶
func (m *TCoreWebView2Controller) ParentWindow() THandle
func (*TCoreWebView2Controller) RasterizationScale ¶
func (m *TCoreWebView2Controller) RasterizationScale() (resultDouble float64)
func (*TCoreWebView2Controller) SetAllowExternalDrop ¶
func (m *TCoreWebView2Controller) SetAllowExternalDrop(AValue bool)
func (*TCoreWebView2Controller) SetBounds ¶
func (m *TCoreWebView2Controller) SetBounds(AValue *TRect)
func (*TCoreWebView2Controller) SetBoundsAndZoomFactor ¶
func (m *TCoreWebView2Controller) SetBoundsAndZoomFactor(aBounds *TRect, aZoomFactor float64) bool
func (*TCoreWebView2Controller) SetBoundsMode ¶
func (m *TCoreWebView2Controller) SetBoundsMode(AValue TWVBoundsMode)
func (*TCoreWebView2Controller) SetDefaultBackgroundColor ¶
func (m *TCoreWebView2Controller) SetDefaultBackgroundColor(AValue TColor)
func (*TCoreWebView2Controller) SetIsVisible ¶
func (m *TCoreWebView2Controller) SetIsVisible(AValue bool)
func (*TCoreWebView2Controller) SetParentWindow ¶
func (m *TCoreWebView2Controller) SetParentWindow(AValue THandle)
func (*TCoreWebView2Controller) SetRasterizationScale ¶
func (m *TCoreWebView2Controller) SetRasterizationScale(AValue float64)
func (*TCoreWebView2Controller) SetShouldDetectMonitorScaleChanges ¶
func (m *TCoreWebView2Controller) SetShouldDetectMonitorScaleChanges(AValue bool)
func (*TCoreWebView2Controller) SetZoomFactor ¶
func (m *TCoreWebView2Controller) SetZoomFactor(AValue float64)
func (*TCoreWebView2Controller) ShouldDetectMonitorScaleChanges ¶
func (m *TCoreWebView2Controller) ShouldDetectMonitorScaleChanges() bool
func (*TCoreWebView2Controller) ZoomFactor ¶
func (m *TCoreWebView2Controller) ZoomFactor() (resultDouble float64)
type TCoreWebView2ControllerOptions ¶
type TCoreWebView2ControllerOptions struct {
TObject
}
TCoreWebView2ControllerOptions Parent: TObject
This class is a ICoreWebView2ControllerOptions wrapper. ICoreWebView2ControllerOptions is used to manage profile options that created by 'CreateCoreWebView2ControllerOptions'. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controlleroptions">See the ICoreWebView2ControllerOptions article.</a>
func (*TCoreWebView2ControllerOptions) BaseIntf ¶
func (m *TCoreWebView2ControllerOptions) BaseIntf() ICoreWebView2ControllerOptions
func (*TCoreWebView2ControllerOptions) Initialized ¶
func (m *TCoreWebView2ControllerOptions) Initialized() bool
func (*TCoreWebView2ControllerOptions) IsInPrivateModeEnabled ¶
func (m *TCoreWebView2ControllerOptions) IsInPrivateModeEnabled() bool
func (*TCoreWebView2ControllerOptions) ProfileName ¶
func (m *TCoreWebView2ControllerOptions) ProfileName() string
func (*TCoreWebView2ControllerOptions) ScriptLocale ¶
func (m *TCoreWebView2ControllerOptions) ScriptLocale() string
func (*TCoreWebView2ControllerOptions) SetBaseIntf ¶
func (m *TCoreWebView2ControllerOptions) SetBaseIntf(AValue ICoreWebView2ControllerOptions)
func (*TCoreWebView2ControllerOptions) SetIsInPrivateModeEnabled ¶
func (m *TCoreWebView2ControllerOptions) SetIsInPrivateModeEnabled(AValue bool)
func (*TCoreWebView2ControllerOptions) SetProfileName ¶
func (m *TCoreWebView2ControllerOptions) SetProfileName(AValue string)
func (*TCoreWebView2ControllerOptions) SetScriptLocale ¶
func (m *TCoreWebView2ControllerOptions) SetScriptLocale(AValue string)
type TCoreWebView2Cookie ¶
type TCoreWebView2Cookie struct {
TObject
}
TCoreWebView2Cookie Parent: TObject
Provides a set of properties that are used to manage an ICoreWebView2Cookie. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie">See the ICoreWebView2Cookie article.</a>
func (*TCoreWebView2Cookie) BaseIntf ¶
func (m *TCoreWebView2Cookie) BaseIntf() ICoreWebView2Cookie
func (*TCoreWebView2Cookie) Domain ¶
func (m *TCoreWebView2Cookie) Domain() string
func (*TCoreWebView2Cookie) Expires ¶
func (m *TCoreWebView2Cookie) Expires() (resultDouble float64)
func (*TCoreWebView2Cookie) ExpiresDate ¶
func (m *TCoreWebView2Cookie) ExpiresDate() (resultDateTime float64)
func (*TCoreWebView2Cookie) Initialized ¶
func (m *TCoreWebView2Cookie) Initialized() bool
func (*TCoreWebView2Cookie) IsHttpOnly ¶
func (m *TCoreWebView2Cookie) IsHttpOnly() bool
func (*TCoreWebView2Cookie) IsSecure ¶
func (m *TCoreWebView2Cookie) IsSecure() bool
func (*TCoreWebView2Cookie) IsSession ¶
func (m *TCoreWebView2Cookie) IsSession() bool
func (*TCoreWebView2Cookie) Name ¶
func (m *TCoreWebView2Cookie) Name() string
func (*TCoreWebView2Cookie) Path ¶
func (m *TCoreWebView2Cookie) Path() string
func (*TCoreWebView2Cookie) SameSite ¶
func (m *TCoreWebView2Cookie) SameSite() TWVCookieSameSiteKind
func (*TCoreWebView2Cookie) SetBaseIntf ¶
func (m *TCoreWebView2Cookie) SetBaseIntf(AValue ICoreWebView2Cookie)
func (*TCoreWebView2Cookie) SetExpires ¶
func (m *TCoreWebView2Cookie) SetExpires(AValue float64)
func (*TCoreWebView2Cookie) SetExpiresDate ¶
func (m *TCoreWebView2Cookie) SetExpiresDate(AValue float64)
func (*TCoreWebView2Cookie) SetIsHttpOnly ¶
func (m *TCoreWebView2Cookie) SetIsHttpOnly(AValue bool)
func (*TCoreWebView2Cookie) SetIsSecure ¶
func (m *TCoreWebView2Cookie) SetIsSecure(AValue bool)
func (*TCoreWebView2Cookie) SetSameSite ¶
func (m *TCoreWebView2Cookie) SetSameSite(AValue TWVCookieSameSiteKind)
func (*TCoreWebView2Cookie) SetValue ¶
func (m *TCoreWebView2Cookie) SetValue(AValue string)
func (*TCoreWebView2Cookie) Value ¶
func (m *TCoreWebView2Cookie) Value() string
type TCoreWebView2CookieList ¶
type TCoreWebView2CookieList struct {
TObject
}
TCoreWebView2CookieList Parent: TObject
A list of cookie objects. See ICoreWebView2Cookie. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookielist">See the ICoreWebView2CookieList article.</a>
func (*TCoreWebView2CookieList) BaseIntf ¶
func (m *TCoreWebView2CookieList) BaseIntf() ICoreWebView2CookieList
func (*TCoreWebView2CookieList) Count ¶
func (m *TCoreWebView2CookieList) Count() uint32
func (*TCoreWebView2CookieList) Initialized ¶
func (m *TCoreWebView2CookieList) Initialized() bool
func (*TCoreWebView2CookieList) Items ¶
func (m *TCoreWebView2CookieList) Items(idx uint32) ICoreWebView2Cookie
type TCoreWebView2CookieManager ¶
type TCoreWebView2CookieManager struct {
TObject
}
TCoreWebView2CookieManager Parent: TObject
Creates, adds or updates, gets, or or view the cookies. The changes would apply to the context of the user profile. That is, other WebViews under the same user profile could be affected. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookiemanager">See the ICoreWebView2CookieManager article.</a>
func (*TCoreWebView2CookieManager) AddOrUpdateCookie ¶
func (m *TCoreWebView2CookieManager) AddOrUpdateCookie(aCookie ICoreWebView2Cookie) bool
func (*TCoreWebView2CookieManager) BaseIntf ¶
func (m *TCoreWebView2CookieManager) BaseIntf() ICoreWebView2CookieManager
func (*TCoreWebView2CookieManager) CopyCookie ¶
func (m *TCoreWebView2CookieManager) CopyCookie(aCookie ICoreWebView2Cookie) ICoreWebView2Cookie
func (*TCoreWebView2CookieManager) CreateCookie ¶
func (m *TCoreWebView2CookieManager) CreateCookie(aName, aValue, aDomain, aPath string) ICoreWebView2Cookie
func (*TCoreWebView2CookieManager) DeleteAllCookies ¶
func (m *TCoreWebView2CookieManager) DeleteAllCookies() bool
func (*TCoreWebView2CookieManager) DeleteCookie ¶
func (m *TCoreWebView2CookieManager) DeleteCookie(aCookie ICoreWebView2Cookie) bool
func (*TCoreWebView2CookieManager) DeleteCookies ¶
func (m *TCoreWebView2CookieManager) DeleteCookies(aName, aURI string) bool
func (*TCoreWebView2CookieManager) DeleteCookiesWithDomainAndPath ¶
func (m *TCoreWebView2CookieManager) DeleteCookiesWithDomainAndPath(aName, aDomain, aPath string) bool
func (*TCoreWebView2CookieManager) GetCookies ¶
func (m *TCoreWebView2CookieManager) GetCookies(aURI string, aHandler ICoreWebView2GetCookiesCompletedHandler) bool
func (*TCoreWebView2CookieManager) Initialized ¶
func (m *TCoreWebView2CookieManager) Initialized() bool
type TCoreWebView2CustomItemSelectedEventHandler ¶
type TCoreWebView2CustomItemSelectedEventHandler struct {
TObject
}
TCoreWebView2CustomItemSelectedEventHandler Parent: TObject
Raised to notify the host that the end user selected a custom ContextMenuItem. CustomItemSelected event is raised on the specific ContextMenuItem that the end user selected. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2customitemselectedeventhandler">See the ICoreWebView2CustomItemSelectedEventHandler article.</a>
type TCoreWebView2DOMContentLoadedEventArgs ¶
type TCoreWebView2DOMContentLoadedEventArgs struct {
TObject
}
TCoreWebView2DOMContentLoadedEventArgs Parent: TObject
Event args for the DOMContentLoaded event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2domcontentloadedeventargs">See the ICoreWebView2DOMContentLoadedEventArgs article.</a>
func (*TCoreWebView2DOMContentLoadedEventArgs) BaseIntf ¶
func (m *TCoreWebView2DOMContentLoadedEventArgs) BaseIntf() ICoreWebView2DOMContentLoadedEventArgs
func (*TCoreWebView2DOMContentLoadedEventArgs) Initialized ¶
func (m *TCoreWebView2DOMContentLoadedEventArgs) Initialized() bool
func (*TCoreWebView2DOMContentLoadedEventArgs) NavigationId ¶
func (m *TCoreWebView2DOMContentLoadedEventArgs) NavigationId() (resultUint64 uint64)
type TCoreWebView2Deferral ¶
type TCoreWebView2Deferral struct {
TObject
}
TCoreWebView2Deferral Parent: TObject
This interface is used to complete deferrals on event args that support getting deferrals using the GetDeferral method. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2deferral">See the ICoreWebView2Deferral article.</a>
func (*TCoreWebView2Deferral) BaseIntf ¶
func (m *TCoreWebView2Deferral) BaseIntf() ICoreWebView2Deferral
func (*TCoreWebView2Deferral) Complete ¶
func (m *TCoreWebView2Deferral) Complete() bool
func (*TCoreWebView2Deferral) Initialized ¶
func (m *TCoreWebView2Deferral) Initialized() bool
type TCoreWebView2DevToolsProtocolEventReceivedEventArgs ¶
type TCoreWebView2DevToolsProtocolEventReceivedEventArgs struct {
TObject
}
TCoreWebView2DevToolsProtocolEventReceivedEventArgs Parent: TObject
Event args for the DevToolsProtocolEventReceived event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2devtoolsprotocoleventreceivedeventargs">See the ICoreWebView2DevToolsProtocolEventReceivedEventArgs article.</a>
func (*TCoreWebView2DevToolsProtocolEventReceivedEventArgs) Initialized ¶
func (m *TCoreWebView2DevToolsProtocolEventReceivedEventArgs) Initialized() bool
func (*TCoreWebView2DevToolsProtocolEventReceivedEventArgs) ParameterObjectAsJson ¶
func (m *TCoreWebView2DevToolsProtocolEventReceivedEventArgs) ParameterObjectAsJson() string
func (*TCoreWebView2DevToolsProtocolEventReceivedEventArgs) SessionId ¶
func (m *TCoreWebView2DevToolsProtocolEventReceivedEventArgs) SessionId() string
type TCoreWebView2DownloadOperation ¶
type TCoreWebView2DownloadOperation struct {
TObject
}
TCoreWebView2DownloadOperation Parent: TObject
Represents a download operation. Gives access to the download's metadata and supports a user canceling, pausing, or resuming the download. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadoperation">See the ICoreWebView2DownloadOperation article.</a>
func (*TCoreWebView2DownloadOperation) AddAllBrowserEvents ¶
func (m *TCoreWebView2DownloadOperation) AddAllBrowserEvents(aBrowserComponent IComponent) bool
func (*TCoreWebView2DownloadOperation) BaseIntf ¶
func (m *TCoreWebView2DownloadOperation) BaseIntf() ICoreWebView2DownloadOperation
func (*TCoreWebView2DownloadOperation) BytesReceived ¶
func (m *TCoreWebView2DownloadOperation) BytesReceived() (resultInt64 int64)
func (*TCoreWebView2DownloadOperation) CanResume ¶
func (m *TCoreWebView2DownloadOperation) CanResume() bool
func (*TCoreWebView2DownloadOperation) Cancel ¶
func (m *TCoreWebView2DownloadOperation) Cancel() bool
func (*TCoreWebView2DownloadOperation) ContentDisposition ¶
func (m *TCoreWebView2DownloadOperation) ContentDisposition() string
func (*TCoreWebView2DownloadOperation) DownloadID ¶
func (m *TCoreWebView2DownloadOperation) DownloadID() int32
func (*TCoreWebView2DownloadOperation) EstimatedEndTime ¶
func (m *TCoreWebView2DownloadOperation) EstimatedEndTime() (resultDateTime float64)
func (*TCoreWebView2DownloadOperation) Initialized ¶
func (m *TCoreWebView2DownloadOperation) Initialized() bool
func (*TCoreWebView2DownloadOperation) InterruptReason ¶
func (m *TCoreWebView2DownloadOperation) InterruptReason() TWVDownloadInterruptReason
func (*TCoreWebView2DownloadOperation) MimeType ¶
func (m *TCoreWebView2DownloadOperation) MimeType() string
func (*TCoreWebView2DownloadOperation) Pause ¶
func (m *TCoreWebView2DownloadOperation) Pause() bool
func (*TCoreWebView2DownloadOperation) ResultFilePath ¶
func (m *TCoreWebView2DownloadOperation) ResultFilePath() string
func (*TCoreWebView2DownloadOperation) Resume ¶
func (m *TCoreWebView2DownloadOperation) Resume() bool
func (*TCoreWebView2DownloadOperation) State ¶
func (m *TCoreWebView2DownloadOperation) State() TWVDownloadState
func (*TCoreWebView2DownloadOperation) TotalBytesToReceive ¶
func (m *TCoreWebView2DownloadOperation) TotalBytesToReceive() (resultInt64 int64)
func (*TCoreWebView2DownloadOperation) URI ¶
func (m *TCoreWebView2DownloadOperation) URI() string
type TCoreWebView2DownloadStartingEventArgs ¶
type TCoreWebView2DownloadStartingEventArgs struct {
TObject
}
TCoreWebView2DownloadStartingEventArgs Parent: TObject
Event args for the DownloadStarting event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2downloadstartingeventargs">See the ICoreWebView2DownloadStartingEventArgs article.</a>
func (*TCoreWebView2DownloadStartingEventArgs) BaseIntf ¶
func (m *TCoreWebView2DownloadStartingEventArgs) BaseIntf() ICoreWebView2DownloadStartingEventArgs
func (*TCoreWebView2DownloadStartingEventArgs) Cancel ¶
func (m *TCoreWebView2DownloadStartingEventArgs) Cancel() bool
func (*TCoreWebView2DownloadStartingEventArgs) Deferral ¶
func (m *TCoreWebView2DownloadStartingEventArgs) Deferral() ICoreWebView2Deferral
func (*TCoreWebView2DownloadStartingEventArgs) DownloadOperation ¶
func (m *TCoreWebView2DownloadStartingEventArgs) DownloadOperation() ICoreWebView2DownloadOperation
func (*TCoreWebView2DownloadStartingEventArgs) Handled ¶
func (m *TCoreWebView2DownloadStartingEventArgs) Handled() bool
func (*TCoreWebView2DownloadStartingEventArgs) Initialized ¶
func (m *TCoreWebView2DownloadStartingEventArgs) Initialized() bool
func (*TCoreWebView2DownloadStartingEventArgs) ResultFilePath ¶
func (m *TCoreWebView2DownloadStartingEventArgs) ResultFilePath() string
func (*TCoreWebView2DownloadStartingEventArgs) SetCancel ¶
func (m *TCoreWebView2DownloadStartingEventArgs) SetCancel(AValue bool)
func (*TCoreWebView2DownloadStartingEventArgs) SetHandled ¶
func (m *TCoreWebView2DownloadStartingEventArgs) SetHandled(AValue bool)
func (*TCoreWebView2DownloadStartingEventArgs) SetResultFilePath ¶
func (m *TCoreWebView2DownloadStartingEventArgs) SetResultFilePath(AValue string)
type TCoreWebView2Environment ¶
type TCoreWebView2Environment struct {
TObject
}
TCoreWebView2Environment Parent: TObject
Represents the WebView2 Environment. WebViews created from an environment run on the browser process specified with environment parameters and objects created from an environment should be used in the same environment. Using it in different environments are not guaranteed to be compatible and may fail. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment">See the ICoreWebView2Environment article.</a>
func (*TCoreWebView2Environment) AddAllBrowserEvents ¶
func (m *TCoreWebView2Environment) AddAllBrowserEvents(aBrowserComponent IComponent) bool
func (*TCoreWebView2Environment) AddAllLoaderEvents ¶
func (m *TCoreWebView2Environment) AddAllLoaderEvents(aLoaderComponent IComponent) bool
func (*TCoreWebView2Environment) BaseIntf ¶
func (m *TCoreWebView2Environment) BaseIntf() ICoreWebView2Environment
func (*TCoreWebView2Environment) BrowserVersionInfo ¶
func (m *TCoreWebView2Environment) BrowserVersionInfo() string
func (*TCoreWebView2Environment) CreateContextMenuItem ¶
func (m *TCoreWebView2Environment) CreateContextMenuItem(aLabel string, aIconStream IStream, aKind TWVMenuItemKind, aMenuItem *ICoreWebView2ContextMenuItem) bool
func (*TCoreWebView2Environment) CreateCoreWebView2CompositionController ¶
func (m *TCoreWebView2Environment) CreateCoreWebView2CompositionController(aParentWindow THandle, aBrowserEvents IWVBrowserEvents, aResult *int32) bool
func (*TCoreWebView2Environment) CreateCoreWebView2CompositionControllerWithOptions ¶
func (m *TCoreWebView2Environment) CreateCoreWebView2CompositionControllerWithOptions(aParentWindow HWND, aOptions ICoreWebView2ControllerOptions, aBrowserEvents IWVBrowserEvents, aResult *int32) bool
func (*TCoreWebView2Environment) CreateCoreWebView2Controller ¶
func (m *TCoreWebView2Environment) CreateCoreWebView2Controller(aParentWindow THandle, aBrowserEvents IWVBrowserEvents, aResult *int32) bool
func (*TCoreWebView2Environment) CreateCoreWebView2ControllerOptions ¶
func (m *TCoreWebView2Environment) CreateCoreWebView2ControllerOptions(aOptions *ICoreWebView2ControllerOptions, aResult *int32) bool
func (*TCoreWebView2Environment) CreateCoreWebView2ControllerWithOptions ¶
func (m *TCoreWebView2Environment) CreateCoreWebView2ControllerWithOptions(aParentWindow HWND, aOptions ICoreWebView2ControllerOptions, aBrowserEvents IWVBrowserEvents, aResult *int32) bool
func (*TCoreWebView2Environment) CreateCoreWebView2PointerInfo ¶
func (m *TCoreWebView2Environment) CreateCoreWebView2PointerInfo(aPointerInfo *ICoreWebView2PointerInfo) bool
func (*TCoreWebView2Environment) CreatePrintSettings ¶
func (m *TCoreWebView2Environment) CreatePrintSettings(aPrintSettings *ICoreWebView2PrintSettings) bool
func (*TCoreWebView2Environment) CreateSharedBuffer ¶
func (m *TCoreWebView2Environment) CreateSharedBuffer(aSize int64, aSharedBuffer *ICoreWebView2SharedBuffer) bool
func (*TCoreWebView2Environment) CreateWebResourceRequest ¶
func (m *TCoreWebView2Environment) CreateWebResourceRequest(aURI, aMethod string, aPostData IStream, aHeaders string, aRequest *ICoreWebView2WebResourceRequestRef) bool
func (*TCoreWebView2Environment) CreateWebResourceResponse ¶
func (m *TCoreWebView2Environment) CreateWebResourceResponse(aContent IStream, aStatusCode int32, aReasonPhrase, aHeaders string, aResponse *ICoreWebView2WebResourceResponse) bool
func (*TCoreWebView2Environment) FailureReportFolderPath ¶
func (m *TCoreWebView2Environment) FailureReportFolderPath() string
func (*TCoreWebView2Environment) GetAutomationProviderForWindow ¶
func (m *TCoreWebView2Environment) GetAutomationProviderForWindow(aHandle THandle, aProvider *IUnknown) bool
func (*TCoreWebView2Environment) GetProcessExtendedInfos ¶
func (m *TCoreWebView2Environment) GetProcessExtendedInfos(aBrowserEvents IWVBrowserEvents) bool
func (*TCoreWebView2Environment) Initialized ¶
func (m *TCoreWebView2Environment) Initialized() bool
func (*TCoreWebView2Environment) ProcessInfos ¶
func (m *TCoreWebView2Environment) ProcessInfos() ICoreWebView2ProcessInfoCollection
func (*TCoreWebView2Environment) SupportsCompositionController ¶
func (m *TCoreWebView2Environment) SupportsCompositionController() bool
func (*TCoreWebView2Environment) SupportsControllerOptions ¶
func (m *TCoreWebView2Environment) SupportsControllerOptions() bool
func (*TCoreWebView2Environment) UserDataFolder ¶
func (m *TCoreWebView2Environment) UserDataFolder() string
type TCoreWebView2ExecuteScriptResult ¶
type TCoreWebView2ExecuteScriptResult struct {
TObject
}
TCoreWebView2ExecuteScriptResult Parent: TObject
This is the result for ExecuteScriptWithResult. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2executescriptresult">See the ICoreWebView2ExecuteScriptResult article.</a>
func (*TCoreWebView2ExecuteScriptResult) BaseIntf ¶
func (m *TCoreWebView2ExecuteScriptResult) BaseIntf() ICoreWebView2ExecuteScriptResult
func (*TCoreWebView2ExecuteScriptResult) Exception ¶
func (m *TCoreWebView2ExecuteScriptResult) Exception() ICoreWebView2ScriptException
func (*TCoreWebView2ExecuteScriptResult) Initialized ¶
func (m *TCoreWebView2ExecuteScriptResult) Initialized() bool
func (*TCoreWebView2ExecuteScriptResult) ResultAsJson ¶
func (m *TCoreWebView2ExecuteScriptResult) ResultAsJson() string
func (*TCoreWebView2ExecuteScriptResult) Succeeded ¶
func (m *TCoreWebView2ExecuteScriptResult) Succeeded() bool
func (*TCoreWebView2ExecuteScriptResult) TryGetResultAsString ¶
func (m *TCoreWebView2ExecuteScriptResult) TryGetResultAsString(stringResult *string, value *bool) bool
type TCoreWebView2Frame ¶
type TCoreWebView2Frame struct {
TObject
}
TCoreWebView2Frame Parent: TObject
ICoreWebView2Frame provides direct access to the iframes information. You can get an ICoreWebView2Frame by handling the ICoreWebView2_4.add_FrameCreated event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frame">See the ICoreWebView2Frame article.</a>
func (*TCoreWebView2Frame) AddAllBrowserEvents ¶
func (m *TCoreWebView2Frame) AddAllBrowserEvents(aBrowserComponent IComponent) bool
func (*TCoreWebView2Frame) AddHostObjectToScriptWithOrigins ¶
func (m *TCoreWebView2Frame) AddHostObjectToScriptWithOrigins(name string, object OleVariant, originsCount uint32, origins string) bool
AddHostObjectToScriptWithOrigins
Add the provided host object to script running in the iframe with the specified name for the list of the specified origins. The host object will be accessible for this iframe only if the iframe's origin during access matches one of the origins which are passed. The provided origins will be normalized before comparing to the origin of the document. So the scheme name is made lower case, the host will be punycode decoded as appropriate, default port values will be removed, and so on. This means the origin's host may be punycode encoded or not and will match regardless. If list contains malformed origin the call will fail. The method can be called multiple times in a row without calling RemoveHostObjectFromScript for the same object name. It will replace the previous object with the new object and new list of origins. List of origins will be treated as following: 1. empty list - call will succeed and object will be added for the iframe but it will not be exposed to any origin; 2. list with origins - during access to host object from iframe the origin will be checked that it belongs to this list; 3. list with "*" element - host object will be available for iframe for all origins. We suggest not to use this feature without understanding security implications of giving access to host object from from iframes with unknown origins. 4. list with "file://" element - host object will be available for iframes loaded via file protocol. Calling this method fails if it is called after the iframe is destroyed. snippet ScenarioAddHostObject.cpp AddHostObjectToScriptWithOrigins For more information about host objects navigate to ICoreWebView2::AddHostObjectToScript.
func (*TCoreWebView2Frame) BaseIntf ¶
func (m *TCoreWebView2Frame) BaseIntf() ICoreWebView2Frame
func (*TCoreWebView2Frame) ExecuteScript ¶
func (m *TCoreWebView2Frame) ExecuteScript(JavaScript string, aExecutionID int32, aBrowserComponent IComponent) bool
func (*TCoreWebView2Frame) FrameID ¶
func (m *TCoreWebView2Frame) FrameID() uint32
func (*TCoreWebView2Frame) Initialized ¶
func (m *TCoreWebView2Frame) Initialized() bool
func (*TCoreWebView2Frame) IsDestroyed ¶
func (m *TCoreWebView2Frame) IsDestroyed() bool
func (*TCoreWebView2Frame) Name ¶
func (m *TCoreWebView2Frame) Name() string
func (*TCoreWebView2Frame) PostSharedBufferToScript ¶
func (m *TCoreWebView2Frame) PostSharedBufferToScript(aSharedBuffer ICoreWebView2SharedBuffer, aAccess TWVSharedBufferAccess, aAdditionalDataAsJson string) bool
func (*TCoreWebView2Frame) PostWebMessageAsJson ¶
func (m *TCoreWebView2Frame) PostWebMessageAsJson(aWebMessageAsJson string) bool
func (*TCoreWebView2Frame) PostWebMessageAsString ¶
func (m *TCoreWebView2Frame) PostWebMessageAsString(aWebMessageAsString string) bool
func (*TCoreWebView2Frame) RemoveHostObjectFromScript ¶
func (m *TCoreWebView2Frame) RemoveHostObjectFromScript(aName string) bool
type TCoreWebView2FrameCreatedEventArgs ¶
type TCoreWebView2FrameCreatedEventArgs struct {
TObject
}
TCoreWebView2FrameCreatedEventArgs Parent: TObject
Event args for the FrameCreated events. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2framecreatedeventargs">See the ICoreWebView2FrameCreatedEventArgs article.</a>
func (*TCoreWebView2FrameCreatedEventArgs) BaseIntf ¶
func (m *TCoreWebView2FrameCreatedEventArgs) BaseIntf() ICoreWebView2FrameCreatedEventArgs
func (*TCoreWebView2FrameCreatedEventArgs) Frame ¶
func (m *TCoreWebView2FrameCreatedEventArgs) Frame() ICoreWebView2Frame
func (*TCoreWebView2FrameCreatedEventArgs) Initialized ¶
func (m *TCoreWebView2FrameCreatedEventArgs) Initialized() bool
type TCoreWebView2FrameInfo ¶
type TCoreWebView2FrameInfo struct {
TObject
}
TCoreWebView2FrameInfo Parent: TObject
Provides a set of properties for a frame in the ICoreWebView2. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfo">See the ICoreWebView2FrameInfo article.</a>
func (*TCoreWebView2FrameInfo) BaseIntf ¶
func (m *TCoreWebView2FrameInfo) BaseIntf() ICoreWebView2FrameInfo
func (*TCoreWebView2FrameInfo) FrameId ¶
func (m *TCoreWebView2FrameInfo) FrameId() uint32
func (*TCoreWebView2FrameInfo) FrameKind ¶
func (m *TCoreWebView2FrameInfo) FrameKind() TWVFrameKind
func (*TCoreWebView2FrameInfo) FrameKindStr ¶
func (m *TCoreWebView2FrameInfo) FrameKindStr() string
func (*TCoreWebView2FrameInfo) Initialized ¶
func (m *TCoreWebView2FrameInfo) Initialized() bool
func (*TCoreWebView2FrameInfo) Name ¶
func (m *TCoreWebView2FrameInfo) Name() string
func (*TCoreWebView2FrameInfo) ParentFrameInfo ¶
func (m *TCoreWebView2FrameInfo) ParentFrameInfo() ICoreWebView2FrameInfo
func (*TCoreWebView2FrameInfo) SetBaseIntf ¶
func (m *TCoreWebView2FrameInfo) SetBaseIntf(AValue ICoreWebView2FrameInfo)
func (*TCoreWebView2FrameInfo) Source ¶
func (m *TCoreWebView2FrameInfo) Source() string
type TCoreWebView2FrameInfoCollection ¶
type TCoreWebView2FrameInfoCollection struct {
TObject
}
TCoreWebView2FrameInfoCollection Parent: TObject
Collection of FrameInfos (name and source). Used to list the affected frames' info when a frame-only render process failure occurs in the ICoreWebView2. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfocollection">See the ICoreWebView2FrameInfoCollection article.</a>
func (*TCoreWebView2FrameInfoCollection) BaseIntf ¶
func (m *TCoreWebView2FrameInfoCollection) BaseIntf() ICoreWebView2FrameInfoCollection
func (*TCoreWebView2FrameInfoCollection) Initialized ¶
func (m *TCoreWebView2FrameInfoCollection) Initialized() bool
func (*TCoreWebView2FrameInfoCollection) Iterator ¶
func (m *TCoreWebView2FrameInfoCollection) Iterator() ICoreWebView2FrameInfoCollectionIterator
type TCoreWebView2FrameInfoCollectionIterator ¶
type TCoreWebView2FrameInfoCollectionIterator struct {
TObject
}
TCoreWebView2FrameInfoCollectionIterator Parent: TObject
Iterator for a collection of FrameInfos. For more info, see ICoreWebView2ProcessFailedEventArgs2 and ICoreWebView2FrameInfoCollection. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2frameinfocollectioniterator">See the ICoreWebView2FrameInfoCollectionIterator article.</a>
func (*TCoreWebView2FrameInfoCollectionIterator) BaseIntf ¶
func (m *TCoreWebView2FrameInfoCollectionIterator) BaseIntf() ICoreWebView2FrameInfoCollectionIterator
func (*TCoreWebView2FrameInfoCollectionIterator) Current ¶
func (m *TCoreWebView2FrameInfoCollectionIterator) Current() ICoreWebView2FrameInfo
func (*TCoreWebView2FrameInfoCollectionIterator) HasCurrent ¶
func (m *TCoreWebView2FrameInfoCollectionIterator) HasCurrent() bool
func (*TCoreWebView2FrameInfoCollectionIterator) Initialized ¶
func (m *TCoreWebView2FrameInfoCollectionIterator) Initialized() bool
func (*TCoreWebView2FrameInfoCollectionIterator) MoveNext ¶
func (m *TCoreWebView2FrameInfoCollectionIterator) MoveNext() bool
type TCoreWebView2GetCookiesCompletedHandler ¶
type TCoreWebView2GetCookiesCompletedHandler struct {
TObject
}
TCoreWebView2GetCookiesCompletedHandler Parent: TObject
Receives the result of the GetCookies method. The result is written to the cookie list provided in the GetCookies method call. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2getcookiescompletedhandler">See the ICoreWebView2GetCookiesCompletedHandler article.</a>
type TCoreWebView2GetNonDefaultPermissionSettingsCompletedHandler ¶
type TCoreWebView2GetNonDefaultPermissionSettingsCompletedHandler struct {
TObject
}
TCoreWebView2GetNonDefaultPermissionSettingsCompletedHandler Parent: TObject
The caller implements this interface to handle the result of GetNonDefaultPermissionSettings. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2getnondefaultpermissionsettingscompletedhandler">See the ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler article.</a>
type TCoreWebView2HttpHeadersCollectionIterator ¶
type TCoreWebView2HttpHeadersCollectionIterator struct {
TObject
}
TCoreWebView2HttpHeadersCollectionIterator Parent: TObject
Iterator for a collection of HTTP headers. For more information, navigate to ICoreWebView2HttpRequestHeaders and ICoreWebView2HttpResponseHeaders. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httpheaderscollectioniterator">See the ICoreWebView2HttpHeadersCollectionIterator article.</a>
func (*TCoreWebView2HttpHeadersCollectionIterator) BaseIntf ¶
func (m *TCoreWebView2HttpHeadersCollectionIterator) BaseIntf() ICoreWebView2HttpHeadersCollectionIterator
func (*TCoreWebView2HttpHeadersCollectionIterator) GetCurrentHeader ¶
func (m *TCoreWebView2HttpHeadersCollectionIterator) GetCurrentHeader(aName, aValue *string) bool
func (*TCoreWebView2HttpHeadersCollectionIterator) HasCurrentHeader ¶
func (m *TCoreWebView2HttpHeadersCollectionIterator) HasCurrentHeader() bool
func (*TCoreWebView2HttpHeadersCollectionIterator) Initialized ¶
func (m *TCoreWebView2HttpHeadersCollectionIterator) Initialized() bool
func (*TCoreWebView2HttpHeadersCollectionIterator) MoveNext ¶
func (m *TCoreWebView2HttpHeadersCollectionIterator) MoveNext() bool
type TCoreWebView2HttpRequestHeaders ¶
type TCoreWebView2HttpRequestHeaders struct {
TObject
}
TCoreWebView2HttpRequestHeaders Parent: TObject
HTTP request headers. Used to inspect the HTTP request on WebResourceRequested event and NavigationStarting event. It is possible to modify the HTTP request from a WebResourceRequested event, but not from a NavigationStarting event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httprequestheaders">See the ICoreWebView2HttpRequestHeaders article.</a>
func (*TCoreWebView2HttpRequestHeaders) BaseIntf ¶
func (m *TCoreWebView2HttpRequestHeaders) BaseIntf() ICoreWebView2HttpRequestHeaders
func (*TCoreWebView2HttpRequestHeaders) Contains ¶
func (m *TCoreWebView2HttpRequestHeaders) Contains(aName string) bool
func (*TCoreWebView2HttpRequestHeaders) GetHeader ¶
func (m *TCoreWebView2HttpRequestHeaders) GetHeader(aName string) string
func (*TCoreWebView2HttpRequestHeaders) GetHeaders ¶
func (m *TCoreWebView2HttpRequestHeaders) GetHeaders(aName string, aIterator *ICoreWebView2HttpHeadersCollectionIterator) bool
func (*TCoreWebView2HttpRequestHeaders) Initialized ¶
func (m *TCoreWebView2HttpRequestHeaders) Initialized() bool
func (*TCoreWebView2HttpRequestHeaders) Iterator ¶
func (m *TCoreWebView2HttpRequestHeaders) Iterator() ICoreWebView2HttpHeadersCollectionIterator
func (*TCoreWebView2HttpRequestHeaders) RemoveHeader ¶
func (m *TCoreWebView2HttpRequestHeaders) RemoveHeader(aName string) bool
func (*TCoreWebView2HttpRequestHeaders) SetHeader ¶
func (m *TCoreWebView2HttpRequestHeaders) SetHeader(aName, aValue string) bool
type TCoreWebView2HttpResponseHeaders ¶
type TCoreWebView2HttpResponseHeaders struct {
TObject
}
TCoreWebView2HttpResponseHeaders Parent: TObject
HTTP response headers. Used to construct a WebResourceResponse for the WebResourceRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2httpresponseheaders">See the ICoreWebView2HttpResponseHeaders article.</a>
func (*TCoreWebView2HttpResponseHeaders) AppendHeader ¶
func (m *TCoreWebView2HttpResponseHeaders) AppendHeader(aName, aValue string) bool
func (*TCoreWebView2HttpResponseHeaders) BaseIntf ¶
func (m *TCoreWebView2HttpResponseHeaders) BaseIntf() ICoreWebView2HttpResponseHeaders
func (*TCoreWebView2HttpResponseHeaders) Contains ¶
func (m *TCoreWebView2HttpResponseHeaders) Contains(aName string) bool
func (*TCoreWebView2HttpResponseHeaders) GetHeader ¶
func (m *TCoreWebView2HttpResponseHeaders) GetHeader(aName string) string
func (*TCoreWebView2HttpResponseHeaders) GetHeaders ¶
func (m *TCoreWebView2HttpResponseHeaders) GetHeaders(aName string, aIterator *ICoreWebView2HttpHeadersCollectionIterator) bool
func (*TCoreWebView2HttpResponseHeaders) Initialized ¶
func (m *TCoreWebView2HttpResponseHeaders) Initialized() bool
func (*TCoreWebView2HttpResponseHeaders) Iterator ¶
func (m *TCoreWebView2HttpResponseHeaders) Iterator() ICoreWebView2HttpHeadersCollectionIterator
type TCoreWebView2LaunchingExternalUriSchemeEventArgs ¶
type TCoreWebView2LaunchingExternalUriSchemeEventArgs struct {
TObject
}
TCoreWebView2LaunchingExternalUriSchemeEventArgs Parent: TObject
Event args for LaunchingExternalUriScheme event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2launchingexternalurischemeeventargs">See the ICoreWebView2LaunchingExternalUriSchemeEventArgs article.</a>
func (*TCoreWebView2LaunchingExternalUriSchemeEventArgs) Cancel ¶
func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) Cancel() bool
func (*TCoreWebView2LaunchingExternalUriSchemeEventArgs) Deferral ¶
func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) Deferral() ICoreWebView2Deferral
func (*TCoreWebView2LaunchingExternalUriSchemeEventArgs) Initialized ¶
func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) Initialized() bool
func (*TCoreWebView2LaunchingExternalUriSchemeEventArgs) InitiatingOrigin ¶
func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) InitiatingOrigin() string
func (*TCoreWebView2LaunchingExternalUriSchemeEventArgs) IsUserInitiated ¶
func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) IsUserInitiated() bool
func (*TCoreWebView2LaunchingExternalUriSchemeEventArgs) SetCancel ¶
func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) SetCancel(AValue bool)
func (*TCoreWebView2LaunchingExternalUriSchemeEventArgs) Uri ¶
func (m *TCoreWebView2LaunchingExternalUriSchemeEventArgs) Uri() string
type TCoreWebView2MoveFocusRequestedEventArgs ¶
type TCoreWebView2MoveFocusRequestedEventArgs struct {
TObject
}
TCoreWebView2MoveFocusRequestedEventArgs Parent: TObject
Event args for the MoveFocusRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2movefocusrequestedeventargs">See the ICoreWebView2MoveFocusRequestedEventArgs article.</a>
func (*TCoreWebView2MoveFocusRequestedEventArgs) BaseIntf ¶
func (m *TCoreWebView2MoveFocusRequestedEventArgs) BaseIntf() ICoreWebView2MoveFocusRequestedEventArgs
func (*TCoreWebView2MoveFocusRequestedEventArgs) Handled ¶
func (m *TCoreWebView2MoveFocusRequestedEventArgs) Handled() bool
func (*TCoreWebView2MoveFocusRequestedEventArgs) Initialized ¶
func (m *TCoreWebView2MoveFocusRequestedEventArgs) Initialized() bool
func (*TCoreWebView2MoveFocusRequestedEventArgs) Reason ¶
func (m *TCoreWebView2MoveFocusRequestedEventArgs) Reason() TWVMoveFocusReason
func (*TCoreWebView2MoveFocusRequestedEventArgs) SetHandled ¶
func (m *TCoreWebView2MoveFocusRequestedEventArgs) SetHandled(AValue bool)
type TCoreWebView2NavigationCompletedEventArgs ¶
type TCoreWebView2NavigationCompletedEventArgs struct {
}TCoreWebView2NavigationCompletedEventArgs Parent: TObject
Event args for the NavigationCompleted event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationcompletedeventargs">See the ICoreWebView2NavigationCompletedEventArgs article.</a>
func (*TCoreWebView2NavigationCompletedEventArgs) BaseIntf ¶
func (m *TCoreWebView2NavigationCompletedEventArgs) BaseIntf() ICoreWebView2NavigationCompletedEventArgs
func (*TCoreWebView2NavigationCompletedEventArgs) HttpStatusCode ¶
func (m *TCoreWebView2NavigationCompletedEventArgs) HttpStatusCode() int32
func (*TCoreWebView2NavigationCompletedEventArgs) Initialized ¶
func (m *TCoreWebView2NavigationCompletedEventArgs) Initialized() bool
func (*TCoreWebView2NavigationCompletedEventArgs) IsSuccess ¶
func (m *TCoreWebView2NavigationCompletedEventArgs) IsSuccess() bool
func (*TCoreWebView2NavigationCompletedEventArgs) NavigationID ¶
func (m *TCoreWebView2NavigationCompletedEventArgs) NavigationID() (resultUint64 uint64)
func (*TCoreWebView2NavigationCompletedEventArgs) WebErrorStatus ¶
func (m *TCoreWebView2NavigationCompletedEventArgs) WebErrorStatus() TWVWebErrorStatus
type TCoreWebView2NavigationStartingEventArgs ¶
type TCoreWebView2NavigationStartingEventArgs struct {
}TCoreWebView2NavigationStartingEventArgs Parent: TObject
Event args for the NavigationStarting event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2navigationstartingeventargs">See the ICoreWebView2NavigationStartingEventArgs article.</a>
func (*TCoreWebView2NavigationStartingEventArgs) AdditionalAllowedFrameAncestors ¶
func (m *TCoreWebView2NavigationStartingEventArgs) AdditionalAllowedFrameAncestors() string
func (*TCoreWebView2NavigationStartingEventArgs) BaseIntf ¶
func (m *TCoreWebView2NavigationStartingEventArgs) BaseIntf() ICoreWebView2NavigationStartingEventArgs
func (*TCoreWebView2NavigationStartingEventArgs) Cancel ¶
func (m *TCoreWebView2NavigationStartingEventArgs) Cancel() bool
func (*TCoreWebView2NavigationStartingEventArgs) Initialized ¶
func (m *TCoreWebView2NavigationStartingEventArgs) Initialized() bool
func (*TCoreWebView2NavigationStartingEventArgs) IsRedirected ¶
func (m *TCoreWebView2NavigationStartingEventArgs) IsRedirected() bool
func (*TCoreWebView2NavigationStartingEventArgs) IsUserInitiated ¶
func (m *TCoreWebView2NavigationStartingEventArgs) IsUserInitiated() bool
func (*TCoreWebView2NavigationStartingEventArgs) NavigationID ¶
func (m *TCoreWebView2NavigationStartingEventArgs) NavigationID() (resultUint64 uint64)
func (*TCoreWebView2NavigationStartingEventArgs) NavigationKind ¶
func (m *TCoreWebView2NavigationStartingEventArgs) NavigationKind() TWVNavigationKind
func (*TCoreWebView2NavigationStartingEventArgs) RequestHeaders ¶
func (m *TCoreWebView2NavigationStartingEventArgs) RequestHeaders() ICoreWebView2HttpRequestHeaders
func (*TCoreWebView2NavigationStartingEventArgs) SetAdditionalAllowedFrameAncestors ¶
func (m *TCoreWebView2NavigationStartingEventArgs) SetAdditionalAllowedFrameAncestors(AValue string)
func (*TCoreWebView2NavigationStartingEventArgs) SetCancel ¶
func (m *TCoreWebView2NavigationStartingEventArgs) SetCancel(AValue bool)
func (*TCoreWebView2NavigationStartingEventArgs) URI ¶
func (m *TCoreWebView2NavigationStartingEventArgs) URI() string
type TCoreWebView2NewWindowRequestedEventArgs ¶
type TCoreWebView2NewWindowRequestedEventArgs struct {
TObject
}
TCoreWebView2NewWindowRequestedEventArgs Parent: TObject
Event args for the NewWindowRequested event. The event is run when content inside webview requested to a open a new window (through window.open() and so on). <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2newwindowrequestedeventargs">See the ICoreWebView2NewWindowRequestedEventArgs article.</a>
func (*TCoreWebView2NewWindowRequestedEventArgs) BaseIntf ¶
func (m *TCoreWebView2NewWindowRequestedEventArgs) BaseIntf() ICoreWebView2NewWindowRequestedEventArgs
func (*TCoreWebView2NewWindowRequestedEventArgs) Deferral ¶
func (m *TCoreWebView2NewWindowRequestedEventArgs) Deferral() ICoreWebView2Deferral
func (*TCoreWebView2NewWindowRequestedEventArgs) Handled ¶
func (m *TCoreWebView2NewWindowRequestedEventArgs) Handled() bool
func (*TCoreWebView2NewWindowRequestedEventArgs) Initialized ¶
func (m *TCoreWebView2NewWindowRequestedEventArgs) Initialized() bool
func (*TCoreWebView2NewWindowRequestedEventArgs) IsUserInitiated ¶
func (m *TCoreWebView2NewWindowRequestedEventArgs) IsUserInitiated() bool
func (*TCoreWebView2NewWindowRequestedEventArgs) Name ¶
func (m *TCoreWebView2NewWindowRequestedEventArgs) Name() string
func (*TCoreWebView2NewWindowRequestedEventArgs) NewWindow ¶
func (m *TCoreWebView2NewWindowRequestedEventArgs) NewWindow() ICoreWebView2
func (*TCoreWebView2NewWindowRequestedEventArgs) OriginalSourceFrameInfo ¶
func (m *TCoreWebView2NewWindowRequestedEventArgs) OriginalSourceFrameInfo() ICoreWebView2FrameInfo
func (*TCoreWebView2NewWindowRequestedEventArgs) SetHandled ¶
func (m *TCoreWebView2NewWindowRequestedEventArgs) SetHandled(AValue bool)
func (*TCoreWebView2NewWindowRequestedEventArgs) SetNewWindow ¶
func (m *TCoreWebView2NewWindowRequestedEventArgs) SetNewWindow(AValue ICoreWebView2)
func (*TCoreWebView2NewWindowRequestedEventArgs) URI ¶
func (m *TCoreWebView2NewWindowRequestedEventArgs) URI() string
func (*TCoreWebView2NewWindowRequestedEventArgs) WindowFeatures ¶
func (m *TCoreWebView2NewWindowRequestedEventArgs) WindowFeatures() ICoreWebView2WindowFeatures
type TCoreWebView2ObjectCollectionView ¶
type TCoreWebView2ObjectCollectionView struct {
TObject
}
TCoreWebView2ObjectCollectionView Parent: TObject
Read-only collection of generic objects. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2objectcollectionview">See the ICoreWebView2ObjectCollectionView article.</a>
func (*TCoreWebView2ObjectCollectionView) BaseIntf ¶
func (m *TCoreWebView2ObjectCollectionView) BaseIntf() ICoreWebView2ObjectCollectionView
func (*TCoreWebView2ObjectCollectionView) Count ¶
func (m *TCoreWebView2ObjectCollectionView) Count() uint32
func (*TCoreWebView2ObjectCollectionView) Initialized ¶
func (m *TCoreWebView2ObjectCollectionView) Initialized() bool
func (*TCoreWebView2ObjectCollectionView) Items ¶
func (m *TCoreWebView2ObjectCollectionView) Items(idx uint32) IUnknown
type TCoreWebView2PermissionRequestedEventArgs ¶
type TCoreWebView2PermissionRequestedEventArgs struct {
TObject
}
TCoreWebView2PermissionRequestedEventArgs Parent: TObject
Event args for the PermissionRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionrequestedeventargs">See the ICoreWebView2PermissionRequestedEventArgs article.</a>
func (*TCoreWebView2PermissionRequestedEventArgs) BaseIntf ¶
func (m *TCoreWebView2PermissionRequestedEventArgs) BaseIntf() ICoreWebView2PermissionRequestedEventArgs
func (*TCoreWebView2PermissionRequestedEventArgs) Deferral ¶
func (m *TCoreWebView2PermissionRequestedEventArgs) Deferral() ICoreWebView2Deferral
func (*TCoreWebView2PermissionRequestedEventArgs) Handled ¶
func (m *TCoreWebView2PermissionRequestedEventArgs) Handled() bool
func (*TCoreWebView2PermissionRequestedEventArgs) Initialized ¶
func (m *TCoreWebView2PermissionRequestedEventArgs) Initialized() bool
func (*TCoreWebView2PermissionRequestedEventArgs) IsUserInitiated ¶
func (m *TCoreWebView2PermissionRequestedEventArgs) IsUserInitiated() bool
func (*TCoreWebView2PermissionRequestedEventArgs) PermissionKind ¶
func (m *TCoreWebView2PermissionRequestedEventArgs) PermissionKind() TWVPermissionKind
func (*TCoreWebView2PermissionRequestedEventArgs) SavesInProfile ¶
func (m *TCoreWebView2PermissionRequestedEventArgs) SavesInProfile() bool
func (*TCoreWebView2PermissionRequestedEventArgs) SetHandled ¶
func (m *TCoreWebView2PermissionRequestedEventArgs) SetHandled(AValue bool)
func (*TCoreWebView2PermissionRequestedEventArgs) SetSavesInProfile ¶
func (m *TCoreWebView2PermissionRequestedEventArgs) SetSavesInProfile(AValue bool)
func (*TCoreWebView2PermissionRequestedEventArgs) SetState ¶
func (m *TCoreWebView2PermissionRequestedEventArgs) SetState(AValue TWVPermissionState)
func (*TCoreWebView2PermissionRequestedEventArgs) State ¶
func (m *TCoreWebView2PermissionRequestedEventArgs) State() TWVPermissionState
func (*TCoreWebView2PermissionRequestedEventArgs) URI ¶
func (m *TCoreWebView2PermissionRequestedEventArgs) URI() string
type TCoreWebView2PermissionSetting ¶
type TCoreWebView2PermissionSetting struct {
TObject
}
TCoreWebView2PermissionSetting Parent: TObject
Provides a set of properties for a permission setting. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionsetting">See the ICoreWebView2PermissionSetting article.</a>
func (*TCoreWebView2PermissionSetting) BaseIntf ¶
func (m *TCoreWebView2PermissionSetting) BaseIntf() ICoreWebView2PermissionSetting
func (*TCoreWebView2PermissionSetting) Initialized ¶
func (m *TCoreWebView2PermissionSetting) Initialized() bool
func (*TCoreWebView2PermissionSetting) PermissionKind ¶
func (m *TCoreWebView2PermissionSetting) PermissionKind() TWVPermissionKind
func (*TCoreWebView2PermissionSetting) PermissionOrigin ¶
func (m *TCoreWebView2PermissionSetting) PermissionOrigin() string
func (*TCoreWebView2PermissionSetting) PermissionState ¶
func (m *TCoreWebView2PermissionSetting) PermissionState() TWVPermissionState
type TCoreWebView2PermissionSettingCollectionView ¶
type TCoreWebView2PermissionSettingCollectionView struct {
TObject
}
TCoreWebView2PermissionSettingCollectionView Parent: TObject
Read-only collection of PermissionSettings (origin, kind, and state). Used to list the nondefault permission settings on the profile that are persisted across sessions. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2permissionsettingcollectionview">See the ICoreWebView2PermissionSettingCollectionView article.</a>
func (*TCoreWebView2PermissionSettingCollectionView) BaseIntf ¶
func (m *TCoreWebView2PermissionSettingCollectionView) BaseIntf() ICoreWebView2PermissionSettingCollectionView
func (*TCoreWebView2PermissionSettingCollectionView) Count ¶
func (m *TCoreWebView2PermissionSettingCollectionView) Count() uint32
func (*TCoreWebView2PermissionSettingCollectionView) Initialized ¶
func (m *TCoreWebView2PermissionSettingCollectionView) Initialized() bool
func (*TCoreWebView2PermissionSettingCollectionView) ValueAtIndex ¶
func (m *TCoreWebView2PermissionSettingCollectionView) ValueAtIndex(idx uint32) ICoreWebView2PermissionSetting
type TCoreWebView2PointerInfo ¶
type TCoreWebView2PointerInfo struct {
TObject
}
TCoreWebView2PointerInfo Parent: TObject
This mostly represents a combined win32 POINTER_INFO/POINTER_TOUCH_INFO/POINTER_PEN_INFO object. It takes fields from all three and excludes some win32 specific data types like HWND and HANDLE. Note, sourceDevice is taken out but we expect the PointerDeviceRect and DisplayRect to cover the existing use cases of sourceDevice. Another big difference is that any of the point or rect locations are expected to be in WebView physical coordinates. That is, coordinates relative to the WebView and no DPI scaling applied. The PointerId, PointerFlags, ButtonChangeKind, PenFlags, PenMask, TouchFlags, and TouchMask are all #defined flags or enums in the POINTER_INFO/POINTER_TOUCH_INFO/POINTER_PEN_INFO structure. We define those properties here as UINT32 or INT32 and expect the developer to know how to populate those values based on the Windows definitions. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2pointerinfo">See the ICoreWebView2PointerInfo article.</a>
func (*TCoreWebView2PointerInfo) BaseIntf ¶
func (m *TCoreWebView2PointerInfo) BaseIntf() ICoreWebView2PointerInfo
func (*TCoreWebView2PointerInfo) ButtonChangeKind ¶
func (m *TCoreWebView2PointerInfo) ButtonChangeKind() int32
func (*TCoreWebView2PointerInfo) DisplayRect ¶
func (m *TCoreWebView2PointerInfo) DisplayRect() (resultRect TRect)
func (*TCoreWebView2PointerInfo) FrameId ¶
func (m *TCoreWebView2PointerInfo) FrameId() uint32
func (*TCoreWebView2PointerInfo) HimetricLocation ¶
func (m *TCoreWebView2PointerInfo) HimetricLocation() (resultPoint TPoint)
func (*TCoreWebView2PointerInfo) HimetricLocationRaw ¶
func (m *TCoreWebView2PointerInfo) HimetricLocationRaw() (resultPoint TPoint)
func (*TCoreWebView2PointerInfo) HistoryCount ¶
func (m *TCoreWebView2PointerInfo) HistoryCount() uint32
func (*TCoreWebView2PointerInfo) Initialized ¶
func (m *TCoreWebView2PointerInfo) Initialized() bool
func (*TCoreWebView2PointerInfo) InputData ¶
func (m *TCoreWebView2PointerInfo) InputData() int32
func (*TCoreWebView2PointerInfo) KeyStates ¶
func (m *TCoreWebView2PointerInfo) KeyStates() uint32
func (*TCoreWebView2PointerInfo) PenFlags ¶
func (m *TCoreWebView2PointerInfo) PenFlags() uint32
func (*TCoreWebView2PointerInfo) PenMask ¶
func (m *TCoreWebView2PointerInfo) PenMask() uint32
func (*TCoreWebView2PointerInfo) PenPressure ¶
func (m *TCoreWebView2PointerInfo) PenPressure() uint32
func (*TCoreWebView2PointerInfo) PenRotation ¶
func (m *TCoreWebView2PointerInfo) PenRotation() uint32
func (*TCoreWebView2PointerInfo) PenTiltX ¶
func (m *TCoreWebView2PointerInfo) PenTiltX() int32
func (*TCoreWebView2PointerInfo) PenTiltY ¶
func (m *TCoreWebView2PointerInfo) PenTiltY() int32
func (*TCoreWebView2PointerInfo) PerformanceCount ¶
func (m *TCoreWebView2PointerInfo) PerformanceCount() (resultUint64 uint64)
func (*TCoreWebView2PointerInfo) PixelLocation ¶
func (m *TCoreWebView2PointerInfo) PixelLocation() (resultPoint TPoint)
func (*TCoreWebView2PointerInfo) PixelLocationRaw ¶
func (m *TCoreWebView2PointerInfo) PixelLocationRaw() (resultPoint TPoint)
func (*TCoreWebView2PointerInfo) PointerDeviceRect ¶
func (m *TCoreWebView2PointerInfo) PointerDeviceRect() (resultRect TRect)
func (*TCoreWebView2PointerInfo) PointerFlags ¶
func (m *TCoreWebView2PointerInfo) PointerFlags() uint32
func (*TCoreWebView2PointerInfo) PointerId ¶
func (m *TCoreWebView2PointerInfo) PointerId() uint32
func (*TCoreWebView2PointerInfo) PointerKind ¶
func (m *TCoreWebView2PointerInfo) PointerKind() uint32
func (*TCoreWebView2PointerInfo) SetButtonChangeKind ¶
func (m *TCoreWebView2PointerInfo) SetButtonChangeKind(AValue int32)
func (*TCoreWebView2PointerInfo) SetDisplayRect ¶
func (m *TCoreWebView2PointerInfo) SetDisplayRect(AValue *TRect)
func (*TCoreWebView2PointerInfo) SetFrameId ¶
func (m *TCoreWebView2PointerInfo) SetFrameId(AValue uint32)
func (*TCoreWebView2PointerInfo) SetHimetricLocation ¶
func (m *TCoreWebView2PointerInfo) SetHimetricLocation(AValue *TPoint)
func (*TCoreWebView2PointerInfo) SetHimetricLocationRaw ¶
func (m *TCoreWebView2PointerInfo) SetHimetricLocationRaw(AValue *TPoint)
func (*TCoreWebView2PointerInfo) SetHistoryCount ¶
func (m *TCoreWebView2PointerInfo) SetHistoryCount(AValue uint32)
func (*TCoreWebView2PointerInfo) SetInputData ¶
func (m *TCoreWebView2PointerInfo) SetInputData(AValue int32)
func (*TCoreWebView2PointerInfo) SetKeyStates ¶
func (m *TCoreWebView2PointerInfo) SetKeyStates(AValue uint32)
func (*TCoreWebView2PointerInfo) SetPenFlags ¶
func (m *TCoreWebView2PointerInfo) SetPenFlags(AValue uint32)
func (*TCoreWebView2PointerInfo) SetPenMask ¶
func (m *TCoreWebView2PointerInfo) SetPenMask(AValue uint32)
func (*TCoreWebView2PointerInfo) SetPenPressure ¶
func (m *TCoreWebView2PointerInfo) SetPenPressure(AValue uint32)
func (*TCoreWebView2PointerInfo) SetPenRotation ¶
func (m *TCoreWebView2PointerInfo) SetPenRotation(AValue uint32)
func (*TCoreWebView2PointerInfo) SetPenTiltX ¶
func (m *TCoreWebView2PointerInfo) SetPenTiltX(AValue int32)
func (*TCoreWebView2PointerInfo) SetPenTiltY ¶
func (m *TCoreWebView2PointerInfo) SetPenTiltY(AValue int32)
func (*TCoreWebView2PointerInfo) SetPerformanceCount ¶
func (m *TCoreWebView2PointerInfo) SetPerformanceCount(AValue uint64)
func (*TCoreWebView2PointerInfo) SetPixelLocation ¶
func (m *TCoreWebView2PointerInfo) SetPixelLocation(AValue *TPoint)
func (*TCoreWebView2PointerInfo) SetPixelLocationRaw ¶
func (m *TCoreWebView2PointerInfo) SetPixelLocationRaw(AValue *TPoint)
func (*TCoreWebView2PointerInfo) SetPointerDeviceRect ¶
func (m *TCoreWebView2PointerInfo) SetPointerDeviceRect(AValue *TRect)
func (*TCoreWebView2PointerInfo) SetPointerFlags ¶
func (m *TCoreWebView2PointerInfo) SetPointerFlags(AValue uint32)
func (*TCoreWebView2PointerInfo) SetPointerId ¶
func (m *TCoreWebView2PointerInfo) SetPointerId(AValue uint32)
func (*TCoreWebView2PointerInfo) SetPointerKind ¶
func (m *TCoreWebView2PointerInfo) SetPointerKind(AValue uint32)
func (*TCoreWebView2PointerInfo) SetTime ¶
func (m *TCoreWebView2PointerInfo) SetTime(AValue uint32)
func (*TCoreWebView2PointerInfo) SetTouchContact ¶
func (m *TCoreWebView2PointerInfo) SetTouchContact(AValue *TRect)
func (*TCoreWebView2PointerInfo) SetTouchContactRaw ¶
func (m *TCoreWebView2PointerInfo) SetTouchContactRaw(AValue *TRect)
func (*TCoreWebView2PointerInfo) SetTouchFlags ¶
func (m *TCoreWebView2PointerInfo) SetTouchFlags(AValue uint32)
func (*TCoreWebView2PointerInfo) SetTouchMask ¶
func (m *TCoreWebView2PointerInfo) SetTouchMask(AValue uint32)
func (*TCoreWebView2PointerInfo) SetTouchOrientation ¶
func (m *TCoreWebView2PointerInfo) SetTouchOrientation(AValue uint32)
func (*TCoreWebView2PointerInfo) SetTouchPressure ¶
func (m *TCoreWebView2PointerInfo) SetTouchPressure(AValue uint32)
func (*TCoreWebView2PointerInfo) Time ¶
func (m *TCoreWebView2PointerInfo) Time() uint32
func (*TCoreWebView2PointerInfo) TouchContact ¶
func (m *TCoreWebView2PointerInfo) TouchContact() (resultRect TRect)
func (*TCoreWebView2PointerInfo) TouchContactRaw ¶
func (m *TCoreWebView2PointerInfo) TouchContactRaw() (resultRect TRect)
func (*TCoreWebView2PointerInfo) TouchFlags ¶
func (m *TCoreWebView2PointerInfo) TouchFlags() uint32
func (*TCoreWebView2PointerInfo) TouchMask ¶
func (m *TCoreWebView2PointerInfo) TouchMask() uint32
func (*TCoreWebView2PointerInfo) TouchOrientation ¶
func (m *TCoreWebView2PointerInfo) TouchOrientation() uint32
func (*TCoreWebView2PointerInfo) TouchPressure ¶
func (m *TCoreWebView2PointerInfo) TouchPressure() uint32
type TCoreWebView2PrintCompletedHandler ¶
type TCoreWebView2PrintCompletedHandler struct {
TObject
}
TCoreWebView2PrintCompletedHandler Parent: TObject
Receives the result of the Print method. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printcompletedhandler">See the ICoreWebView2PrintCompletedHandler article.</a>
type TCoreWebView2PrintSettings ¶
type TCoreWebView2PrintSettings struct {
TObject
}
TCoreWebView2PrintSettings Parent: TObject
Settings used by the PrintToPdf method. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings">See the ICoreWebView2PrintSettings article.</a>
func (*TCoreWebView2PrintSettings) BaseIntf ¶
func (m *TCoreWebView2PrintSettings) BaseIntf() ICoreWebView2PrintSettings
func (*TCoreWebView2PrintSettings) Collation ¶
func (m *TCoreWebView2PrintSettings) Collation() TWVPrintCollation
func (*TCoreWebView2PrintSettings) ColorMode ¶
func (m *TCoreWebView2PrintSettings) ColorMode() TWVPrintColorMode
func (*TCoreWebView2PrintSettings) Copies ¶
func (m *TCoreWebView2PrintSettings) Copies() int32
func (*TCoreWebView2PrintSettings) Duplex ¶
func (m *TCoreWebView2PrintSettings) Duplex() TWVPrintDuplex
func (*TCoreWebView2PrintSettings) FooterUri ¶
func (m *TCoreWebView2PrintSettings) FooterUri() string
func (*TCoreWebView2PrintSettings) HeaderTitle ¶
func (m *TCoreWebView2PrintSettings) HeaderTitle() string
func (*TCoreWebView2PrintSettings) Initialized ¶
func (m *TCoreWebView2PrintSettings) Initialized() bool
func (*TCoreWebView2PrintSettings) MarginBottom ¶
func (m *TCoreWebView2PrintSettings) MarginBottom() (resultDouble float64)
func (*TCoreWebView2PrintSettings) MarginLeft ¶
func (m *TCoreWebView2PrintSettings) MarginLeft() (resultDouble float64)
func (*TCoreWebView2PrintSettings) MarginRight ¶
func (m *TCoreWebView2PrintSettings) MarginRight() (resultDouble float64)
func (*TCoreWebView2PrintSettings) MarginTop ¶
func (m *TCoreWebView2PrintSettings) MarginTop() (resultDouble float64)
func (*TCoreWebView2PrintSettings) MediaSize ¶
func (m *TCoreWebView2PrintSettings) MediaSize() TWVPrintMediaSize
func (*TCoreWebView2PrintSettings) Orientation ¶
func (m *TCoreWebView2PrintSettings) Orientation() TWVPrintOrientation
func (*TCoreWebView2PrintSettings) PageHeight ¶
func (m *TCoreWebView2PrintSettings) PageHeight() (resultDouble float64)
func (*TCoreWebView2PrintSettings) PageRanges ¶
func (m *TCoreWebView2PrintSettings) PageRanges() string
func (*TCoreWebView2PrintSettings) PageWidth ¶
func (m *TCoreWebView2PrintSettings) PageWidth() (resultDouble float64)
func (*TCoreWebView2PrintSettings) PagesPerSide ¶
func (m *TCoreWebView2PrintSettings) PagesPerSide() int32
func (*TCoreWebView2PrintSettings) PrinterName ¶
func (m *TCoreWebView2PrintSettings) PrinterName() string
func (*TCoreWebView2PrintSettings) ScaleFactor ¶
func (m *TCoreWebView2PrintSettings) ScaleFactor() (resultDouble float64)
func (*TCoreWebView2PrintSettings) SetCollation ¶
func (m *TCoreWebView2PrintSettings) SetCollation(AValue TWVPrintCollation)
func (*TCoreWebView2PrintSettings) SetColorMode ¶
func (m *TCoreWebView2PrintSettings) SetColorMode(AValue TWVPrintColorMode)
func (*TCoreWebView2PrintSettings) SetCopies ¶
func (m *TCoreWebView2PrintSettings) SetCopies(AValue int32)
func (*TCoreWebView2PrintSettings) SetDuplex ¶
func (m *TCoreWebView2PrintSettings) SetDuplex(AValue TWVPrintDuplex)
func (*TCoreWebView2PrintSettings) SetFooterUri ¶
func (m *TCoreWebView2PrintSettings) SetFooterUri(AValue string)
func (*TCoreWebView2PrintSettings) SetHeaderTitle ¶
func (m *TCoreWebView2PrintSettings) SetHeaderTitle(AValue string)
func (*TCoreWebView2PrintSettings) SetMarginBottom ¶
func (m *TCoreWebView2PrintSettings) SetMarginBottom(AValue float64)
func (*TCoreWebView2PrintSettings) SetMarginLeft ¶
func (m *TCoreWebView2PrintSettings) SetMarginLeft(AValue float64)
func (*TCoreWebView2PrintSettings) SetMarginRight ¶
func (m *TCoreWebView2PrintSettings) SetMarginRight(AValue float64)
func (*TCoreWebView2PrintSettings) SetMarginTop ¶
func (m *TCoreWebView2PrintSettings) SetMarginTop(AValue float64)
func (*TCoreWebView2PrintSettings) SetMediaSize ¶
func (m *TCoreWebView2PrintSettings) SetMediaSize(AValue TWVPrintMediaSize)
func (*TCoreWebView2PrintSettings) SetOrientation ¶
func (m *TCoreWebView2PrintSettings) SetOrientation(AValue TWVPrintOrientation)
func (*TCoreWebView2PrintSettings) SetPageHeight ¶
func (m *TCoreWebView2PrintSettings) SetPageHeight(AValue float64)
func (*TCoreWebView2PrintSettings) SetPageRanges ¶
func (m *TCoreWebView2PrintSettings) SetPageRanges(AValue string)
func (*TCoreWebView2PrintSettings) SetPageWidth ¶
func (m *TCoreWebView2PrintSettings) SetPageWidth(AValue float64)
func (*TCoreWebView2PrintSettings) SetPagesPerSide ¶
func (m *TCoreWebView2PrintSettings) SetPagesPerSide(AValue int32)
func (*TCoreWebView2PrintSettings) SetPrinterName ¶
func (m *TCoreWebView2PrintSettings) SetPrinterName(AValue string)
func (*TCoreWebView2PrintSettings) SetScaleFactor ¶
func (m *TCoreWebView2PrintSettings) SetScaleFactor(AValue float64)
func (*TCoreWebView2PrintSettings) SetShouldPrintBackgrounds ¶
func (m *TCoreWebView2PrintSettings) SetShouldPrintBackgrounds(AValue bool)
func (*TCoreWebView2PrintSettings) SetShouldPrintHeaderAndFooter ¶
func (m *TCoreWebView2PrintSettings) SetShouldPrintHeaderAndFooter(AValue bool)
func (*TCoreWebView2PrintSettings) SetShouldPrintSelectionOnly ¶
func (m *TCoreWebView2PrintSettings) SetShouldPrintSelectionOnly(AValue bool)
func (*TCoreWebView2PrintSettings) ShouldPrintBackgrounds ¶
func (m *TCoreWebView2PrintSettings) ShouldPrintBackgrounds() bool
func (*TCoreWebView2PrintSettings) ShouldPrintHeaderAndFooter ¶
func (m *TCoreWebView2PrintSettings) ShouldPrintHeaderAndFooter() bool
func (*TCoreWebView2PrintSettings) ShouldPrintSelectionOnly ¶
func (m *TCoreWebView2PrintSettings) ShouldPrintSelectionOnly() bool
type TCoreWebView2PrintToPdfCompletedHandler ¶
type TCoreWebView2PrintToPdfCompletedHandler struct {
TObject
}
TCoreWebView2PrintToPdfCompletedHandler Parent: TObject
Receives the result of the PrintToPdf method. If the print to PDF operation succeeds, isSuccessful is true. Otherwise, if the operation failed, isSuccessful is set to false. An invalid path returns E_INVALIDARG. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printtopdfcompletedhandler">See the ICoreWebView2PrintToPdfCompletedHandler article.</a>
type TCoreWebView2PrintToPdfStreamCompletedHandler ¶
type TCoreWebView2PrintToPdfStreamCompletedHandler struct {
TObject
}
TCoreWebView2PrintToPdfStreamCompletedHandler Parent: TObject
Receives the result of the PrintToPdfStream method. errorCode returns S_OK if the PrintToPdfStream operation succeeded. The printable pdf data is returned in the pdfStream object. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printtopdfstreamcompletedhandler">See the ICoreWebView2PrintToPdfStreamCompletedHandler article.</a>
type TCoreWebView2ProcessExtendedInfo ¶
type TCoreWebView2ProcessExtendedInfo struct {
TObject
}
TCoreWebView2ProcessExtendedInfo Parent: TObject
Provides process with associated extended information in the `ICoreWebView2Environment`. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processextendedinfo">See the ICoreWebView2ProcessExtendedInfo article.</a>
func (*TCoreWebView2ProcessExtendedInfo) AssociatedFrameInfos ¶
func (m *TCoreWebView2ProcessExtendedInfo) AssociatedFrameInfos() ICoreWebView2FrameInfoCollection
func (*TCoreWebView2ProcessExtendedInfo) BaseIntf ¶
func (m *TCoreWebView2ProcessExtendedInfo) BaseIntf() ICoreWebView2ProcessExtendedInfo
func (*TCoreWebView2ProcessExtendedInfo) Initialized ¶
func (m *TCoreWebView2ProcessExtendedInfo) Initialized() bool
func (*TCoreWebView2ProcessExtendedInfo) ProcessInfo ¶
func (m *TCoreWebView2ProcessExtendedInfo) ProcessInfo() ICoreWebView2ProcessInfo
func (*TCoreWebView2ProcessExtendedInfo) SetBaseIntf ¶
func (m *TCoreWebView2ProcessExtendedInfo) SetBaseIntf(AValue ICoreWebView2ProcessExtendedInfo)
type TCoreWebView2ProcessExtendedInfoCollection ¶
type TCoreWebView2ProcessExtendedInfoCollection struct {
TObject
}
TCoreWebView2ProcessExtendedInfoCollection Parent: TObject
A list containing processInfo and associated extended information. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processextendedinfocollection">See the ICoreWebView2ProcessExtendedInfoCollection article.</a>
func (*TCoreWebView2ProcessExtendedInfoCollection) BaseIntf ¶
func (m *TCoreWebView2ProcessExtendedInfoCollection) BaseIntf() ICoreWebView2ProcessExtendedInfoCollection
func (*TCoreWebView2ProcessExtendedInfoCollection) Count ¶
func (m *TCoreWebView2ProcessExtendedInfoCollection) Count() uint32
func (*TCoreWebView2ProcessExtendedInfoCollection) Initialized ¶
func (m *TCoreWebView2ProcessExtendedInfoCollection) Initialized() bool
func (*TCoreWebView2ProcessExtendedInfoCollection) Items ¶
func (m *TCoreWebView2ProcessExtendedInfoCollection) Items(idx uint32) ICoreWebView2ProcessExtendedInfo
type TCoreWebView2ProcessFailedEventArgs ¶
type TCoreWebView2ProcessFailedEventArgs struct {
TObject
}
TCoreWebView2ProcessFailedEventArgs Parent: TObject
Event args for the ProcessFailed event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processfailedeventargs">See the ICoreWebView2ProcessFailedEventArgs article.</a>
func (*TCoreWebView2ProcessFailedEventArgs) BaseIntf ¶
func (m *TCoreWebView2ProcessFailedEventArgs) BaseIntf() ICoreWebView2ProcessFailedEventArgs
func (*TCoreWebView2ProcessFailedEventArgs) ExtiCode ¶
func (m *TCoreWebView2ProcessFailedEventArgs) ExtiCode() int32
func (*TCoreWebView2ProcessFailedEventArgs) FrameInfosForFailedProcess ¶
func (m *TCoreWebView2ProcessFailedEventArgs) FrameInfosForFailedProcess() ICoreWebView2FrameInfoCollection
func (*TCoreWebView2ProcessFailedEventArgs) Initialized ¶
func (m *TCoreWebView2ProcessFailedEventArgs) Initialized() bool
func (*TCoreWebView2ProcessFailedEventArgs) ProcessDescription ¶
func (m *TCoreWebView2ProcessFailedEventArgs) ProcessDescription() string
func (*TCoreWebView2ProcessFailedEventArgs) ProcessFailedKind ¶
func (m *TCoreWebView2ProcessFailedEventArgs) ProcessFailedKind() TWVProcessFailedKind
func (*TCoreWebView2ProcessFailedEventArgs) Reason ¶
func (m *TCoreWebView2ProcessFailedEventArgs) Reason() TWVProcessFailedReason
type TCoreWebView2ProcessInfo ¶
type TCoreWebView2ProcessInfo struct {
TObject
}
TCoreWebView2ProcessInfo Parent: TObject
Provides a set of properties for a process in the ICoreWebView2Environment. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processinfo">See the ICoreWebView2ProcessInfo article.</a>
func (*TCoreWebView2ProcessInfo) BaseIntf ¶
func (m *TCoreWebView2ProcessInfo) BaseIntf() ICoreWebView2ProcessInfo
func (*TCoreWebView2ProcessInfo) Initialized ¶
func (m *TCoreWebView2ProcessInfo) Initialized() bool
func (*TCoreWebView2ProcessInfo) Kind ¶
func (m *TCoreWebView2ProcessInfo) Kind() TWVProcessKind
func (*TCoreWebView2ProcessInfo) KindStr ¶
func (m *TCoreWebView2ProcessInfo) KindStr() string
func (*TCoreWebView2ProcessInfo) ProcessId ¶
func (m *TCoreWebView2ProcessInfo) ProcessId() int32
func (*TCoreWebView2ProcessInfo) SetBaseIntf ¶
func (m *TCoreWebView2ProcessInfo) SetBaseIntf(AValue ICoreWebView2ProcessInfo)
type TCoreWebView2ProcessInfoCollection ¶
type TCoreWebView2ProcessInfoCollection struct {
TObject
}
TCoreWebView2ProcessInfoCollection Parent: TObject
A list containing process id and corresponding process type. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2processinfocollection">See the ICoreWebView2ProcessInfoCollection article.</a>
func (*TCoreWebView2ProcessInfoCollection) BaseIntf ¶
func (m *TCoreWebView2ProcessInfoCollection) BaseIntf() ICoreWebView2ProcessInfoCollection
func (*TCoreWebView2ProcessInfoCollection) Count ¶
func (m *TCoreWebView2ProcessInfoCollection) Count() uint32
func (*TCoreWebView2ProcessInfoCollection) Initialized ¶
func (m *TCoreWebView2ProcessInfoCollection) Initialized() bool
func (*TCoreWebView2ProcessInfoCollection) Items ¶
func (m *TCoreWebView2ProcessInfoCollection) Items(idx uint32) ICoreWebView2ProcessInfo
type TCoreWebView2Profile ¶
type TCoreWebView2Profile struct {
TObject
}
TCoreWebView2Profile Parent: TObject
Provides a set of properties to configure a Profile object. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profile">See the ICoreWebView2Profile article.</a>
func (*TCoreWebView2Profile) AddAllBrowserEvents ¶
func (m *TCoreWebView2Profile) AddAllBrowserEvents(aBrowserComponent IComponent) bool
func (*TCoreWebView2Profile) AddBrowserExtension ¶
func (m *TCoreWebView2Profile) AddBrowserExtension(extensionFolderPath string, completedHandler ICoreWebView2ProfileAddBrowserExtensionCompletedHandler) bool
func (*TCoreWebView2Profile) BaseIntf ¶
func (m *TCoreWebView2Profile) BaseIntf() ICoreWebView2Profile
func (*TCoreWebView2Profile) ClearBrowsingData ¶
func (m *TCoreWebView2Profile) ClearBrowsingData(dataKinds TWVBrowsingDataKinds, handler ICoreWebView2ClearBrowsingDataCompletedHandler) bool
func (*TCoreWebView2Profile) ClearBrowsingDataAll ¶
func (m *TCoreWebView2Profile) ClearBrowsingDataAll(handler ICoreWebView2ClearBrowsingDataCompletedHandler) bool
func (*TCoreWebView2Profile) ClearBrowsingDataInTimeRange ¶
func (m *TCoreWebView2Profile) ClearBrowsingDataInTimeRange(dataKinds TWVBrowsingDataKinds, startTime, endTime float64, handler ICoreWebView2ClearBrowsingDataCompletedHandler) bool
func (*TCoreWebView2Profile) CookieManager ¶
func (m *TCoreWebView2Profile) CookieManager() ICoreWebView2CookieManager
func (*TCoreWebView2Profile) DefaultDownloadFolderPath ¶
func (m *TCoreWebView2Profile) DefaultDownloadFolderPath() string
func (*TCoreWebView2Profile) Delete ¶
func (m *TCoreWebView2Profile) Delete() bool
func (*TCoreWebView2Profile) GetBrowserExtensions ¶
func (m *TCoreWebView2Profile) GetBrowserExtensions(completedHandler ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler) bool
func (*TCoreWebView2Profile) GetNonDefaultPermissionSettings ¶
func (m *TCoreWebView2Profile) GetNonDefaultPermissionSettings(completedHandler ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler) bool
func (*TCoreWebView2Profile) Initialized ¶
func (m *TCoreWebView2Profile) Initialized() bool
func (*TCoreWebView2Profile) IsGeneralAutofillEnabled ¶
func (m *TCoreWebView2Profile) IsGeneralAutofillEnabled() bool
func (*TCoreWebView2Profile) IsInPrivateModeEnabled ¶
func (m *TCoreWebView2Profile) IsInPrivateModeEnabled() bool
func (*TCoreWebView2Profile) IsPasswordAutosaveEnabled ¶
func (m *TCoreWebView2Profile) IsPasswordAutosaveEnabled() bool
func (*TCoreWebView2Profile) PreferredColorScheme ¶
func (m *TCoreWebView2Profile) PreferredColorScheme() TWVPreferredColorScheme
func (*TCoreWebView2Profile) PreferredTrackingPreventionLevel ¶
func (m *TCoreWebView2Profile) PreferredTrackingPreventionLevel() TWVTrackingPreventionLevel
func (*TCoreWebView2Profile) ProfileName ¶
func (m *TCoreWebView2Profile) ProfileName() string
func (*TCoreWebView2Profile) ProfilePath ¶
func (m *TCoreWebView2Profile) ProfilePath() string
func (*TCoreWebView2Profile) SetBaseIntf ¶
func (m *TCoreWebView2Profile) SetBaseIntf(AValue ICoreWebView2Profile)
func (*TCoreWebView2Profile) SetDefaultDownloadFolderPath ¶
func (m *TCoreWebView2Profile) SetDefaultDownloadFolderPath(AValue string)
func (*TCoreWebView2Profile) SetIsGeneralAutofillEnabled ¶
func (m *TCoreWebView2Profile) SetIsGeneralAutofillEnabled(AValue bool)
func (*TCoreWebView2Profile) SetIsPasswordAutosaveEnabled ¶
func (m *TCoreWebView2Profile) SetIsPasswordAutosaveEnabled(AValue bool)
func (*TCoreWebView2Profile) SetPermissionState ¶
func (m *TCoreWebView2Profile) SetPermissionState(PermissionKind TWVPermissionKind, origin string, State TWVPermissionState, completedHandler ICoreWebView2SetPermissionStateCompletedHandler) bool
func (*TCoreWebView2Profile) SetPreferredColorScheme ¶
func (m *TCoreWebView2Profile) SetPreferredColorScheme(AValue TWVPreferredColorScheme)
func (*TCoreWebView2Profile) SetPreferredTrackingPreventionLevel ¶
func (m *TCoreWebView2Profile) SetPreferredTrackingPreventionLevel(AValue TWVTrackingPreventionLevel)
type TCoreWebView2ProfileAddBrowserExtensionCompletedHandler ¶
type TCoreWebView2ProfileAddBrowserExtensionCompletedHandler struct {
TObject
}
TCoreWebView2ProfileAddBrowserExtensionCompletedHandler Parent: TObject
The caller implements this interface to receive the result of loading an browser Extension. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profileaddbrowserextensioncompletedhandler">See the ICoreWebView2ProfileAddBrowserExtensionCompletedHandler article.</a>
type TCoreWebView2ProfileGetBrowserExtensionsCompletedHandler ¶
type TCoreWebView2ProfileGetBrowserExtensionsCompletedHandler struct {
TObject
}
TCoreWebView2ProfileGetBrowserExtensionsCompletedHandler Parent: TObject
The caller implements this interface to receive the result of getting the browser Extensions. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2profilegetbrowserextensionscompletedhandler">See the ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler article.</a>
type TCoreWebView2ScriptDialogOpeningEventArgs ¶
type TCoreWebView2ScriptDialogOpeningEventArgs struct {
TObject
}
TCoreWebView2ScriptDialogOpeningEventArgs Parent: TObject
Event args for the ScriptDialogOpening event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2scriptdialogopeningeventargs">See the ICoreWebView2ScriptDialogOpeningEventArgs article.</a>
func (*TCoreWebView2ScriptDialogOpeningEventArgs) Accept ¶
func (m *TCoreWebView2ScriptDialogOpeningEventArgs) Accept() bool
func (*TCoreWebView2ScriptDialogOpeningEventArgs) BaseIntf ¶
func (m *TCoreWebView2ScriptDialogOpeningEventArgs) BaseIntf() ICoreWebView2ScriptDialogOpeningEventArgs
func (*TCoreWebView2ScriptDialogOpeningEventArgs) DefaultText ¶
func (m *TCoreWebView2ScriptDialogOpeningEventArgs) DefaultText() string
func (*TCoreWebView2ScriptDialogOpeningEventArgs) Deferral ¶
func (m *TCoreWebView2ScriptDialogOpeningEventArgs) Deferral() ICoreWebView2Deferral
func (*TCoreWebView2ScriptDialogOpeningEventArgs) Initialized ¶
func (m *TCoreWebView2ScriptDialogOpeningEventArgs) Initialized() bool
func (*TCoreWebView2ScriptDialogOpeningEventArgs) Kind ¶
func (m *TCoreWebView2ScriptDialogOpeningEventArgs) Kind() TWVScriptDialogKind
func (*TCoreWebView2ScriptDialogOpeningEventArgs) Message ¶
func (m *TCoreWebView2ScriptDialogOpeningEventArgs) Message() string
func (*TCoreWebView2ScriptDialogOpeningEventArgs) ResultText ¶
func (m *TCoreWebView2ScriptDialogOpeningEventArgs) ResultText() string
func (*TCoreWebView2ScriptDialogOpeningEventArgs) SetResultText ¶
func (m *TCoreWebView2ScriptDialogOpeningEventArgs) SetResultText(AValue string)
func (*TCoreWebView2ScriptDialogOpeningEventArgs) URI ¶
func (m *TCoreWebView2ScriptDialogOpeningEventArgs) URI() string
type TCoreWebView2ScriptException ¶
type TCoreWebView2ScriptException struct {
TObject
}
TCoreWebView2ScriptException Parent: TObject
This interface represents a JavaScript exception. If the CoreWebView2.ExecuteScriptWithResult result has Succeeded as false, you can use the result's Exception property to get the script exception. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2scriptexception">See the ICoreWebView2ScriptException article.</a>
func (*TCoreWebView2ScriptException) BaseIntf ¶
func (m *TCoreWebView2ScriptException) BaseIntf() ICoreWebView2ScriptException
func (*TCoreWebView2ScriptException) ColumnNumber ¶
func (m *TCoreWebView2ScriptException) ColumnNumber() uint32
func (*TCoreWebView2ScriptException) Initialized ¶
func (m *TCoreWebView2ScriptException) Initialized() bool
func (*TCoreWebView2ScriptException) LineNumber ¶
func (m *TCoreWebView2ScriptException) LineNumber() uint32
func (*TCoreWebView2ScriptException) Message ¶
func (m *TCoreWebView2ScriptException) Message() string
func (*TCoreWebView2ScriptException) Name ¶
func (m *TCoreWebView2ScriptException) Name() string
func (*TCoreWebView2ScriptException) ToJson ¶
func (m *TCoreWebView2ScriptException) ToJson() string
type TCoreWebView2ServerCertificateErrorDetectedEventArgs ¶
type TCoreWebView2ServerCertificateErrorDetectedEventArgs struct {
TObject
}
TCoreWebView2ServerCertificateErrorDetectedEventArgs Parent: TObject
Event args for the ServerCertificateErrorDetected event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2servercertificateerrordetectedeventargs">See the ICoreWebView2ServerCertificateErrorDetectedEventArgs article.</a>
func (*TCoreWebView2ServerCertificateErrorDetectedEventArgs) Deferral ¶
func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) Deferral() ICoreWebView2Deferral
func (*TCoreWebView2ServerCertificateErrorDetectedEventArgs) ErrorStatus ¶
func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) ErrorStatus() TWVWebErrorStatus
func (*TCoreWebView2ServerCertificateErrorDetectedEventArgs) Initialized ¶
func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) Initialized() bool
func (*TCoreWebView2ServerCertificateErrorDetectedEventArgs) RequestUri ¶
func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) RequestUri() string
func (*TCoreWebView2ServerCertificateErrorDetectedEventArgs) ServerCertificate ¶
func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) ServerCertificate() ICoreWebView2Certificate
func (*TCoreWebView2ServerCertificateErrorDetectedEventArgs) SetAction ¶
func (m *TCoreWebView2ServerCertificateErrorDetectedEventArgs) SetAction(AValue TWVServerCertificateErrorAction)
type TCoreWebView2SetPermissionStateCompletedHandler ¶
type TCoreWebView2SetPermissionStateCompletedHandler struct {
TObject
}
TCoreWebView2SetPermissionStateCompletedHandler Parent: TObject
The caller implements this interface to handle the result of SetPermissionState. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2setpermissionstatecompletedhandler">See the ICoreWebView2SetPermissionStateCompletedHandler article.</a>
type TCoreWebView2Settings ¶
type TCoreWebView2Settings struct {
TObject
}
TCoreWebView2Settings Parent: TObject
Defines properties that enable, disable, or modify WebView features. Changes to IsGeneralAutofillEnabled and IsPasswordAutosaveEnabled apply immediately, while other setting changes made after NavigationStarting event do not apply until the next top-level navigation. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings">See the ICoreWebView2Settings article.</a>
func (*TCoreWebView2Settings) AreBrowserAcceleratorKeysEnabled ¶
func (m *TCoreWebView2Settings) AreBrowserAcceleratorKeysEnabled() bool
func (*TCoreWebView2Settings) AreDefaultContextMenusEnabled ¶
func (m *TCoreWebView2Settings) AreDefaultContextMenusEnabled() bool
func (*TCoreWebView2Settings) AreDefaultScriptDialogsEnabled ¶
func (m *TCoreWebView2Settings) AreDefaultScriptDialogsEnabled() bool
func (*TCoreWebView2Settings) AreDevToolsEnabled ¶
func (m *TCoreWebView2Settings) AreDevToolsEnabled() bool
func (*TCoreWebView2Settings) AreHostObjectsAllowed ¶
func (m *TCoreWebView2Settings) AreHostObjectsAllowed() bool
func (*TCoreWebView2Settings) BaseIntf ¶
func (m *TCoreWebView2Settings) BaseIntf() ICoreWebView2Settings
func (*TCoreWebView2Settings) HiddenPdfToolbarItems ¶
func (m *TCoreWebView2Settings) HiddenPdfToolbarItems() TWVPDFToolbarItems
func (*TCoreWebView2Settings) Initialized ¶
func (m *TCoreWebView2Settings) Initialized() bool
func (*TCoreWebView2Settings) IsBuiltInErrorPageEnabled ¶
func (m *TCoreWebView2Settings) IsBuiltInErrorPageEnabled() bool
func (*TCoreWebView2Settings) IsGeneralAutofillEnabled ¶
func (m *TCoreWebView2Settings) IsGeneralAutofillEnabled() bool
func (*TCoreWebView2Settings) IsPasswordAutosaveEnabled ¶
func (m *TCoreWebView2Settings) IsPasswordAutosaveEnabled() bool
func (*TCoreWebView2Settings) IsPinchZoomEnabled ¶
func (m *TCoreWebView2Settings) IsPinchZoomEnabled() bool
func (*TCoreWebView2Settings) IsReputationCheckingRequired ¶
func (m *TCoreWebView2Settings) IsReputationCheckingRequired() bool
func (*TCoreWebView2Settings) IsScriptEnabled ¶
func (m *TCoreWebView2Settings) IsScriptEnabled() bool
func (*TCoreWebView2Settings) IsStatusBarEnabled ¶
func (m *TCoreWebView2Settings) IsStatusBarEnabled() bool
func (*TCoreWebView2Settings) IsSwipeNavigationEnabled ¶
func (m *TCoreWebView2Settings) IsSwipeNavigationEnabled() bool
func (*TCoreWebView2Settings) IsWebMessageEnabled ¶
func (m *TCoreWebView2Settings) IsWebMessageEnabled() bool
func (*TCoreWebView2Settings) IsZoomControlEnabled ¶
func (m *TCoreWebView2Settings) IsZoomControlEnabled() bool
func (*TCoreWebView2Settings) SetAreBrowserAcceleratorKeysEnabled ¶
func (m *TCoreWebView2Settings) SetAreBrowserAcceleratorKeysEnabled(AValue bool)
func (*TCoreWebView2Settings) SetAreDefaultContextMenusEnabled ¶
func (m *TCoreWebView2Settings) SetAreDefaultContextMenusEnabled(AValue bool)
func (*TCoreWebView2Settings) SetAreDefaultScriptDialogsEnabled ¶
func (m *TCoreWebView2Settings) SetAreDefaultScriptDialogsEnabled(AValue bool)
func (*TCoreWebView2Settings) SetAreDevToolsEnabled ¶
func (m *TCoreWebView2Settings) SetAreDevToolsEnabled(AValue bool)
func (*TCoreWebView2Settings) SetAreHostObjectsAllowed ¶
func (m *TCoreWebView2Settings) SetAreHostObjectsAllowed(AValue bool)
func (*TCoreWebView2Settings) SetHiddenPdfToolbarItems ¶
func (m *TCoreWebView2Settings) SetHiddenPdfToolbarItems(AValue TWVPDFToolbarItems)
func (*TCoreWebView2Settings) SetIsBuiltInErrorPageEnabled ¶
func (m *TCoreWebView2Settings) SetIsBuiltInErrorPageEnabled(AValue bool)
func (*TCoreWebView2Settings) SetIsGeneralAutofillEnabled ¶
func (m *TCoreWebView2Settings) SetIsGeneralAutofillEnabled(AValue bool)
func (*TCoreWebView2Settings) SetIsPasswordAutosaveEnabled ¶
func (m *TCoreWebView2Settings) SetIsPasswordAutosaveEnabled(AValue bool)
func (*TCoreWebView2Settings) SetIsPinchZoomEnabled ¶
func (m *TCoreWebView2Settings) SetIsPinchZoomEnabled(AValue bool)
func (*TCoreWebView2Settings) SetIsReputationCheckingRequired ¶
func (m *TCoreWebView2Settings) SetIsReputationCheckingRequired(AValue bool)
func (*TCoreWebView2Settings) SetIsScriptEnabled ¶
func (m *TCoreWebView2Settings) SetIsScriptEnabled(AValue bool)
func (*TCoreWebView2Settings) SetIsStatusBarEnabled ¶
func (m *TCoreWebView2Settings) SetIsStatusBarEnabled(AValue bool)
func (*TCoreWebView2Settings) SetIsSwipeNavigationEnabled ¶
func (m *TCoreWebView2Settings) SetIsSwipeNavigationEnabled(AValue bool)
func (*TCoreWebView2Settings) SetIsWebMessageEnabled ¶
func (m *TCoreWebView2Settings) SetIsWebMessageEnabled(AValue bool)
func (*TCoreWebView2Settings) SetIsZoomControlEnabled ¶
func (m *TCoreWebView2Settings) SetIsZoomControlEnabled(AValue bool)
func (*TCoreWebView2Settings) SetUserAgent ¶
func (m *TCoreWebView2Settings) SetUserAgent(AValue string)
func (*TCoreWebView2Settings) UserAgent ¶
func (m *TCoreWebView2Settings) UserAgent() string
type TCoreWebView2SharedBuffer ¶
type TCoreWebView2SharedBuffer struct {
}TCoreWebView2SharedBuffer Parent: TObject
The shared buffer object that is created by CreateSharedBuffer. The object is presented to script as ArrayBuffer when posted to script with PostSharedBufferToScript. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2sharedbuffer">See the ICoreWebView2SharedBuffer article.</a> <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment12#createsharedbuffer">See the CreateSharedBuffer article.</a> <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_17#postsharedbuffertoscript">See the PostSharedBufferToScript article.</a>
func (*TCoreWebView2SharedBuffer) BaseIntf ¶
func (m *TCoreWebView2SharedBuffer) BaseIntf() ICoreWebView2SharedBuffer
func (*TCoreWebView2SharedBuffer) Buffer ¶
func (m *TCoreWebView2SharedBuffer) Buffer() PByte
func (*TCoreWebView2SharedBuffer) Close ¶
func (m *TCoreWebView2SharedBuffer) Close() bool
func (*TCoreWebView2SharedBuffer) FileMappingHandle ¶
func (m *TCoreWebView2SharedBuffer) FileMappingHandle() HANDLE
func (*TCoreWebView2SharedBuffer) Initialized ¶
func (m *TCoreWebView2SharedBuffer) Initialized() bool
func (*TCoreWebView2SharedBuffer) OpenStream ¶
func (m *TCoreWebView2SharedBuffer) OpenStream() IStream
func (*TCoreWebView2SharedBuffer) Size ¶
func (m *TCoreWebView2SharedBuffer) Size() (resultInt64 int64)
type TCoreWebView2SourceChangedEventArgs ¶
type TCoreWebView2SourceChangedEventArgs struct {
TObject
}
TCoreWebView2SourceChangedEventArgs Parent: TObject
Event args for the SourceChanged event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2sourcechangedeventargs">See the ICoreWebView2SourceChangedEventArgs article.</a>
func (*TCoreWebView2SourceChangedEventArgs) BaseIntf ¶
func (m *TCoreWebView2SourceChangedEventArgs) BaseIntf() ICoreWebView2SourceChangedEventArgs
func (*TCoreWebView2SourceChangedEventArgs) Initialized ¶
func (m *TCoreWebView2SourceChangedEventArgs) Initialized() bool
func (*TCoreWebView2SourceChangedEventArgs) IsNewDocument ¶
func (m *TCoreWebView2SourceChangedEventArgs) IsNewDocument() bool
type TCoreWebView2StringCollection ¶
type TCoreWebView2StringCollection struct {
TObject
}
TCoreWebView2StringCollection Parent: TObject
A collection of strings. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2stringcollection">See the ICoreWebView2StringCollection article.</a>
func (*TCoreWebView2StringCollection) BaseIntf ¶
func (m *TCoreWebView2StringCollection) BaseIntf() ICoreWebView2StringCollection
func (*TCoreWebView2StringCollection) Count ¶
func (m *TCoreWebView2StringCollection) Count() uint32
func (*TCoreWebView2StringCollection) Initialized ¶
func (m *TCoreWebView2StringCollection) Initialized() bool
func (*TCoreWebView2StringCollection) Items ¶
func (m *TCoreWebView2StringCollection) Items(idx uint32) string
type TCoreWebView2TrySuspendCompletedHandler ¶
type TCoreWebView2TrySuspendCompletedHandler struct {
TObject
}
TCoreWebView2TrySuspendCompletedHandler Parent: TObject
The caller implements this interface to receive the TrySuspend result. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2trysuspendcompletedhandler">See the ICoreWebView2TrySuspendCompletedHandler article.</a>
type TCoreWebView2WebMessageReceivedEventArgs ¶
type TCoreWebView2WebMessageReceivedEventArgs struct {
TObject
}
TCoreWebView2WebMessageReceivedEventArgs Parent: TObject
Event args for the WebMessageReceived event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webmessagereceivedeventargs">See the ICoreWebView2WebMessageReceivedEventArgs article.</a>
func (*TCoreWebView2WebMessageReceivedEventArgs) AdditionalObjects ¶
func (m *TCoreWebView2WebMessageReceivedEventArgs) AdditionalObjects() ICoreWebView2ObjectCollectionView
func (*TCoreWebView2WebMessageReceivedEventArgs) BaseIntf ¶
func (m *TCoreWebView2WebMessageReceivedEventArgs) BaseIntf() ICoreWebView2WebMessageReceivedEventArgs
func (*TCoreWebView2WebMessageReceivedEventArgs) Initialized ¶
func (m *TCoreWebView2WebMessageReceivedEventArgs) Initialized() bool
func (*TCoreWebView2WebMessageReceivedEventArgs) Source ¶
func (m *TCoreWebView2WebMessageReceivedEventArgs) Source() string
func (*TCoreWebView2WebMessageReceivedEventArgs) WebMessageAsJson ¶
func (m *TCoreWebView2WebMessageReceivedEventArgs) WebMessageAsJson() string
func (*TCoreWebView2WebMessageReceivedEventArgs) WebMessageAsString ¶
func (m *TCoreWebView2WebMessageReceivedEventArgs) WebMessageAsString() string
type TCoreWebView2WebResourceRequestRef ¶
type TCoreWebView2WebResourceRequestRef struct {
TObject
}
TCoreWebView2WebResourceRequestRef Parent: TObject
An HTTP request used with the WebResourceRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourcerequest">See the ICoreWebView2WebResourceRequest article.</a>
func (*TCoreWebView2WebResourceRequestRef) BaseIntf ¶
func (m *TCoreWebView2WebResourceRequestRef) BaseIntf() ICoreWebView2WebResourceRequestRef
func (*TCoreWebView2WebResourceRequestRef) Content ¶
func (m *TCoreWebView2WebResourceRequestRef) Content() IStream
func (*TCoreWebView2WebResourceRequestRef) Headers ¶
func (m *TCoreWebView2WebResourceRequestRef) Headers() ICoreWebView2HttpRequestHeaders
func (*TCoreWebView2WebResourceRequestRef) Initialized ¶
func (m *TCoreWebView2WebResourceRequestRef) Initialized() bool
func (*TCoreWebView2WebResourceRequestRef) Method ¶
func (m *TCoreWebView2WebResourceRequestRef) Method() string
func (*TCoreWebView2WebResourceRequestRef) SetContent ¶
func (m *TCoreWebView2WebResourceRequestRef) SetContent(AValue IStream)
func (*TCoreWebView2WebResourceRequestRef) SetMethod ¶
func (m *TCoreWebView2WebResourceRequestRef) SetMethod(AValue string)
func (*TCoreWebView2WebResourceRequestRef) SetURI ¶
func (m *TCoreWebView2WebResourceRequestRef) SetURI(AValue string)
func (*TCoreWebView2WebResourceRequestRef) URI ¶
func (m *TCoreWebView2WebResourceRequestRef) URI() string
type TCoreWebView2WebResourceRequestedEventArgs ¶
type TCoreWebView2WebResourceRequestedEventArgs struct {
TObject
}
TCoreWebView2WebResourceRequestedEventArgs Parent: TObject
Event args for the WebResourceRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourcerequestedeventargs">See the ICoreWebView2WebResourceRequestedEventArgs article.</a>
func (*TCoreWebView2WebResourceRequestedEventArgs) BaseIntf ¶
func (m *TCoreWebView2WebResourceRequestedEventArgs) BaseIntf() ICoreWebView2WebResourceRequestedEventArgs
func (*TCoreWebView2WebResourceRequestedEventArgs) Deferral ¶
func (m *TCoreWebView2WebResourceRequestedEventArgs) Deferral() ICoreWebView2Deferral
func (*TCoreWebView2WebResourceRequestedEventArgs) Initialized ¶
func (m *TCoreWebView2WebResourceRequestedEventArgs) Initialized() bool
func (*TCoreWebView2WebResourceRequestedEventArgs) Request ¶
func (m *TCoreWebView2WebResourceRequestedEventArgs) Request() ICoreWebView2WebResourceRequestRef
func (*TCoreWebView2WebResourceRequestedEventArgs) ResourceContext ¶
func (m *TCoreWebView2WebResourceRequestedEventArgs) ResourceContext() TWVWebResourceContext
func (*TCoreWebView2WebResourceRequestedEventArgs) Response ¶
func (m *TCoreWebView2WebResourceRequestedEventArgs) Response() ICoreWebView2WebResourceResponse
func (*TCoreWebView2WebResourceRequestedEventArgs) SetResponse ¶
func (m *TCoreWebView2WebResourceRequestedEventArgs) SetResponse(AValue ICoreWebView2WebResourceResponse)
type TCoreWebView2WebResourceResponse ¶
type TCoreWebView2WebResourceResponse struct {
TObject
}
TCoreWebView2WebResourceResponse Parent: TObject
An HTTP response used with the WebResourceRequested event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponse">See the ICoreWebView2WebResourceResponse article.</a>
func (*TCoreWebView2WebResourceResponse) BaseIntf ¶
func (m *TCoreWebView2WebResourceResponse) BaseIntf() ICoreWebView2WebResourceResponse
func (*TCoreWebView2WebResourceResponse) Content ¶
func (m *TCoreWebView2WebResourceResponse) Content() IStream
func (*TCoreWebView2WebResourceResponse) Headers ¶
func (m *TCoreWebView2WebResourceResponse) Headers() ICoreWebView2HttpResponseHeaders
func (*TCoreWebView2WebResourceResponse) Initialized ¶
func (m *TCoreWebView2WebResourceResponse) Initialized() bool
func (*TCoreWebView2WebResourceResponse) ReasonPhrase ¶
func (m *TCoreWebView2WebResourceResponse) ReasonPhrase() string
func (*TCoreWebView2WebResourceResponse) SetContent ¶
func (m *TCoreWebView2WebResourceResponse) SetContent(AValue IStream)
func (*TCoreWebView2WebResourceResponse) SetReasonPhrase ¶
func (m *TCoreWebView2WebResourceResponse) SetReasonPhrase(AValue string)
func (*TCoreWebView2WebResourceResponse) SetStatusCode ¶
func (m *TCoreWebView2WebResourceResponse) SetStatusCode(AValue int32)
func (*TCoreWebView2WebResourceResponse) StatusCode ¶
func (m *TCoreWebView2WebResourceResponse) StatusCode() int32
type TCoreWebView2WebResourceResponseReceivedEventArgs ¶
type TCoreWebView2WebResourceResponseReceivedEventArgs struct {
TObject
}
TCoreWebView2WebResourceResponseReceivedEventArgs Parent: TObject
Event args for the WebResourceResponseReceived event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponsereceivedeventargs">See the ICoreWebView2WebResourceResponseReceivedEventArgs article.</a>
func (*TCoreWebView2WebResourceResponseReceivedEventArgs) Initialized ¶
func (m *TCoreWebView2WebResourceResponseReceivedEventArgs) Initialized() bool
func (*TCoreWebView2WebResourceResponseReceivedEventArgs) Request ¶
func (m *TCoreWebView2WebResourceResponseReceivedEventArgs) Request() ICoreWebView2WebResourceRequestRef
func (*TCoreWebView2WebResourceResponseReceivedEventArgs) Response ¶
func (m *TCoreWebView2WebResourceResponseReceivedEventArgs) Response() ICoreWebView2WebResourceResponseView
type TCoreWebView2WebResourceResponseView ¶
type TCoreWebView2WebResourceResponseView struct {
TObject
}
TCoreWebView2WebResourceResponseView Parent: TObject
View of the HTTP representation for a web resource response. The properties of this object are not mutable. This response view is used with the TWVBrowserBase.OnWebResourceResponseReceived event. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponseview">See the ICoreWebView2WebResourceResponseView article.</a>
func (*TCoreWebView2WebResourceResponseView) BaseIntf ¶
func (m *TCoreWebView2WebResourceResponseView) BaseIntf() ICoreWebView2WebResourceResponseView
func (*TCoreWebView2WebResourceResponseView) GetContent ¶
func (m *TCoreWebView2WebResourceResponseView) GetContent(aHandler ICoreWebView2WebResourceResponseViewGetContentCompletedHandler) bool
func (*TCoreWebView2WebResourceResponseView) Headers ¶
func (m *TCoreWebView2WebResourceResponseView) Headers() ICoreWebView2HttpResponseHeaders
func (*TCoreWebView2WebResourceResponseView) Initialized ¶
func (m *TCoreWebView2WebResourceResponseView) Initialized() bool
func (*TCoreWebView2WebResourceResponseView) ReasonPhrase ¶
func (m *TCoreWebView2WebResourceResponseView) ReasonPhrase() string
func (*TCoreWebView2WebResourceResponseView) StatusCode ¶
func (m *TCoreWebView2WebResourceResponseView) StatusCode() int32
type TCoreWebView2WebResourceResponseViewGetContentCompletedHandler ¶
type TCoreWebView2WebResourceResponseViewGetContentCompletedHandler struct {
TObject
}
TCoreWebView2WebResourceResponseViewGetContentCompletedHandler Parent: TObject
Receives the result of the ICoreWebView2WebResourceResponseView.GetContent method. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2webresourceresponseviewgetcontentcompletedhandler">See the ICoreWebView2WebResourceResponseViewGetContentCompletedHandler article.</a>
func (*TCoreWebView2WebResourceResponseViewGetContentCompletedHandler) ResourceID ¶
func (m *TCoreWebView2WebResourceResponseViewGetContentCompletedHandler) ResourceID() int32
type TCoreWebView2WindowFeatures ¶
type TCoreWebView2WindowFeatures struct {
TObject
}
TCoreWebView2WindowFeatures Parent: TObject
The window features for a WebView popup window. The fields match the windowFeatures passed to window.open as specified in [Window features](https://developer.mozilla.org/docs/Web/API/Window/open#Window_features) on MDN. There is no requirement for you to respect the values. If your app does not have corresponding UI features (for example, no toolbar) or if all instance of WebView are opened in tabs and do not have distinct size or positions, then your app does not respect the values. You may want to respect values, but perhaps only some apply to the UI of you app. Accordingly, you may respect all, some, or none of the properties as appropriate for your app. For all numeric properties, if the value that is passed to window.open is outside the range of an unsigned 32bit int, the resulting value is the absolute value of the maximum for unsigned 32bit integer. If you are not able to parse the value an integer, it is considered 0. If the value is a floating point value, it is rounded down to an integer. In runtime versions 98 or later, the values of ShouldDisplayMenuBar, ShouldDisplayStatus, ShouldDisplayToolbar, and ShouldDisplayScrollBars will not directly depend on the equivalent fields in the windowFeatures string. Instead, they will all be false if the window is expected to be a popup, and true if it is not. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2windowfeatures">See the ICoreWebView2WindowFeatures article.</a>
func (*TCoreWebView2WindowFeatures) BaseIntf ¶
func (m *TCoreWebView2WindowFeatures) BaseIntf() ICoreWebView2WindowFeatures
func (*TCoreWebView2WindowFeatures) CopyToRecord ¶
func (m *TCoreWebView2WindowFeatures) CopyToRecord(aWindowFeatures *TWVWindowFeatures)
func (*TCoreWebView2WindowFeatures) HasPosition ¶
func (m *TCoreWebView2WindowFeatures) HasPosition() bool
func (*TCoreWebView2WindowFeatures) HasSize ¶
func (m *TCoreWebView2WindowFeatures) HasSize() bool
func (*TCoreWebView2WindowFeatures) Height ¶
func (m *TCoreWebView2WindowFeatures) Height() uint32
func (*TCoreWebView2WindowFeatures) Initialized ¶
func (m *TCoreWebView2WindowFeatures) Initialized() bool
func (*TCoreWebView2WindowFeatures) Left ¶
func (m *TCoreWebView2WindowFeatures) Left() uint32
func (*TCoreWebView2WindowFeatures) ShouldDisplayMenuBar ¶
func (m *TCoreWebView2WindowFeatures) ShouldDisplayMenuBar() bool
func (*TCoreWebView2WindowFeatures) ShouldDisplayScrollBars ¶
func (m *TCoreWebView2WindowFeatures) ShouldDisplayScrollBars() bool
func (*TCoreWebView2WindowFeatures) ShouldDisplayStatus ¶
func (m *TCoreWebView2WindowFeatures) ShouldDisplayStatus() bool
func (*TCoreWebView2WindowFeatures) ShouldDisplayToolbar ¶
func (m *TCoreWebView2WindowFeatures) ShouldDisplayToolbar() bool
func (*TCoreWebView2WindowFeatures) Top ¶
func (m *TCoreWebView2WindowFeatures) Top() uint32
func (*TCoreWebView2WindowFeatures) Width ¶
func (m *TCoreWebView2WindowFeatures) Width() uint32
type TDragDropEvent ¶
type TDragDropEvent = lcl.TDragDropEvent
type TDragOverEvent ¶
type TDragOverEvent = lcl.TDragOverEvent
type TEndDragEvent ¶
type TEndDragEvent = lcl.TEndDragEvent
type TNotifyEvent ¶
type TNotifyEvent = lcl.TNotifyEvent
type TOnAcceleratorKeyPressedEvent ¶
type TOnAcceleratorKeyPressedEvent func(sender IObject, controller ICoreWebView2Controller, args ICoreWebView2AcceleratorKeyPressedEventArgs)
type TOnBasicAuthenticationRequestedEvent ¶
type TOnBasicAuthenticationRequestedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2BasicAuthenticationRequestedEventArgs)
type TOnBrowserProcessExitedEvent ¶
type TOnBrowserProcessExitedEvent func(sender IObject, environment ICoreWebView2Environment, args ICoreWebView2BrowserProcessExitedEventArgs)
type TOnBytesReceivedChangedEvent ¶
type TOnBytesReceivedChangedEvent func(sender IObject, downloadOperation ICoreWebView2DownloadOperation, downloadID int32)
type TOnClientCertificateRequestedEvent ¶
type TOnClientCertificateRequestedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2ClientCertificateRequestedEventArgs)
type TOnCompMsgEvent ¶
type TOnContentLoadingEvent ¶
type TOnContentLoadingEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2ContentLoadingEventArgs)
type TOnContextMenuRequestedEvent ¶
type TOnContextMenuRequestedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2ContextMenuRequestedEventArgs)
type TOnCustomItemSelectedEvent ¶
type TOnCustomItemSelectedEvent func(sender IObject, menuItem ICoreWebView2ContextMenuItem)
type TOnDOMContentLoadedEvent ¶
type TOnDOMContentLoadedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2DOMContentLoadedEventArgs)
type TOnDevToolsProtocolEventReceivedEvent ¶
type TOnDevToolsProtocolEventReceivedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2DevToolsProtocolEventReceivedEventArgs, eventName string, eventID int32)
type TOnDownloadStartingEvent ¶
type TOnDownloadStartingEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2DownloadStartingEventArgs)
type TOnDownloadStateChangedEvent ¶
type TOnDownloadStateChangedEvent func(sender IObject, downloadOperation ICoreWebView2DownloadOperation, downloadID int32)
type TOnEstimatedEndTimeChangedEvent ¶
type TOnEstimatedEndTimeChangedEvent func(sender IObject, downloadOperation ICoreWebView2DownloadOperation, downloadID int32)
type TOnExecuteScriptWithResultCompletedEvent ¶
type TOnExecuteScriptWithResultCompletedEvent func(sender IObject, errorCode int32, result ICoreWebView2ExecuteScriptResult, executionID int32)
type TOnFaviconChangedEvent ¶
type TOnFaviconChangedEvent func(sender IObject, webview ICoreWebView2, args IUnknown)
type TOnFrameContentLoadingEvent ¶
type TOnFrameContentLoadingEvent func(sender IObject, frame ICoreWebView2Frame, args ICoreWebView2ContentLoadingEventArgs, frameID uint32)
type TOnFrameCreatedEvent ¶
type TOnFrameCreatedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2FrameCreatedEventArgs)
type TOnFrameDOMContentLoadedEvent ¶
type TOnFrameDOMContentLoadedEvent func(sender IObject, frame ICoreWebView2Frame, args ICoreWebView2DOMContentLoadedEventArgs, frameID uint32)
type TOnFrameDestroyedEvent ¶
type TOnFrameDestroyedEvent func(sender IObject, frame ICoreWebView2Frame, frameID uint32)
type TOnFrameNameChangedEvent ¶
type TOnFrameNameChangedEvent func(sender IObject, frame ICoreWebView2Frame, frameID uint32)
type TOnFrameNavigationCompletedEvent ¶
type TOnFrameNavigationCompletedEvent func(sender IObject, frame ICoreWebView2Frame, args ICoreWebView2NavigationCompletedEventArgs, frameID uint32)
type TOnFrameNavigationStartingEvent ¶
type TOnFrameNavigationStartingEvent func(sender IObject, frame ICoreWebView2Frame, args ICoreWebView2NavigationStartingEventArgs, frameID uint32)
type TOnFramePermissionRequestedEvent ¶
type TOnFramePermissionRequestedEvent func(sender IObject, frame ICoreWebView2Frame, args ICoreWebView2PermissionRequestedEventArgs, frameID uint32)
type TOnFrameWebMessageReceivedEvent ¶
type TOnFrameWebMessageReceivedEvent func(sender IObject, frame ICoreWebView2Frame, args ICoreWebView2WebMessageReceivedEventArgs, frameID uint32)
type TOnGetCookiesCompletedEvent ¶
type TOnGetCookiesCompletedEvent func(sender IObject, result int32, cookieList ICoreWebView2CookieList)
type TOnGetCustomSchemesEvent ¶
type TOnGetCustomSchemesEvent func(sender IObject, customSchemes TWVCustomSchemeInfoArray)
type TOnGetNonDefaultPermissionSettingsCompletedEvent ¶
type TOnGetNonDefaultPermissionSettingsCompletedEvent func(sender IObject, errorCode int32, collectionView ICoreWebView2PermissionSettingCollectionView)
type TOnGetProcessExtendedInfosCompletedEvent ¶
type TOnGetProcessExtendedInfosCompletedEvent func(sender IObject, errorCode int32, value ICoreWebView2ProcessExtendedInfoCollection)
type TOnIsDefaultDownloadDialogOpenChangedEvent ¶
type TOnIsDefaultDownloadDialogOpenChangedEvent func(sender IObject, webview ICoreWebView2)
type TOnIsDocumentPlayingAudioChangedEvent ¶
type TOnIsDocumentPlayingAudioChangedEvent func(sender IObject, webview ICoreWebView2)
type TOnIsMutedChangedEvent ¶
type TOnIsMutedChangedEvent func(sender IObject, webview ICoreWebView2)
type TOnLaunchingExternalUriSchemeEvent ¶
type TOnLaunchingExternalUriSchemeEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2LaunchingExternalUriSchemeEventArgs)
type TOnLoaderBrowserProcessExitedEvent ¶
type TOnLoaderBrowserProcessExitedEvent func(sender IObject, environment ICoreWebView2Environment, args ICoreWebView2BrowserProcessExitedEventArgs)
type TOnLoaderGetCustomSchemesEvent ¶
type TOnLoaderGetCustomSchemesEvent func(sender IObject, customSchemes *TWVCustomSchemeInfoArray)
type TOnLoaderNewBrowserVersionAvailableEvent ¶
type TOnLoaderNewBrowserVersionAvailableEvent func(sender IObject, environment ICoreWebView2Environment)
type TOnLoaderNotifyEvent ¶
type TOnLoaderNotifyEvent func(sender IObject)
type TOnLoaderProcessInfosChangedEvent ¶
type TOnLoaderProcessInfosChangedEvent func(sender IObject, environment ICoreWebView2Environment)
type TOnMoveFocusRequestedEvent ¶
type TOnMoveFocusRequestedEvent func(sender IObject, controller ICoreWebView2Controller, args ICoreWebView2MoveFocusRequestedEventArgs)
type TOnNavigationCompletedEvent ¶
type TOnNavigationCompletedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2NavigationCompletedEventArgs)
type TOnNavigationStartingEvent ¶
type TOnNavigationStartingEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2NavigationStartingEventArgs)
type TOnNewWindowRequestedEvent ¶
type TOnNewWindowRequestedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2NewWindowRequestedEventArgs)
type TOnPermissionRequestedEvent ¶
type TOnPermissionRequestedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2PermissionRequestedEventArgs)
type TOnPrintCompletedEvent ¶
type TOnPrintCompletedEvent func(sender IObject, errorCode int32, printStatus TWVPrintStatus)
type TOnProcessFailedEvent ¶
type TOnProcessFailedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2ProcessFailedEventArgs)
type TOnProcessInfosChangedEvent ¶
type TOnProcessInfosChangedEvent func(sender IObject, environment ICoreWebView2Environment)
type TOnProfileAddBrowserExtensionCompletedEvent ¶
type TOnProfileAddBrowserExtensionCompletedEvent func(sender IObject, errorCode int32, extension ICoreWebView2BrowserExtension)
type TOnProfileDeletedEvent ¶
type TOnProfileDeletedEvent func(sender IObject, profile ICoreWebView2Profile)
type TOnProfileGetBrowserExtensionsCompletedEvent ¶
type TOnProfileGetBrowserExtensionsCompletedEvent func(sender IObject, errorCode int32, extensionList ICoreWebView2BrowserExtensionList)
type TOnScriptDialogOpeningEvent ¶
type TOnScriptDialogOpeningEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2ScriptDialogOpeningEventArgs)
type TOnServerCertificateErrorDetectedEvent ¶
type TOnServerCertificateErrorDetectedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2ServerCertificateErrorDetectedEventArgs)
type TOnSourceChangedEvent ¶
type TOnSourceChangedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2SourceChangedEventArgs)
type TOnStatusBarTextChangedEvent ¶
type TOnStatusBarTextChangedEvent func(sender IObject, webview ICoreWebView2)
type TOnWebMessageReceivedEvent ¶
type TOnWebMessageReceivedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2WebMessageReceivedEventArgs)
type TOnWebResourceRequestedEvent ¶
type TOnWebResourceRequestedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2WebResourceRequestedEventArgs)
type TOnWebResourceResponseReceivedEvent ¶
type TOnWebResourceResponseReceivedEvent func(sender IObject, webview ICoreWebView2, args ICoreWebView2WebResourceResponseReceivedEventArgs)
type TStartDragEvent ¶
type TStartDragEvent = lcl.TStartDragEvent
type TWV2DebugLog ¶
type TWV2DebugLog = int32
TWV2DebugLog
Debug log values used by TWVLoader.DebugLog
const ( DLDISABLEDlDisabled TWV2DebugLog = iota DLENABLEDlEnabled DLENABLEDSTDOUTlEnabledStdOut DLENABLEDSTDERRlEnabledStdErr )
type TWV2DebugLogLevel ¶
type TWV2DebugLogLevel = int32
TWV2DebugLogLevel
Debug log level used when the logging is enabled
const ( DLLDEFAULTllDefault TWV2DebugLogLevel = iota DLLINFOllInfo DLLWARNINGllWarning DLLERRORllError DLLFATALllFatal )
type TWV2EditingCommand ¶
type TWV2EditingCommand = int32
TWV2EditingCommand
Blink editing commands used by the "Input.dispatchKeyEvent" DevTools method. <see href="https://chromedevtools.github.io/devtools-protocol/1-3/Input/#method-dispatchKeyEvent">See the "Input.dispatchKeyEvent" DevTools method.) <see href="https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h">See the Chromium sources.)
const ( ECALIGNCENTERcAlignCenter TWV2EditingCommand = iota ECALIGNJUSTIFIEDcAlignJustified ECALIGNLEFTcAlignLeft ECALIGNRIGHTcAlignRight ECBACKCOLORcBackColor ECBACKWARDDELETEcBackwardDelete ECBOLDcBold ECCOPYcCopy ECCREATELINKcCreateLink ECCUTcCut ECDEFAULTPARAGRAPHSEPARATORcDefaultParagraphSeparator ECDELETEcDelete ECDELETEBACKWARDcDeleteBackward ECDELETEBACKWARDBYDECOMPOSINGPREVIOUSCHARACTERcDeleteBackwardByDecomposingPreviousCharacter ECDELETEFORWARDcDeleteForward ECDELETETOBEGINNINGOFLINEcDeleteToBeginningOfLine ECDELETETOBEGINNINGOFPARAGRAPHcDeleteToBeginningOfParagraph ECDELETETOENDOFLINEcDeleteToEndOfLine ECDELETETOENDOFPARAGRAPHcDeleteToEndOfParagraph ECDELETETOMARKcDeleteToMark ECDELETEWORDBACKWARDcDeleteWordBackward ECDELETEWORDFORWARDcDeleteWordForward ECFINDSTRINGcFindString ECFONTNAMEcFontName ECFONTSIZEcFontSize ECFONTSIZEDELTAcFontSizeDelta ECFORECOLORcForeColor ECFORMATBLOCKcFormatBlock ECFORWARDDELETEcForwardDelete ECHILITECOLORcHiliteColor ECIGNORESPELLINGcIgnoreSpelling ECINDENTcIndent ECINSERTBACKTABcInsertBacktab ECINSERTHORIZONTALRULEcInsertHorizontalRule ECINSERTHTMLcInsertHTML ECINSERTIMAGEcInsertImage ECINSERTLINEBREAKcInsertLineBreak ECINSERTNEWLINEcInsertNewline ECINSERTNEWLINEINQUOTEDCONTENTcInsertNewlineInQuotedContent ECINSERTORDEREDLISTcInsertOrderedList ECINSERTPARAGRAPHcInsertParagraph ECINSERTTABcInsertTab ECINSERTTEXTcInsertText ECINSERTUNORDEREDLISTcInsertUnorderedList ECITALICcItalic ECJUSTIFYCENTERcJustifyCenter ECJUSTIFYFULLcJustifyFull ECJUSTIFYLEFTcJustifyLeft ECJUSTIFYNONEcJustifyNone ECJUSTIFYRIGHTcJustifyRight ECMAKETEXTWRITINGDIRECTIONLEFTTORIGHTcMakeTextWritingDirectionLeftToRight ECMAKETEXTWRITINGDIRECTIONNATURALcMakeTextWritingDirectionNatural ECMAKETEXTWRITINGDIRECTIONRIGHTTOLEFTcMakeTextWritingDirectionRightToLeft ECMOVEBACKWARDcMoveBackward ECMOVEBACKWARDANDMODIFYSELECTIONcMoveBackwardAndModifySelection ECMOVEDOWNcMoveDown ECMOVEDOWNANDMODIFYSELECTIONcMoveDownAndModifySelection ECMOVEFORWARDcMoveForward ECMOVEFORWARDANDMODIFYSELECTIONcMoveForwardAndModifySelection ECMOVELEFTcMoveLeft ECMOVELEFTANDMODIFYSELECTIONcMoveLeftAndModifySelection ECMOVEPAGEDOWNcMovePageDown ECMOVEPAGEDOWNANDMODIFYSELECTIONcMovePageDownAndModifySelection ECMOVEPAGEUPcMovePageUp ECMOVEPAGEUPANDMODIFYSELECTIONcMovePageUpAndModifySelection ECMOVEPARAGRAPHBACKWARDcMoveParagraphBackward ECMOVEPARAGRAPHBACKWARDANDMODIFYSELECTIONcMoveParagraphBackwardAndModifySelection ECMOVEPARAGRAPHFORWARDcMoveParagraphForward ECMOVEPARAGRAPHFORWARDANDMODIFYSELECTIONcMoveParagraphForwardAndModifySelection ECMOVERIGHTcMoveRight ECMOVERIGHTANDMODIFYSELECTIONcMoveRightAndModifySelection ECMOVETOBEGINNINGOFDOCUMENTcMoveToBeginningOfDocument ECMOVETOBEGINNINGOFDOCUMENTANDMODIFYSELECTIONcMoveToBeginningOfDocumentAndModifySelection ECMOVETOBEGINNINGOFLINEcMoveToBeginningOfLine ECMOVETOBEGINNINGOFLINEANDMODIFYSELECTIONcMoveToBeginningOfLineAndModifySelection ECMOVETOBEGINNINGOFPARAGRAPHcMoveToBeginningOfParagraph ECMOVETOBEGINNINGOFPARAGRAPHANDMODIFYSELECTIONcMoveToBeginningOfParagraphAndModifySelection ECMOVETOBEGINNINGOFSENTENCEcMoveToBeginningOfSentence ECMOVETOBEGINNINGOFSENTENCEANDMODIFYSELECTIONcMoveToBeginningOfSentenceAndModifySelection ECMOVETOENDOFDOCUMENTcMoveToEndOfDocument ECMOVETOENDOFDOCUMENTANDMODIFYSELECTIONcMoveToEndOfDocumentAndModifySelection ECMOVETOENDOFLINEcMoveToEndOfLine ECMOVETOENDOFLINEANDMODIFYSELECTIONcMoveToEndOfLineAndModifySelection ECMOVETOENDOFPARAGRAPHcMoveToEndOfParagraph ECMOVETOENDOFPARAGRAPHANDMODIFYSELECTIONcMoveToEndOfParagraphAndModifySelection ECMOVETOENDOFSENTENCEcMoveToEndOfSentence ECMOVETOENDOFSENTENCEANDMODIFYSELECTIONcMoveToEndOfSentenceAndModifySelection ECMOVETOLEFTENDOFLINEcMoveToLeftEndOfLine ECMOVETOLEFTENDOFLINEANDMODIFYSELECTIONcMoveToLeftEndOfLineAndModifySelection ECMOVETORIGHTENDOFLINEcMoveToRightEndOfLine ECMOVETORIGHTENDOFLINEANDMODIFYSELECTIONcMoveToRightEndOfLineAndModifySelection ECMOVEUPcMoveUp ECMOVEUPANDMODIFYSELECTIONcMoveUpAndModifySelection ECMOVEWORDBACKWARDcMoveWordBackward ECMOVEWORDBACKWARDANDMODIFYSELECTIONcMoveWordBackwardAndModifySelection ECMOVEWORDFORWARDcMoveWordForward ECMOVEWORDFORWARDANDMODIFYSELECTIONcMoveWordForwardAndModifySelection ECMOVEWORDLEFTcMoveWordLeft ECMOVEWORDLEFTANDMODIFYSELECTIONcMoveWordLeftAndModifySelection ECMOVEWORDRIGHTcMoveWordRight ECMOVEWORDRIGHTANDMODIFYSELECTIONcMoveWordRightAndModifySelection ECOUTDENTcOutdent ECOVERWRITEcOverWrite ECPASTEcPaste ECPASTEANDMATCHSTYLEcPasteAndMatchStyle ECPASTEGLOBALSELECTIONcPasteGlobalSelection ECPRINTcPrint ECREDOcRedo ECREMOVEFORMATcRemoveFormat ECSCROLLLINEDOWNcScrollLineDown ECSCROLLLINEUPcScrollLineUp ECSCROLLPAGEBACKWARDcScrollPageBackward ECSCROLLPAGEFORWARDcScrollPageForward ECSCROLLTOBEGINNINGOFDOCUMENTcScrollToBeginningOfDocument ECSCROLLTOENDOFDOCUMENTcScrollToEndOfDocument ECSELECTALLcSelectAll ECSELECTLINEcSelectLine ECSELECTPARAGRAPHcSelectParagraph ECSELECTSENTENCEcSelectSentence ECSELECTTOMARKcSelectToMark ECSELECTWORDcSelectWord ECSETMARKcSetMark ECSTRIKETHROUGHcStrikethrough ECSTYLEWITHCSScStyleWithCSS ECSUBSCRIPTcSubscript ECSUPERSCRIPTcSuperscript ECSWAPWITHMARKcSwapWithMark ECTOGGLEBOLDcToggleBold ECTOGGLEITALICcToggleItalic ECTOGGLEUNDERLINEcToggleUnderline ECTRANSPOSEcTranspose ECUNDERLINEcUnderline ECUNDOcUndo ECUNLINKcUnlink ECUNSCRIPTcUnscript ECUNSELECTcUnselect ECUSECSScUseCSS ECYANKcYank ECYANKANDSELECTcYankAndSelect )
type TWV2KeyEventType ¶
type TWV2KeyEventType = int32
TWV2KeyEventType
Event type used by TWVBrowserBase.SimulateKeyEvent
const ( KETKEYDOWNetKeyDown TWV2KeyEventType = iota KETKEYUPetKeyUp KETRAWKEYDOWNetRawKeyDown KETCHARetChar )
type TWV2LoaderStatus ¶
type TWV2LoaderStatus = int32
TWV2LoaderStatus
TWVLoader status values
const ( WVLSCREATEDvlsCreated TWV2LoaderStatus = iota WVLSLOADINGvlsLoading WVLSLOADEDvlsLoaded WVLSIMPORTEDvlsImported WVLSINITIALIZEDvlsInitialized WVLSERRORvlsError WVLSUNLOADEDvlsUnloaded )
type TWVAutoplayPolicy ¶
type TWVAutoplayPolicy = int32
TWVAutoplayPolicy
Autoplay policy types used by TWVLoader.AutoplayPolicy. See the --autoplay-policy switch.
const ( APPDEFAULTppDefault TWVAutoplayPolicy = iota APPDOCUMENTUSERACTIVATIONREQUIREDppDocumentUserActivationRequired APPNOUSERGESTUREREQUIREDppNoUserGestureRequired APPUSERGESTUREREQUIREDppUserGestureRequired )
type TWVBoundsMode ¶
type TWVBoundsMode = COREWEBVIEW2_BOUNDS_MODE
TWVBoundsMode
Mode for how the Bounds property is interpreted in relation to the RasterizationScale property. Renamed COREWEBVIEW2_BOUNDS_MODE type.
type TWVBrowser ¶
type TWVBrowser struct {
TWVBrowserBase
}
TWVBrowser Parent: TWVBrowserBase
VCL and LCL version of TWVBrowserBase that puts together all browser procedures, functions, properties and events in one place. It has all you need to create, modify and destroy a web browser.
type TWVBrowserBase ¶
type TWVBrowserBase struct { TComponent // contains filtered or unexported fields }
TWVBrowserBase Is Abstract Class Parent: TComponent
Parent class of TWVBrowser and TWVFMXBrowser that puts together all browser procedures, functions, properties and events in one place. It has all you need to create, modify and destroy a web browser.
func (*TWVBrowserBase) AddBrowserExtension ¶
func (m *TWVBrowserBase) AddBrowserExtension(extensionFolderPath string) bool
func (*TWVBrowserBase) AddHostObjectToScript ¶
func (m *TWVBrowserBase) AddHostObjectToScript(name string, object OleVariant) bool
AddHostObjectToScript
Add the provided host object to script running in the WebView with the specified name. Host objects are exposed as host object proxies using `window.chrome.webview.hostObjects.{name}`. Host object proxies are promises and resolves to an object representing the host object. The promise is rejected if the app has not added an object with the name. When JavaScript code access a property or method of the object, a promise is return, which resolves to the value returned from the host for the property or method, or rejected in case of error, for example, no property or method on the object or parameters are not valid. <a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2#addhostobjecttoscript">See the ICoreWebView2 article.</a>
func (*TWVBrowserBase) AddOrUpdateCookie ¶
func (m *TWVBrowserBase) AddOrUpdateCookie(aCookie ICoreWebView2Cookie) bool
func (*TWVBrowserBase) AddScriptToExecuteOnDocumentCreated ¶
func (m *TWVBrowserBase) AddScriptToExecuteOnDocumentCreated(JavaScript string) bool
func (*TWVBrowserBase) AddWebResourceRequestedFilter ¶
func (m *TWVBrowserBase) AddWebResourceRequestedFilter(aURI string, aResourceContext TWVWebResourceContext) bool
func (*TWVBrowserBase) AdditionalBrowserArguments ¶
func (m *TWVBrowserBase) AdditionalBrowserArguments() string
func (*TWVBrowserBase) AllowExternalDrop ¶
func (m *TWVBrowserBase) AllowExternalDrop() bool
func (*TWVBrowserBase) AllowSingleSignOnUsingOSPrimaryAccount ¶
func (m *TWVBrowserBase) AllowSingleSignOnUsingOSPrimaryAccount() bool
func (*TWVBrowserBase) AreBrowserAcceleratorKeysEnabled ¶
func (m *TWVBrowserBase) AreBrowserAcceleratorKeysEnabled() bool
func (*TWVBrowserBase) AreBrowserExtensionsEnabled ¶
func (m *TWVBrowserBase) AreBrowserExtensionsEnabled() bool
func (*TWVBrowserBase) AreHostObjectsAllowed ¶
func (m *TWVBrowserBase) AreHostObjectsAllowed() bool
func (*TWVBrowserBase) AutomationProvider ¶
func (m *TWVBrowserBase) AutomationProvider() IUnknown
func (*TWVBrowserBase) Bounds ¶
func (m *TWVBrowserBase) Bounds() (resultRect TRect)
func (*TWVBrowserBase) BoundsMode ¶
func (m *TWVBrowserBase) BoundsMode() TWVBoundsMode
func (*TWVBrowserBase) BrowserExecPath ¶
func (m *TWVBrowserBase) BrowserExecPath() string
func (*TWVBrowserBase) BrowserProcessID ¶
func (m *TWVBrowserBase) BrowserProcessID() uint32
func (*TWVBrowserBase) BrowserVersionInfo ¶
func (m *TWVBrowserBase) BrowserVersionInfo() string
func (*TWVBrowserBase) BuiltInErrorPageEnabled ¶
func (m *TWVBrowserBase) BuiltInErrorPageEnabled() bool
func (*TWVBrowserBase) CallDevToolsProtocolMethod ¶
func (m *TWVBrowserBase) CallDevToolsProtocolMethod(aMethodName, aParametersAsJson string, aExecutionID int32) bool
func (*TWVBrowserBase) CallDevToolsProtocolMethodForSession ¶
func (m *TWVBrowserBase) CallDevToolsProtocolMethodForSession(aSessionId, aMethodName, aParametersAsJson string, aExecutionID int32) bool
func (*TWVBrowserBase) CanGoBack ¶
func (m *TWVBrowserBase) CanGoBack() bool
func (*TWVBrowserBase) CanGoForward ¶
func (m *TWVBrowserBase) CanGoForward() bool
func (*TWVBrowserBase) CapturePreview ¶
func (m *TWVBrowserBase) CapturePreview(aImageFormat TWVCapturePreviewImageFormat, aImageStream IStream) bool
func (*TWVBrowserBase) ClearBrowsingData ¶
func (m *TWVBrowserBase) ClearBrowsingData(dataKinds TWVBrowsingDataKinds) bool
func (*TWVBrowserBase) ClearBrowsingDataAll ¶
func (m *TWVBrowserBase) ClearBrowsingDataAll() bool
func (*TWVBrowserBase) ClearBrowsingDataInTimeRange ¶
func (m *TWVBrowserBase) ClearBrowsingDataInTimeRange(dataKinds TWVBrowsingDataKinds, startTime, endTime float64) bool
func (*TWVBrowserBase) ClearCache ¶
func (m *TWVBrowserBase) ClearCache() bool
func (*TWVBrowserBase) ClearDataForOrigin ¶
func (m *TWVBrowserBase) ClearDataForOrigin(aOrigin string, aStorageTypes TWVClearDataStorageTypes) bool
func (*TWVBrowserBase) ClearServerCertificateErrorActions ¶
func (m *TWVBrowserBase) ClearServerCertificateErrorActions() bool
func (*TWVBrowserBase) ClearVirtualHostNameToFolderMapping ¶
func (m *TWVBrowserBase) ClearVirtualHostNameToFolderMapping(aHostName string) bool
func (*TWVBrowserBase) CloseDefaultDownloadDialog ¶
func (m *TWVBrowserBase) CloseDefaultDownloadDialog() bool
func (*TWVBrowserBase) ContainsFullScreenElement ¶
func (m *TWVBrowserBase) ContainsFullScreenElement() bool
func (*TWVBrowserBase) CookieManager ¶
func (m *TWVBrowserBase) CookieManager() ICoreWebView2CookieManager
func (*TWVBrowserBase) CopyCookie ¶
func (m *TWVBrowserBase) CopyCookie(aCookie ICoreWebView2Cookie) ICoreWebView2Cookie
func (*TWVBrowserBase) CoreWebView2 ¶
func (m *TWVBrowserBase) CoreWebView2() ICoreWebView2
func (*TWVBrowserBase) CoreWebView2CompositionController ¶
func (m *TWVBrowserBase) CoreWebView2CompositionController() ICoreWebView2CompositionController
func (*TWVBrowserBase) CoreWebView2Controller ¶
func (m *TWVBrowserBase) CoreWebView2Controller() ICoreWebView2Controller
func (*TWVBrowserBase) CoreWebView2Environment ¶
func (m *TWVBrowserBase) CoreWebView2Environment() ICoreWebView2Environment
func (*TWVBrowserBase) CoreWebView2PrintSettings ¶
func (m *TWVBrowserBase) CoreWebView2PrintSettings() ICoreWebView2PrintSettings
func (*TWVBrowserBase) CoreWebView2Settings ¶
func (m *TWVBrowserBase) CoreWebView2Settings() ICoreWebView2Settings
func (*TWVBrowserBase) CreateBrowser ¶
func (m *TWVBrowserBase) CreateBrowser(aHandle THandle, aUseDefaultEnvironment bool) bool
func (*TWVBrowserBase) CreateBrowser1 ¶
func (m *TWVBrowserBase) CreateBrowser1(aHandle THandle, aEnvironment ICoreWebView2Environment) bool
func (*TWVBrowserBase) CreateCookie ¶
func (m *TWVBrowserBase) CreateCookie(aName, aValue, aDomain, aPath string) ICoreWebView2Cookie
func (*TWVBrowserBase) CreateSharedBuffer ¶
func (m *TWVBrowserBase) CreateSharedBuffer(aSize int64, aSharedBuffer *ICoreWebView2SharedBuffer) bool
func (*TWVBrowserBase) CreateWindowlessBrowser ¶
func (m *TWVBrowserBase) CreateWindowlessBrowser(aHandle THandle, aUseDefaultEnvironment bool) bool
func (*TWVBrowserBase) CreateWindowlessBrowser1 ¶
func (m *TWVBrowserBase) CreateWindowlessBrowser1(aHandle THandle, aEnvironment ICoreWebView2Environment) bool
func (*TWVBrowserBase) Cursor ¶
func (m *TWVBrowserBase) Cursor() HCURSOR
func (*TWVBrowserBase) CustomCrashReportingEnabled ¶
func (m *TWVBrowserBase) CustomCrashReportingEnabled() bool
func (*TWVBrowserBase) D3DWindowCompHWND ¶
func (m *TWVBrowserBase) D3DWindowCompHWND() THandle
func (*TWVBrowserBase) DecZoomStep ¶
func (m *TWVBrowserBase) DecZoomStep()
func (*TWVBrowserBase) DefaultBackgroundColor ¶
func (m *TWVBrowserBase) DefaultBackgroundColor() TColor
func (*TWVBrowserBase) DefaultContextMenusEnabled ¶
func (m *TWVBrowserBase) DefaultContextMenusEnabled() bool
func (*TWVBrowserBase) DefaultDownloadDialogCornerAlignment ¶
func (m *TWVBrowserBase) DefaultDownloadDialogCornerAlignment() TWVDefaultDownloadDialogCornerAlignment
func (*TWVBrowserBase) DefaultDownloadDialogMargin ¶
func (m *TWVBrowserBase) DefaultDownloadDialogMargin() (resultPoint TPoint)
func (*TWVBrowserBase) DefaultDownloadFolderPath ¶
func (m *TWVBrowserBase) DefaultDownloadFolderPath() string
func (*TWVBrowserBase) DefaultScriptDialogsEnabled ¶
func (m *TWVBrowserBase) DefaultScriptDialogsEnabled() bool
func (*TWVBrowserBase) DefaultURL ¶
func (m *TWVBrowserBase) DefaultURL() string
func (*TWVBrowserBase) DeleteAllCookies ¶
func (m *TWVBrowserBase) DeleteAllCookies() bool
func (*TWVBrowserBase) DeleteCookie ¶
func (m *TWVBrowserBase) DeleteCookie(aCookie ICoreWebView2Cookie) bool
func (*TWVBrowserBase) DeleteCookies ¶
func (m *TWVBrowserBase) DeleteCookies(aName, aURI string) bool
func (*TWVBrowserBase) DeleteCookiesWithDomainAndPath ¶
func (m *TWVBrowserBase) DeleteCookiesWithDomainAndPath(aName, aDomain, aPath string) bool
func (*TWVBrowserBase) DeleteProfile ¶
func (m *TWVBrowserBase) DeleteProfile() bool
func (*TWVBrowserBase) DevToolsEnabled ¶
func (m *TWVBrowserBase) DevToolsEnabled() bool
func (*TWVBrowserBase) DocumentTitle ¶
func (m *TWVBrowserBase) DocumentTitle() string
func (*TWVBrowserBase) DragEnter ¶
func (m *TWVBrowserBase) DragEnter(dataObject IDataObject, keyState uint32, point *TPoint, OutEffect *uint32) int32
func (*TWVBrowserBase) DragLeave ¶
func (m *TWVBrowserBase) DragLeave() int32
func (*TWVBrowserBase) DragOver ¶
func (m *TWVBrowserBase) DragOver(keyState uint32, point *TPoint, OutEffect *uint32) int32
func (*TWVBrowserBase) Drop ¶
func (m *TWVBrowserBase) Drop(dataObject IDataObject, keyState uint32, point *TPoint, OutEffect *uint32) int32
func (*TWVBrowserBase) EnableTrackingPrevention ¶
func (m *TWVBrowserBase) EnableTrackingPrevention() bool
func (*TWVBrowserBase) ExclusiveUserDataFolderAccess ¶
func (m *TWVBrowserBase) ExclusiveUserDataFolderAccess() bool
func (*TWVBrowserBase) ExecuteScript ¶
func (m *TWVBrowserBase) ExecuteScript(aJavaScript string, aExecutionID int32) bool
func (*TWVBrowserBase) ExecuteScriptWithResult ¶
func (m *TWVBrowserBase) ExecuteScriptWithResult(aJavaScript string, aExecutionID int32) bool
func (*TWVBrowserBase) FaviconURI ¶
func (m *TWVBrowserBase) FaviconURI() string
func (*TWVBrowserBase) FocusNext ¶
func (m *TWVBrowserBase) FocusNext() bool
func (*TWVBrowserBase) FocusPrevious ¶
func (m *TWVBrowserBase) FocusPrevious() bool
func (*TWVBrowserBase) FrameId ¶
func (m *TWVBrowserBase) FrameId() uint32
func (*TWVBrowserBase) GetBrowserExtensions ¶
func (m *TWVBrowserBase) GetBrowserExtensions() bool
func (*TWVBrowserBase) GetCookies ¶
func (m *TWVBrowserBase) GetCookies(aURI string) bool
func (*TWVBrowserBase) GetFavicon ¶
func (m *TWVBrowserBase) GetFavicon(aFormat TWVFaviconImageFormat) bool
func (*TWVBrowserBase) GetNonDefaultPermissionSettings ¶
func (m *TWVBrowserBase) GetNonDefaultPermissionSettings() bool
func (*TWVBrowserBase) GetProcessExtendedInfos ¶
func (m *TWVBrowserBase) GetProcessExtendedInfos() bool
func (*TWVBrowserBase) GoBack ¶
func (m *TWVBrowserBase) GoBack() bool
func (*TWVBrowserBase) GoForward ¶
func (m *TWVBrowserBase) GoForward() bool
func (*TWVBrowserBase) HiddenPdfToolbarItems ¶
func (m *TWVBrowserBase) HiddenPdfToolbarItems() TWVPDFToolbarItems
func (*TWVBrowserBase) IgnoreCertificateErrors ¶
func (m *TWVBrowserBase) IgnoreCertificateErrors() bool
func (*TWVBrowserBase) IncZoomStep ¶
func (m *TWVBrowserBase) IncZoomStep()
func (*TWVBrowserBase) Initialized ¶
func (m *TWVBrowserBase) Initialized() bool
func (*TWVBrowserBase) IsDefaultDownloadDialogOpen ¶
func (m *TWVBrowserBase) IsDefaultDownloadDialogOpen() bool
func (*TWVBrowserBase) IsDocumentPlayingAudio ¶
func (m *TWVBrowserBase) IsDocumentPlayingAudio() bool
func (*TWVBrowserBase) IsGeneralAutofillEnabled ¶
func (m *TWVBrowserBase) IsGeneralAutofillEnabled() bool
func (*TWVBrowserBase) IsInPrivateModeEnabled ¶
func (m *TWVBrowserBase) IsInPrivateModeEnabled() bool
func (*TWVBrowserBase) IsMuted ¶
func (m *TWVBrowserBase) IsMuted() bool
func (*TWVBrowserBase) IsNavigating ¶
func (m *TWVBrowserBase) IsNavigating() bool
func (*TWVBrowserBase) IsPasswordAutosaveEnabled ¶
func (m *TWVBrowserBase) IsPasswordAutosaveEnabled() bool
func (*TWVBrowserBase) IsPinchZoomEnabled ¶
func (m *TWVBrowserBase) IsPinchZoomEnabled() bool
func (*TWVBrowserBase) IsReputationCheckingRequired ¶
func (m *TWVBrowserBase) IsReputationCheckingRequired() bool
func (*TWVBrowserBase) IsSuspended ¶
func (m *TWVBrowserBase) IsSuspended() bool
func (*TWVBrowserBase) IsSwipeNavigationEnabled ¶
func (m *TWVBrowserBase) IsSwipeNavigationEnabled() bool
func (*TWVBrowserBase) IsVisible ¶
func (m *TWVBrowserBase) IsVisible() bool
func (*TWVBrowserBase) KeyboardShortcutRefreshIgnoreCache ¶
func (m *TWVBrowserBase) KeyboardShortcutRefreshIgnoreCache() bool
func (*TWVBrowserBase) KeyboardShortcutSearch ¶
func (m *TWVBrowserBase) KeyboardShortcutSearch() bool
func (*TWVBrowserBase) Language ¶
func (m *TWVBrowserBase) Language() string
func (*TWVBrowserBase) MemoryUsageTargetLevel ¶
func (m *TWVBrowserBase) MemoryUsageTargetLevel() TWVMemoryUsageTargetLevel
func (*TWVBrowserBase) MoveFormBy ¶
func (m *TWVBrowserBase) MoveFormBy(x, y int32)
func (*TWVBrowserBase) MoveFormTo ¶
func (m *TWVBrowserBase) MoveFormTo(x, y int32)
func (*TWVBrowserBase) Navigate ¶
func (m *TWVBrowserBase) Navigate(aURI string) bool
func (*TWVBrowserBase) NavigateToString ¶
func (m *TWVBrowserBase) NavigateToString(aHTMLContent string) bool
func (*TWVBrowserBase) NavigateWithWebResourceRequest ¶
func (m *TWVBrowserBase) NavigateWithWebResourceRequest(aRequest ICoreWebView2WebResourceRequestRef) bool
func (*TWVBrowserBase) NotifyParentWindowPositionChanged ¶
func (m *TWVBrowserBase) NotifyParentWindowPositionChanged() bool
func (*TWVBrowserBase) Offline ¶
func (m *TWVBrowserBase) Offline() bool
func (*TWVBrowserBase) OpenDefaultDownloadDialog ¶
func (m *TWVBrowserBase) OpenDefaultDownloadDialog() bool
func (*TWVBrowserBase) OpenDevToolsWindow ¶
func (m *TWVBrowserBase) OpenDevToolsWindow() bool
func (*TWVBrowserBase) OpenTaskManagerWindow ¶
func (m *TWVBrowserBase) OpenTaskManagerWindow() bool
func (*TWVBrowserBase) ParentWindow ¶
func (m *TWVBrowserBase) ParentWindow() THandle
func (*TWVBrowserBase) PostSharedBufferToScript ¶
func (m *TWVBrowserBase) PostSharedBufferToScript(aSharedBuffer ICoreWebView2SharedBuffer, aAccess TWVSharedBufferAccess, aAdditionalDataAsJson string) bool
func (*TWVBrowserBase) PostWebMessageAsJson ¶
func (m *TWVBrowserBase) PostWebMessageAsJson(aWebMessageAsJson string) bool
func (*TWVBrowserBase) PostWebMessageAsString ¶
func (m *TWVBrowserBase) PostWebMessageAsString(aWebMessageAsString string) bool
func (*TWVBrowserBase) PreferredColorScheme ¶
func (m *TWVBrowserBase) PreferredColorScheme() TWVPreferredColorScheme
func (*TWVBrowserBase) PreferredTrackingPreventionLevel ¶
func (m *TWVBrowserBase) PreferredTrackingPreventionLevel() TWVTrackingPreventionLevel
func (*TWVBrowserBase) Print ¶
func (m *TWVBrowserBase) Print() bool
func (*TWVBrowserBase) PrintToPdf ¶
func (m *TWVBrowserBase) PrintToPdf(aResultFilePath string) bool
func (*TWVBrowserBase) PrintToPdfStream ¶
func (m *TWVBrowserBase) PrintToPdfStream() bool
func (*TWVBrowserBase) ProcessInfos ¶
func (m *TWVBrowserBase) ProcessInfos() ICoreWebView2ProcessInfoCollection
func (*TWVBrowserBase) Profile ¶
func (m *TWVBrowserBase) Profile() ICoreWebView2Profile
func (*TWVBrowserBase) ProfileCookieManager ¶
func (m *TWVBrowserBase) ProfileCookieManager() ICoreWebView2CookieManager
func (*TWVBrowserBase) ProfileIsGeneralAutofillEnabled ¶
func (m *TWVBrowserBase) ProfileIsGeneralAutofillEnabled() bool
func (*TWVBrowserBase) ProfileIsPasswordAutosaveEnabled ¶
func (m *TWVBrowserBase) ProfileIsPasswordAutosaveEnabled() bool
func (*TWVBrowserBase) ProfileName ¶
func (m *TWVBrowserBase) ProfileName() string
func (*TWVBrowserBase) ProfilePath ¶
func (m *TWVBrowserBase) ProfilePath() string
func (*TWVBrowserBase) RasterizationScale ¶
func (m *TWVBrowserBase) RasterizationScale() (resultDouble float64)
func (*TWVBrowserBase) Refresh ¶
func (m *TWVBrowserBase) Refresh() bool
func (*TWVBrowserBase) RefreshIgnoreCache ¶
func (m *TWVBrowserBase) RefreshIgnoreCache() bool
func (*TWVBrowserBase) RemoveHostObjectFromScript ¶
func (m *TWVBrowserBase) RemoveHostObjectFromScript(aName string) bool
func (*TWVBrowserBase) RemoveScriptToExecuteOnDocumentCreated ¶
func (m *TWVBrowserBase) RemoveScriptToExecuteOnDocumentCreated(aID string) bool
func (*TWVBrowserBase) RemoveWebResourceRequestedFilter ¶
func (m *TWVBrowserBase) RemoveWebResourceRequestedFilter(aURI string, aResourceContext TWVWebResourceContext) bool
func (*TWVBrowserBase) RenderCompHWND ¶
func (m *TWVBrowserBase) RenderCompHWND() THandle
func (*TWVBrowserBase) ResetZoom ¶
func (m *TWVBrowserBase) ResetZoom()
func (*TWVBrowserBase) ResizeFormHeightTo ¶
func (m *TWVBrowserBase) ResizeFormHeightTo(y int32)
func (*TWVBrowserBase) ResizeFormWidthTo ¶
func (m *TWVBrowserBase) ResizeFormWidthTo(x int32)
func (*TWVBrowserBase) Resume ¶
func (m *TWVBrowserBase) Resume() bool
func (*TWVBrowserBase) RetrieveHTML ¶
func (m *TWVBrowserBase) RetrieveHTML() bool
func (*TWVBrowserBase) RetrieveMHTML ¶
func (m *TWVBrowserBase) RetrieveMHTML() bool
func (*TWVBrowserBase) RetrieveText ¶
func (m *TWVBrowserBase) RetrieveText() bool
func (*TWVBrowserBase) RootVisualTarget ¶
func (m *TWVBrowserBase) RootVisualTarget() IUnknown
func (*TWVBrowserBase) ScreenScale ¶
func (m *TWVBrowserBase) ScreenScale() (resultSingle float32)
func (*TWVBrowserBase) ScriptEnabled ¶
func (m *TWVBrowserBase) ScriptEnabled() bool
func (*TWVBrowserBase) ScriptLocale ¶
func (m *TWVBrowserBase) ScriptLocale() string
func (*TWVBrowserBase) SendMouseInput ¶
func (m *TWVBrowserBase) SendMouseInput(aEventKind TWVMouseEventKind, aVirtualKeys TWVMouseEventVirtualKeys, aMouseData uint32, aPoint *TPoint) bool
func (*TWVBrowserBase) SendPointerInput ¶
func (m *TWVBrowserBase) SendPointerInput(aEventKind TWVPointerEventKind, aPointerInfo ICoreWebView2PointerInfo) bool
func (*TWVBrowserBase) SetAdditionalBrowserArguments ¶
func (m *TWVBrowserBase) SetAdditionalBrowserArguments(AValue string)
func (*TWVBrowserBase) SetAllowExternalDrop ¶
func (m *TWVBrowserBase) SetAllowExternalDrop(AValue bool)
func (*TWVBrowserBase) SetAllowSingleSignOnUsingOSPrimaryAccount ¶
func (m *TWVBrowserBase) SetAllowSingleSignOnUsingOSPrimaryAccount(AValue bool)
func (*TWVBrowserBase) SetAreBrowserAcceleratorKeysEnabled ¶
func (m *TWVBrowserBase) SetAreBrowserAcceleratorKeysEnabled(AValue bool)
func (*TWVBrowserBase) SetAreBrowserExtensionsEnabled ¶
func (m *TWVBrowserBase) SetAreBrowserExtensionsEnabled(AValue bool)
func (*TWVBrowserBase) SetAreHostObjectsAllowed ¶
func (m *TWVBrowserBase) SetAreHostObjectsAllowed(AValue bool)
func (*TWVBrowserBase) SetBounds ¶
func (m *TWVBrowserBase) SetBounds(AValue *TRect)
func (*TWVBrowserBase) SetBoundsAndZoomFactor ¶
func (m *TWVBrowserBase) SetBoundsAndZoomFactor(aBounds *TRect, aZoomFactor float64) bool
func (*TWVBrowserBase) SetBoundsMode ¶
func (m *TWVBrowserBase) SetBoundsMode(AValue TWVBoundsMode)
func (*TWVBrowserBase) SetBrowserExecPath ¶
func (m *TWVBrowserBase) SetBrowserExecPath(AValue string)
func (*TWVBrowserBase) SetBuiltInErrorPageEnabled ¶
func (m *TWVBrowserBase) SetBuiltInErrorPageEnabled(AValue bool)
func (*TWVBrowserBase) SetCustomCrashReportingEnabled ¶
func (m *TWVBrowserBase) SetCustomCrashReportingEnabled(AValue bool)
func (*TWVBrowserBase) SetDefaultBackgroundColor ¶
func (m *TWVBrowserBase) SetDefaultBackgroundColor(AValue TColor)
func (*TWVBrowserBase) SetDefaultContextMenusEnabled ¶
func (m *TWVBrowserBase) SetDefaultContextMenusEnabled(AValue bool)
func (*TWVBrowserBase) SetDefaultDownloadDialogCornerAlignment ¶
func (m *TWVBrowserBase) SetDefaultDownloadDialogCornerAlignment(AValue TWVDefaultDownloadDialogCornerAlignment)
func (*TWVBrowserBase) SetDefaultDownloadDialogMargin ¶
func (m *TWVBrowserBase) SetDefaultDownloadDialogMargin(AValue *TPoint)
func (*TWVBrowserBase) SetDefaultDownloadFolderPath ¶
func (m *TWVBrowserBase) SetDefaultDownloadFolderPath(AValue string)
func (*TWVBrowserBase) SetDefaultScriptDialogsEnabled ¶
func (m *TWVBrowserBase) SetDefaultScriptDialogsEnabled(AValue bool)
func (*TWVBrowserBase) SetDefaultURL ¶
func (m *TWVBrowserBase) SetDefaultURL(AValue string)
func (*TWVBrowserBase) SetDevToolsEnabled ¶
func (m *TWVBrowserBase) SetDevToolsEnabled(AValue bool)
func (*TWVBrowserBase) SetEnableTrackingPrevention ¶
func (m *TWVBrowserBase) SetEnableTrackingPrevention(AValue bool)
func (*TWVBrowserBase) SetExclusiveUserDataFolderAccess ¶
func (m *TWVBrowserBase) SetExclusiveUserDataFolderAccess(AValue bool)
func (*TWVBrowserBase) SetFocus ¶
func (m *TWVBrowserBase) SetFocus() bool
func (*TWVBrowserBase) SetFormLeftTo ¶
func (m *TWVBrowserBase) SetFormLeftTo(x int32)
func (*TWVBrowserBase) SetFormTopTo ¶
func (m *TWVBrowserBase) SetFormTopTo(y int32)
func (*TWVBrowserBase) SetHiddenPdfToolbarItems ¶
func (m *TWVBrowserBase) SetHiddenPdfToolbarItems(AValue TWVPDFToolbarItems)
func (*TWVBrowserBase) SetIgnoreCertificateErrors ¶
func (m *TWVBrowserBase) SetIgnoreCertificateErrors(AValue bool)
func (*TWVBrowserBase) SetIsGeneralAutofillEnabled ¶
func (m *TWVBrowserBase) SetIsGeneralAutofillEnabled(AValue bool)
func (*TWVBrowserBase) SetIsInPrivateModeEnabled ¶
func (m *TWVBrowserBase) SetIsInPrivateModeEnabled(AValue bool)
func (*TWVBrowserBase) SetIsMuted ¶
func (m *TWVBrowserBase) SetIsMuted(AValue bool)
func (*TWVBrowserBase) SetIsPasswordAutosaveEnabled ¶
func (m *TWVBrowserBase) SetIsPasswordAutosaveEnabled(AValue bool)
func (*TWVBrowserBase) SetIsPinchZoomEnabled ¶
func (m *TWVBrowserBase) SetIsPinchZoomEnabled(AValue bool)
func (*TWVBrowserBase) SetIsReputationCheckingRequired ¶
func (m *TWVBrowserBase) SetIsReputationCheckingRequired(AValue bool)
func (*TWVBrowserBase) SetIsSwipeNavigationEnabled ¶
func (m *TWVBrowserBase) SetIsSwipeNavigationEnabled(AValue bool)
func (*TWVBrowserBase) SetIsVisible ¶
func (m *TWVBrowserBase) SetIsVisible(AValue bool)
func (*TWVBrowserBase) SetLanguage ¶
func (m *TWVBrowserBase) SetLanguage(AValue string)
func (*TWVBrowserBase) SetMemoryUsageTargetLevel ¶
func (m *TWVBrowserBase) SetMemoryUsageTargetLevel(AValue TWVMemoryUsageTargetLevel)
func (*TWVBrowserBase) SetOffline ¶
func (m *TWVBrowserBase) SetOffline(AValue bool)
func (*TWVBrowserBase) SetOnAcceleratorKeyPressed ¶
func (m *TWVBrowserBase) SetOnAcceleratorKeyPressed(fn TOnAcceleratorKeyPressedEvent)
func (*TWVBrowserBase) SetOnAddScriptToExecuteOnDocumentCreatedCompleted ¶
func (m *TWVBrowserBase) SetOnAddScriptToExecuteOnDocumentCreatedCompleted(fn TOnAddScriptToExecuteOnDocumentCreatedCompletedEvent)
func (*TWVBrowserBase) SetOnAfterCreated ¶
func (m *TWVBrowserBase) SetOnAfterCreated(fn TNotifyEvent)
func (*TWVBrowserBase) SetOnBasicAuthenticationRequested ¶
func (m *TWVBrowserBase) SetOnBasicAuthenticationRequested(fn TOnBasicAuthenticationRequestedEvent)
func (*TWVBrowserBase) SetOnBrowserExtensionEnableCompleted ¶
func (m *TWVBrowserBase) SetOnBrowserExtensionEnableCompleted(fn TOnBrowserExtensionEnableCompletedEvent)
func (*TWVBrowserBase) SetOnBrowserExtensionRemoveCompleted ¶
func (m *TWVBrowserBase) SetOnBrowserExtensionRemoveCompleted(fn TOnBrowserExtensionRemoveCompletedEvent)
func (*TWVBrowserBase) SetOnBrowserProcessExited ¶
func (m *TWVBrowserBase) SetOnBrowserProcessExited(fn TOnBrowserProcessExitedEvent)
func (*TWVBrowserBase) SetOnBytesReceivedChanged ¶
func (m *TWVBrowserBase) SetOnBytesReceivedChanged(fn TOnBytesReceivedChangedEvent)
func (*TWVBrowserBase) SetOnCallDevToolsProtocolMethodCompleted ¶
func (m *TWVBrowserBase) SetOnCallDevToolsProtocolMethodCompleted(fn TOnCallDevToolsProtocolMethodCompletedEvent)
func (*TWVBrowserBase) SetOnCapturePreviewCompleted ¶
func (m *TWVBrowserBase) SetOnCapturePreviewCompleted(fn TOnCapturePreviewCompletedEvent)
func (*TWVBrowserBase) SetOnClearBrowsingDataCompleted ¶
func (m *TWVBrowserBase) SetOnClearBrowsingDataCompleted(fn TOnClearBrowsingDataCompletedEvent)
func (*TWVBrowserBase) SetOnClearCacheCompleted ¶
func (m *TWVBrowserBase) SetOnClearCacheCompleted(fn TOnClearCacheCompletedEvent)
func (*TWVBrowserBase) SetOnClearDataForOriginCompleted ¶
func (m *TWVBrowserBase) SetOnClearDataForOriginCompleted(fn TOnClearDataForOriginCompletedEvent)
func (*TWVBrowserBase) SetOnClientCertificateRequested ¶
func (m *TWVBrowserBase) SetOnClientCertificateRequested(fn TOnClientCertificateRequestedEvent)
func (*TWVBrowserBase) SetOnCompositionControllerCompleted ¶
func (m *TWVBrowserBase) SetOnCompositionControllerCompleted(fn TNotifyEvent)
func (*TWVBrowserBase) SetOnContainsFullScreenElementChanged ¶
func (m *TWVBrowserBase) SetOnContainsFullScreenElementChanged(fn TNotifyEvent)
func (*TWVBrowserBase) SetOnContentLoading ¶
func (m *TWVBrowserBase) SetOnContentLoading(fn TOnContentLoadingEvent)
func (*TWVBrowserBase) SetOnContextMenuRequested ¶
func (m *TWVBrowserBase) SetOnContextMenuRequested(fn TOnContextMenuRequestedEvent)
func (*TWVBrowserBase) SetOnControllerCompleted ¶
func (m *TWVBrowserBase) SetOnControllerCompleted(fn TNotifyEvent)
func (*TWVBrowserBase) SetOnCursorChanged ¶
func (m *TWVBrowserBase) SetOnCursorChanged(fn TNotifyEvent)
func (*TWVBrowserBase) SetOnCustomItemSelected ¶
func (m *TWVBrowserBase) SetOnCustomItemSelected(fn TOnCustomItemSelectedEvent)
func (*TWVBrowserBase) SetOnD3DWindowCompMsg ¶
func (m *TWVBrowserBase) SetOnD3DWindowCompMsg(fn TOnCompMsgEvent)
func (*TWVBrowserBase) SetOnDOMContentLoaded ¶
func (m *TWVBrowserBase) SetOnDOMContentLoaded(fn TOnDOMContentLoadedEvent)
func (*TWVBrowserBase) SetOnDevToolsProtocolEventReceived ¶
func (m *TWVBrowserBase) SetOnDevToolsProtocolEventReceived(fn TOnDevToolsProtocolEventReceivedEvent)
func (*TWVBrowserBase) SetOnDocumentTitleChanged ¶
func (m *TWVBrowserBase) SetOnDocumentTitleChanged(fn TNotifyEvent)
func (*TWVBrowserBase) SetOnDownloadStarting ¶
func (m *TWVBrowserBase) SetOnDownloadStarting(fn TOnDownloadStartingEvent)
func (*TWVBrowserBase) SetOnDownloadStateChanged ¶
func (m *TWVBrowserBase) SetOnDownloadStateChanged(fn TOnDownloadStateChangedEvent)
func (*TWVBrowserBase) SetOnEnvironmentCompleted ¶
func (m *TWVBrowserBase) SetOnEnvironmentCompleted(fn TNotifyEvent)
func (*TWVBrowserBase) SetOnEstimatedEndTimeChanged ¶
func (m *TWVBrowserBase) SetOnEstimatedEndTimeChanged(fn TOnEstimatedEndTimeChangedEvent)
func (*TWVBrowserBase) SetOnExecuteScriptCompleted ¶
func (m *TWVBrowserBase) SetOnExecuteScriptCompleted(fn TOnExecuteScriptCompletedEvent)
func (*TWVBrowserBase) SetOnExecuteScriptWithResultCompleted ¶
func (m *TWVBrowserBase) SetOnExecuteScriptWithResultCompleted(fn TOnExecuteScriptWithResultCompletedEvent)
func (*TWVBrowserBase) SetOnFaviconChanged ¶
func (m *TWVBrowserBase) SetOnFaviconChanged(fn TOnFaviconChangedEvent)
func (*TWVBrowserBase) SetOnFrameContentLoading ¶
func (m *TWVBrowserBase) SetOnFrameContentLoading(fn TOnFrameContentLoadingEvent)
func (*TWVBrowserBase) SetOnFrameCreated ¶
func (m *TWVBrowserBase) SetOnFrameCreated(fn TOnFrameCreatedEvent)
func (*TWVBrowserBase) SetOnFrameDOMContentLoaded ¶
func (m *TWVBrowserBase) SetOnFrameDOMContentLoaded(fn TOnFrameDOMContentLoadedEvent)
func (*TWVBrowserBase) SetOnFrameDestroyed ¶
func (m *TWVBrowserBase) SetOnFrameDestroyed(fn TOnFrameDestroyedEvent)
func (*TWVBrowserBase) SetOnFrameNameChanged ¶
func (m *TWVBrowserBase) SetOnFrameNameChanged(fn TOnFrameNameChangedEvent)
func (*TWVBrowserBase) SetOnFrameNavigationCompleted ¶
func (m *TWVBrowserBase) SetOnFrameNavigationCompleted(fn TOnNavigationCompletedEvent)
func (*TWVBrowserBase) SetOnFrameNavigationCompleted2 ¶
func (m *TWVBrowserBase) SetOnFrameNavigationCompleted2(fn TOnFrameNavigationCompletedEvent)
func (*TWVBrowserBase) SetOnFrameNavigationStarting ¶
func (m *TWVBrowserBase) SetOnFrameNavigationStarting(fn TOnNavigationStartingEvent)
func (*TWVBrowserBase) SetOnFrameNavigationStarting2 ¶
func (m *TWVBrowserBase) SetOnFrameNavigationStarting2(fn TOnFrameNavigationStartingEvent)
func (*TWVBrowserBase) SetOnFramePermissionRequested ¶
func (m *TWVBrowserBase) SetOnFramePermissionRequested(fn TOnFramePermissionRequestedEvent)
func (*TWVBrowserBase) SetOnFrameWebMessageReceived ¶
func (m *TWVBrowserBase) SetOnFrameWebMessageReceived(fn TOnFrameWebMessageReceivedEvent)
func (*TWVBrowserBase) SetOnGetCookiesCompleted ¶
func (m *TWVBrowserBase) SetOnGetCookiesCompleted(fn TOnGetCookiesCompletedEvent)
func (*TWVBrowserBase) SetOnGetCustomSchemes ¶
func (m *TWVBrowserBase) SetOnGetCustomSchemes(fn TOnGetCustomSchemesEvent)
func (*TWVBrowserBase) SetOnGetFaviconCompleted ¶
func (m *TWVBrowserBase) SetOnGetFaviconCompleted(fn TOnGetFaviconCompletedEvent)
func (*TWVBrowserBase) SetOnGetNonDefaultPermissionSettingsCompleted ¶
func (m *TWVBrowserBase) SetOnGetNonDefaultPermissionSettingsCompleted(fn TOnGetNonDefaultPermissionSettingsCompletedEvent)
func (*TWVBrowserBase) SetOnGetProcessExtendedInfosCompleted ¶
func (m *TWVBrowserBase) SetOnGetProcessExtendedInfosCompleted(fn TOnGetProcessExtendedInfosCompletedEvent)
func (*TWVBrowserBase) SetOnGotFocus ¶
func (m *TWVBrowserBase) SetOnGotFocus(fn TNotifyEvent)
func (*TWVBrowserBase) SetOnHistoryChanged ¶
func (m *TWVBrowserBase) SetOnHistoryChanged(fn TNotifyEvent)
func (*TWVBrowserBase) SetOnIgnoreCertificateErrorsCompleted ¶
func (m *TWVBrowserBase) SetOnIgnoreCertificateErrorsCompleted(fn TOnIgnoreCertificateErrorsCompletedEvent)
func (*TWVBrowserBase) SetOnInitializationError ¶
func (m *TWVBrowserBase) SetOnInitializationError(fn TOnInitializationErrorEvent)
func (*TWVBrowserBase) SetOnIsDefaultDownloadDialogOpenChanged ¶
func (m *TWVBrowserBase) SetOnIsDefaultDownloadDialogOpenChanged(fn TOnIsDefaultDownloadDialogOpenChangedEvent)
func (*TWVBrowserBase) SetOnIsDocumentPlayingAudioChanged ¶
func (m *TWVBrowserBase) SetOnIsDocumentPlayingAudioChanged(fn TOnIsDocumentPlayingAudioChangedEvent)
func (*TWVBrowserBase) SetOnIsMutedChanged ¶
func (m *TWVBrowserBase) SetOnIsMutedChanged(fn TOnIsMutedChangedEvent)
func (*TWVBrowserBase) SetOnLaunchingExternalUriScheme ¶
func (m *TWVBrowserBase) SetOnLaunchingExternalUriScheme(fn TOnLaunchingExternalUriSchemeEvent)
func (*TWVBrowserBase) SetOnLostFocus ¶
func (m *TWVBrowserBase) SetOnLostFocus(fn TNotifyEvent)
func (*TWVBrowserBase) SetOnMoveFocusRequested ¶
func (m *TWVBrowserBase) SetOnMoveFocusRequested(fn TOnMoveFocusRequestedEvent)
func (*TWVBrowserBase) SetOnNavigationCompleted ¶
func (m *TWVBrowserBase) SetOnNavigationCompleted(fn TOnNavigationCompletedEvent)
func (*TWVBrowserBase) SetOnNavigationStarting ¶
func (m *TWVBrowserBase) SetOnNavigationStarting(fn TOnNavigationStartingEvent)
func (*TWVBrowserBase) SetOnNewWindowRequested ¶
func (m *TWVBrowserBase) SetOnNewWindowRequested(fn TOnNewWindowRequestedEvent)
func (*TWVBrowserBase) SetOnOfflineCompleted ¶
func (m *TWVBrowserBase) SetOnOfflineCompleted(fn TOnOfflineCompletedEvent)
func (*TWVBrowserBase) SetOnPermissionRequested ¶
func (m *TWVBrowserBase) SetOnPermissionRequested(fn TOnPermissionRequestedEvent)
func (*TWVBrowserBase) SetOnPrintCompleted ¶
func (m *TWVBrowserBase) SetOnPrintCompleted(fn TOnPrintCompletedEvent)
func (*TWVBrowserBase) SetOnPrintToPdfCompleted ¶
func (m *TWVBrowserBase) SetOnPrintToPdfCompleted(fn TOnPrintToPdfCompletedEvent)
func (*TWVBrowserBase) SetOnPrintToPdfStreamCompleted ¶
func (m *TWVBrowserBase) SetOnPrintToPdfStreamCompleted(fn TOnPrintToPdfStreamCompletedEvent)
func (*TWVBrowserBase) SetOnProcessFailed ¶
func (m *TWVBrowserBase) SetOnProcessFailed(fn TOnProcessFailedEvent)
func (*TWVBrowserBase) SetOnProcessInfosChanged ¶
func (m *TWVBrowserBase) SetOnProcessInfosChanged(fn TOnProcessInfosChangedEvent)
func (*TWVBrowserBase) SetOnProfileAddBrowserExtensionCompleted ¶
func (m *TWVBrowserBase) SetOnProfileAddBrowserExtensionCompleted(fn TOnProfileAddBrowserExtensionCompletedEvent)
func (*TWVBrowserBase) SetOnProfileDeleted ¶
func (m *TWVBrowserBase) SetOnProfileDeleted(fn TOnProfileDeletedEvent)
func (*TWVBrowserBase) SetOnProfileGetBrowserExtensionsCompleted ¶
func (m *TWVBrowserBase) SetOnProfileGetBrowserExtensionsCompleted(fn TOnProfileGetBrowserExtensionsCompletedEvent)
func (*TWVBrowserBase) SetOnRasterizationScaleChanged ¶
func (m *TWVBrowserBase) SetOnRasterizationScaleChanged(fn TNotifyEvent)
func (*TWVBrowserBase) SetOnRefreshIgnoreCacheCompleted ¶
func (m *TWVBrowserBase) SetOnRefreshIgnoreCacheCompleted(fn TOnRefreshIgnoreCacheCompletedEvent)
func (*TWVBrowserBase) SetOnRenderCompMsg ¶
func (m *TWVBrowserBase) SetOnRenderCompMsg(fn TOnCompMsgEvent)
func (*TWVBrowserBase) SetOnRetrieveHTMLCompleted ¶
func (m *TWVBrowserBase) SetOnRetrieveHTMLCompleted(fn TOnRetrieveHTMLCompletedEvent)
func (*TWVBrowserBase) SetOnRetrieveMHTMLCompleted ¶
func (m *TWVBrowserBase) SetOnRetrieveMHTMLCompleted(fn TOnRetrieveMHTMLCompletedEvent)
func (*TWVBrowserBase) SetOnRetrieveTextCompleted ¶
func (m *TWVBrowserBase) SetOnRetrieveTextCompleted(fn TOnRetrieveTextCompletedEvent)
func (*TWVBrowserBase) SetOnScriptDialogOpening ¶
func (m *TWVBrowserBase) SetOnScriptDialogOpening(fn TOnScriptDialogOpeningEvent)
func (*TWVBrowserBase) SetOnServerCertificateErrorActionsCompleted ¶
func (m *TWVBrowserBase) SetOnServerCertificateErrorActionsCompleted(fn TOnServerCertificateErrorActionsCompletedEvent)
func (*TWVBrowserBase) SetOnServerCertificateErrorDetected ¶
func (m *TWVBrowserBase) SetOnServerCertificateErrorDetected(fn TOnServerCertificateErrorDetectedEvent)
func (*TWVBrowserBase) SetOnSetPermissionStateCompleted ¶
func (m *TWVBrowserBase) SetOnSetPermissionStateCompleted(fn TOnSetPermissionStateCompletedEvent)
func (*TWVBrowserBase) SetOnSimulateKeyEventCompleted ¶
func (m *TWVBrowserBase) SetOnSimulateKeyEventCompleted(fn TOnSimulateKeyEventCompletedEvent)
func (*TWVBrowserBase) SetOnSourceChanged ¶
func (m *TWVBrowserBase) SetOnSourceChanged(fn TOnSourceChangedEvent)
func (*TWVBrowserBase) SetOnStatusBarTextChanged ¶
func (m *TWVBrowserBase) SetOnStatusBarTextChanged(fn TOnStatusBarTextChangedEvent)
func (*TWVBrowserBase) SetOnTrySuspendCompleted ¶
func (m *TWVBrowserBase) SetOnTrySuspendCompleted(fn TOnTrySuspendCompletedEvent)
func (*TWVBrowserBase) SetOnWebMessageReceived ¶
func (m *TWVBrowserBase) SetOnWebMessageReceived(fn TOnWebMessageReceivedEvent)
func (*TWVBrowserBase) SetOnWebResourceRequested ¶
func (m *TWVBrowserBase) SetOnWebResourceRequested(fn TOnWebResourceRequestedEvent)
func (*TWVBrowserBase) SetOnWebResourceResponseReceived ¶
func (m *TWVBrowserBase) SetOnWebResourceResponseReceived(fn TOnWebResourceResponseReceivedEvent)
func (*TWVBrowserBase) SetOnWebResourceResponseViewGetContentCompleted ¶
func (m *TWVBrowserBase) SetOnWebResourceResponseViewGetContentCompleted(fn TOnWebResourceResponseViewGetContentCompletedEvent)
func (*TWVBrowserBase) SetOnWidget0CompMsg ¶
func (m *TWVBrowserBase) SetOnWidget0CompMsg(fn TOnCompMsgEvent)
func (*TWVBrowserBase) SetOnWidget1CompMsg ¶
func (m *TWVBrowserBase) SetOnWidget1CompMsg(fn TOnCompMsgEvent)
func (*TWVBrowserBase) SetOnWindowCloseRequested ¶
func (m *TWVBrowserBase) SetOnWindowCloseRequested(fn TNotifyEvent)
func (*TWVBrowserBase) SetOnZoomFactorChanged ¶
func (m *TWVBrowserBase) SetOnZoomFactorChanged(fn TNotifyEvent)
func (*TWVBrowserBase) SetParentWindow ¶
func (m *TWVBrowserBase) SetParentWindow(AValue THandle)
func (*TWVBrowserBase) SetPermissionState ¶
func (m *TWVBrowserBase) SetPermissionState(aPermissionKind TWVPermissionKind, aOrigin string, aState TWVPermissionState) bool
func (*TWVBrowserBase) SetPreferredColorScheme ¶
func (m *TWVBrowserBase) SetPreferredColorScheme(AValue TWVPreferredColorScheme)
func (*TWVBrowserBase) SetPreferredTrackingPreventionLevel ¶
func (m *TWVBrowserBase) SetPreferredTrackingPreventionLevel(AValue TWVTrackingPreventionLevel)
func (*TWVBrowserBase) SetProfileIsGeneralAutofillEnabled ¶
func (m *TWVBrowserBase) SetProfileIsGeneralAutofillEnabled(AValue bool)
func (*TWVBrowserBase) SetProfileIsPasswordAutosaveEnabled ¶
func (m *TWVBrowserBase) SetProfileIsPasswordAutosaveEnabled(AValue bool)
func (*TWVBrowserBase) SetProfileName ¶
func (m *TWVBrowserBase) SetProfileName(AValue string)
func (*TWVBrowserBase) SetRasterizationScale ¶
func (m *TWVBrowserBase) SetRasterizationScale(AValue float64)
func (*TWVBrowserBase) SetRootVisualTarget ¶
func (m *TWVBrowserBase) SetRootVisualTarget(AValue IUnknown)
func (*TWVBrowserBase) SetScriptEnabled ¶
func (m *TWVBrowserBase) SetScriptEnabled(AValue bool)
func (*TWVBrowserBase) SetScriptLocale ¶
func (m *TWVBrowserBase) SetScriptLocale(AValue string)
func (*TWVBrowserBase) SetShouldDetectMonitorScaleChanges ¶
func (m *TWVBrowserBase) SetShouldDetectMonitorScaleChanges(AValue bool)
func (*TWVBrowserBase) SetStatusBarEnabled ¶
func (m *TWVBrowserBase) SetStatusBarEnabled(AValue bool)
func (*TWVBrowserBase) SetTargetCompatibleBrowserVersion ¶
func (m *TWVBrowserBase) SetTargetCompatibleBrowserVersion(AValue string)
func (*TWVBrowserBase) SetUserAgent ¶
func (m *TWVBrowserBase) SetUserAgent(AValue string)
func (*TWVBrowserBase) SetUserDataFolder ¶
func (m *TWVBrowserBase) SetUserDataFolder(AValue string)
func (*TWVBrowserBase) SetVirtualHostNameToFolderMapping ¶
func (m *TWVBrowserBase) SetVirtualHostNameToFolderMapping(aHostName, aFolderPath string, aAccessKind TWVHostResourceAcccessKind) bool
func (*TWVBrowserBase) SetWebMessageEnabled ¶
func (m *TWVBrowserBase) SetWebMessageEnabled(AValue bool)
func (*TWVBrowserBase) SetZoomControlEnabled ¶
func (m *TWVBrowserBase) SetZoomControlEnabled(AValue bool)
func (*TWVBrowserBase) SetZoomFactor ¶
func (m *TWVBrowserBase) SetZoomFactor(AValue float64)
func (*TWVBrowserBase) SetZoomPct ¶
func (m *TWVBrowserBase) SetZoomPct(AValue float64)
func (*TWVBrowserBase) SetZoomStep ¶
func (m *TWVBrowserBase) SetZoomStep(AValue byte)
func (*TWVBrowserBase) ShouldDetectMonitorScaleChanges ¶
func (m *TWVBrowserBase) ShouldDetectMonitorScaleChanges() bool
func (*TWVBrowserBase) ShowPrintUI ¶
func (m *TWVBrowserBase) ShowPrintUI(aUseSystemPrintDialog bool) bool
func (*TWVBrowserBase) SimulateEditingCommand ¶
func (m *TWVBrowserBase) SimulateEditingCommand(aEditingCommand TWV2EditingCommand) bool
func (*TWVBrowserBase) SimulateKeyEvent ¶
func (*TWVBrowserBase) Source ¶
func (m *TWVBrowserBase) Source() string
func (*TWVBrowserBase) StatusBarEnabled ¶
func (m *TWVBrowserBase) StatusBarEnabled() bool
func (*TWVBrowserBase) StatusBarText ¶
func (m *TWVBrowserBase) StatusBarText() string
func (*TWVBrowserBase) Stop ¶
func (m *TWVBrowserBase) Stop() bool
func (*TWVBrowserBase) SubscribeToDevToolsProtocolEvent ¶
func (m *TWVBrowserBase) SubscribeToDevToolsProtocolEvent(aEventName string, aEventID int32) bool
func (*TWVBrowserBase) SystemCursorID ¶
func (m *TWVBrowserBase) SystemCursorID() uint32
func (*TWVBrowserBase) TargetCompatibleBrowserVersion ¶
func (m *TWVBrowserBase) TargetCompatibleBrowserVersion() string
func (*TWVBrowserBase) ToggleMuteState ¶
func (m *TWVBrowserBase) ToggleMuteState()
func (*TWVBrowserBase) TrySuspend ¶
func (m *TWVBrowserBase) TrySuspend() bool
func (*TWVBrowserBase) UserAgent ¶
func (m *TWVBrowserBase) UserAgent() string
func (*TWVBrowserBase) UserDataFolder ¶
func (m *TWVBrowserBase) UserDataFolder() string
func (*TWVBrowserBase) WebMessageEnabled ¶
func (m *TWVBrowserBase) WebMessageEnabled() bool
func (*TWVBrowserBase) Widget0CompHWND ¶
func (m *TWVBrowserBase) Widget0CompHWND() THandle
func (*TWVBrowserBase) Widget1CompHWND ¶
func (m *TWVBrowserBase) Widget1CompHWND() THandle
func (*TWVBrowserBase) ZoomControlEnabled ¶
func (m *TWVBrowserBase) ZoomControlEnabled() bool
func (*TWVBrowserBase) ZoomFactor ¶
func (m *TWVBrowserBase) ZoomFactor() (resultDouble float64)
func (*TWVBrowserBase) ZoomPct ¶
func (m *TWVBrowserBase) ZoomPct() (resultDouble float64)
func (*TWVBrowserBase) ZoomStep ¶
func (m *TWVBrowserBase) ZoomStep() byte
type TWVBrowserProcessExitKind ¶
type TWVBrowserProcessExitKind = COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND
TWVBrowserProcessExitKind
Specifies the browser process exit type used in the ICoreWebView2BrowserProcessExitedEventArgs interface. Renamed COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND type.
type TWVBrowsingDataKinds ¶
type TWVBrowsingDataKinds = COREWEBVIEW2_BROWSING_DATA_KINDS
TWVBrowsingDataKinds
Specifies the datatype for the ICoreWebView2Profile2.ClearBrowsingData method. Renamed COREWEBVIEW2_BROWSING_DATA_KINDS type.
type TWVCapturePreviewImageFormat ¶
type TWVCapturePreviewImageFormat = COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT
TWVCapturePreviewImageFormat
Specifies the image format for the ICoreWebView2.CapturePreview method. Renamed COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT type.
type TWVClearDataStorageTypes ¶
type TWVClearDataStorageTypes = int32
TWVClearDataStorageTypes
Used by TWVBrowserBase.ClearDataForOrigin to clear the storage
const ( CDSTAPPCACHEdstAppCache TWVClearDataStorageTypes = iota CDSTCOOKIESdstCookies CDSTFILESYSTEMSdstFileSystems CDSTINDEXEDDBdstIndexeddb CDSTLOCALSTORAGEdstLocalStorage CDSTSHADERCACHEdstShaderCache CDSTWEBSQLdstWebsql CDSTSERVICEWORKERSdstServiceWorkers CDSTCACHESTORAGEdstCacheStorage CDSTALLdstAll )
type TWVClientCertificateKind ¶
type TWVClientCertificateKind = COREWEBVIEW2_CLIENT_CERTIFICATE_KIND
TWVClientCertificateKind
Specifies the client certificate kind. Renamed COREWEBVIEW2_CLIENT_CERTIFICATE_KIND type.
type TWVColor ¶
type TWVColor = COREWEBVIEW2_COLOR
TWVColor
A value representing RGBA color (Red, Green, Blue, Alpha) for WebView2. Each component takes a value from 0 to 255, with 0 being no intensity and 255 being the highest intensity. Renamed COREWEBVIEW2_COLOR type.
type TWVCookieSameSiteKind ¶
type TWVCookieSameSiteKind = COREWEBVIEW2_COOKIE_SAME_SITE_KIND
TWVCookieSameSiteKind
Kind of cookie SameSite status used in the ICoreWebView2Cookie interface. These fields match those as specified in https://developer.mozilla.org/docs/Web/HTTP/Cookies#. Learn more about SameSite cookies here: https://tools.ietf.org/html/draft-west-first-party-cookies-07 Renamed COREWEBVIEW2_COOKIE_SAME_SITE_KIND type.
type TWVCustomSchemeInfo ¶
type TWVCustomSchemeInfo struct { SchemeName string // The name of the custom scheme to register. TreatAsSecure bool // Whether the sites with this scheme will be treated as a Secure Context like an HTTPS site. AllowedDomains string // Comma separated list of origins that are allowed to issue requests with the custom scheme, such as XHRs and subresource requests that have an Origin header. HasAuthorityComponent bool // Set this property to true if the URIs with this custom scheme will have an authority component (a host for custom schemes). }
TWVCustomSchemeInfo Record with all the information to create a TCoreWebView2CustomSchemeRegistration instance to register a custom scheme.
type TWVCustomSchemeInfoArray ¶
type TWVCustomSchemeInfoArray = []*TWVCustomSchemeInfo
TWVCustomSchemeInfoArray
type TWVDefaultDownloadDialogCornerAlignment ¶
type TWVDefaultDownloadDialogCornerAlignment = COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT
TWVDefaultDownloadDialogCornerAlignment
The default download dialog can be aligned to any of the WebView corners by setting the DefaultDownloadDialogCornerAlignment property. The default position is top-right corner. Renamed COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT type.
type TWVDownloadInterruptReason ¶
type TWVDownloadInterruptReason = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON
TWVDownloadInterruptReason
Reason why a download was interrupted. Renamed COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON type.
type TWVDownloadState ¶
type TWVDownloadState = COREWEBVIEW2_DOWNLOAD_STATE
TWVDownloadState
State of the download operation. Renamed COREWEBVIEW2_DOWNLOAD_STATE type.
type TWVFaviconImageFormat ¶
type TWVFaviconImageFormat = COREWEBVIEW2_FAVICON_IMAGE_FORMAT
TWVFaviconImageFormat
Specifies the image format to use for favicon. Renamed COREWEBVIEW2_FAVICON_IMAGE_FORMAT type.
type TWVFrameKind ¶
type TWVFrameKind = COREWEBVIEW2_FRAME_KIND
TWVFrameKind
Indicates the frame type used in the `ICoreWebView2FrameInfo` interface. Renamed COREWEBVIEW2_FRAME_KIND type.
type TWVHostResourceAcccessKind ¶
type TWVHostResourceAcccessKind = COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND
TWVHostResourceAcccessKind
Kind of cross origin resource access allowed for host resources during download. Note that other normal access checks like same origin DOM access check and [Content Security Policy](https://developer.mozilla.org/docs/Web/HTTP/CSP) still apply. The following table illustrates the host resource cross origin access according to access context and COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND. Cross Origin Access Context | DENY | ALLOW | DENY_CORS --- | --- | --- | --- From DOM like src of img, script or iframe element| Deny | Allow | Allow From Script like Fetch or XMLHttpRequest| Deny | Allow | Deny Renamed COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND type.
type TWVKeyEventKind ¶
type TWVKeyEventKind = COREWEBVIEW2_KEY_EVENT_KIND
TWVKeyEventKind
Specifies the key event type that triggered an AcceleratorKeyPressed event. Renamed COREWEBVIEW2_KEY_EVENT_KIND type.
type TWVLoader ¶
type TWVLoader struct {
TComponent
}
TWVLoader Parent: TComponent
Class used to simplify the WebView2 initialization and destruction.
func (*TWVLoader) AdditionalBrowserArguments ¶
func (*TWVLoader) AllowFileAccessFromFiles ¶
func (*TWVLoader) AllowInsecureLocalhost ¶
func (*TWVLoader) AllowRunningInsecureContent ¶
func (*TWVLoader) AllowSingleSignOnUsingOSPrimaryAccount ¶
func (*TWVLoader) AppendErrorLog ¶
func (*TWVLoader) AreBrowserExtensionsEnabled ¶
func (*TWVLoader) AutoAcceptCamAndMicCapture ¶
func (*TWVLoader) AutoplayPolicy ¶
func (m *TWVLoader) AutoplayPolicy() TWVAutoplayPolicy
func (*TWVLoader) AvailableBrowserVersion ¶
func (*TWVLoader) BlinkSettings ¶
func (*TWVLoader) BrowserExecPath ¶
func (*TWVLoader) CheckFiles ¶
func (*TWVLoader) CompareVersions ¶
func (*TWVLoader) CustomCommandLineSwitches ¶
func (*TWVLoader) CustomCrashReportingEnabled ¶
func (*TWVLoader) DebugLog ¶
func (m *TWVLoader) DebugLog() TWV2DebugLog
func (*TWVLoader) DebugLogLevel ¶
func (m *TWVLoader) DebugLogLevel() TWV2DebugLogLevel
func (*TWVLoader) DeviceScaleFactor ¶
func (*TWVLoader) DisableBackgroundNetworking ¶
func (*TWVLoader) DisableBlinkFeatures ¶
func (*TWVLoader) DisableEdgePitchNotification ¶
func (*TWVLoader) DisableFeatures ¶
func (*TWVLoader) DisableWebSecurity ¶
func (*TWVLoader) EnableBlinkFeatures ¶
func (*TWVLoader) EnableFeatures ¶
func (*TWVLoader) EnableTrackingPrevention ¶
func (*TWVLoader) Environment ¶
func (m *TWVLoader) Environment() ICoreWebView2Environment
func (*TWVLoader) ErrorMessage ¶
func (*TWVLoader) ExclusiveUserDataFolderAccess ¶
func (*TWVLoader) FailureReportFolderPath ¶
func (*TWVLoader) ForceFieldTrialParams ¶
func (*TWVLoader) ForceFieldTrials ¶
func (*TWVLoader) ForcedDeviceScaleFactor ¶
func (*TWVLoader) HyperlinkAuditing ¶
func (*TWVLoader) InitCOMLibrary ¶
func (*TWVLoader) InitializationError ¶
func (*TWVLoader) Initialized ¶
func (*TWVLoader) InstalledRuntimeVersion ¶
func (*TWVLoader) JavaScriptFlags ¶
func (*TWVLoader) KioskPrinting ¶
func (*TWVLoader) LoaderDllPath ¶
func (*TWVLoader) ProcessInfos ¶
func (m *TWVLoader) ProcessInfos() ICoreWebView2ProcessInfoCollection
func (*TWVLoader) ProxySettings ¶
func (m *TWVLoader) ProxySettings() IWVProxySettings
func (*TWVLoader) ReRaiseExceptions ¶
func (*TWVLoader) RemoteAllowOrigins ¶
func (*TWVLoader) RemoteDebuggingPort ¶
func (*TWVLoader) SetAdditionalBrowserArguments ¶
func (*TWVLoader) SetAllowFileAccessFromFiles ¶
func (*TWVLoader) SetAllowInsecureLocalhost ¶
func (*TWVLoader) SetAllowRunningInsecureContent ¶
func (*TWVLoader) SetAllowSingleSignOnUsingOSPrimaryAccount ¶
func (*TWVLoader) SetAreBrowserExtensionsEnabled ¶
func (*TWVLoader) SetAutoAcceptCamAndMicCapture ¶
func (*TWVLoader) SetAutoplayPolicy ¶
func (m *TWVLoader) SetAutoplayPolicy(AValue TWVAutoplayPolicy)
func (*TWVLoader) SetBlinkSettings ¶
func (*TWVLoader) SetBrowserExecPath ¶
func (*TWVLoader) SetCheckFiles ¶
func (*TWVLoader) SetCurrentDir ¶
func (*TWVLoader) SetCustomCrashReportingEnabled ¶
func (*TWVLoader) SetDebugLog ¶
func (m *TWVLoader) SetDebugLog(AValue TWV2DebugLog)
func (*TWVLoader) SetDebugLogLevel ¶
func (m *TWVLoader) SetDebugLogLevel(AValue TWV2DebugLogLevel)
func (*TWVLoader) SetDisableBackgroundNetworking ¶
func (*TWVLoader) SetDisableBlinkFeatures ¶
func (*TWVLoader) SetDisableEdgePitchNotification ¶
func (*TWVLoader) SetDisableFeatures ¶
func (*TWVLoader) SetDisableWebSecurity ¶
func (*TWVLoader) SetEnableBlinkFeatures ¶
func (*TWVLoader) SetEnableFeatures ¶
func (*TWVLoader) SetEnableGPU ¶
func (*TWVLoader) SetEnableTrackingPrevention ¶
func (*TWVLoader) SetExclusiveUserDataFolderAccess ¶
func (*TWVLoader) SetForceFieldTrialParams ¶
func (*TWVLoader) SetForceFieldTrials ¶
func (*TWVLoader) SetForcedDeviceScaleFactor ¶
func (*TWVLoader) SetHyperlinkAuditing ¶
func (*TWVLoader) SetInitCOMLibrary ¶
func (*TWVLoader) SetJavaScriptFlags ¶
func (*TWVLoader) SetKioskPrinting ¶
func (*TWVLoader) SetLanguage ¶
func (*TWVLoader) SetLoaderDllPath ¶
func (*TWVLoader) SetMuteAudio ¶
func (*TWVLoader) SetOnBrowserProcessExited ¶
func (m *TWVLoader) SetOnBrowserProcessExited(fn TOnLoaderBrowserProcessExitedEvent)
func (*TWVLoader) SetOnEnvironmentCreated ¶
func (m *TWVLoader) SetOnEnvironmentCreated(fn TOnLoaderNotifyEvent)
func (*TWVLoader) SetOnGetCustomSchemes ¶
func (m *TWVLoader) SetOnGetCustomSchemes(fn TOnLoaderGetCustomSchemesEvent)
func (*TWVLoader) SetOnInitializationError ¶
func (m *TWVLoader) SetOnInitializationError(fn TOnLoaderNotifyEvent)
func (*TWVLoader) SetOnNewBrowserVersionAvailable ¶
func (m *TWVLoader) SetOnNewBrowserVersionAvailable(fn TOnLoaderNewBrowserVersionAvailableEvent)
func (*TWVLoader) SetOnProcessInfosChanged ¶
func (m *TWVLoader) SetOnProcessInfosChanged(fn TOnLoaderProcessInfosChangedEvent)
func (*TWVLoader) SetReRaiseExceptions ¶
func (*TWVLoader) SetRemoteAllowOrigins ¶
func (*TWVLoader) SetRemoteDebuggingPort ¶
func (*TWVLoader) SetSetCurrentDir ¶
func (*TWVLoader) SetShowMessageDlg ¶
func (*TWVLoader) SetSmartScreenProtectionEnabled ¶
func (*TWVLoader) SetTargetCompatibleBrowserVersion ¶
func (*TWVLoader) SetTouchEvents ¶
func (*TWVLoader) SetTreatInsecureOriginAsSecure ¶
func (*TWVLoader) SetUseInternalLoader ¶
func (*TWVLoader) SetUserDataFolder ¶
func (*TWVLoader) ShowMessageDlg ¶
func (*TWVLoader) SmartScreenProtectionEnabled ¶
func (*TWVLoader) StartWebView2 ¶
func (*TWVLoader) Status ¶
func (m *TWVLoader) Status() TWV2LoaderStatus
func (*TWVLoader) SupportsCompositionController ¶
func (*TWVLoader) SupportsControllerOptions ¶
func (*TWVLoader) TargetCompatibleBrowserVersion ¶
func (*TWVLoader) TouchEvents ¶
func (*TWVLoader) TreatInsecureOriginAsSecure ¶
func (*TWVLoader) UpdateDeviceScaleFactor ¶
func (m *TWVLoader) UpdateDeviceScaleFactor()
func (*TWVLoader) UseInternalLoader ¶
func (*TWVLoader) UserDataFolder ¶
type TWVMemoryUsageTargetLevel ¶
type TWVMemoryUsageTargetLevel = COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL
TWVMemoryUsageTargetLevel
Specifies memory usage target level of WebView. Renamed COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL type.
type TWVMenuItemKind ¶
type TWVMenuItemKind = COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND
TWVMenuItemKind
Specifies the menu item kind for the ICoreWebView2ContextMenuItem.get_Kind method Renamed COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND type.
type TWVMenuTargetKind ¶
type TWVMenuTargetKind = COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND
TWVMenuTargetKind
Indicates the kind of context for which the context menu was created for the `ICoreWebView2ContextMenuTarget::get_Kind` method. This enum will always represent the active element that caused the context menu request. If there is a selection with multiple images, audio and text, for example, the element that the end user right clicks on within this selection will be the option represented by this enum. Renamed COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND type.
type TWVMouseEventKind ¶
type TWVMouseEventKind = COREWEBVIEW2_MOUSE_EVENT_KIND
TWVMouseEventKind
Mouse event type used by SendMouseInput to convey the type of mouse event being sent to WebView. The values of this enum align with the matching WM_* window messages. Renamed COREWEBVIEW2_MOUSE_EVENT_KIND type.
type TWVMouseEventVirtualKeys ¶
type TWVMouseEventVirtualKeys = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS
TWVMouseEventVirtualKeys
Mouse event virtual keys associated with a COREWEBVIEW2_MOUSE_EVENT_KIND for SendMouseInput. These values can be combined into a bit flag if more than one virtual key is pressed for the event. The values of this enum align with the matching MK_* mouse keys. Renamed COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS type.
type TWVMoveFocusReason ¶
type TWVMoveFocusReason = COREWEBVIEW2_MOVE_FOCUS_REASON
TWVMoveFocusReason
Specifies the reason for moving focus. Renamed COREWEBVIEW2_MOVE_FOCUS_REASON type.
type TWVNavigationKind ¶
type TWVNavigationKind = COREWEBVIEW2_NAVIGATION_KIND
TWVNavigationKind
Specifies the navigation kind of each navigation. Renamed COREWEBVIEW2_NAVIGATION_KIND type.
type TWVPDFToolbarItems ¶
type TWVPDFToolbarItems = COREWEBVIEW2_PDF_TOOLBAR_ITEMS
TWVPDFToolbarItems
PDF toolbar item. This enum must be in sync with ToolBarItem in pdf-store-data-types.ts Specifies the PDF toolbar item types used for the ICoreWebView2Settings.put_HiddenPdfToolbarItems method. Renamed COREWEBVIEW2_PDF_TOOLBAR_ITEMS type.
type TWVPermissionKind ¶
type TWVPermissionKind = COREWEBVIEW2_PERMISSION_KIND
TWVPermissionKind
Indicates the type of a permission request. Renamed COREWEBVIEW2_PERMISSION_KIND type.
type TWVPermissionState ¶
type TWVPermissionState = COREWEBVIEW2_PERMISSION_STATE
TWVPermissionState
Specifies the response to a permission request. Renamed COREWEBVIEW2_PERMISSION_STATE type.
type TWVPointerEventKind ¶
type TWVPointerEventKind = COREWEBVIEW2_POINTER_EVENT_KIND
TWVPointerEventKind
Pointer event type used by SendPointerInput to convey the type of pointer event being sent to WebView. The values of this enum align with the matching WM_POINTER* window messages. Renamed COREWEBVIEW2_POINTER_EVENT_KIND type.
type TWVPreferredColorScheme ¶
type TWVPreferredColorScheme = COREWEBVIEW2_PREFERRED_COLOR_SCHEME
TWVPreferredColorScheme
An enum to represent the options for WebView2 color scheme: auto, light, or dark. Renamed COREWEBVIEW2_PREFERRED_COLOR_SCHEME type.
type TWVPrintCollation ¶
type TWVPrintCollation = COREWEBVIEW2_PRINT_COLLATION
TWVPrintCollation
Specifies the collation for a print. Renamed COREWEBVIEW2_PRINT_COLLATION type.
type TWVPrintColorMode ¶
type TWVPrintColorMode = COREWEBVIEW2_PRINT_COLOR_MODE
TWVPrintColorMode
Specifies the color mode for a print. Renamed COREWEBVIEW2_PRINT_COLOR_MODE type.
type TWVPrintDialogKind ¶
type TWVPrintDialogKind = COREWEBVIEW2_PRINT_DIALOG_KIND
TWVPrintDialogKind
Specifies the print dialog kind. Renamed COREWEBVIEW2_PRINT_DIALOG_KIND type.
type TWVPrintDuplex ¶
type TWVPrintDuplex = COREWEBVIEW2_PRINT_DUPLEX
TWVPrintDuplex
Specifies the duplex option for a print. Renamed COREWEBVIEW2_PRINT_DUPLEX type.
type TWVPrintMediaSize ¶
type TWVPrintMediaSize = COREWEBVIEW2_PRINT_MEDIA_SIZE
TWVPrintMediaSize
Specifies the media size for a print. Renamed COREWEBVIEW2_PRINT_MEDIA_SIZE type.
type TWVPrintOrientation ¶
type TWVPrintOrientation = COREWEBVIEW2_PRINT_ORIENTATION
TWVPrintOrientation
The orientation for printing, used by the Orientation property on ICoreWebView2PrintSettings. Renamed COREWEBVIEW2_PRINT_ORIENTATION type.
type TWVPrintStatus ¶
type TWVPrintStatus = COREWEBVIEW2_PRINT_STATUS
TWVPrintStatus
Indicates the status for printing. Renamed COREWEBVIEW2_PRINT_STATUS type.
type TWVProcessFailedKind ¶
type TWVProcessFailedKind = COREWEBVIEW2_PROCESS_FAILED_KIND
TWVProcessFailedKind
Specifies the process failure type used in the `ICoreWebView2ProcessFailedEventArgs` interface. The values in this enum make reference to the process kinds in the Chromium architecture. For more information about what these processes are and what they do, see [Browser Architecture - Inside look at modern web browser](https://developers.google.com/web/updates/2018/09/inside-browser-part1). Renamed COREWEBVIEW2_PROCESS_FAILED_KIND type.
type TWVProcessFailedReason ¶
type TWVProcessFailedReason = COREWEBVIEW2_PROCESS_FAILED_REASON
TWVProcessFailedReason
Specifies the process failure reason used in the ICoreWebView2ProcessFailedEventHandler interface. Renamed COREWEBVIEW2_PROCESS_FAILED_REASON type.
type TWVProcessKind ¶
type TWVProcessKind = COREWEBVIEW2_PROCESS_KIND
TWVProcessKind
Indicates the process type used in the ICoreWebView2ProcessInfo interface. Renamed COREWEBVIEW2_PROCESS_KIND type.
type TWVProxySettings ¶
type TWVProxySettings struct {
TObject
}
TWVProxySettings Parent: TObject
Class used by the TWVLoader.ProxySettigns property to configure a custom proxy server using the following command line switches: --no-proxy-server, --proxy-auto-detect, --proxy-bypass-list, --proxy-pac-url and --proxy-server. <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --no-proxy-server</a> <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --proxy-auto-detect</a> <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --proxy-bypass-list</a> <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --proxy-pac-url</a> <a href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --proxy-server</a>
func (*TWVProxySettings) AutoDetect ¶
func (m *TWVProxySettings) AutoDetect() bool
func (*TWVProxySettings) ByPassList ¶
func (m *TWVProxySettings) ByPassList() string
func (*TWVProxySettings) NoProxyServer ¶
func (m *TWVProxySettings) NoProxyServer() bool
func (*TWVProxySettings) PacUrl ¶
func (m *TWVProxySettings) PacUrl() string
func (*TWVProxySettings) Server ¶
func (m *TWVProxySettings) Server() string
func (*TWVProxySettings) SetAutoDetect ¶
func (m *TWVProxySettings) SetAutoDetect(AValue bool)
func (*TWVProxySettings) SetByPassList ¶
func (m *TWVProxySettings) SetByPassList(AValue string)
func (*TWVProxySettings) SetNoProxyServer ¶
func (m *TWVProxySettings) SetNoProxyServer(AValue bool)
func (*TWVProxySettings) SetPacUrl ¶
func (m *TWVProxySettings) SetPacUrl(AValue string)
func (*TWVProxySettings) SetServer ¶
func (m *TWVProxySettings) SetServer(AValue string)
type TWVScriptDialogKind ¶
type TWVScriptDialogKind = COREWEBVIEW2_SCRIPT_DIALOG_KIND
TWVScriptDialogKind
Specifies the JavaScript dialog type used in the ICoreWebView2ScriptDialogOpeningEventHandler interface. Renamed COREWEBVIEW2_SCRIPT_DIALOG_KIND type.
type TWVServerCertificateErrorAction ¶
type TWVServerCertificateErrorAction = COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION
TWVServerCertificateErrorAction
Specifies the action type when server certificate error is detected to be used in the ICoreWebView2ServerCertificateErrorDetectedEventArgs interface. Renamed COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION type.
type TWVSharedBufferAccess ¶
type TWVSharedBufferAccess = COREWEBVIEW2_SHARED_BUFFER_ACCESS
TWVSharedBufferAccess
Specifies the desired access from script to CoreWebView2SharedBuffer. Renamed COREWEBVIEW2_SHARED_BUFFER_ACCESS type.
type TWVTrackingPreventionLevel ¶
type TWVTrackingPreventionLevel = COREWEBVIEW2_TRACKING_PREVENTION_LEVEL
TWVTrackingPreventionLevel
Tracking prevention levels. Renamed COREWEBVIEW2_TRACKING_PREVENTION_LEVEL type.
type TWVWebErrorStatus ¶
type TWVWebErrorStatus = COREWEBVIEW2_WEB_ERROR_STATUS
TWVWebErrorStatus
Indicates the error status values for web navigations. Renamed COREWEBVIEW2_WEB_ERROR_STATUS type.
type TWVWebResourceContext ¶
type TWVWebResourceContext = COREWEBVIEW2_WEB_RESOURCE_CONTEXT
TWVWebResourceContext
Specifies the web resource request contexts. Renamed COREWEBVIEW2_WEB_RESOURCE_CONTEXT type.
type TWVWinControl ¶
type TWVWinControl struct { TWinControl // contains filtered or unexported fields }
TWVWinControl Parent: TWinControl
Parent control that will be used by TWVWindowParent in VCL and LCL applications to show the web contents.
func (*TWVWinControl) ChildWindowHandle ¶
func (m *TWVWinControl) ChildWindowHandle() THandle
func (*TWVWinControl) CreateHandle ¶
func (m *TWVWinControl) CreateHandle()
func (*TWVWinControl) DragCursor ¶
func (m *TWVWinControl) DragCursor() TCursor
func (*TWVWinControl) DragKind ¶
func (m *TWVWinControl) DragKind() TDragKind
func (*TWVWinControl) DragMode ¶
func (m *TWVWinControl) DragMode() TDragMode
func (*TWVWinControl) InvalidateChildren ¶
func (m *TWVWinControl) InvalidateChildren()
func (*TWVWinControl) SetDragCursor ¶
func (m *TWVWinControl) SetDragCursor(AValue TCursor)
func (*TWVWinControl) SetDragKind ¶
func (m *TWVWinControl) SetDragKind(AValue TDragKind)
func (*TWVWinControl) SetDragMode ¶
func (m *TWVWinControl) SetDragMode(AValue TDragMode)
func (*TWVWinControl) SetOnDragDrop ¶
func (m *TWVWinControl) SetOnDragDrop(fn TDragDropEvent)
func (*TWVWinControl) SetOnDragOver ¶
func (m *TWVWinControl) SetOnDragOver(fn TDragOverEvent)
func (*TWVWinControl) SetOnEndDrag ¶
func (m *TWVWinControl) SetOnEndDrag(fn TEndDragEvent)
func (*TWVWinControl) SetOnStartDrag ¶
func (m *TWVWinControl) SetOnStartDrag(fn TStartDragEvent)
func (*TWVWinControl) UpdateSize ¶
func (m *TWVWinControl) UpdateSize()
type TWVWindowParent ¶
type TWVWindowParent struct {
TWVWinControl
}
TWVWindowParent Parent: TWVWinControl
Parent control used by VCL and LCL applications to show the web contents.
func (*TWVWindowParent) Browser ¶
func (m *TWVWindowParent) Browser() IWVBrowserBase
func (*TWVWindowParent) SetBrowser ¶
func (m *TWVWindowParent) SetBrowser(AValue IWVBrowserBase)
type TWinControl ¶
type TWinControl = lcl.TWinControl
Source Files
¶
- as_component_class.go
- as_component_class_predef.go
- callback_def_events.go
- callback_event.go
- callback_posix.go
- com_activex_predef.go
- com_types_predef.go
- corewebview2.go
- corewebview2acceleratorkeypressedeventargs.go
- corewebview2basicauthenticationrequestedeventargs.go
- corewebview2basicauthenticationresponse.go
- corewebview2browserextension.go
- corewebview2browserextensionenablecompletedhandler.go
- corewebview2browserextensionlist.go
- corewebview2browserextensionremovecompletedhandler.go
- corewebview2browserprocessexitedeventargs.go
- corewebview2certificate.go
- corewebview2clearbrowsingdatacompletedhandler.go
- corewebview2clientcertificate.go
- corewebview2clientcertificatecollection.go
- corewebview2clientcertificaterequestedeventargs.go
- corewebview2compositioncontroller.go
- corewebview2contentloadingeventargs.go
- corewebview2contextmenuitem.go
- corewebview2contextmenuitemcollection.go
- corewebview2contextmenurequestedeventargs.go
- corewebview2contextmenutarget.go
- corewebview2controller.go
- corewebview2controlleroptions.go
- corewebview2cookie.go
- corewebview2cookielist.go
- corewebview2cookiemanager.go
- corewebview2customitemselectedeventhandler.go
- corewebview2deferral.go
- corewebview2devtoolsprotocoleventreceivedeventargs.go
- corewebview2domcontentloadedeventargs.go
- corewebview2downloadoperation.go
- corewebview2downloadstartingeventargs.go
- corewebview2environment.go
- corewebview2executescriptresult.go
- corewebview2frame.go
- corewebview2framecreatedeventargs.go
- corewebview2frameinfo.go
- corewebview2frameinfocollection.go
- corewebview2frameinfocollectioniterator.go
- corewebview2getcookiescompletedhandler.go
- corewebview2getnondefaultpermissionsettingscompletedhandler.go
- corewebview2httpheaderscollectioniterator.go
- corewebview2httprequestheaders.go
- corewebview2httpresponseheaders.go
- corewebview2launchingexternalurischemeeventargs.go
- corewebview2movefocusrequestedeventargs.go
- corewebview2navigationcompletedeventargs.go
- corewebview2navigationstartingeventargs.go
- corewebview2newwindowrequestedeventargs.go
- corewebview2objectcollectionview.go
- corewebview2permissionrequestedeventargs.go
- corewebview2permissionsetting.go
- corewebview2permissionsettingcollectionview.go
- corewebview2pointerinfo.go
- corewebview2printcompletedhandler.go
- corewebview2printsettings.go
- corewebview2printtopdfcompletedhandler.go
- corewebview2printtopdfstreamcompletedhandler.go
- corewebview2processextendedinfo.go
- corewebview2processextendedinfocollection.go
- corewebview2processfailedeventargs.go
- corewebview2processinfo.go
- corewebview2processinfocollection.go
- corewebview2profile.go
- corewebview2profileaddbrowserextensioncompletedhandler.go
- corewebview2profilegetbrowserextensionscompletedhandler.go
- corewebview2scriptdialogopeningeventargs.go
- corewebview2scriptexception.go
- corewebview2servercertificateerrordetectedeventargs.go
- corewebview2setpermissionstatecompletedhandler.go
- corewebview2settings.go
- corewebview2sharedbuffer.go
- corewebview2sourcechangedeventargs.go
- corewebview2stringcollection.go
- corewebview2trysuspendcompletedhandler.go
- corewebview2webmessagereceivedeventargs.go
- corewebview2webresourcerequestedeventargs.go
- corewebview2webresourcerequestref.go
- corewebview2webresourceresponse.go
- corewebview2webresourceresponsereceivedeventargs.go
- corewebview2webresourceresponseview.go
- corewebview2webresourceresponseviewgetcontentcompletedhandler.go
- corewebview2windowfeatures.go
- iwvbrowserevents.go
- wv.go
- wv_constant.go
- wv_predef_corewebview2.go
- wv_predef_corewebview2frame.go
- wv_predef_wvbrowserbase.go
- wv_predef_wvloader.go
- wvbrowser.go
- wvbrowserbase.go
- wvloader.go
- wvproxysettings.go
- wvwincontrol.go
- wvwindowparent.go