Versions in this module Expand all Collapse all v0 v0.1.1 Oct 17, 2019 Changes in this version + const CommandClose + const CommandCrash + const CommandCrashGpuProcess + const CommandGetBrowserCommandLine + const CommandGetHistogram + const CommandGetHistograms + const CommandGetVersion + const CommandGetWindowBounds + const CommandGetWindowForTarget + const CommandGrantPermissions + const CommandResetPermissions + const CommandSetDockTile + const CommandSetPermission + const CommandSetWindowBounds + type Bounds struct + Height int64 + Left int64 + Top int64 + Width int64 + WindowState WindowState + func (v *Bounds) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Bounds) UnmarshalJSON(data []byte) error + func (v Bounds) MarshalEasyJSON(w *jwriter.Writer) + func (v Bounds) MarshalJSON() ([]byte, error) + type Bucket struct + Count int64 + High int64 + Low int64 + func (v *Bucket) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Bucket) UnmarshalJSON(data []byte) error + func (v Bucket) MarshalEasyJSON(w *jwriter.Writer) + func (v Bucket) MarshalJSON() ([]byte, error) + type CloseParams struct + func Close() *CloseParams + func (p *CloseParams) Do(ctx context.Context) (err error) + func (v *CloseParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CloseParams) UnmarshalJSON(data []byte) error + func (v CloseParams) MarshalEasyJSON(w *jwriter.Writer) + func (v CloseParams) MarshalJSON() ([]byte, error) + type CrashGpuProcessParams struct + func CrashGpuProcess() *CrashGpuProcessParams + func (p *CrashGpuProcessParams) Do(ctx context.Context) (err error) + func (v *CrashGpuProcessParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CrashGpuProcessParams) UnmarshalJSON(data []byte) error + func (v CrashGpuProcessParams) MarshalEasyJSON(w *jwriter.Writer) + func (v CrashGpuProcessParams) MarshalJSON() ([]byte, error) + type CrashParams struct + func Crash() *CrashParams + func (p *CrashParams) Do(ctx context.Context) (err error) + func (v *CrashParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CrashParams) UnmarshalJSON(data []byte) error + func (v CrashParams) MarshalEasyJSON(w *jwriter.Writer) + func (v CrashParams) MarshalJSON() ([]byte, error) + type GetBrowserCommandLineParams struct + func GetBrowserCommandLine() *GetBrowserCommandLineParams + func (p *GetBrowserCommandLineParams) Do(ctx context.Context) (arguments []string, err error) + func (v *GetBrowserCommandLineParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetBrowserCommandLineParams) UnmarshalJSON(data []byte) error + func (v GetBrowserCommandLineParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetBrowserCommandLineParams) MarshalJSON() ([]byte, error) + type GetBrowserCommandLineReturns struct + Arguments []string + func (v *GetBrowserCommandLineReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetBrowserCommandLineReturns) UnmarshalJSON(data []byte) error + func (v GetBrowserCommandLineReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetBrowserCommandLineReturns) MarshalJSON() ([]byte, error) + type GetHistogramParams struct + Delta bool + Name string + func GetHistogram(name string) *GetHistogramParams + func (p *GetHistogramParams) Do(ctx context.Context) (histogram *Histogram, err error) + func (p GetHistogramParams) WithDelta(delta bool) *GetHistogramParams + func (v *GetHistogramParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetHistogramParams) UnmarshalJSON(data []byte) error + func (v GetHistogramParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetHistogramParams) MarshalJSON() ([]byte, error) + type GetHistogramReturns struct + Histogram *Histogram + func (v *GetHistogramReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetHistogramReturns) UnmarshalJSON(data []byte) error + func (v GetHistogramReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetHistogramReturns) MarshalJSON() ([]byte, error) + type GetHistogramsParams struct + Delta bool + Query string + func GetHistograms() *GetHistogramsParams + func (p *GetHistogramsParams) Do(ctx context.Context) (histograms []*Histogram, err error) + func (p GetHistogramsParams) WithDelta(delta bool) *GetHistogramsParams + func (p GetHistogramsParams) WithQuery(query string) *GetHistogramsParams + func (v *GetHistogramsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetHistogramsParams) UnmarshalJSON(data []byte) error + func (v GetHistogramsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetHistogramsParams) MarshalJSON() ([]byte, error) + type GetHistogramsReturns struct + Histograms []*Histogram + func (v *GetHistogramsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetHistogramsReturns) UnmarshalJSON(data []byte) error + func (v GetHistogramsReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetHistogramsReturns) MarshalJSON() ([]byte, error) + type GetVersionParams struct + func GetVersion() *GetVersionParams + func (p *GetVersionParams) Do(ctx context.Context) (protocolVersion string, product string, revision string, userAgent string, ...) + func (v *GetVersionParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetVersionParams) UnmarshalJSON(data []byte) error + func (v GetVersionParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetVersionParams) MarshalJSON() ([]byte, error) + type GetVersionReturns struct + JsVersion string + Product string + ProtocolVersion string + Revision string + UserAgent string + func (v *GetVersionReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetVersionReturns) UnmarshalJSON(data []byte) error + func (v GetVersionReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetVersionReturns) MarshalJSON() ([]byte, error) + type GetWindowBoundsParams struct + WindowID WindowID + func GetWindowBounds(windowID WindowID) *GetWindowBoundsParams + func (p *GetWindowBoundsParams) Do(ctx context.Context) (bounds *Bounds, err error) + func (v *GetWindowBoundsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetWindowBoundsParams) UnmarshalJSON(data []byte) error + func (v GetWindowBoundsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetWindowBoundsParams) MarshalJSON() ([]byte, error) + type GetWindowBoundsReturns struct + Bounds *Bounds + func (v *GetWindowBoundsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetWindowBoundsReturns) UnmarshalJSON(data []byte) error + func (v GetWindowBoundsReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetWindowBoundsReturns) MarshalJSON() ([]byte, error) + type GetWindowForTargetParams struct + TargetID target.ID + func GetWindowForTarget() *GetWindowForTargetParams + func (p *GetWindowForTargetParams) Do(ctx context.Context) (windowID WindowID, bounds *Bounds, err error) + func (p GetWindowForTargetParams) WithTargetID(targetID target.ID) *GetWindowForTargetParams + func (v *GetWindowForTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetWindowForTargetParams) UnmarshalJSON(data []byte) error + func (v GetWindowForTargetParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetWindowForTargetParams) MarshalJSON() ([]byte, error) + type GetWindowForTargetReturns struct + Bounds *Bounds + WindowID WindowID + func (v *GetWindowForTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetWindowForTargetReturns) UnmarshalJSON(data []byte) error + func (v GetWindowForTargetReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetWindowForTargetReturns) MarshalJSON() ([]byte, error) + type GrantPermissionsParams struct + BrowserContextID target.BrowserContextID + Origin string + Permissions []PermissionType + func GrantPermissions(origin string, permissions []PermissionType) *GrantPermissionsParams + func (p *GrantPermissionsParams) Do(ctx context.Context) (err error) + func (p GrantPermissionsParams) WithBrowserContextID(browserContextID target.BrowserContextID) *GrantPermissionsParams + func (v *GrantPermissionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GrantPermissionsParams) UnmarshalJSON(data []byte) error + func (v GrantPermissionsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GrantPermissionsParams) MarshalJSON() ([]byte, error) + type Histogram struct + Buckets []*Bucket + Count int64 + Name string + Sum int64 + func (v *Histogram) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Histogram) UnmarshalJSON(data []byte) error + func (v Histogram) MarshalEasyJSON(w *jwriter.Writer) + func (v Histogram) MarshalJSON() ([]byte, error) + type PermissionDescriptor struct + Name string + Sysex bool + Type string + UserVisibleOnly bool + func (v *PermissionDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *PermissionDescriptor) UnmarshalJSON(data []byte) error + func (v PermissionDescriptor) MarshalEasyJSON(w *jwriter.Writer) + func (v PermissionDescriptor) MarshalJSON() ([]byte, error) + type PermissionSetting string + const PermissionSettingDenied + const PermissionSettingGranted + const PermissionSettingPrompt + func (t *PermissionSetting) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *PermissionSetting) UnmarshalJSON(buf []byte) error + func (t PermissionSetting) MarshalEasyJSON(out *jwriter.Writer) + func (t PermissionSetting) MarshalJSON() ([]byte, error) + func (t PermissionSetting) String() string + type PermissionType string + const PermissionTypeAccessibilityEvents + const PermissionTypeAudioCapture + const PermissionTypeBackgroundFetch + const PermissionTypeBackgroundSync + const PermissionTypeClipboardRead + const PermissionTypeClipboardWrite + const PermissionTypeDurableStorage + const PermissionTypeFlash + const PermissionTypeGeolocation + const PermissionTypeIdleDetection + const PermissionTypeMidi + const PermissionTypeMidiSysex + const PermissionTypeNotifications + const PermissionTypePaymentHandler + const PermissionTypePeriodicBackgroundSync + const PermissionTypeProtectedMediaIdentifier + const PermissionTypeSensors + const PermissionTypeVideoCapture + const PermissionTypeWakeLockScreen + const PermissionTypeWakeLockSystem + func (t *PermissionType) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *PermissionType) UnmarshalJSON(buf []byte) error + func (t PermissionType) MarshalEasyJSON(out *jwriter.Writer) + func (t PermissionType) MarshalJSON() ([]byte, error) + func (t PermissionType) String() string + type ResetPermissionsParams struct + BrowserContextID target.BrowserContextID + func ResetPermissions() *ResetPermissionsParams + func (p *ResetPermissionsParams) Do(ctx context.Context) (err error) + func (p ResetPermissionsParams) WithBrowserContextID(browserContextID target.BrowserContextID) *ResetPermissionsParams + func (v *ResetPermissionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ResetPermissionsParams) UnmarshalJSON(data []byte) error + func (v ResetPermissionsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v ResetPermissionsParams) MarshalJSON() ([]byte, error) + type SetDockTileParams struct + BadgeLabel string + Image string + func SetDockTile() *SetDockTileParams + func (p *SetDockTileParams) Do(ctx context.Context) (err error) + func (p SetDockTileParams) WithBadgeLabel(badgeLabel string) *SetDockTileParams + func (p SetDockTileParams) WithImage(image string) *SetDockTileParams + func (v *SetDockTileParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetDockTileParams) UnmarshalJSON(data []byte) error + func (v SetDockTileParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetDockTileParams) MarshalJSON() ([]byte, error) + type SetPermissionParams struct + BrowserContextID target.ID + Origin string + Permission *PermissionDescriptor + Setting PermissionSetting + func SetPermission(origin string, permission *PermissionDescriptor, setting PermissionSetting) *SetPermissionParams + func (p *SetPermissionParams) Do(ctx context.Context) (err error) + func (p SetPermissionParams) WithBrowserContextID(browserContextID target.ID) *SetPermissionParams + func (v *SetPermissionParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetPermissionParams) UnmarshalJSON(data []byte) error + func (v SetPermissionParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetPermissionParams) MarshalJSON() ([]byte, error) + type SetWindowBoundsParams struct + Bounds *Bounds + WindowID WindowID + func SetWindowBounds(windowID WindowID, bounds *Bounds) *SetWindowBoundsParams + func (p *SetWindowBoundsParams) Do(ctx context.Context) (err error) + func (v *SetWindowBoundsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetWindowBoundsParams) UnmarshalJSON(data []byte) error + func (v SetWindowBoundsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetWindowBoundsParams) MarshalJSON() ([]byte, error) + type WindowID int64 + func (t WindowID) Int64() int64 + type WindowState string + const WindowStateFullscreen + const WindowStateMaximized + const WindowStateMinimized + const WindowStateNormal + func (t *WindowState) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *WindowState) UnmarshalJSON(buf []byte) error + func (t WindowState) MarshalEasyJSON(out *jwriter.Writer) + func (t WindowState) MarshalJSON() ([]byte, error) + func (t WindowState) String() string