Documentation ¶
Index ¶
- Constants
- func IsEqualGUID(guid1 *GUID, guid2 *GUID) bool
- type COREWEBVIEW2_COLOR
- type COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND
- type COREWEBVIEW2_KEY_EVENT_KIND
- type COREWEBVIEW2_MOVE_FOCUS_REASON
- type COREWEBVIEW2_PHYSICAL_KEY_STATUS
- type COREWEBVIEW2_PROCESS_FAILED_KIND
- type COREWEBVIEW2_WEB_RESOURCE_CONTEXT
- type Chromium
- func (e *Chromium) AcceleratorKeyPressed(sender *ICoreWebView2Controller, ...) uintptr
- func (e *Chromium) AddRef() uintptr
- func (e *Chromium) AddWebResourceRequestedFilter(filter string, ctx COREWEBVIEW2_WEB_RESOURCE_CONTEXT)
- func (e *Chromium) CreateCoreWebView2ControllerCompleted(res uintptr, controller *ICoreWebView2Controller) uintptr
- func (e *Chromium) Embed(hwnd uintptr) bool
- func (e *Chromium) Environment() *ICoreWebView2Environment
- func (e *Chromium) EnvironmentCompleted(res uintptr, env *ICoreWebView2Environment) uintptr
- func (e *Chromium) Eval(script string)
- func (e *Chromium) Focus()
- func (e *Chromium) GetController() *ICoreWebView2Controller
- func (e *Chromium) GetICoreWebView2_3() *ICoreWebView2_3
- func (e *Chromium) GetSettings() (*ICoreWebViewSettings, error)
- func (e *Chromium) Hide() error
- func (e *Chromium) Init(script string)
- func (e *Chromium) MessageReceived(sender *ICoreWebView2, args *iCoreWebView2WebMessageReceivedEventArgs) uintptr
- func (e *Chromium) Navigate(url string)
- func (e *Chromium) NavigationCompleted(sender *ICoreWebView2, args *ICoreWebView2NavigationCompletedEventArgs) uintptr
- func (e *Chromium) NotifyParentWindowPositionChanged() error
- func (e *Chromium) OpenDevToolsWindow()
- func (e *Chromium) PermissionRequested(_ *ICoreWebView2, args *iCoreWebView2PermissionRequestedEventArgs) uintptr
- func (e *Chromium) ProcessFailed(sender *ICoreWebView2, args *ICoreWebView2ProcessFailedEventArgs) uintptr
- func (e *Chromium) PutZoomFactor(zoomFactor float64)
- func (e *Chromium) QueryInterface(_, _ uintptr) uintptr
- func (e *Chromium) Release() uintptr
- func (e *Chromium) Resize()
- func (e *Chromium) SetGlobalPermission(state CoreWebView2PermissionState)
- func (e *Chromium) SetPadding(padding Rect)
- func (e *Chromium) SetPermission(kind CoreWebView2PermissionKind, state CoreWebView2PermissionState)
- func (e *Chromium) SetSize(bounds w32.Rect)
- func (e *Chromium) Show() error
- func (e *Chromium) WebResourceRequested(sender *ICoreWebView2, args *ICoreWebView2WebResourceRequestedEventArgs) uintptr
- type ComProc
- type CoreWebView2PermissionKind
- type CoreWebView2PermissionState
- type GUID
- type ICoreWebView2
- func (i *ICoreWebView2) AddNavigationCompleted(eventHandler *ICoreWebView2NavigationCompletedEventHandler, ...) error
- func (i *ICoreWebView2) AddProcessFailed(eventHandler *ICoreWebView2ProcessFailedEventHandler, ...) error
- func (i *ICoreWebView2) AddWebResourceRequestedFilter(uri string, resourceContext COREWEBVIEW2_WEB_RESOURCE_CONTEXT) error
- func (i *ICoreWebView2) GetICoreWebView2_3() *ICoreWebView2_3
- func (i *ICoreWebView2) GetSettings() (*ICoreWebViewSettings, error)
- func (i *ICoreWebView2) OpenDevToolsWindow() error
- type ICoreWebView2AcceleratorKeyPressedEventArgs
- func (i *ICoreWebView2AcceleratorKeyPressedEventArgs) AddRef() uintptr
- func (i *ICoreWebView2AcceleratorKeyPressedEventArgs) GetKeyEventKind() (COREWEBVIEW2_KEY_EVENT_KIND, error)
- func (i *ICoreWebView2AcceleratorKeyPressedEventArgs) GetPhysicalKeyStatus() (COREWEBVIEW2_PHYSICAL_KEY_STATUS, error)
- func (i *ICoreWebView2AcceleratorKeyPressedEventArgs) GetVirtualKey() (uint, error)
- func (i *ICoreWebView2AcceleratorKeyPressedEventArgs) PutHandled(handled bool) error
- type ICoreWebView2AcceleratorKeyPressedEventHandler
- type ICoreWebView2Controller
- func (i *ICoreWebView2Controller) AddAcceleratorKeyPressed(eventHandler *ICoreWebView2AcceleratorKeyPressedEventHandler, ...) error
- func (i *ICoreWebView2Controller) AddRef() uintptr
- func (i *ICoreWebView2Controller) GetBounds() (*w32.Rect, error)
- func (i *ICoreWebView2Controller) GetICoreWebView2Controller2() *ICoreWebView2Controller2
- func (i *ICoreWebView2Controller) GetZoomFactor() (float64, error)
- func (i *ICoreWebView2Controller) MoveFocus(reason COREWEBVIEW2_MOVE_FOCUS_REASON) error
- func (i *ICoreWebView2Controller) NotifyParentWindowPositionChanged() error
- func (i *ICoreWebView2Controller) PutBounds(bounds w32.Rect) error
- func (i *ICoreWebView2Controller) PutIsVisible(isVisible bool) error
- func (i *ICoreWebView2Controller) PutZoomFactor(zoomFactor float64) error
- type ICoreWebView2Controller2
- type ICoreWebView2Environment
- type ICoreWebView2HttpHeadersCollectionIterator
- func (i *ICoreWebView2HttpHeadersCollectionIterator) GetCurrentHeader() (string, string, error)
- func (i *ICoreWebView2HttpHeadersCollectionIterator) HasCurrentHeader() (bool, error)
- func (i *ICoreWebView2HttpHeadersCollectionIterator) MoveNext() (bool, error)
- func (i *ICoreWebView2HttpHeadersCollectionIterator) Release() error
- type ICoreWebView2HttpRequestHeaders
- func (i *ICoreWebView2HttpRequestHeaders) GetHeader(name string) (string, error)
- func (i *ICoreWebView2HttpRequestHeaders) GetIterator() (*ICoreWebView2HttpHeadersCollectionIterator, error)
- func (i *ICoreWebView2HttpRequestHeaders) Release() error
- func (i *ICoreWebView2HttpRequestHeaders) SetHeader(name, value string) error
- type ICoreWebView2NavigationCompletedEventArgs
- type ICoreWebView2NavigationCompletedEventHandler
- type ICoreWebView2ProcessFailedEventArgs
- type ICoreWebView2ProcessFailedEventHandler
- type ICoreWebView2Settings
- func (i *ICoreWebView2Settings) AddRef() uintptr
- func (i *ICoreWebView2Settings) GetAreDefaultContextMenusEnabled() (bool, error)
- func (i *ICoreWebView2Settings) GetAreDefaultScriptDialogsEnabled() (bool, error)
- func (i *ICoreWebView2Settings) GetAreDevToolsEnabled() (bool, error)
- func (i *ICoreWebView2Settings) GetAreHostObjectsAllowed() (bool, error)
- func (i *ICoreWebView2Settings) GetIsBuiltInErrorPageEnabled() (bool, error)
- func (i *ICoreWebView2Settings) GetIsScriptEnabled() (bool, error)
- func (i *ICoreWebView2Settings) GetIsStatusBarEnabled() (bool, error)
- func (i *ICoreWebView2Settings) GetIsWebMessageEnabled() (bool, error)
- func (i *ICoreWebView2Settings) GetIsZoomControlEnabled() (bool, error)
- func (i *ICoreWebView2Settings) PutAreDefaultContextMenusEnabled(enabled bool) error
- func (i *ICoreWebView2Settings) PutAreDefaultScriptDialogsEnabled(areDefaultScriptDialogsEnabled bool) error
- func (i *ICoreWebView2Settings) PutAreDevToolsEnabled(areDevToolsEnabled bool) error
- func (i *ICoreWebView2Settings) PutAreHostObjectsAllowed(allowed bool) error
- func (i *ICoreWebView2Settings) PutIsBuiltInErrorPageEnabled(enabled bool) error
- func (i *ICoreWebView2Settings) PutIsScriptEnabled(isScriptEnabled bool) error
- func (i *ICoreWebView2Settings) PutIsStatusBarEnabled(isStatusBarEnabled bool) error
- func (i *ICoreWebView2Settings) PutIsWebMessageEnabled(isWebMessageEnabled bool) error
- func (i *ICoreWebView2Settings) PutIsZoomControlEnabled(enabled bool) error
- type ICoreWebView2WebResourceRequest
- func (i *ICoreWebView2WebResourceRequest) AddRef() uintptr
- func (i *ICoreWebView2WebResourceRequest) GetContent() (*IStream, error)
- func (i *ICoreWebView2WebResourceRequest) GetHeaders() (*ICoreWebView2HttpRequestHeaders, error)
- func (i *ICoreWebView2WebResourceRequest) GetMethod() (string, error)
- func (i *ICoreWebView2WebResourceRequest) GetUri() (string, error)
- func (i *ICoreWebView2WebResourceRequest) Release() error
- type ICoreWebView2WebResourceRequestedEventArgs
- type ICoreWebView2WebResourceResponse
- type ICoreWebView2_2
- type ICoreWebView2_3
- type ICoreWebViewSettings
- func (i *ICoreWebViewSettings) AddRef() uintptr
- func (i *ICoreWebViewSettings) GetAreBrowserAcceleratorKeysEnabled() (bool, error)
- func (i *ICoreWebViewSettings) GetAreDefaultContextMenusEnabled() (bool, error)
- func (i *ICoreWebViewSettings) GetAreDefaultScriptDialogsEnabled() (bool, error)
- func (i *ICoreWebViewSettings) GetAreDevToolsEnabled() (bool, error)
- func (i *ICoreWebViewSettings) GetAreHostObjectsAllowed() (bool, error)
- func (i *ICoreWebViewSettings) GetIsBuiltInErrorPageEnabled() (bool, error)
- func (i *ICoreWebViewSettings) GetIsPinchZoomEnabled() (bool, error)
- func (i *ICoreWebViewSettings) GetIsScriptEnabled() (bool, error)
- func (i *ICoreWebViewSettings) GetIsStatusBarEnabled() (bool, error)
- func (i *ICoreWebViewSettings) GetIsSwipeNavigationEnabled() (bool, error)
- func (i *ICoreWebViewSettings) GetIsWebMessageEnabled() (bool, error)
- func (i *ICoreWebViewSettings) GetIsZoomControlEnabled() (bool, error)
- func (i *ICoreWebViewSettings) GetUserAgent() (string, error)
- func (i *ICoreWebViewSettings) PutAreBrowserAcceleratorKeysEnabled(enabled bool) error
- func (i *ICoreWebViewSettings) PutAreDefaultContextMenusEnabled(enabled bool) error
- func (i *ICoreWebViewSettings) PutAreDefaultScriptDialogsEnabled(areDefaultScriptDialogsEnabled bool) error
- func (i *ICoreWebViewSettings) PutAreDevToolsEnabled(areDevToolsEnabled bool) error
- func (i *ICoreWebViewSettings) PutAreHostObjectsAllowed(allowed bool) error
- func (i *ICoreWebViewSettings) PutIsBuiltInErrorPageEnabled(enabled bool) error
- func (i *ICoreWebViewSettings) PutIsPinchZoomEnabled(enabled bool) error
- func (i *ICoreWebViewSettings) PutIsScriptEnabled(isScriptEnabled bool) error
- func (i *ICoreWebViewSettings) PutIsStatusBarEnabled(isStatusBarEnabled bool) error
- func (i *ICoreWebViewSettings) PutIsSwipeNavigationEnabled(enabled bool) error
- func (i *ICoreWebViewSettings) PutIsWebMessageEnabled(isWebMessageEnabled bool) error
- func (i *ICoreWebViewSettings) PutIsZoomControlEnabled(enabled bool) error
- func (i *ICoreWebViewSettings) PutUserAgent(userAgent string) error
- type IStream
- type Rect
Constants ¶
const ( COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY = iota COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_ALLOW COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY_CORS )
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 )
const ( COREWEBVIEW2_MOVE_FOCUS_REASON_PROGRAMMATIC = 0 COREWEBVIEW2_MOVE_FOCUS_REASON_NEXT = 1 COREWEBVIEW2_MOVE_FOCUS_REASON_PREVIOUS = 2 )
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 )
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 )
const (
ERROR_ELEMENT_NOT_FOUND syscall.Errno = 0x80070490
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
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_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) ProcessFailedCallback func(sender *ICoreWebView2, args *ICoreWebView2ProcessFailedEventArgs) AcceleratorKeyCallback func(uint) bool // contains filtered or unexported fields }
func NewChromium ¶
func NewChromium() *Chromium
func (*Chromium) AcceleratorKeyPressed ¶
func (e *Chromium) AcceleratorKeyPressed(sender *ICoreWebView2Controller, args *ICoreWebView2AcceleratorKeyPressedEventArgs) uintptr
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) 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) Environment ¶
func (e *Chromium) Environment() *ICoreWebView2Environment
func (*Chromium) EnvironmentCompleted ¶
func (e *Chromium) EnvironmentCompleted(res uintptr, env *ICoreWebView2Environment) uintptr
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) MessageReceived ¶
func (e *Chromium) MessageReceived(sender *ICoreWebView2, args *iCoreWebView2WebMessageReceivedEventArgs) uintptr
func (*Chromium) NavigationCompleted ¶
func (e *Chromium) NavigationCompleted(sender *ICoreWebView2, args *ICoreWebView2NavigationCompletedEventArgs) uintptr
func (*Chromium) NotifyParentWindowPositionChanged ¶
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 (*Chromium) QueryInterface ¶
func (*Chromium) SetGlobalPermission ¶
func (e *Chromium) SetGlobalPermission(state CoreWebView2PermissionState)
func (*Chromium) SetPadding ¶ added in v2.3.0
func (*Chromium) SetPermission ¶
func (e *Chromium) SetPermission(kind CoreWebView2PermissionKind, state CoreWebView2PermissionState)
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.
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 ¶
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 ¶
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.
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 (i *ICoreWebView2AcceleratorKeyPressedEventArgs) AddRef() uintptr
func (*ICoreWebView2AcceleratorKeyPressedEventArgs) GetKeyEventKind ¶
func (i *ICoreWebView2AcceleratorKeyPressedEventArgs) GetKeyEventKind() (COREWEBVIEW2_KEY_EVENT_KIND, error)
func (*ICoreWebView2AcceleratorKeyPressedEventArgs) GetPhysicalKeyStatus ¶
func (i *ICoreWebView2AcceleratorKeyPressedEventArgs) GetPhysicalKeyStatus() (COREWEBVIEW2_PHYSICAL_KEY_STATUS, error)
func (*ICoreWebView2AcceleratorKeyPressedEventArgs) GetVirtualKey ¶
func (i *ICoreWebView2AcceleratorKeyPressedEventArgs) GetVirtualKey() (uint, error)
func (*ICoreWebView2AcceleratorKeyPressedEventArgs) PutHandled ¶
func (i *ICoreWebView2AcceleratorKeyPressedEventArgs) PutHandled(handled bool) error
type ICoreWebView2AcceleratorKeyPressedEventHandler ¶
type ICoreWebView2AcceleratorKeyPressedEventHandler struct {
// contains filtered or unexported fields
}
func (*ICoreWebView2AcceleratorKeyPressedEventHandler) AddRef ¶
func (i *ICoreWebView2AcceleratorKeyPressedEventHandler) AddRef() uintptr
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 (i *ICoreWebView2Controller) MoveFocus(reason COREWEBVIEW2_MOVE_FOCUS_REASON) 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
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 (i *ICoreWebView2HttpHeadersCollectionIterator) GetCurrentHeader() (string, string, error)
func (*ICoreWebView2HttpHeadersCollectionIterator) HasCurrentHeader ¶
func (i *ICoreWebView2HttpHeadersCollectionIterator) HasCurrentHeader() (bool, error)
func (*ICoreWebView2HttpHeadersCollectionIterator) MoveNext ¶
func (i *ICoreWebView2HttpHeadersCollectionIterator) MoveNext() (bool, error)
func (*ICoreWebView2HttpHeadersCollectionIterator) Release ¶
func (i *ICoreWebView2HttpHeadersCollectionIterator) Release() error
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 ¶
func (i *ICoreWebView2HttpRequestHeaders) GetIterator() (*ICoreWebView2HttpHeadersCollectionIterator, error)
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 (i *ICoreWebView2HttpRequestHeaders) Release() error
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 ¶
func (i *ICoreWebView2NavigationCompletedEventArgs) AddRef() uintptr
type ICoreWebView2NavigationCompletedEventHandler ¶
type ICoreWebView2NavigationCompletedEventHandler struct {
// contains filtered or unexported fields
}
func (*ICoreWebView2NavigationCompletedEventHandler) AddRef ¶
func (i *ICoreWebView2NavigationCompletedEventHandler) AddRef() uintptr
type ICoreWebView2ProcessFailedEventArgs ¶ added in v2.5.0
type ICoreWebView2ProcessFailedEventArgs struct {
// contains filtered or unexported fields
}
func (*ICoreWebView2ProcessFailedEventArgs) GetProcessFailedKind ¶ added in v2.5.0
func (i *ICoreWebView2ProcessFailedEventArgs) GetProcessFailedKind() (COREWEBVIEW2_PROCESS_FAILED_KIND, error)
type ICoreWebView2ProcessFailedEventHandler ¶ added in v2.5.0
type ICoreWebView2ProcessFailedEventHandler struct {
// contains filtered or unexported fields
}
func (*ICoreWebView2ProcessFailedEventHandler) AddRef ¶ added in v2.5.0
func (i *ICoreWebView2ProcessFailedEventHandler) AddRef() uintptr
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 (i *ICoreWebView2WebResourceRequest) AddRef() uintptr
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 ¶
func (i *ICoreWebView2WebResourceRequest) GetHeaders() (*ICoreWebView2HttpRequestHeaders, error)
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 (i *ICoreWebView2WebResourceRequest) GetUri() (string, error)
func (*ICoreWebView2WebResourceRequest) Release ¶
func (i *ICoreWebView2WebResourceRequest) Release() error
type ICoreWebView2WebResourceRequestedEventArgs ¶
type ICoreWebView2WebResourceRequestedEventArgs struct {
// contains filtered or unexported fields
}
func (*ICoreWebView2WebResourceRequestedEventArgs) AddRef ¶
func (i *ICoreWebView2WebResourceRequestedEventArgs) AddRef() uintptr
func (*ICoreWebView2WebResourceRequestedEventArgs) GetRequest ¶
func (i *ICoreWebView2WebResourceRequestedEventArgs) GetRequest() (*ICoreWebView2WebResourceRequest, error)
func (*ICoreWebView2WebResourceRequestedEventArgs) PutResponse ¶
func (i *ICoreWebView2WebResourceRequestedEventArgs) PutResponse(response *ICoreWebView2WebResourceResponse) error
type ICoreWebView2WebResourceResponse ¶
type ICoreWebView2WebResourceResponse struct {
// contains filtered or unexported fields
}
func (*ICoreWebView2WebResourceResponse) AddRef ¶
func (i *ICoreWebView2WebResourceResponse) AddRef() uintptr
func (*ICoreWebView2WebResourceResponse) Release ¶
func (i *ICoreWebView2WebResourceResponse) Release() error
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
Source Files ¶
- COREWEBVIEW2_COLOR.go
- COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND.go
- COREWEBVIEW2_KEY_EVENT_KIND.go
- COREWEBVIEW2_MOVE_FOCUS_REASON.go
- COREWEBVIEW2_PHYSICAL_KEY_STATUS.go
- COREWEBVIEW2_PROCESS_FAILED_KIND.go
- COREWEBVIEW2_WEB_RESOURCE_CONTEXT.go
- ICoreWebView2AcceleratorKeyPressedEventArgs.go
- ICoreWebView2AcceleratorKeyPressedEventHandler.go
- ICoreWebView2Controller.go
- ICoreWebView2Controller2.go
- ICoreWebView2CreateCoreWebView2ControllerCompletedHandler.go
- ICoreWebView2HttpHeadersCollectionIterator.go
- ICoreWebView2HttpRequestHeaders.go
- ICoreWebView2NavigationCompletedEventArgs.go
- ICoreWebView2NavigationCompletedEventHandler.go
- ICoreWebView2ProcessFailedEventArgs.go
- ICoreWebView2ProcessFailedEventHandler.go
- ICoreWebView2Settings.go
- ICoreWebView2WebResourceRequest.go
- ICoreWebView2WebResourceRequestedEventArgs.go
- ICoreWebView2WebResourceRequestedEventHandler.go
- ICoreWebView2WebResourceResponse.go
- ICoreWebView2_2.go
- ICoreWebView2_3.go
- ICoreWebViewSettings.go
- IStream.go
- chromium.go
- chromium_amd64.go
- corewebview2.go
- create_env_go.go
- guid.go