edge

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT, MIT Imports: 15 Imported by: 0

Documentation

Rendered for windows/amd64

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 (
	// 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.
	COREWEBVIEW2_PROCESS_FAILED_KIND_BROWSER_PROCESS_EXITED = 0

	// Indicates that the main frame's render process ended unexpectedly.  A new
	// render process is created automatically and navigated to an error page.
	// You can use the `Reload` method to try to reload the page that failed.
	COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_EXITED = 1

	// Indicates that the main frame's render process is unresponsive.
	//
	// Note that this does not seem to work right now.
	// Does not fire for simple long running script case, the only related test
	// SitePerProcessBrowserTest::NoCommitTimeoutForInvisibleWebContents is
	// disabled.
	COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_UNRESPONSIVE = 2

	// 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.
	COREWEBVIEW2_PROCESS_FAILED_KIND_FRAME_RENDER_PROCESS_EXITED = 3

	// Indicates that a utility process ended unexpectedly.
	COREWEBVIEW2_PROCESS_FAILED_KIND_UTILITY_PROCESS_EXITED = 4

	// Indicates that a sandbox helper process ended unexpectedly.
	COREWEBVIEW2_PROCESS_FAILED_KIND_SANDBOX_HELPER_PROCESS_EXITED = 5

	// Indicates that the GPU process ended unexpectedly.
	COREWEBVIEW2_PROCESS_FAILED_KIND_GPU_PROCESS_EXITED = 6

	// Indicates that a PPAPI plugin process ended unexpectedly.
	COREWEBVIEW2_PROCESS_FAILED_KIND_PPAPI_PLUGIN_PROCESS_EXITED = 7

	// Indicates that a PPAPI plugin broker process ended unexpectedly.
	COREWEBVIEW2_PROCESS_FAILED_KIND_PPAPI_BROKER_PROCESS_EXITED = 8

	// Indicates that a process of unspecified kind ended unexpectedly.
	COREWEBVIEW2_PROCESS_FAILED_KIND_UNKNOWN_PROCESS_EXITED = 9
)
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
)
View Source
const (
	ERROR_ELEMENT_NOT_FOUND syscall.Errno = 0x80070490
)

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_PROCESS_FAILED_KIND added in v2.5.0

type COREWEBVIEW2_PROCESS_FAILED_KIND uint32

type COREWEBVIEW2_WEB_RESOURCE_CONTEXT

type COREWEBVIEW2_WEB_RESOURCE_CONTEXT uint32

type Chromium

type Chromium struct {

	// Settings
	Debug                 bool
	DataPath              string
	BrowserPath           string
	AdditionalBrowserArgs []string

	// Callbacks
	MessageCallback              func(string)
	WebResourceRequestedCallback func(request *ICoreWebView2WebResourceRequest, args *ICoreWebView2WebResourceRequestedEventArgs)
	NavigationCompletedCallback  func(sender *ICoreWebView2, args *ICoreWebView2NavigationCompletedEventArgs)
	ProcessFailedCallback        func(sender *ICoreWebView2, args *ICoreWebView2ProcessFailedEventArgs)
	AcceleratorKeyCallback       func(uint) bool
	// contains filtered or unexported fields
}

func NewChromium

func NewChromium() *Chromium

func (*Chromium) AcceleratorKeyPressed

AcceleratorKeyPressed is called when an accelerator key is pressed. If the AcceleratorKeyCallback method has been set, it will defer handling of the keypress to the callback. That callback returns a bool indicating if the event was handled.

func (*Chromium) AddRef

func (e *Chromium) AddRef() uintptr

func (*Chromium) AddWebResourceRequestedFilter

func (e *Chromium) AddWebResourceRequestedFilter(filter string, ctx COREWEBVIEW2_WEB_RESOURCE_CONTEXT)

func (*Chromium) CreateCoreWebView2ControllerCompleted

func (e *Chromium) CreateCoreWebView2ControllerCompleted(res uintptr, controller *ICoreWebView2Controller) uintptr

func (*Chromium) Embed

func (e *Chromium) Embed(hwnd uintptr) bool

func (*Chromium) Environment

func (e *Chromium) Environment() *ICoreWebView2Environment

func (*Chromium) EnvironmentCompleted

func (e *Chromium) EnvironmentCompleted(res uintptr, env *ICoreWebView2Environment) uintptr

func (*Chromium) Eval

func (e *Chromium) Eval(script string)

func (*Chromium) Focus

func (e *Chromium) Focus()

func (*Chromium) GetController

func (e *Chromium) GetController() *ICoreWebView2Controller

func (*Chromium) GetICoreWebView2_3

func (e *Chromium) GetICoreWebView2_3() *ICoreWebView2_3

func (*Chromium) GetSettings

func (e *Chromium) GetSettings() (*ICoreWebViewSettings, error)

func (*Chromium) Hide

func (e *Chromium) Hide() error

func (*Chromium) Init

func (e *Chromium) Init(script string)

func (*Chromium) MessageReceived

func (e *Chromium) MessageReceived(sender *ICoreWebView2, args *iCoreWebView2WebMessageReceivedEventArgs) uintptr

func (*Chromium) Navigate

func (e *Chromium) Navigate(url string)

func (*Chromium) NavigationCompleted

func (e *Chromium) NavigationCompleted(sender *ICoreWebView2, args *ICoreWebView2NavigationCompletedEventArgs) uintptr

func (*Chromium) NotifyParentWindowPositionChanged

func (e *Chromium) NotifyParentWindowPositionChanged() error

func (*Chromium) OpenDevToolsWindow added in v2.3.0

func (e *Chromium) OpenDevToolsWindow()

func (*Chromium) PermissionRequested

func (e *Chromium) PermissionRequested(_ *ICoreWebView2, args *iCoreWebView2PermissionRequestedEventArgs) uintptr

func (*Chromium) ProcessFailed added in v2.5.0

func (e *Chromium) ProcessFailed(sender *ICoreWebView2, args *ICoreWebView2ProcessFailedEventArgs) uintptr

func (*Chromium) PutZoomFactor added in v2.1.0

func (e *Chromium) PutZoomFactor(zoomFactor float64)

func (*Chromium) QueryInterface

func (e *Chromium) QueryInterface(_, _ uintptr) uintptr

func (*Chromium) Release

func (e *Chromium) Release() uintptr

func (*Chromium) Resize

func (e *Chromium) Resize()

func (*Chromium) SetGlobalPermission

func (e *Chromium) SetGlobalPermission(state CoreWebView2PermissionState)

func (*Chromium) SetPadding added in v2.3.0

func (e *Chromium) SetPadding(padding Rect)

func (*Chromium) SetPermission

func (e *Chromium) SetPermission(kind CoreWebView2PermissionKind, state CoreWebView2PermissionState)

func (*Chromium) SetSize added in v2.3.0

func (e *Chromium) SetSize(bounds w32.Rect)

func (*Chromium) Show

func (e *Chromium) Show() error

func (*Chromium) WebResourceRequested

func (e *Chromium) WebResourceRequested(sender *ICoreWebView2, args *ICoreWebView2WebResourceRequestedEventArgs) uintptr

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 CoreWebView2PermissionKind

type CoreWebView2PermissionKind uint32
const (
	CoreWebView2PermissionKindUnknownPermission CoreWebView2PermissionKind = iota
	CoreWebView2PermissionKindMicrophone
	CoreWebView2PermissionKindCamera
	CoreWebView2PermissionKindGeolocation
	CoreWebView2PermissionKindNotifications
	CoreWebView2PermissionKindOtherSensors
	CoreWebView2PermissionKindClipboardRead
)

type CoreWebView2PermissionState

type CoreWebView2PermissionState uint32
const (
	CoreWebView2PermissionStateDefault CoreWebView2PermissionState = iota
	CoreWebView2PermissionStateAllow
	CoreWebView2PermissionStateDeny
)

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 ICoreWebView2

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

func (*ICoreWebView2) AddNavigationCompleted

func (i *ICoreWebView2) AddNavigationCompleted(eventHandler *ICoreWebView2NavigationCompletedEventHandler, token *_EventRegistrationToken) error

func (*ICoreWebView2) AddProcessFailed added in v2.5.0

func (i *ICoreWebView2) AddProcessFailed(eventHandler *ICoreWebView2ProcessFailedEventHandler, token *_EventRegistrationToken) error

func (*ICoreWebView2) AddWebResourceRequestedFilter

func (i *ICoreWebView2) AddWebResourceRequestedFilter(uri string, resourceContext COREWEBVIEW2_WEB_RESOURCE_CONTEXT) error

func (*ICoreWebView2) GetICoreWebView2_3

func (i *ICoreWebView2) GetICoreWebView2_3() *ICoreWebView2_3

func (*ICoreWebView2) GetSettings

func (i *ICoreWebView2) GetSettings() (*ICoreWebViewSettings, error)

func (*ICoreWebView2) OpenDevToolsWindow added in v2.3.0

func (i *ICoreWebView2) OpenDevToolsWindow() error

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) GetZoomFactor added in v2.1.0

func (i *ICoreWebView2Controller) GetZoomFactor() (float64, error)

func (*ICoreWebView2Controller) MoveFocus

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

func (*ICoreWebView2Controller) PutZoomFactor added in v2.1.0

func (i *ICoreWebView2Controller) PutZoomFactor(zoomFactor float64) 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 ICoreWebView2Environment

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

func (*ICoreWebView2Environment) CreateWebResourceResponse

func (e *ICoreWebView2Environment) CreateWebResourceResponse(content []byte, statusCode int, reasonPhrase string, headers string) (*ICoreWebView2WebResourceResponse, error)

CreateWebResourceResponse creates a new ICoreWebView2WebResourceResponse, it must be released after finishing using it.

type ICoreWebView2HttpHeadersCollectionIterator

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

func (*ICoreWebView2HttpHeadersCollectionIterator) GetCurrentHeader

func (*ICoreWebView2HttpHeadersCollectionIterator) HasCurrentHeader

func (i *ICoreWebView2HttpHeadersCollectionIterator) HasCurrentHeader() (bool, error)

func (*ICoreWebView2HttpHeadersCollectionIterator) MoveNext

func (*ICoreWebView2HttpHeadersCollectionIterator) Release

type ICoreWebView2HttpRequestHeaders

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

func (*ICoreWebView2HttpRequestHeaders) GetHeader

func (i *ICoreWebView2HttpRequestHeaders) GetHeader(name string) (string, error)

GetHeader returns the value of the specified header. If the header is not found ERROR_ELEMENT_NOT_FOUND is returned as error.

func (*ICoreWebView2HttpRequestHeaders) GetIterator

GetIterator returns an iterator over the collection of request headers. Make sure to call Release on the returned Object after finished using it.

func (*ICoreWebView2HttpRequestHeaders) Release

func (*ICoreWebView2HttpRequestHeaders) SetHeader

func (i *ICoreWebView2HttpRequestHeaders) SetHeader(name, value string) error

SetHeader sets the specified header to the value.

type ICoreWebView2NavigationCompletedEventArgs

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

func (*ICoreWebView2NavigationCompletedEventArgs) AddRef

type ICoreWebView2NavigationCompletedEventHandler

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

func (*ICoreWebView2NavigationCompletedEventHandler) AddRef

type ICoreWebView2ProcessFailedEventArgs added in v2.5.0

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

func (*ICoreWebView2ProcessFailedEventArgs) GetProcessFailedKind added in v2.5.0

type ICoreWebView2ProcessFailedEventHandler added in v2.5.0

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

func (*ICoreWebView2ProcessFailedEventHandler) AddRef added in v2.5.0

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) GetContent

func (i *ICoreWebView2WebResourceRequest) GetContent() (*IStream, error)

GetContent returns the body of the request. Returns nil if there's no body. Make sure to call Release on the returned IStream after finished using it.

func (*ICoreWebView2WebResourceRequest) GetHeaders

GetHeaders returns the mutable HTTP request headers. Make sure to call Release on the returned Object after finished using it.

func (*ICoreWebView2WebResourceRequest) GetMethod

func (i *ICoreWebView2WebResourceRequest) GetMethod() (string, error)

func (*ICoreWebView2WebResourceRequest) GetUri

func (*ICoreWebView2WebResourceRequest) Release

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

func (*ICoreWebView2WebResourceResponse) Release

type ICoreWebView2_2

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

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

type IStream

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

func (*IStream) Read

func (i *IStream) Read(p []byte) (int, error)

func (*IStream) Release

func (i *IStream) Release() error

type Rect added in v2.3.0

type Rect = w32.Rect

Jump to

Keyboard shortcuts

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