edge

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScreenCapture       = Capability("131.0.2903.40") // Screen capture support
	NonClientRegion     = Capability("131.0.2903.40") // Non-client region customization
	DownloadDialog      = Capability("131.0.2903.40") // Download dialog handling
	BrowserExtension    = Capability("131.0.2903.40") // Browser extension support
	BasicAuthentication = Capability("131.0.2903.40") // Basic authentication handling
	SaveFileDialog      = Capability("131.0.2903.40") // Save file dialog support
)

WebView2 Runtime Version 131.0.2903.40 (Released: September 2023)

View Source
const (
	AllowExternalDrop       = Capability("100.0.1185.39") // External drop support
	GeneralAutofillEnabled  = Capability("100.0.1185.39") // General autofill features
	PasswordAutosaveEnabled = Capability("100.0.1185.39") // Password autosave support
)

WebView2 Runtime Version 100.0.1185.39 (Released: April 2022)

View Source
const (
	CustomScheme      = Capability("98.0.1108.43") // Custom scheme support
	PrintToPdf        = Capability("98.0.1108.43") // Print to PDF functionality
	SharedBuffer      = Capability("98.0.1108.43") // Shared buffer for performance
	ServerCertificate = Capability("98.0.1108.43") // Server certificate handling
	FrameNavigation   = Capability("98.0.1108.43") // Frame navigation events
)

WebView2 Runtime Version 98.0.1108.43 (Released: February 2022)

View Source
const (
	ClientCertificate = Capability("97.0.1072.69") // Client certificate selection
	ContextMenus      = Capability("97.0.1072.69") // Custom context menus
	BackgroundColor   = Capability("97.0.1072.69") // Background color customization
	ScriptEnabled     = Capability("97.0.1072.69") // JavaScript execution control
	StatusBar         = Capability("97.0.1072.69") // Status bar customization
)

WebView2 Runtime Version 97.0.1072.69 (Released: January 2022)

View Source
const (
	WebMessageReceived   = Capability("95.0.1020.44") // Web message handling
	NewWindowRequested   = Capability("95.0.1020.44") // New window request handling
	DocumentTitleChanged = Capability("95.0.1020.44") // Document title change events
	ContainsFullScreen   = Capability("95.0.1020.44") // Fullscreen mode detection
	WebResourceRequested = Capability("95.0.1020.44") // Web resource request handling
)

WebView2 Runtime Version 95.0.1020.44 (Released: October 2021)

View Source
const (
	NavigationStarting      = Capability("94.0.992.31") // Navigation start events
	NavigationCompleted     = Capability("94.0.992.31") // Navigation completion events
	FrameNavigationStarting = Capability("94.0.992.31") // Frame navigation start
	SourceChanged           = Capability("94.0.992.31") // Source change detection
	HistoryChanged          = Capability("94.0.992.31") // Browser history changes
	SwipeNavigation         = Capability("94.0.992.31") // Swipe navigation support
)

WebView2 Runtime Version 94.0.992.31 (Released: September 2021)

View Source
const (
	DOMContentLoaded    = Capability("93.0.961.52") // DOM content loaded events
	WebResourceLoaded   = Capability("93.0.961.52") // Resource load events
	ScriptDialogOpening = Capability("93.0.961.52") // Script dialog handling
	PermissionRequested = Capability("93.0.961.52") // Permission request handling
	ProcessFailed       = Capability("93.0.961.52") // Process failure detection
)

WebView2 Runtime Version 93.0.961.52 (Released: August 2021)

View Source
const (
	AcceleratorKeyPressed = Capability("92.0.902.78") // Accelerator key handling
	ZoomFactorChanged     = Capability("92.0.902.78") // Zoom factor change events
	MoveFocusRequested    = Capability("92.0.902.78") // Focus movement handling
	DevToolsProtocol      = Capability("92.0.902.78") // DevTools protocol support
	BrowserProcessExited  = Capability("92.0.902.78") // Browser process exit handling
)

WebView2 Runtime Version 92.0.902.78 (Released: July 2021)

View Source
const (
	DefaultDownloadDialog    = Capability("91.0.864.41") // Default download dialog
	DefaultContextMenus      = Capability("91.0.864.41") // Default context menus
	FaviconChanged           = Capability("91.0.864.41") // Favicon change events
	WindowCloseRequested     = Capability("91.0.864.41") // Window close request handling
	RasterizationScale       = Capability("91.0.864.41") // Display scaling support
	SecurityUpdated          = Capability("91.0.864.41") // Security state updates
	ProcessInfoReceived      = Capability("91.0.864.41") // Process info events
	FramePermissionRequested = Capability("91.0.864.41") // Frame permission requests
	ClearBrowsingData        = Capability("91.0.864.41") // Clear browsing data support
	IsMutedChanged           = Capability("91.0.864.41") // Audio mute state changes
)

WebView2 Runtime Version 91.0.864.41 (Released: June 2021)

View Source
const (
	WebResourceResponseReceived = Capability("90.0.818.41") // Web resource response handling
	DOMContentLoaded90          = Capability("90.0.818.41") // DOM content loaded events (v90)
	WebResourceRequested90      = Capability("90.0.818.41") // Web resource requests (v90)
	NewWindowWithOptions        = Capability("90.0.818.41") // New window with options
	CookieManagement            = Capability("90.0.818.41") // Cookie management support
)

WebView2 Runtime Version 90.0.818.41 (Released: May 2021)

View Source
const (
	IsBuiltInErrorPageEnabled        = Capability("89.0.774.75") // Built-in error page support
	WebResourceResponse              = Capability("89.0.774.75") // Web resource response handling
	ScriptToExecuteOnDocumentCreated = Capability("89.0.774.75") // Document creation scripts
	EnvironmentOptions               = Capability("89.0.774.75") // Environment options support
	FrameNavigation89                = Capability("89.0.774.75") // Frame navigation (v89)
)

WebView2 Runtime Version 89.0.774.75 (Released: April 2021)

View Source
const (
	WebResourceRequested88 = Capability("88.0.705.74") // Web resource requests (v88)
	PermissionRequested88  = Capability("88.0.705.74") // Permission requests (v88)
	ProcessFailed88        = Capability("88.0.705.74") // Process failure handling (v88)
	AddHostObjectToScript  = Capability("88.0.705.74") // Host object scripting
	IsMuted                = Capability("88.0.705.74") // Audio mute state
)

WebView2 Runtime Version 88.0.705.74 (Released: March 2021)

View Source
const (
	WebMessageReceived87       = Capability("87.0.664.75") // Web message handling (v87)
	CallDevToolsProtocolMethod = Capability("87.0.664.75") // DevTools protocol method calls
	NewWindow87                = Capability("87.0.664.75") // New window creation (v87)
	DocumentTitleChanged87     = Capability("87.0.664.75") // Document title changes (v87)
	IsSuspended                = Capability("87.0.664.75") // Suspension state
)

WebView2 Runtime Version 87.0.664.75 (Released: February 2021)

View Source
const (
	NavigationStarting86      = Capability("86.0.622.58") // Navigation start events (v86)
	NavigationCompleted86     = Capability("86.0.622.58") // Navigation completion (v86)
	FrameNavigationStarting86 = Capability("86.0.622.58") // Frame navigation start (v86)
	BasicWebView              = Capability("86.0.622.58") // Basic WebView2 functionality
	WindowBounds              = Capability("86.0.622.58") // Window bounds control
)

WebView2 Runtime Version 86.0.622.58 (Released: January 2021)

View Source
const (
	WebView2Environment  = Capability("85.0.564.70") // WebView2 environment
	WebView2Controller   = Capability("85.0.564.70") // WebView2 controller
	BasicSettings        = Capability("85.0.564.70") // Basic settings support
	UserDataFolder       = Capability("85.0.564.70") // User data folder
	BrowserVersionString = Capability("85.0.564.70") // Browser version info
)

WebView2 Runtime Version 85.0.564.70 (Released: December 2020)

View Source
const (
	GetAdditionalObjects = Capability("113.0.1774.30") // Additional objects support
)

WebView2 Runtime Version 113.0.1774.30 (Released: Unknown)

Variables

View Source
var UnsupportedCapabilityError = &unsupportedCapabilityError{}

Functions

func HasCapability added in v1.0.18

func HasCapability(webview2RuntimeVersion string, capability Capability) bool

Types

type Capability

type Capability string

type ICoreWebView2Cookie added in v1.0.18

type ICoreWebView2Cookie struct {
	// contains filtered or unexported fields
}

ICoreWebView2Cookie represents a cookie

func (*ICoreWebView2Cookie) AddRef added in v1.0.18

func (i *ICoreWebView2Cookie) AddRef() uintptr

Addref increments refernce count of the ICoreWebView2Cookie interface

func (*ICoreWebView2Cookie) GetDomain added in v1.0.18

func (i *ICoreWebView2Cookie) GetDomain() (string, error)

GetDomain gets the cookie domain

func (*ICoreWebView2Cookie) GetExpires added in v1.0.18

func (i *ICoreWebView2Cookie) GetExpires() (float64, error)

GetExpires gets the cookie expiration time

func (*ICoreWebView2Cookie) GetIsHttpOnly added in v1.0.18

func (i *ICoreWebView2Cookie) GetIsHttpOnly() (bool, error)

GetIsHttpOnly gets whether the cookie is HTTP-only

func (*ICoreWebView2Cookie) GetIsSecure added in v1.0.18

func (i *ICoreWebView2Cookie) GetIsSecure() (bool, error)

GetIsSecure gets whether the cookie is secure

func (*ICoreWebView2Cookie) GetName added in v1.0.18

func (i *ICoreWebView2Cookie) GetName() (string, error)

GetName gets the cookie name

func (*ICoreWebView2Cookie) GetPath added in v1.0.18

func (i *ICoreWebView2Cookie) GetPath() (string, error)

GetPath gets the cookie path

func (*ICoreWebView2Cookie) GetSameSite added in v1.0.18

func (i *ICoreWebView2Cookie) GetSameSite() (int32, error)

GetSameSite gets the cookie's SameSite attribute

func (*ICoreWebView2Cookie) GetValue added in v1.0.18

func (i *ICoreWebView2Cookie) GetValue() (string, error)

GetValue gets the cookie value

func (*ICoreWebView2Cookie) PutExpires added in v1.0.18

func (i *ICoreWebView2Cookie) PutExpires(expires float64) error

PutExpires sets the cookie expiration time

func (*ICoreWebView2Cookie) PutIsHttpOnly added in v1.0.18

func (i *ICoreWebView2Cookie) PutIsHttpOnly(isHttpOnly bool) error

PutIsHttpOnly sets whether the cookie is HTTP-only

func (*ICoreWebView2Cookie) PutIsSecure added in v1.0.18

func (i *ICoreWebView2Cookie) PutIsSecure(isSecure bool) error

PutIsSecure sets whether the cookie is secure

func (*ICoreWebView2Cookie) PutSameSite added in v1.0.18

func (i *ICoreWebView2Cookie) PutSameSite(sameSite int32) error

PutSameSite sets the cookie's SameSite attribute

func (*ICoreWebView2Cookie) PutValue added in v1.0.18

func (i *ICoreWebView2Cookie) PutValue(value string) error

PutValue sets the cookie value

func (*ICoreWebView2Cookie) QueryInterface added in v1.0.18

func (i *ICoreWebView2Cookie) QueryInterface(riid *windows.GUID, ppvObject *unsafe.Pointer) error

QueryInterface queries for a specific interface

func (*ICoreWebView2Cookie) Release added in v1.0.18

func (i *ICoreWebView2Cookie) Release() uintptr

Release decrements reference count of the ICoreWebView2Cookie interface

type ICoreWebView2CookieList added in v1.0.18

type ICoreWebView2CookieList struct {
	// contains filtered or unexported fields
}

ICoreWebView2CookieList represents a list of cookies

func (*ICoreWebView2CookieList) AddRef added in v1.0.19

func (i *ICoreWebView2CookieList) AddRef() uint32

AddRef increments reference count of the ICoreWebView2CookieList interface

func (*ICoreWebView2CookieList) GetCount added in v1.0.18

func (i *ICoreWebView2CookieList) GetCount() (uint32, error)

GetCount gets the number of cookies in the list

func (*ICoreWebView2CookieList) GetItem added in v1.0.18

GetItem gets the cookie at the specified index

func (*ICoreWebView2CookieList) Release added in v1.0.18

func (i *ICoreWebView2CookieList) Release() uint32

Release decrements reference count of the ICoreWebView2CookieList interface

type ICoreWebView2CookieManager added in v1.0.18

type ICoreWebView2CookieManager struct {
	// contains filtered or unexported fields
}

ICoreWebView2CookieManager represents the cookie manager interface

func (*ICoreWebView2CookieManager) AddOrUpdateCookie added in v1.0.18

func (i *ICoreWebView2CookieManager) AddOrUpdateCookie(cookie *ICoreWebView2Cookie) error

AddOrUpdateCookie adds or updates a cookie

func (*ICoreWebView2CookieManager) AddRef added in v1.0.19

func (i *ICoreWebView2CookieManager) AddRef() uint32

AddRef increments the reference count of ICoreWebView2CookieManager interface

func (*ICoreWebView2CookieManager) CopyCookie added in v1.0.18

CopyCookie creates a copy of the given cookie

func (*ICoreWebView2CookieManager) CreateCookie added in v1.0.18

func (i *ICoreWebView2CookieManager) CreateCookie(name, value, domain, path string) (*ICoreWebView2Cookie, error)

CreateCookie creates a new cookie with the given parameters

func (*ICoreWebView2CookieManager) DeleteAllCookies added in v1.0.18

func (i *ICoreWebView2CookieManager) DeleteAllCookies() error

DeleteAllCookies deletes all cookies

func (*ICoreWebView2CookieManager) DeleteCookie added in v1.0.18

func (i *ICoreWebView2CookieManager) DeleteCookie(cookie *ICoreWebView2Cookie) error

DeleteCookie deletes a specific cookie

func (*ICoreWebView2CookieManager) DeleteCookies added in v1.0.18

func (i *ICoreWebView2CookieManager) DeleteCookies(name, uri string) error

DeleteCookies deletes all cookies with matching name and uri

func (*ICoreWebView2CookieManager) DeleteCookiesWithDomainAndPath added in v1.0.18

func (i *ICoreWebView2CookieManager) DeleteCookiesWithDomainAndPath(domain, path string) error

DeleteCookiesWithDomainAndPath deletes all cookies matching the domain and path

func (*ICoreWebView2CookieManager) GetCookies added in v1.0.18

GetCookies gets all cookies matching the URI

func (*ICoreWebView2CookieManager) Release added in v1.0.18

func (i *ICoreWebView2CookieManager) Release() uint32

Release decrements the reference count of ICoreWebView2CookieManager interface

Jump to

Keyboard shortcuts

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