edge

package
v0.0.0-...-7da4488 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY = iota
	COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_ALLOW
	COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY_CORS
)
View Source
const (
	COREWEBVIEW2_KEY_EVENT_KIND_KEY_DOWN        = 0
	COREWEBVIEW2_KEY_EVENT_KIND_KEY_UP          = 1
	COREWEBVIEW2_KEY_EVENT_KIND_SYSTEM_KEY_DOWN = 2
	COREWEBVIEW2_KEY_EVENT_KIND_SYSTEM_KEY_UP   = 3
)
View Source
const (
	COREWEBVIEW2_MOVE_FOCUS_REASON_PROGRAMMATIC = 0
	COREWEBVIEW2_MOVE_FOCUS_REASON_NEXT         = 1
	COREWEBVIEW2_MOVE_FOCUS_REASON_PREVIOUS     = 2
)
View Source
const (
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_ALL                  = 0
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_DOCUMENT             = 1
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_STYLESHEET           = 2
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_IMAGE                = 3
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_MEDIA                = 4
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_FONT                 = 5
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_SCRIPT               = 6
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_XML_HTTP_REQUEST     = 7
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_FETCH                = 8
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_TEXT_TRACK           = 9
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_EVENT_SOURCE         = 10
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_WEBSOCKET            = 11
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_MANIFEST             = 12
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_SIGNED_EXCHANGE      = 13
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_PING                 = 14
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_CSP_VIOLATION_REPORT = 15
	COREWEBVIEW2_WEB_RESOURCE_CONTEXT_OTHER                = 16
)

Variables

This section is empty.

Functions

func IsEqualGUID

func IsEqualGUID(guid1 *GUID, guid2 *GUID) bool

IsEqualGUID compares two GUID.

Not constant time comparison.

Types

type COREWEBVIEW2_COLOR

type COREWEBVIEW2_COLOR struct {
	A uint8
	R uint8
	G uint8
	B uint8
}

type COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND

type COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND uint32

type COREWEBVIEW2_KEY_EVENT_KIND

type COREWEBVIEW2_KEY_EVENT_KIND uint32

type COREWEBVIEW2_MOVE_FOCUS_REASON

type COREWEBVIEW2_MOVE_FOCUS_REASON uint32

type COREWEBVIEW2_PHYSICAL_KEY_STATUS

type COREWEBVIEW2_PHYSICAL_KEY_STATUS struct {
	RepeatCount   uint32
	ScanCode      uint32
	IsExtendedKey bool
	IsMenuKeyDown bool
	WasKeyDown    bool
	IsKeyReleased bool
}

type COREWEBVIEW2_WEB_RESOURCE_CONTEXT

type COREWEBVIEW2_WEB_RESOURCE_CONTEXT uint32

type ComProc

type ComProc uintptr

ComProc stores a COM procedure.

func NewComProc

func NewComProc(fn interface{}) ComProc

NewComProc creates a new COM proc from a Go function.

func (ComProc) Call

func (p ComProc) Call(a ...uintptr) (r1, r2 uintptr, lastErr error)

Call calls a COM procedure.

type GUID

type GUID struct {
	Data1 uint32
	Data2 uint16
	Data3 uint16
	Data4 [8]byte
}

GUID is Windows API specific GUID type.

This exists to match Windows GUID type for direct passing for COM. Format is in xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx.

func NewGUID

func NewGUID(guid string) *GUID

NewGUID converts the given string into a globally unique identifier that is compliant with the Windows API.

The supplied string may be in any of these formats:

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}

The conversion of the supplied string is not case-sensitive.

func (*GUID) String

func (guid *GUID) String() string

String converts the GUID to string form. It will adhere to this pattern:

{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}

If the GUID is nil, the string representation of an empty GUID is returned:

{00000000-0000-0000-0000-000000000000}

type ICoreWebView2AcceleratorKeyPressedEventArgs

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

func (*ICoreWebView2AcceleratorKeyPressedEventArgs) AddRef

func (*ICoreWebView2AcceleratorKeyPressedEventArgs) GetKeyEventKind

func (*ICoreWebView2AcceleratorKeyPressedEventArgs) GetPhysicalKeyStatus

func (*ICoreWebView2AcceleratorKeyPressedEventArgs) GetVirtualKey

func (*ICoreWebView2AcceleratorKeyPressedEventArgs) PutHandled

type ICoreWebView2AcceleratorKeyPressedEventHandler

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

func (*ICoreWebView2AcceleratorKeyPressedEventHandler) AddRef

type ICoreWebView2Controller

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

func (*ICoreWebView2Controller) AddAcceleratorKeyPressed

func (i *ICoreWebView2Controller) AddAcceleratorKeyPressed(eventHandler *ICoreWebView2AcceleratorKeyPressedEventHandler, token *_EventRegistrationToken) error

func (*ICoreWebView2Controller) AddRef

func (i *ICoreWebView2Controller) AddRef() uintptr

func (*ICoreWebView2Controller) GetBounds

func (i *ICoreWebView2Controller) GetBounds() (*w32.Rect, error)

func (*ICoreWebView2Controller) GetICoreWebView2Controller2

func (i *ICoreWebView2Controller) GetICoreWebView2Controller2() *ICoreWebView2Controller2

func (*ICoreWebView2Controller) MoveFocus

func (i *ICoreWebView2Controller) MoveFocus(reason uintptr) error

func (*ICoreWebView2Controller) NotifyParentWindowPositionChanged

func (i *ICoreWebView2Controller) NotifyParentWindowPositionChanged() error

func (*ICoreWebView2Controller) PutBounds

func (i *ICoreWebView2Controller) PutBounds(bounds w32.Rect) error

func (*ICoreWebView2Controller) PutIsVisible

func (i *ICoreWebView2Controller) PutIsVisible(isVisible bool) error

type ICoreWebView2Controller2

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

func (*ICoreWebView2Controller2) AddRef

func (i *ICoreWebView2Controller2) AddRef() uintptr

func (*ICoreWebView2Controller2) GetDefaultBackgroundColor

func (i *ICoreWebView2Controller2) GetDefaultBackgroundColor() (*COREWEBVIEW2_COLOR, error)

func (*ICoreWebView2Controller2) PutDefaultBackgroundColor

func (i *ICoreWebView2Controller2) PutDefaultBackgroundColor(backgroundColor COREWEBVIEW2_COLOR) error

type ICoreWebView2NavigationCompletedEventArgs

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

func (*ICoreWebView2NavigationCompletedEventArgs) AddRef

type ICoreWebView2NavigationCompletedEventHandler

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

type ICoreWebView2Settings

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

func (*ICoreWebView2Settings) AddRef

func (i *ICoreWebView2Settings) AddRef() uintptr

func (*ICoreWebView2Settings) GetAreDefaultContextMenusEnabled

func (i *ICoreWebView2Settings) GetAreDefaultContextMenusEnabled() (bool, error)

func (*ICoreWebView2Settings) GetAreDefaultScriptDialogsEnabled

func (i *ICoreWebView2Settings) GetAreDefaultScriptDialogsEnabled() (bool, error)

func (*ICoreWebView2Settings) GetAreDevToolsEnabled

func (i *ICoreWebView2Settings) GetAreDevToolsEnabled() (bool, error)

func (*ICoreWebView2Settings) GetAreHostObjectsAllowed

func (i *ICoreWebView2Settings) GetAreHostObjectsAllowed() (bool, error)

func (*ICoreWebView2Settings) GetIsBuiltInErrorPageEnabled

func (i *ICoreWebView2Settings) GetIsBuiltInErrorPageEnabled() (bool, error)

func (*ICoreWebView2Settings) GetIsScriptEnabled

func (i *ICoreWebView2Settings) GetIsScriptEnabled() (bool, error)

func (*ICoreWebView2Settings) GetIsStatusBarEnabled

func (i *ICoreWebView2Settings) GetIsStatusBarEnabled() (bool, error)

func (*ICoreWebView2Settings) GetIsWebMessageEnabled

func (i *ICoreWebView2Settings) GetIsWebMessageEnabled() (bool, error)

func (*ICoreWebView2Settings) GetIsZoomControlEnabled

func (i *ICoreWebView2Settings) GetIsZoomControlEnabled() (bool, error)

func (*ICoreWebView2Settings) PutAreDefaultContextMenusEnabled

func (i *ICoreWebView2Settings) PutAreDefaultContextMenusEnabled(enabled bool) error

func (*ICoreWebView2Settings) PutAreDefaultScriptDialogsEnabled

func (i *ICoreWebView2Settings) PutAreDefaultScriptDialogsEnabled(areDefaultScriptDialogsEnabled bool) error

func (*ICoreWebView2Settings) PutAreDevToolsEnabled

func (i *ICoreWebView2Settings) PutAreDevToolsEnabled(areDevToolsEnabled bool) error

func (*ICoreWebView2Settings) PutAreHostObjectsAllowed

func (i *ICoreWebView2Settings) PutAreHostObjectsAllowed(allowed bool) error

func (*ICoreWebView2Settings) PutIsBuiltInErrorPageEnabled

func (i *ICoreWebView2Settings) PutIsBuiltInErrorPageEnabled(enabled bool) error

func (*ICoreWebView2Settings) PutIsScriptEnabled

func (i *ICoreWebView2Settings) PutIsScriptEnabled(isScriptEnabled bool) error

func (*ICoreWebView2Settings) PutIsStatusBarEnabled

func (i *ICoreWebView2Settings) PutIsStatusBarEnabled(isStatusBarEnabled bool) error

func (*ICoreWebView2Settings) PutIsWebMessageEnabled

func (i *ICoreWebView2Settings) PutIsWebMessageEnabled(isWebMessageEnabled bool) error

func (*ICoreWebView2Settings) PutIsZoomControlEnabled

func (i *ICoreWebView2Settings) PutIsZoomControlEnabled(enabled bool) error

type ICoreWebView2WebResourceRequest

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

func (*ICoreWebView2WebResourceRequest) AddRef

func (*ICoreWebView2WebResourceRequest) GetUri

type ICoreWebView2WebResourceRequestedEventArgs

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

func (*ICoreWebView2WebResourceRequestedEventArgs) AddRef

func (*ICoreWebView2WebResourceRequestedEventArgs) GetRequest

func (*ICoreWebView2WebResourceRequestedEventArgs) PutResponse

type ICoreWebView2WebResourceResponse

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

func (*ICoreWebView2WebResourceResponse) AddRef

type ICoreWebView2_2

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

func (*ICoreWebView2_2) AddRef

func (i *ICoreWebView2_2) AddRef() uintptr

type ICoreWebView2_3

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

func (*ICoreWebView2_3) SetVirtualHostNameToFolderMapping

func (i *ICoreWebView2_3) SetVirtualHostNameToFolderMapping(hostName, folderPath string, accessKind COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND) error

type ICoreWebViewSettings

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

func (*ICoreWebViewSettings) AddRef

func (i *ICoreWebViewSettings) AddRef() uintptr

func (*ICoreWebViewSettings) GetAreBrowserAcceleratorKeysEnabled

func (i *ICoreWebViewSettings) GetAreBrowserAcceleratorKeysEnabled() (bool, error)

func (*ICoreWebViewSettings) GetAreDefaultContextMenusEnabled

func (i *ICoreWebViewSettings) GetAreDefaultContextMenusEnabled() (bool, error)

func (*ICoreWebViewSettings) GetAreDefaultScriptDialogsEnabled

func (i *ICoreWebViewSettings) GetAreDefaultScriptDialogsEnabled() (bool, error)

func (*ICoreWebViewSettings) GetAreDevToolsEnabled

func (i *ICoreWebViewSettings) GetAreDevToolsEnabled() (bool, error)

func (*ICoreWebViewSettings) GetAreHostObjectsAllowed

func (i *ICoreWebViewSettings) GetAreHostObjectsAllowed() (bool, error)

func (*ICoreWebViewSettings) GetIsBuiltInErrorPageEnabled

func (i *ICoreWebViewSettings) GetIsBuiltInErrorPageEnabled() (bool, error)

func (*ICoreWebViewSettings) GetIsPinchZoomEnabled

func (i *ICoreWebViewSettings) GetIsPinchZoomEnabled() (bool, error)

func (*ICoreWebViewSettings) GetIsScriptEnabled

func (i *ICoreWebViewSettings) GetIsScriptEnabled() (bool, error)

func (*ICoreWebViewSettings) GetIsStatusBarEnabled

func (i *ICoreWebViewSettings) GetIsStatusBarEnabled() (bool, error)

func (*ICoreWebViewSettings) GetIsSwipeNavigationEnabled

func (i *ICoreWebViewSettings) GetIsSwipeNavigationEnabled() (bool, error)

func (*ICoreWebViewSettings) GetIsWebMessageEnabled

func (i *ICoreWebViewSettings) GetIsWebMessageEnabled() (bool, error)

func (*ICoreWebViewSettings) GetIsZoomControlEnabled

func (i *ICoreWebViewSettings) GetIsZoomControlEnabled() (bool, error)

func (*ICoreWebViewSettings) GetUserAgent

func (i *ICoreWebViewSettings) GetUserAgent() (string, error)

func (*ICoreWebViewSettings) PutAreBrowserAcceleratorKeysEnabled

func (i *ICoreWebViewSettings) PutAreBrowserAcceleratorKeysEnabled(enabled bool) error

func (*ICoreWebViewSettings) PutAreDefaultContextMenusEnabled

func (i *ICoreWebViewSettings) PutAreDefaultContextMenusEnabled(enabled bool) error

func (*ICoreWebViewSettings) PutAreDefaultScriptDialogsEnabled

func (i *ICoreWebViewSettings) PutAreDefaultScriptDialogsEnabled(areDefaultScriptDialogsEnabled bool) error

func (*ICoreWebViewSettings) PutAreDevToolsEnabled

func (i *ICoreWebViewSettings) PutAreDevToolsEnabled(areDevToolsEnabled bool) error

func (*ICoreWebViewSettings) PutAreHostObjectsAllowed

func (i *ICoreWebViewSettings) PutAreHostObjectsAllowed(allowed bool) error

func (*ICoreWebViewSettings) PutIsBuiltInErrorPageEnabled

func (i *ICoreWebViewSettings) PutIsBuiltInErrorPageEnabled(enabled bool) error

func (*ICoreWebViewSettings) PutIsPinchZoomEnabled

func (i *ICoreWebViewSettings) PutIsPinchZoomEnabled(enabled bool) error

func (*ICoreWebViewSettings) PutIsScriptEnabled

func (i *ICoreWebViewSettings) PutIsScriptEnabled(isScriptEnabled bool) error

func (*ICoreWebViewSettings) PutIsStatusBarEnabled

func (i *ICoreWebViewSettings) PutIsStatusBarEnabled(isStatusBarEnabled bool) error

func (*ICoreWebViewSettings) PutIsSwipeNavigationEnabled

func (i *ICoreWebViewSettings) PutIsSwipeNavigationEnabled(enabled bool) error

func (*ICoreWebViewSettings) PutIsWebMessageEnabled

func (i *ICoreWebViewSettings) PutIsWebMessageEnabled(isWebMessageEnabled bool) error

func (*ICoreWebViewSettings) PutIsZoomControlEnabled

func (i *ICoreWebViewSettings) PutIsZoomControlEnabled(enabled bool) error

func (*ICoreWebViewSettings) PutUserAgent

func (i *ICoreWebViewSettings) PutUserAgent(userAgent string) error

Jump to

Keyboard shortcuts

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