cdproto: github.com/chromedp/cdproto/browser Index | Files

package browser

import "github.com/chromedp/cdproto/browser"

Package browser provides the Chrome DevTools Protocol commands, types, and events for the Browser domain.

The Browser domain defines methods and events for browser managing.

Generated by the cdproto-gen command.

Index

Package Files

browser.go easyjson.go types.go

Constants

const (
    CommandSetPermission         = "Browser.setPermission"
    CommandGrantPermissions      = "Browser.grantPermissions"
    CommandResetPermissions      = "Browser.resetPermissions"
    CommandSetDownloadBehavior   = "Browser.setDownloadBehavior"
    CommandClose                 = "Browser.close"
    CommandCrash                 = "Browser.crash"
    CommandCrashGpuProcess       = "Browser.crashGpuProcess"
    CommandGetVersion            = "Browser.getVersion"
    CommandGetBrowserCommandLine = "Browser.getBrowserCommandLine"
    CommandGetHistograms         = "Browser.getHistograms"
    CommandGetHistogram          = "Browser.getHistogram"
    CommandGetWindowBounds       = "Browser.getWindowBounds"
    CommandGetWindowForTarget    = "Browser.getWindowForTarget"
    CommandSetWindowBounds       = "Browser.setWindowBounds"
    CommandSetDockTile           = "Browser.setDockTile"
    CommandExecuteBrowserCommand = "Browser.executeBrowserCommand"
)

Command names.

type Bounds Uses

type Bounds struct {
    Left        int64       `json:"left,omitempty"`        // The offset from the left edge of the screen to the window in pixels.
    Top         int64       `json:"top,omitempty"`         // The offset from the top edge of the screen to the window in pixels.
    Width       int64       `json:"width,omitempty"`       // The window width in pixels.
    Height      int64       `json:"height,omitempty"`      // The window height in pixels.
    WindowState WindowState `json:"windowState,omitempty"` // The window state. Default to normal.
}

Bounds browser window bounds information.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-Bounds

func (Bounds) MarshalEasyJSON Uses

func (v Bounds) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Bounds) MarshalJSON Uses

func (v Bounds) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Bounds) UnmarshalEasyJSON Uses

func (v *Bounds) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Bounds) UnmarshalJSON Uses

func (v *Bounds) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Bucket Uses

type Bucket struct {
    Low   int64 `json:"low"`   // Minimum value (inclusive).
    High  int64 `json:"high"`  // Maximum value (exclusive).
    Count int64 `json:"count"` // Number of samples.
}

Bucket chrome histogram bucket.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-Bucket

func (Bucket) MarshalEasyJSON Uses

func (v Bucket) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Bucket) MarshalJSON Uses

func (v Bucket) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Bucket) UnmarshalEasyJSON Uses

func (v *Bucket) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Bucket) UnmarshalJSON Uses

func (v *Bucket) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CloseParams Uses

type CloseParams struct{}

CloseParams close browser gracefully.

func Close Uses

func Close() *CloseParams

Close close browser gracefully.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-close

func (*CloseParams) Do Uses

func (p *CloseParams) Do(ctx context.Context) (err error)

Do executes Browser.close against the provided context.

func (CloseParams) MarshalEasyJSON Uses

func (v CloseParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CloseParams) MarshalJSON Uses

func (v CloseParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CloseParams) UnmarshalEasyJSON Uses

func (v *CloseParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CloseParams) UnmarshalJSON Uses

func (v *CloseParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CommandID Uses

type CommandID string

CommandID browser command ids used by executeBrowserCommand.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-BrowserCommandId

const (
    CommandIDOpenTabSearch  CommandID = "openTabSearch"
    CommandIDCloseTabSearch CommandID = "closeTabSearch"
)

CommandID values.

func (CommandID) MarshalEasyJSON Uses

func (t CommandID) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CommandID) MarshalJSON Uses

func (t CommandID) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (CommandID) String Uses

func (t CommandID) String() string

String returns the CommandID as string value.

func (*CommandID) UnmarshalEasyJSON Uses

func (t *CommandID) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CommandID) UnmarshalJSON Uses

func (t *CommandID) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type CrashGpuProcessParams Uses

type CrashGpuProcessParams struct{}

CrashGpuProcessParams crashes GPU process.

func CrashGpuProcess Uses

func CrashGpuProcess() *CrashGpuProcessParams

CrashGpuProcess crashes GPU process.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-crashGpuProcess

func (*CrashGpuProcessParams) Do Uses

func (p *CrashGpuProcessParams) Do(ctx context.Context) (err error)

Do executes Browser.crashGpuProcess against the provided context.

func (CrashGpuProcessParams) MarshalEasyJSON Uses

func (v CrashGpuProcessParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CrashGpuProcessParams) MarshalJSON Uses

func (v CrashGpuProcessParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CrashGpuProcessParams) UnmarshalEasyJSON Uses

func (v *CrashGpuProcessParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CrashGpuProcessParams) UnmarshalJSON Uses

func (v *CrashGpuProcessParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CrashParams Uses

type CrashParams struct{}

CrashParams crashes browser on the main thread.

func Crash Uses

func Crash() *CrashParams

Crash crashes browser on the main thread.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-crash

func (*CrashParams) Do Uses

func (p *CrashParams) Do(ctx context.Context) (err error)

Do executes Browser.crash against the provided context.

func (CrashParams) MarshalEasyJSON Uses

func (v CrashParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CrashParams) MarshalJSON Uses

func (v CrashParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CrashParams) UnmarshalEasyJSON Uses

func (v *CrashParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CrashParams) UnmarshalJSON Uses

func (v *CrashParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ExecuteBrowserCommandParams Uses

type ExecuteBrowserCommandParams struct {
    CommandID CommandID `json:"commandId"`
}

ExecuteBrowserCommandParams invoke custom browser commands used by telemetry.

func ExecuteBrowserCommand Uses

func ExecuteBrowserCommand(commandID CommandID) *ExecuteBrowserCommandParams

ExecuteBrowserCommand invoke custom browser commands used by telemetry.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-executeBrowserCommand

parameters:

commandID

func (*ExecuteBrowserCommandParams) Do Uses

func (p *ExecuteBrowserCommandParams) Do(ctx context.Context) (err error)

Do executes Browser.executeBrowserCommand against the provided context.

func (ExecuteBrowserCommandParams) MarshalEasyJSON Uses

func (v ExecuteBrowserCommandParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ExecuteBrowserCommandParams) MarshalJSON Uses

func (v ExecuteBrowserCommandParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ExecuteBrowserCommandParams) UnmarshalEasyJSON Uses

func (v *ExecuteBrowserCommandParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ExecuteBrowserCommandParams) UnmarshalJSON Uses

func (v *ExecuteBrowserCommandParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetBrowserCommandLineParams Uses

type GetBrowserCommandLineParams struct{}

GetBrowserCommandLineParams returns the command line switches for the browser process if, and only if --enable-automation is on the commandline.

func GetBrowserCommandLine Uses

func GetBrowserCommandLine() *GetBrowserCommandLineParams

GetBrowserCommandLine returns the command line switches for the browser process if, and only if --enable-automation is on the commandline.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-getBrowserCommandLine

func (*GetBrowserCommandLineParams) Do Uses

func (p *GetBrowserCommandLineParams) Do(ctx context.Context) (arguments []string, err error)

Do executes Browser.getBrowserCommandLine against the provided context.

returns:

arguments - Commandline parameters

func (GetBrowserCommandLineParams) MarshalEasyJSON Uses

func (v GetBrowserCommandLineParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetBrowserCommandLineParams) MarshalJSON Uses

func (v GetBrowserCommandLineParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetBrowserCommandLineParams) UnmarshalEasyJSON Uses

func (v *GetBrowserCommandLineParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetBrowserCommandLineParams) UnmarshalJSON Uses

func (v *GetBrowserCommandLineParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetBrowserCommandLineReturns Uses

type GetBrowserCommandLineReturns struct {
    Arguments []string `json:"arguments,omitempty"` // Commandline parameters
}

GetBrowserCommandLineReturns return values.

func (GetBrowserCommandLineReturns) MarshalEasyJSON Uses

func (v GetBrowserCommandLineReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetBrowserCommandLineReturns) MarshalJSON Uses

func (v GetBrowserCommandLineReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetBrowserCommandLineReturns) UnmarshalEasyJSON Uses

func (v *GetBrowserCommandLineReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetBrowserCommandLineReturns) UnmarshalJSON Uses

func (v *GetBrowserCommandLineReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetHistogramParams Uses

type GetHistogramParams struct {
    Name  string `json:"name"`            // Requested histogram name.
    Delta bool   `json:"delta,omitempty"` // If true, retrieve delta since last call.
}

GetHistogramParams get a Chrome histogram by name.

func GetHistogram Uses

func GetHistogram(name string) *GetHistogramParams

GetHistogram get a Chrome histogram by name.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-getHistogram

parameters:

name - Requested histogram name.

func (*GetHistogramParams) Do Uses

func (p *GetHistogramParams) Do(ctx context.Context) (histogram *Histogram, err error)

Do executes Browser.getHistogram against the provided context.

returns:

histogram - Histogram.

func (GetHistogramParams) MarshalEasyJSON Uses

func (v GetHistogramParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetHistogramParams) MarshalJSON Uses

func (v GetHistogramParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetHistogramParams) UnmarshalEasyJSON Uses

func (v *GetHistogramParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetHistogramParams) UnmarshalJSON Uses

func (v *GetHistogramParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetHistogramParams) WithDelta Uses

func (p GetHistogramParams) WithDelta(delta bool) *GetHistogramParams

WithDelta if true, retrieve delta since last call.

type GetHistogramReturns Uses

type GetHistogramReturns struct {
    Histogram *Histogram `json:"histogram,omitempty"` // Histogram.
}

GetHistogramReturns return values.

func (GetHistogramReturns) MarshalEasyJSON Uses

func (v GetHistogramReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetHistogramReturns) MarshalJSON Uses

func (v GetHistogramReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetHistogramReturns) UnmarshalEasyJSON Uses

func (v *GetHistogramReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetHistogramReturns) UnmarshalJSON Uses

func (v *GetHistogramReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetHistogramsParams Uses

type GetHistogramsParams struct {
    Query string `json:"query,omitempty"` // Requested substring in name. Only histograms which have query as a substring in their name are extracted. An empty or absent query returns all histograms.
    Delta bool   `json:"delta,omitempty"` // If true, retrieve delta since last call.
}

GetHistogramsParams get Chrome histograms.

func GetHistograms Uses

func GetHistograms() *GetHistogramsParams

GetHistograms get Chrome histograms.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-getHistograms

parameters:

func (*GetHistogramsParams) Do Uses

func (p *GetHistogramsParams) Do(ctx context.Context) (histograms []*Histogram, err error)

Do executes Browser.getHistograms against the provided context.

returns:

histograms - Histograms.

func (GetHistogramsParams) MarshalEasyJSON Uses

func (v GetHistogramsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetHistogramsParams) MarshalJSON Uses

func (v GetHistogramsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetHistogramsParams) UnmarshalEasyJSON Uses

func (v *GetHistogramsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetHistogramsParams) UnmarshalJSON Uses

func (v *GetHistogramsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetHistogramsParams) WithDelta Uses

func (p GetHistogramsParams) WithDelta(delta bool) *GetHistogramsParams

WithDelta if true, retrieve delta since last call.

func (GetHistogramsParams) WithQuery Uses

func (p GetHistogramsParams) WithQuery(query string) *GetHistogramsParams

WithQuery requested substring in name. Only histograms which have query as a substring in their name are extracted. An empty or absent query returns all histograms.

type GetHistogramsReturns Uses

type GetHistogramsReturns struct {
    Histograms []*Histogram `json:"histograms,omitempty"` // Histograms.
}

GetHistogramsReturns return values.

func (GetHistogramsReturns) MarshalEasyJSON Uses

func (v GetHistogramsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetHistogramsReturns) MarshalJSON Uses

func (v GetHistogramsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetHistogramsReturns) UnmarshalEasyJSON Uses

func (v *GetHistogramsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetHistogramsReturns) UnmarshalJSON Uses

func (v *GetHistogramsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetVersionParams Uses

type GetVersionParams struct{}

GetVersionParams returns version information.

func GetVersion Uses

func GetVersion() *GetVersionParams

GetVersion returns version information.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-getVersion

func (*GetVersionParams) Do Uses

func (p *GetVersionParams) Do(ctx context.Context) (protocolVersion string, product string, revision string, userAgent string, jsVersion string, err error)

Do executes Browser.getVersion against the provided context.

returns:

protocolVersion - Protocol version.
product - Product name.
revision - Product revision.
userAgent - User-Agent.
jsVersion - V8 version.

func (GetVersionParams) MarshalEasyJSON Uses

func (v GetVersionParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetVersionParams) MarshalJSON Uses

func (v GetVersionParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetVersionParams) UnmarshalEasyJSON Uses

func (v *GetVersionParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetVersionParams) UnmarshalJSON Uses

func (v *GetVersionParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetVersionReturns Uses

type GetVersionReturns struct {
    ProtocolVersion string `json:"protocolVersion,omitempty"` // Protocol version.
    Product         string `json:"product,omitempty"`         // Product name.
    Revision        string `json:"revision,omitempty"`        // Product revision.
    UserAgent       string `json:"userAgent,omitempty"`       // User-Agent.
    JsVersion       string `json:"jsVersion,omitempty"`       // V8 version.
}

GetVersionReturns return values.

func (GetVersionReturns) MarshalEasyJSON Uses

func (v GetVersionReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetVersionReturns) MarshalJSON Uses

func (v GetVersionReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetVersionReturns) UnmarshalEasyJSON Uses

func (v *GetVersionReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetVersionReturns) UnmarshalJSON Uses

func (v *GetVersionReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetWindowBoundsParams Uses

type GetWindowBoundsParams struct {
    WindowID WindowID `json:"windowId"` // Browser window id.
}

GetWindowBoundsParams get position and size of the browser window.

func GetWindowBounds Uses

func GetWindowBounds(windowID WindowID) *GetWindowBoundsParams

GetWindowBounds get position and size of the browser window.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-getWindowBounds

parameters:

windowID - Browser window id.

func (*GetWindowBoundsParams) Do Uses

func (p *GetWindowBoundsParams) Do(ctx context.Context) (bounds *Bounds, err error)

Do executes Browser.getWindowBounds against the provided context.

returns:

bounds - Bounds information of the window. When window state is 'minimized', the restored window position and size are returned.

func (GetWindowBoundsParams) MarshalEasyJSON Uses

func (v GetWindowBoundsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetWindowBoundsParams) MarshalJSON Uses

func (v GetWindowBoundsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetWindowBoundsParams) UnmarshalEasyJSON Uses

func (v *GetWindowBoundsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetWindowBoundsParams) UnmarshalJSON Uses

func (v *GetWindowBoundsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetWindowBoundsReturns Uses

type GetWindowBoundsReturns struct {
    Bounds *Bounds `json:"bounds,omitempty"` // Bounds information of the window. When window state is 'minimized', the restored window position and size are returned.
}

GetWindowBoundsReturns return values.

func (GetWindowBoundsReturns) MarshalEasyJSON Uses

func (v GetWindowBoundsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetWindowBoundsReturns) MarshalJSON Uses

func (v GetWindowBoundsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetWindowBoundsReturns) UnmarshalEasyJSON Uses

func (v *GetWindowBoundsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetWindowBoundsReturns) UnmarshalJSON Uses

func (v *GetWindowBoundsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetWindowForTargetParams Uses

type GetWindowForTargetParams struct {
    TargetID target.ID `json:"targetId,omitempty"` // Devtools agent host id. If called as a part of the session, associated targetId is used.
}

GetWindowForTargetParams get the browser window that contains the devtools target.

func GetWindowForTarget Uses

func GetWindowForTarget() *GetWindowForTargetParams

GetWindowForTarget get the browser window that contains the devtools target.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-getWindowForTarget

parameters:

func (*GetWindowForTargetParams) Do Uses

func (p *GetWindowForTargetParams) Do(ctx context.Context) (windowID WindowID, bounds *Bounds, err error)

Do executes Browser.getWindowForTarget against the provided context.

returns:

windowID - Browser window id.
bounds - Bounds information of the window. When window state is 'minimized', the restored window position and size are returned.

func (GetWindowForTargetParams) MarshalEasyJSON Uses

func (v GetWindowForTargetParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetWindowForTargetParams) MarshalJSON Uses

func (v GetWindowForTargetParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetWindowForTargetParams) UnmarshalEasyJSON Uses

func (v *GetWindowForTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetWindowForTargetParams) UnmarshalJSON Uses

func (v *GetWindowForTargetParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetWindowForTargetParams) WithTargetID Uses

func (p GetWindowForTargetParams) WithTargetID(targetID target.ID) *GetWindowForTargetParams

WithTargetID devtools agent host id. If called as a part of the session, associated targetId is used.

type GetWindowForTargetReturns Uses

type GetWindowForTargetReturns struct {
    WindowID WindowID `json:"windowId,omitempty"` // Browser window id.
    Bounds   *Bounds  `json:"bounds,omitempty"`   // Bounds information of the window. When window state is 'minimized', the restored window position and size are returned.
}

GetWindowForTargetReturns return values.

func (GetWindowForTargetReturns) MarshalEasyJSON Uses

func (v GetWindowForTargetReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetWindowForTargetReturns) MarshalJSON Uses

func (v GetWindowForTargetReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetWindowForTargetReturns) UnmarshalEasyJSON Uses

func (v *GetWindowForTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetWindowForTargetReturns) UnmarshalJSON Uses

func (v *GetWindowForTargetReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GrantPermissionsParams Uses

type GrantPermissionsParams struct {
    Permissions      []PermissionType     `json:"permissions"`
    Origin           string               `json:"origin,omitempty"`           // Origin the permission applies to, all origins if not specified.
    BrowserContextID cdp.BrowserContextID `json:"browserContextId,omitempty"` // BrowserContext to override permissions. When omitted, default browser context is used.
}

GrantPermissionsParams grant specific permissions to the given origin and reject all others.

func GrantPermissions Uses

func GrantPermissions(permissions []PermissionType) *GrantPermissionsParams

GrantPermissions grant specific permissions to the given origin and reject all others.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-grantPermissions

parameters:

permissions

func (*GrantPermissionsParams) Do Uses

func (p *GrantPermissionsParams) Do(ctx context.Context) (err error)

Do executes Browser.grantPermissions against the provided context.

func (GrantPermissionsParams) MarshalEasyJSON Uses

func (v GrantPermissionsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GrantPermissionsParams) MarshalJSON Uses

func (v GrantPermissionsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GrantPermissionsParams) UnmarshalEasyJSON Uses

func (v *GrantPermissionsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GrantPermissionsParams) UnmarshalJSON Uses

func (v *GrantPermissionsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GrantPermissionsParams) WithBrowserContextID Uses

func (p GrantPermissionsParams) WithBrowserContextID(browserContextID cdp.BrowserContextID) *GrantPermissionsParams

WithBrowserContextID browserContext to override permissions. When omitted, default browser context is used.

func (GrantPermissionsParams) WithOrigin Uses

func (p GrantPermissionsParams) WithOrigin(origin string) *GrantPermissionsParams

WithOrigin origin the permission applies to, all origins if not specified.

type Histogram Uses

type Histogram struct {
    Name    string    `json:"name"`    // Name.
    Sum     int64     `json:"sum"`     // Sum of sample values.
    Count   int64     `json:"count"`   // Total number of samples.
    Buckets []*Bucket `json:"buckets"` // Buckets.
}

Histogram chrome histogram.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-Histogram

func (Histogram) MarshalEasyJSON Uses

func (v Histogram) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Histogram) MarshalJSON Uses

func (v Histogram) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Histogram) UnmarshalEasyJSON Uses

func (v *Histogram) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Histogram) UnmarshalJSON Uses

func (v *Histogram) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PermissionDescriptor Uses

type PermissionDescriptor struct {
    Name                     string `json:"name"`                               // Name of permission. See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names.
    Sysex                    bool   `json:"sysex,omitempty"`                    // For "midi" permission, may also specify sysex control.
    UserVisibleOnly          bool   `json:"userVisibleOnly,omitempty"`          // For "push" permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type.
    AllowWithoutSanitization bool   `json:"allowWithoutSanitization,omitempty"` // For "clipboard" permission, may specify allowWithoutSanitization.
    PanTiltZoom              bool   `json:"panTiltZoom,omitempty"`              // For "camera" permission, may specify panTiltZoom.
}

PermissionDescriptor definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dictdef-permissiondescriptor.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-PermissionDescriptor

func (PermissionDescriptor) MarshalEasyJSON Uses

func (v PermissionDescriptor) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PermissionDescriptor) MarshalJSON Uses

func (v PermissionDescriptor) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PermissionDescriptor) UnmarshalEasyJSON Uses

func (v *PermissionDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PermissionDescriptor) UnmarshalJSON Uses

func (v *PermissionDescriptor) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PermissionSetting Uses

type PermissionSetting string

PermissionSetting [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-PermissionSetting

const (
    PermissionSettingGranted PermissionSetting = "granted"
    PermissionSettingDenied  PermissionSetting = "denied"
    PermissionSettingPrompt  PermissionSetting = "prompt"
)

PermissionSetting values.

func (PermissionSetting) MarshalEasyJSON Uses

func (t PermissionSetting) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (PermissionSetting) MarshalJSON Uses

func (t PermissionSetting) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (PermissionSetting) String Uses

func (t PermissionSetting) String() string

String returns the PermissionSetting as string value.

func (*PermissionSetting) UnmarshalEasyJSON Uses

func (t *PermissionSetting) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*PermissionSetting) UnmarshalJSON Uses

func (t *PermissionSetting) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type PermissionType Uses

type PermissionType string

PermissionType [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-PermissionType

const (
    PermissionTypeAccessibilityEvents      PermissionType = "accessibilityEvents"
    PermissionTypeAudioCapture             PermissionType = "audioCapture"
    PermissionTypeBackgroundSync           PermissionType = "backgroundSync"
    PermissionTypeBackgroundFetch          PermissionType = "backgroundFetch"
    PermissionTypeClipboardReadWrite       PermissionType = "clipboardReadWrite"
    PermissionTypeClipboardSanitizedWrite  PermissionType = "clipboardSanitizedWrite"
    PermissionTypeDisplayCapture           PermissionType = "displayCapture"
    PermissionTypeDurableStorage           PermissionType = "durableStorage"
    PermissionTypeFlash                    PermissionType = "flash"
    PermissionTypeGeolocation              PermissionType = "geolocation"
    PermissionTypeMidi                     PermissionType = "midi"
    PermissionTypeMidiSysex                PermissionType = "midiSysex"
    PermissionTypeNfc                      PermissionType = "nfc"
    PermissionTypeNotifications            PermissionType = "notifications"
    PermissionTypePaymentHandler           PermissionType = "paymentHandler"
    PermissionTypePeriodicBackgroundSync   PermissionType = "periodicBackgroundSync"
    PermissionTypeProtectedMediaIdentifier PermissionType = "protectedMediaIdentifier"
    PermissionTypeSensors                  PermissionType = "sensors"
    PermissionTypeVideoCapture             PermissionType = "videoCapture"
    PermissionTypeVideoCapturePanTiltZoom  PermissionType = "videoCapturePanTiltZoom"
    PermissionTypeIdleDetection            PermissionType = "idleDetection"
    PermissionTypeWakeLockScreen           PermissionType = "wakeLockScreen"
    PermissionTypeWakeLockSystem           PermissionType = "wakeLockSystem"
)

PermissionType values.

func (PermissionType) MarshalEasyJSON Uses

func (t PermissionType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (PermissionType) MarshalJSON Uses

func (t PermissionType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (PermissionType) String Uses

func (t PermissionType) String() string

String returns the PermissionType as string value.

func (*PermissionType) UnmarshalEasyJSON Uses

func (t *PermissionType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*PermissionType) UnmarshalJSON Uses

func (t *PermissionType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ResetPermissionsParams Uses

type ResetPermissionsParams struct {
    BrowserContextID cdp.BrowserContextID `json:"browserContextId,omitempty"` // BrowserContext to reset permissions. When omitted, default browser context is used.
}

ResetPermissionsParams reset all permission management for all origins.

func ResetPermissions Uses

func ResetPermissions() *ResetPermissionsParams

ResetPermissions reset all permission management for all origins.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-resetPermissions

parameters:

func (*ResetPermissionsParams) Do Uses

func (p *ResetPermissionsParams) Do(ctx context.Context) (err error)

Do executes Browser.resetPermissions against the provided context.

func (ResetPermissionsParams) MarshalEasyJSON Uses

func (v ResetPermissionsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResetPermissionsParams) MarshalJSON Uses

func (v ResetPermissionsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ResetPermissionsParams) UnmarshalEasyJSON Uses

func (v *ResetPermissionsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResetPermissionsParams) UnmarshalJSON Uses

func (v *ResetPermissionsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (ResetPermissionsParams) WithBrowserContextID Uses

func (p ResetPermissionsParams) WithBrowserContextID(browserContextID cdp.BrowserContextID) *ResetPermissionsParams

WithBrowserContextID browserContext to reset permissions. When omitted, default browser context is used.

type SetDockTileParams Uses

type SetDockTileParams struct {
    BadgeLabel string `json:"badgeLabel,omitempty"`
    Image      string `json:"image,omitempty"` // Png encoded image.
}

SetDockTileParams set dock tile details, platform-specific.

func SetDockTile Uses

func SetDockTile() *SetDockTileParams

SetDockTile set dock tile details, platform-specific.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-setDockTile

parameters:

func (*SetDockTileParams) Do Uses

func (p *SetDockTileParams) Do(ctx context.Context) (err error)

Do executes Browser.setDockTile against the provided context.

func (SetDockTileParams) MarshalEasyJSON Uses

func (v SetDockTileParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDockTileParams) MarshalJSON Uses

func (v SetDockTileParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetDockTileParams) UnmarshalEasyJSON Uses

func (v *SetDockTileParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDockTileParams) UnmarshalJSON Uses

func (v *SetDockTileParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetDockTileParams) WithBadgeLabel Uses

func (p SetDockTileParams) WithBadgeLabel(badgeLabel string) *SetDockTileParams

WithBadgeLabel [no description].

func (SetDockTileParams) WithImage Uses

func (p SetDockTileParams) WithImage(image string) *SetDockTileParams

WithImage png encoded image.

type SetDownloadBehaviorBehavior Uses

type SetDownloadBehaviorBehavior string

SetDownloadBehaviorBehavior whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny). |allowAndName| allows download and names files according to their dowmload guids.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-setDownloadBehavior

const (
    SetDownloadBehaviorBehaviorDeny         SetDownloadBehaviorBehavior = "deny"
    SetDownloadBehaviorBehaviorAllow        SetDownloadBehaviorBehavior = "allow"
    SetDownloadBehaviorBehaviorAllowAndName SetDownloadBehaviorBehavior = "allowAndName"
    SetDownloadBehaviorBehaviorDefault      SetDownloadBehaviorBehavior = "default"
)

SetDownloadBehaviorBehavior values.

func (SetDownloadBehaviorBehavior) MarshalEasyJSON Uses

func (t SetDownloadBehaviorBehavior) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (SetDownloadBehaviorBehavior) MarshalJSON Uses

func (t SetDownloadBehaviorBehavior) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (SetDownloadBehaviorBehavior) String Uses

func (t SetDownloadBehaviorBehavior) String() string

String returns the SetDownloadBehaviorBehavior as string value.

func (*SetDownloadBehaviorBehavior) UnmarshalEasyJSON Uses

func (t *SetDownloadBehaviorBehavior) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*SetDownloadBehaviorBehavior) UnmarshalJSON Uses

func (t *SetDownloadBehaviorBehavior) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type SetDownloadBehaviorParams Uses

type SetDownloadBehaviorParams struct {
    Behavior         SetDownloadBehaviorBehavior `json:"behavior"`                   // Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny). |allowAndName| allows download and names files according to their dowmload guids.
    BrowserContextID cdp.BrowserContextID        `json:"browserContextId,omitempty"` // BrowserContext to set download behavior. When omitted, default browser context is used.
    DownloadPath     string                      `json:"downloadPath,omitempty"`     // The default path to save downloaded files to. This is required if behavior is set to 'allow' or 'allowAndName'.
}

SetDownloadBehaviorParams set the behavior when downloading a file.

func SetDownloadBehavior Uses

func SetDownloadBehavior(behavior SetDownloadBehaviorBehavior) *SetDownloadBehaviorParams

SetDownloadBehavior set the behavior when downloading a file.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-setDownloadBehavior

parameters:

behavior - Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny). |allowAndName| allows download and names files according to their dowmload guids.

func (*SetDownloadBehaviorParams) Do Uses

func (p *SetDownloadBehaviorParams) Do(ctx context.Context) (err error)

Do executes Browser.setDownloadBehavior against the provided context.

func (SetDownloadBehaviorParams) MarshalEasyJSON Uses

func (v SetDownloadBehaviorParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDownloadBehaviorParams) MarshalJSON Uses

func (v SetDownloadBehaviorParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetDownloadBehaviorParams) UnmarshalEasyJSON Uses

func (v *SetDownloadBehaviorParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDownloadBehaviorParams) UnmarshalJSON Uses

func (v *SetDownloadBehaviorParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetDownloadBehaviorParams) WithBrowserContextID Uses

func (p SetDownloadBehaviorParams) WithBrowserContextID(browserContextID cdp.BrowserContextID) *SetDownloadBehaviorParams

WithBrowserContextID browserContext to set download behavior. When omitted, default browser context is used.

func (SetDownloadBehaviorParams) WithDownloadPath Uses

func (p SetDownloadBehaviorParams) WithDownloadPath(downloadPath string) *SetDownloadBehaviorParams

WithDownloadPath the default path to save downloaded files to. This is required if behavior is set to 'allow' or 'allowAndName'.

type SetPermissionParams Uses

type SetPermissionParams struct {
    Permission       *PermissionDescriptor `json:"permission"`                 // Descriptor of permission to override.
    Setting          PermissionSetting     `json:"setting"`                    // Setting of the permission.
    Origin           string                `json:"origin,omitempty"`           // Origin the permission applies to, all origins if not specified.
    BrowserContextID cdp.BrowserContextID  `json:"browserContextId,omitempty"` // Context to override. When omitted, default browser context is used.
}

SetPermissionParams set permission settings for given origin.

func SetPermission Uses

func SetPermission(permission *PermissionDescriptor, setting PermissionSetting) *SetPermissionParams

SetPermission set permission settings for given origin.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-setPermission

parameters:

permission - Descriptor of permission to override.
setting - Setting of the permission.

func (*SetPermissionParams) Do Uses

func (p *SetPermissionParams) Do(ctx context.Context) (err error)

Do executes Browser.setPermission against the provided context.

func (SetPermissionParams) MarshalEasyJSON Uses

func (v SetPermissionParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPermissionParams) MarshalJSON Uses

func (v SetPermissionParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetPermissionParams) UnmarshalEasyJSON Uses

func (v *SetPermissionParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetPermissionParams) UnmarshalJSON Uses

func (v *SetPermissionParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetPermissionParams) WithBrowserContextID Uses

func (p SetPermissionParams) WithBrowserContextID(browserContextID cdp.BrowserContextID) *SetPermissionParams

WithBrowserContextID context to override. When omitted, default browser context is used.

func (SetPermissionParams) WithOrigin Uses

func (p SetPermissionParams) WithOrigin(origin string) *SetPermissionParams

WithOrigin origin the permission applies to, all origins if not specified.

type SetWindowBoundsParams Uses

type SetWindowBoundsParams struct {
    WindowID WindowID `json:"windowId"` // Browser window id.
    Bounds   *Bounds  `json:"bounds"`   // New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.
}

SetWindowBoundsParams set position and/or size of the browser window.

func SetWindowBounds Uses

func SetWindowBounds(windowID WindowID, bounds *Bounds) *SetWindowBoundsParams

SetWindowBounds set position and/or size of the browser window.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-setWindowBounds

parameters:

windowID - Browser window id.
bounds - New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.

func (*SetWindowBoundsParams) Do Uses

func (p *SetWindowBoundsParams) Do(ctx context.Context) (err error)

Do executes Browser.setWindowBounds against the provided context.

func (SetWindowBoundsParams) MarshalEasyJSON Uses

func (v SetWindowBoundsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetWindowBoundsParams) MarshalJSON Uses

func (v SetWindowBoundsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetWindowBoundsParams) UnmarshalEasyJSON Uses

func (v *SetWindowBoundsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetWindowBoundsParams) UnmarshalJSON Uses

func (v *SetWindowBoundsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type WindowID Uses

type WindowID int64

WindowID [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-WindowID

func (WindowID) Int64 Uses

func (t WindowID) Int64() int64

Int64 returns the WindowID as int64 value.

type WindowState Uses

type WindowState string

WindowState the state of the browser window.

See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-WindowState

const (
    WindowStateNormal     WindowState = "normal"
    WindowStateMinimized  WindowState = "minimized"
    WindowStateMaximized  WindowState = "maximized"
    WindowStateFullscreen WindowState = "fullscreen"
)

WindowState values.

func (WindowState) MarshalEasyJSON Uses

func (t WindowState) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (WindowState) MarshalJSON Uses

func (t WindowState) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (WindowState) String Uses

func (t WindowState) String() string

String returns the WindowState as string value.

func (*WindowState) UnmarshalEasyJSON Uses

func (t *WindowState) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*WindowState) UnmarshalJSON Uses

func (t *WindowState) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

Package browser imports 8 packages (graph) and is imported by 8 packages. Updated 2021-01-06. Refresh now. Tools for package owners.