package browser
Import Path
github.com/chromedp/cdproto/browser (on go.dev)
Dependency Relation
imports 8 packages, and imported by 2 packages
Involved Source Files
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.
easyjson.go
events.go
types.go
Package-Level Type Names (total 37)
AddPrivacySandboxEnrollmentOverrideParams allows a site to use privacy
sandbox features that require enrollment without the site actually being
enrolled. Only supported on page targets.
// Resource URL substring.
Do executes Browser.addPrivacySandboxEnrollmentOverride against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*AddPrivacySandboxEnrollmentOverrideParams : github.com/chromedp/chromedp.Action
*AddPrivacySandboxEnrollmentOverrideParams : github.com/chromedp/chromedp.CallAction
*AddPrivacySandboxEnrollmentOverrideParams : github.com/chromedp/chromedp.EmulateAction
*AddPrivacySandboxEnrollmentOverrideParams : github.com/chromedp/chromedp.EvaluateAction
*AddPrivacySandboxEnrollmentOverrideParams : github.com/chromedp/chromedp.KeyAction
*AddPrivacySandboxEnrollmentOverrideParams : github.com/chromedp/chromedp.MouseAction
*AddPrivacySandboxEnrollmentOverrideParams : github.com/chromedp/chromedp.NavigateAction
*AddPrivacySandboxEnrollmentOverrideParams : github.com/chromedp/chromedp.PollAction
*AddPrivacySandboxEnrollmentOverrideParams : github.com/chromedp/chromedp.QueryAction
AddPrivacySandboxEnrollmentOverrideParams : github.com/goccy/go-json.Marshaler
*AddPrivacySandboxEnrollmentOverrideParams : github.com/goccy/go-json.Unmarshaler
AddPrivacySandboxEnrollmentOverrideParams : github.com/mailru/easyjson.Marshaler
*AddPrivacySandboxEnrollmentOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*AddPrivacySandboxEnrollmentOverrideParams : github.com/mailru/easyjson.Unmarshaler
AddPrivacySandboxEnrollmentOverrideParams : encoding/json.Marshaler
*AddPrivacySandboxEnrollmentOverrideParams : encoding/json.Unmarshaler
func AddPrivacySandboxEnrollmentOverride(url string) *AddPrivacySandboxEnrollmentOverrideParams
Bounds browser window bounds information.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-Bounds
// The window height in pixels.
// The offset from the left edge of the screen to the window in pixels.
// The offset from the top edge of the screen to the window in pixels.
// The window width in pixels.
// The window state. Default to normal.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Bounds : github.com/goccy/go-json.Marshaler
*Bounds : github.com/goccy/go-json.Unmarshaler
Bounds : github.com/mailru/easyjson.Marshaler
*Bounds : github.com/mailru/easyjson.MarshalerUnmarshaler
*Bounds : github.com/mailru/easyjson.Unmarshaler
Bounds : encoding/json.Marshaler
*Bounds : encoding/json.Unmarshaler
func (*GetWindowBoundsParams).Do(ctx context.Context) (bounds *Bounds, err error)
func (*GetWindowForTargetParams).Do(ctx context.Context) (windowID WindowID, bounds *Bounds, err error)
func SetWindowBounds(windowID WindowID, bounds *Bounds) *SetWindowBoundsParams
Bucket chrome histogram bucket.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-Bucket
// Number of samples.
// Maximum value (exclusive).
// Minimum value (inclusive).
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Bucket : github.com/goccy/go-json.Marshaler
*Bucket : github.com/goccy/go-json.Unmarshaler
Bucket : github.com/mailru/easyjson.Marshaler
*Bucket : github.com/mailru/easyjson.MarshalerUnmarshaler
*Bucket : github.com/mailru/easyjson.Unmarshaler
Bucket : encoding/json.Marshaler
*Bucket : encoding/json.Unmarshaler
CancelDownloadParams cancel a download if in progress.
// BrowserContext to perform the action in. When omitted, default browser context is used.
// Global unique identifier of the download.
Do executes Browser.cancelDownload against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
WithBrowserContextID browserContext to perform the action in. When
omitted, default browser context is used.
*CancelDownloadParams : github.com/chromedp/chromedp.Action
*CancelDownloadParams : github.com/chromedp/chromedp.CallAction
*CancelDownloadParams : github.com/chromedp/chromedp.EmulateAction
*CancelDownloadParams : github.com/chromedp/chromedp.EvaluateAction
*CancelDownloadParams : github.com/chromedp/chromedp.KeyAction
*CancelDownloadParams : github.com/chromedp/chromedp.MouseAction
*CancelDownloadParams : github.com/chromedp/chromedp.NavigateAction
*CancelDownloadParams : github.com/chromedp/chromedp.PollAction
*CancelDownloadParams : github.com/chromedp/chromedp.QueryAction
CancelDownloadParams : github.com/goccy/go-json.Marshaler
*CancelDownloadParams : github.com/goccy/go-json.Unmarshaler
CancelDownloadParams : github.com/mailru/easyjson.Marshaler
*CancelDownloadParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*CancelDownloadParams : github.com/mailru/easyjson.Unmarshaler
CancelDownloadParams : encoding/json.Marshaler
*CancelDownloadParams : encoding/json.Unmarshaler
func CancelDownload(guid string) *CancelDownloadParams
func CancelDownloadParams.WithBrowserContextID(browserContextID cdp.BrowserContextID) *CancelDownloadParams
CloseParams close browser gracefully.
Do executes Browser.close against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*CloseParams : github.com/chromedp/chromedp.Action
*CloseParams : github.com/chromedp/chromedp.CallAction
*CloseParams : github.com/chromedp/chromedp.EmulateAction
*CloseParams : github.com/chromedp/chromedp.EvaluateAction
*CloseParams : github.com/chromedp/chromedp.KeyAction
*CloseParams : github.com/chromedp/chromedp.MouseAction
*CloseParams : github.com/chromedp/chromedp.NavigateAction
*CloseParams : github.com/chromedp/chromedp.PollAction
*CloseParams : github.com/chromedp/chromedp.QueryAction
CloseParams : github.com/goccy/go-json.Marshaler
*CloseParams : github.com/goccy/go-json.Unmarshaler
CloseParams : github.com/mailru/easyjson.Marshaler
*CloseParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*CloseParams : github.com/mailru/easyjson.Unmarshaler
CloseParams : encoding/json.Marshaler
*CloseParams : encoding/json.Unmarshaler
func Close() *CloseParams
CommandID browser command ids used by executeBrowserCommand.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-BrowserCommandId
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the CommandID as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
CommandID : github.com/goccy/go-json.Marshaler
*CommandID : github.com/goccy/go-json.Unmarshaler
CommandID : github.com/mailru/easyjson.Marshaler
*CommandID : github.com/mailru/easyjson.MarshalerUnmarshaler
*CommandID : github.com/mailru/easyjson.Unmarshaler
CommandID : encoding/json.Marshaler
*CommandID : encoding/json.Unmarshaler
CommandID : expvar.Var
CommandID : fmt.Stringer
func ExecuteBrowserCommand(commandID CommandID) *ExecuteBrowserCommandParams
const CommandIDCloseTabSearch
const CommandIDOpenTabSearch
CrashGpuProcessParams crashes GPU process.
Do executes Browser.crashGpuProcess against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*CrashGpuProcessParams : github.com/chromedp/chromedp.Action
*CrashGpuProcessParams : github.com/chromedp/chromedp.CallAction
*CrashGpuProcessParams : github.com/chromedp/chromedp.EmulateAction
*CrashGpuProcessParams : github.com/chromedp/chromedp.EvaluateAction
*CrashGpuProcessParams : github.com/chromedp/chromedp.KeyAction
*CrashGpuProcessParams : github.com/chromedp/chromedp.MouseAction
*CrashGpuProcessParams : github.com/chromedp/chromedp.NavigateAction
*CrashGpuProcessParams : github.com/chromedp/chromedp.PollAction
*CrashGpuProcessParams : github.com/chromedp/chromedp.QueryAction
CrashGpuProcessParams : github.com/goccy/go-json.Marshaler
*CrashGpuProcessParams : github.com/goccy/go-json.Unmarshaler
CrashGpuProcessParams : github.com/mailru/easyjson.Marshaler
*CrashGpuProcessParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*CrashGpuProcessParams : github.com/mailru/easyjson.Unmarshaler
CrashGpuProcessParams : encoding/json.Marshaler
*CrashGpuProcessParams : encoding/json.Unmarshaler
func CrashGpuProcess() *CrashGpuProcessParams
CrashParams crashes browser on the main thread.
Do executes Browser.crash against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*CrashParams : github.com/chromedp/chromedp.Action
*CrashParams : github.com/chromedp/chromedp.CallAction
*CrashParams : github.com/chromedp/chromedp.EmulateAction
*CrashParams : github.com/chromedp/chromedp.EvaluateAction
*CrashParams : github.com/chromedp/chromedp.KeyAction
*CrashParams : github.com/chromedp/chromedp.MouseAction
*CrashParams : github.com/chromedp/chromedp.NavigateAction
*CrashParams : github.com/chromedp/chromedp.PollAction
*CrashParams : github.com/chromedp/chromedp.QueryAction
CrashParams : github.com/goccy/go-json.Marshaler
*CrashParams : github.com/goccy/go-json.Unmarshaler
CrashParams : github.com/mailru/easyjson.Marshaler
*CrashParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*CrashParams : github.com/mailru/easyjson.Unmarshaler
CrashParams : encoding/json.Marshaler
*CrashParams : encoding/json.Unmarshaler
func Crash() *CrashParams
DownloadProgressState download status.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#event-downloadProgress
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the DownloadProgressState as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
DownloadProgressState : github.com/goccy/go-json.Marshaler
*DownloadProgressState : github.com/goccy/go-json.Unmarshaler
DownloadProgressState : github.com/mailru/easyjson.Marshaler
*DownloadProgressState : github.com/mailru/easyjson.MarshalerUnmarshaler
*DownloadProgressState : github.com/mailru/easyjson.Unmarshaler
DownloadProgressState : encoding/json.Marshaler
*DownloadProgressState : encoding/json.Unmarshaler
DownloadProgressState : expvar.Var
DownloadProgressState : fmt.Stringer
const DownloadProgressStateCanceled
const DownloadProgressStateCompleted
const DownloadProgressStateInProgress
EventDownloadProgress fired when download makes progress. Last call has
|done| == true.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#event-downloadProgress
// Global unique identifier of the download.
// Total bytes received.
// Download status.
// Total expected bytes to download.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventDownloadProgress : github.com/goccy/go-json.Marshaler
*EventDownloadProgress : github.com/goccy/go-json.Unmarshaler
EventDownloadProgress : github.com/mailru/easyjson.Marshaler
*EventDownloadProgress : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventDownloadProgress : github.com/mailru/easyjson.Unmarshaler
EventDownloadProgress : encoding/json.Marshaler
*EventDownloadProgress : encoding/json.Unmarshaler
EventDownloadWillBegin fired when page is about to start a download.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#event-downloadWillBegin
// Id of the frame that caused the download to begin.
// Global unique identifier of the download.
// Suggested file name of the resource (the actual name of the file saved on disk may differ).
// URL of the resource being downloaded.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventDownloadWillBegin : github.com/goccy/go-json.Marshaler
*EventDownloadWillBegin : github.com/goccy/go-json.Unmarshaler
EventDownloadWillBegin : github.com/mailru/easyjson.Marshaler
*EventDownloadWillBegin : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventDownloadWillBegin : github.com/mailru/easyjson.Unmarshaler
EventDownloadWillBegin : encoding/json.Marshaler
*EventDownloadWillBegin : encoding/json.Unmarshaler
ExecuteBrowserCommandParams invoke custom browser commands used by
telemetry.
CommandID CommandID
Do executes Browser.executeBrowserCommand against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*ExecuteBrowserCommandParams : github.com/chromedp/chromedp.Action
*ExecuteBrowserCommandParams : github.com/chromedp/chromedp.CallAction
*ExecuteBrowserCommandParams : github.com/chromedp/chromedp.EmulateAction
*ExecuteBrowserCommandParams : github.com/chromedp/chromedp.EvaluateAction
*ExecuteBrowserCommandParams : github.com/chromedp/chromedp.KeyAction
*ExecuteBrowserCommandParams : github.com/chromedp/chromedp.MouseAction
*ExecuteBrowserCommandParams : github.com/chromedp/chromedp.NavigateAction
*ExecuteBrowserCommandParams : github.com/chromedp/chromedp.PollAction
*ExecuteBrowserCommandParams : github.com/chromedp/chromedp.QueryAction
ExecuteBrowserCommandParams : github.com/goccy/go-json.Marshaler
*ExecuteBrowserCommandParams : github.com/goccy/go-json.Unmarshaler
ExecuteBrowserCommandParams : github.com/mailru/easyjson.Marshaler
*ExecuteBrowserCommandParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*ExecuteBrowserCommandParams : github.com/mailru/easyjson.Unmarshaler
ExecuteBrowserCommandParams : encoding/json.Marshaler
*ExecuteBrowserCommandParams : encoding/json.Unmarshaler
func ExecuteBrowserCommand(commandID CommandID) *ExecuteBrowserCommandParams
GetBrowserCommandLineParams returns the command line switches for the
browser process if, and only if --enable-automation is on the commandline.
Do executes Browser.getBrowserCommandLine against the provided context.
returns:
arguments - Commandline parameters
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetBrowserCommandLineParams : github.com/goccy/go-json.Marshaler
*GetBrowserCommandLineParams : github.com/goccy/go-json.Unmarshaler
GetBrowserCommandLineParams : github.com/mailru/easyjson.Marshaler
*GetBrowserCommandLineParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetBrowserCommandLineParams : github.com/mailru/easyjson.Unmarshaler
GetBrowserCommandLineParams : encoding/json.Marshaler
*GetBrowserCommandLineParams : encoding/json.Unmarshaler
func GetBrowserCommandLine() *GetBrowserCommandLineParams
GetBrowserCommandLineReturns return values.
// Commandline parameters
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetBrowserCommandLineReturns : github.com/goccy/go-json.Marshaler
*GetBrowserCommandLineReturns : github.com/goccy/go-json.Unmarshaler
GetBrowserCommandLineReturns : github.com/mailru/easyjson.Marshaler
*GetBrowserCommandLineReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetBrowserCommandLineReturns : github.com/mailru/easyjson.Unmarshaler
GetBrowserCommandLineReturns : encoding/json.Marshaler
*GetBrowserCommandLineReturns : encoding/json.Unmarshaler
GetHistogramParams get a Chrome histogram by name.
// If true, retrieve delta since last delta call.
// Requested histogram name.
Do executes Browser.getHistogram against the provided context.
returns:
histogram - Histogram.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
WithDelta if true, retrieve delta since last delta call.
GetHistogramParams : github.com/goccy/go-json.Marshaler
*GetHistogramParams : github.com/goccy/go-json.Unmarshaler
GetHistogramParams : github.com/mailru/easyjson.Marshaler
*GetHistogramParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetHistogramParams : github.com/mailru/easyjson.Unmarshaler
GetHistogramParams : encoding/json.Marshaler
*GetHistogramParams : encoding/json.Unmarshaler
func GetHistogram(name string) *GetHistogramParams
func GetHistogramParams.WithDelta(delta bool) *GetHistogramParams
GetHistogramReturns return values.
// Histogram.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetHistogramReturns : github.com/goccy/go-json.Marshaler
*GetHistogramReturns : github.com/goccy/go-json.Unmarshaler
GetHistogramReturns : github.com/mailru/easyjson.Marshaler
*GetHistogramReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetHistogramReturns : github.com/mailru/easyjson.Unmarshaler
GetHistogramReturns : encoding/json.Marshaler
*GetHistogramReturns : encoding/json.Unmarshaler
GetHistogramsParams get Chrome histograms.
// If true, retrieve delta since last delta call.
// 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.
Do executes Browser.getHistograms against the provided context.
returns:
histograms - Histograms.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
WithDelta if true, retrieve delta since last delta call.
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.
GetHistogramsParams : github.com/goccy/go-json.Marshaler
*GetHistogramsParams : github.com/goccy/go-json.Unmarshaler
GetHistogramsParams : github.com/mailru/easyjson.Marshaler
*GetHistogramsParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetHistogramsParams : github.com/mailru/easyjson.Unmarshaler
GetHistogramsParams : encoding/json.Marshaler
*GetHistogramsParams : encoding/json.Unmarshaler
func GetHistograms() *GetHistogramsParams
func GetHistogramsParams.WithDelta(delta bool) *GetHistogramsParams
func GetHistogramsParams.WithQuery(query string) *GetHistogramsParams
GetHistogramsReturns return values.
// Histograms.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetHistogramsReturns : github.com/goccy/go-json.Marshaler
*GetHistogramsReturns : github.com/goccy/go-json.Unmarshaler
GetHistogramsReturns : github.com/mailru/easyjson.Marshaler
*GetHistogramsReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetHistogramsReturns : github.com/mailru/easyjson.Unmarshaler
GetHistogramsReturns : encoding/json.Marshaler
*GetHistogramsReturns : encoding/json.Unmarshaler
GetVersionParams returns version information.
Do executes Browser.getVersion against the provided context.
returns:
protocolVersion - Protocol version.
product - Product name.
revision - Product revision.
userAgent - User-Agent.
jsVersion - V8 version.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetVersionParams : github.com/goccy/go-json.Marshaler
*GetVersionParams : github.com/goccy/go-json.Unmarshaler
GetVersionParams : github.com/mailru/easyjson.Marshaler
*GetVersionParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetVersionParams : github.com/mailru/easyjson.Unmarshaler
GetVersionParams : encoding/json.Marshaler
*GetVersionParams : encoding/json.Unmarshaler
func GetVersion() *GetVersionParams
GetVersionReturns return values.
// V8 version.
// Product name.
// Protocol version.
// Product revision.
// User-Agent.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetVersionReturns : github.com/goccy/go-json.Marshaler
*GetVersionReturns : github.com/goccy/go-json.Unmarshaler
GetVersionReturns : github.com/mailru/easyjson.Marshaler
*GetVersionReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetVersionReturns : github.com/mailru/easyjson.Unmarshaler
GetVersionReturns : encoding/json.Marshaler
*GetVersionReturns : encoding/json.Unmarshaler
GetWindowBoundsParams get position and size of the browser window.
// Browser window id.
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.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetWindowBoundsParams : github.com/goccy/go-json.Marshaler
*GetWindowBoundsParams : github.com/goccy/go-json.Unmarshaler
GetWindowBoundsParams : github.com/mailru/easyjson.Marshaler
*GetWindowBoundsParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetWindowBoundsParams : github.com/mailru/easyjson.Unmarshaler
GetWindowBoundsParams : encoding/json.Marshaler
*GetWindowBoundsParams : encoding/json.Unmarshaler
func GetWindowBounds(windowID WindowID) *GetWindowBoundsParams
GetWindowBoundsReturns return values.
// Bounds information of the window. When window state is 'minimized', the restored window position and size are returned.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetWindowBoundsReturns : github.com/goccy/go-json.Marshaler
*GetWindowBoundsReturns : github.com/goccy/go-json.Unmarshaler
GetWindowBoundsReturns : github.com/mailru/easyjson.Marshaler
*GetWindowBoundsReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetWindowBoundsReturns : github.com/mailru/easyjson.Unmarshaler
GetWindowBoundsReturns : encoding/json.Marshaler
*GetWindowBoundsReturns : encoding/json.Unmarshaler
GetWindowForTargetParams get the browser window that contains the devtools
target.
// The id of the page opened.
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.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
WithTargetID devtools agent host id. If called as a part of the session,
associated targetId is used.
GetWindowForTargetParams : github.com/goccy/go-json.Marshaler
*GetWindowForTargetParams : github.com/goccy/go-json.Unmarshaler
GetWindowForTargetParams : github.com/mailru/easyjson.Marshaler
*GetWindowForTargetParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetWindowForTargetParams : github.com/mailru/easyjson.Unmarshaler
GetWindowForTargetParams : encoding/json.Marshaler
*GetWindowForTargetParams : encoding/json.Unmarshaler
func GetWindowForTarget() *GetWindowForTargetParams
func GetWindowForTargetParams.WithTargetID(targetID target.ID) *GetWindowForTargetParams
GetWindowForTargetReturns return values.
// Bounds information of the window. When window state is 'minimized', the restored window position and size are returned.
// Browser window id.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetWindowForTargetReturns : github.com/goccy/go-json.Marshaler
*GetWindowForTargetReturns : github.com/goccy/go-json.Unmarshaler
GetWindowForTargetReturns : github.com/mailru/easyjson.Marshaler
*GetWindowForTargetReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetWindowForTargetReturns : github.com/mailru/easyjson.Unmarshaler
GetWindowForTargetReturns : encoding/json.Marshaler
*GetWindowForTargetReturns : encoding/json.Unmarshaler
GrantPermissionsParams grant specific permissions to the given origin and
reject all others.
// BrowserContext to override permissions. When omitted, default browser context is used.
// Origin the permission applies to, all origins if not specified.
Permissions []PermissionType
Do executes Browser.grantPermissions against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
WithBrowserContextID browserContext to override permissions. When omitted,
default browser context is used.
WithOrigin origin the permission applies to, all origins if not specified.
*GrantPermissionsParams : github.com/chromedp/chromedp.Action
*GrantPermissionsParams : github.com/chromedp/chromedp.CallAction
*GrantPermissionsParams : github.com/chromedp/chromedp.EmulateAction
*GrantPermissionsParams : github.com/chromedp/chromedp.EvaluateAction
*GrantPermissionsParams : github.com/chromedp/chromedp.KeyAction
*GrantPermissionsParams : github.com/chromedp/chromedp.MouseAction
*GrantPermissionsParams : github.com/chromedp/chromedp.NavigateAction
*GrantPermissionsParams : github.com/chromedp/chromedp.PollAction
*GrantPermissionsParams : github.com/chromedp/chromedp.QueryAction
GrantPermissionsParams : github.com/goccy/go-json.Marshaler
*GrantPermissionsParams : github.com/goccy/go-json.Unmarshaler
GrantPermissionsParams : github.com/mailru/easyjson.Marshaler
*GrantPermissionsParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GrantPermissionsParams : github.com/mailru/easyjson.Unmarshaler
GrantPermissionsParams : encoding/json.Marshaler
*GrantPermissionsParams : encoding/json.Unmarshaler
func GrantPermissions(permissions []PermissionType) *GrantPermissionsParams
func GrantPermissionsParams.WithBrowserContextID(browserContextID cdp.BrowserContextID) *GrantPermissionsParams
func GrantPermissionsParams.WithOrigin(origin string) *GrantPermissionsParams
Histogram chrome histogram.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-Histogram
// Buckets.
// Total number of samples.
// Name.
// Sum of sample values.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Histogram : github.com/goccy/go-json.Marshaler
*Histogram : github.com/goccy/go-json.Unmarshaler
Histogram : github.com/mailru/easyjson.Marshaler
*Histogram : github.com/mailru/easyjson.MarshalerUnmarshaler
*Histogram : github.com/mailru/easyjson.Unmarshaler
Histogram : encoding/json.Marshaler
*Histogram : encoding/json.Unmarshaler
func (*GetHistogramParams).Do(ctx context.Context) (histogram *Histogram, err error)
func (*GetHistogramsParams).Do(ctx context.Context) (histograms []*Histogram, err error)
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
// For "clipboard" permission, may specify allowWithoutSanitization.
// Name of permission. See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names.
// For "camera" permission, may specify panTiltZoom.
// For "midi" permission, may also specify sysex control.
// For "push" permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
PermissionDescriptor : github.com/goccy/go-json.Marshaler
*PermissionDescriptor : github.com/goccy/go-json.Unmarshaler
PermissionDescriptor : github.com/mailru/easyjson.Marshaler
*PermissionDescriptor : github.com/mailru/easyjson.MarshalerUnmarshaler
*PermissionDescriptor : github.com/mailru/easyjson.Unmarshaler
PermissionDescriptor : encoding/json.Marshaler
*PermissionDescriptor : encoding/json.Unmarshaler
func SetPermission(permission *PermissionDescriptor, setting PermissionSetting) *SetPermissionParams
PermissionSetting [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-PermissionSetting
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the PermissionSetting as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
PermissionSetting : github.com/goccy/go-json.Marshaler
*PermissionSetting : github.com/goccy/go-json.Unmarshaler
PermissionSetting : github.com/mailru/easyjson.Marshaler
*PermissionSetting : github.com/mailru/easyjson.MarshalerUnmarshaler
*PermissionSetting : github.com/mailru/easyjson.Unmarshaler
PermissionSetting : encoding/json.Marshaler
*PermissionSetting : encoding/json.Unmarshaler
PermissionSetting : expvar.Var
PermissionSetting : fmt.Stringer
func SetPermission(permission *PermissionDescriptor, setting PermissionSetting) *SetPermissionParams
const PermissionSettingDenied
const PermissionSettingGranted
const PermissionSettingPrompt
PermissionType [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-PermissionType
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the PermissionType as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
PermissionType : github.com/goccy/go-json.Marshaler
*PermissionType : github.com/goccy/go-json.Unmarshaler
PermissionType : github.com/mailru/easyjson.Marshaler
*PermissionType : github.com/mailru/easyjson.MarshalerUnmarshaler
*PermissionType : github.com/mailru/easyjson.Unmarshaler
PermissionType : encoding/json.Marshaler
*PermissionType : encoding/json.Unmarshaler
PermissionType : expvar.Var
PermissionType : fmt.Stringer
func GrantPermissions(permissions []PermissionType) *GrantPermissionsParams
const PermissionTypeAccessibilityEvents
const PermissionTypeAudioCapture
const PermissionTypeBackgroundFetch
const PermissionTypeBackgroundSync
const PermissionTypeClipboardReadWrite
const PermissionTypeClipboardSanitizedWrite
const PermissionTypeDisplayCapture
const PermissionTypeDurableStorage
const PermissionTypeFlash
const PermissionTypeGeolocation
const PermissionTypeIdleDetection
const PermissionTypeLocalFonts
const PermissionTypeMidi
const PermissionTypeMidiSysex
const PermissionTypeNfc
const PermissionTypeNotifications
const PermissionTypePaymentHandler
const PermissionTypePeriodicBackgroundSync
const PermissionTypeProtectedMediaIdentifier
const PermissionTypeSensors
const PermissionTypeStorageAccess
const PermissionTypeTopLevelStorageAccess
const PermissionTypeVideoCapture
const PermissionTypeVideoCapturePanTiltZoom
const PermissionTypeWakeLockScreen
const PermissionTypeWakeLockSystem
const PermissionTypeWindowManagement
ResetPermissionsParams reset all permission management for all origins.
// The id of the context created.
Do executes Browser.resetPermissions against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
WithBrowserContextID browserContext to reset permissions. When omitted,
default browser context is used.
*ResetPermissionsParams : github.com/chromedp/chromedp.Action
*ResetPermissionsParams : github.com/chromedp/chromedp.CallAction
*ResetPermissionsParams : github.com/chromedp/chromedp.EmulateAction
*ResetPermissionsParams : github.com/chromedp/chromedp.EvaluateAction
*ResetPermissionsParams : github.com/chromedp/chromedp.KeyAction
*ResetPermissionsParams : github.com/chromedp/chromedp.MouseAction
*ResetPermissionsParams : github.com/chromedp/chromedp.NavigateAction
*ResetPermissionsParams : github.com/chromedp/chromedp.PollAction
*ResetPermissionsParams : github.com/chromedp/chromedp.QueryAction
ResetPermissionsParams : github.com/goccy/go-json.Marshaler
*ResetPermissionsParams : github.com/goccy/go-json.Unmarshaler
ResetPermissionsParams : github.com/mailru/easyjson.Marshaler
*ResetPermissionsParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*ResetPermissionsParams : github.com/mailru/easyjson.Unmarshaler
ResetPermissionsParams : encoding/json.Marshaler
*ResetPermissionsParams : encoding/json.Unmarshaler
func ResetPermissions() *ResetPermissionsParams
func ResetPermissionsParams.WithBrowserContextID(browserContextID cdp.BrowserContextID) *ResetPermissionsParams
SetDockTileParams set dock tile details, platform-specific.
BadgeLabel string
// Png encoded image.
Do executes Browser.setDockTile against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
WithBadgeLabel [no description].
WithImage png encoded image.
*SetDockTileParams : github.com/chromedp/chromedp.Action
*SetDockTileParams : github.com/chromedp/chromedp.CallAction
*SetDockTileParams : github.com/chromedp/chromedp.EmulateAction
*SetDockTileParams : github.com/chromedp/chromedp.EvaluateAction
*SetDockTileParams : github.com/chromedp/chromedp.KeyAction
*SetDockTileParams : github.com/chromedp/chromedp.MouseAction
*SetDockTileParams : github.com/chromedp/chromedp.NavigateAction
*SetDockTileParams : github.com/chromedp/chromedp.PollAction
*SetDockTileParams : github.com/chromedp/chromedp.QueryAction
SetDockTileParams : github.com/goccy/go-json.Marshaler
*SetDockTileParams : github.com/goccy/go-json.Unmarshaler
SetDockTileParams : github.com/mailru/easyjson.Marshaler
*SetDockTileParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetDockTileParams : github.com/mailru/easyjson.Unmarshaler
SetDockTileParams : encoding/json.Marshaler
*SetDockTileParams : encoding/json.Unmarshaler
func SetDockTile() *SetDockTileParams
func SetDockTileParams.WithBadgeLabel(badgeLabel string) *SetDockTileParams
func SetDockTileParams.WithImage(image string) *SetDockTileParams
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
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the SetDownloadBehaviorBehavior as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
SetDownloadBehaviorBehavior : github.com/goccy/go-json.Marshaler
*SetDownloadBehaviorBehavior : github.com/goccy/go-json.Unmarshaler
SetDownloadBehaviorBehavior : github.com/mailru/easyjson.Marshaler
*SetDownloadBehaviorBehavior : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetDownloadBehaviorBehavior : github.com/mailru/easyjson.Unmarshaler
SetDownloadBehaviorBehavior : encoding/json.Marshaler
*SetDownloadBehaviorBehavior : encoding/json.Unmarshaler
SetDownloadBehaviorBehavior : expvar.Var
SetDownloadBehaviorBehavior : fmt.Stringer
func SetDownloadBehavior(behavior SetDownloadBehaviorBehavior) *SetDownloadBehaviorParams
const SetDownloadBehaviorBehaviorAllow
const SetDownloadBehaviorBehaviorAllowAndName
const SetDownloadBehaviorBehaviorDefault
const SetDownloadBehaviorBehaviorDeny
SetDownloadBehaviorParams set the behavior when downloading a file.
// 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.
// BrowserContext to set download behavior. When omitted, default browser context is used.
// The default path to save downloaded files to. This is required if behavior is set to 'allow' or 'allowAndName'.
// Whether to emit download events (defaults to false).
Do executes Browser.setDownloadBehavior against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
WithBrowserContextID browserContext to set download behavior. When
omitted, default browser context is used.
WithDownloadPath the default path to save downloaded files to. This is
required if behavior is set to 'allow' or 'allowAndName'.
WithEventsEnabled whether to emit download events (defaults to false).
*SetDownloadBehaviorParams : github.com/chromedp/chromedp.Action
*SetDownloadBehaviorParams : github.com/chromedp/chromedp.CallAction
*SetDownloadBehaviorParams : github.com/chromedp/chromedp.EmulateAction
*SetDownloadBehaviorParams : github.com/chromedp/chromedp.EvaluateAction
*SetDownloadBehaviorParams : github.com/chromedp/chromedp.KeyAction
*SetDownloadBehaviorParams : github.com/chromedp/chromedp.MouseAction
*SetDownloadBehaviorParams : github.com/chromedp/chromedp.NavigateAction
*SetDownloadBehaviorParams : github.com/chromedp/chromedp.PollAction
*SetDownloadBehaviorParams : github.com/chromedp/chromedp.QueryAction
SetDownloadBehaviorParams : github.com/goccy/go-json.Marshaler
*SetDownloadBehaviorParams : github.com/goccy/go-json.Unmarshaler
SetDownloadBehaviorParams : github.com/mailru/easyjson.Marshaler
*SetDownloadBehaviorParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetDownloadBehaviorParams : github.com/mailru/easyjson.Unmarshaler
SetDownloadBehaviorParams : encoding/json.Marshaler
*SetDownloadBehaviorParams : encoding/json.Unmarshaler
func SetDownloadBehavior(behavior SetDownloadBehaviorBehavior) *SetDownloadBehaviorParams
func SetDownloadBehaviorParams.WithBrowserContextID(browserContextID cdp.BrowserContextID) *SetDownloadBehaviorParams
func SetDownloadBehaviorParams.WithDownloadPath(downloadPath string) *SetDownloadBehaviorParams
func SetDownloadBehaviorParams.WithEventsEnabled(eventsEnabled bool) *SetDownloadBehaviorParams
SetPermissionParams set permission settings for given origin.
// Context to override. When omitted, default browser context is used.
// Origin the permission applies to, all origins if not specified.
// Descriptor of permission to override.
// Setting of the permission.
Do executes Browser.setPermission against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
WithBrowserContextID context to override. When omitted, default browser
context is used.
WithOrigin origin the permission applies to, all origins if not specified.
*SetPermissionParams : github.com/chromedp/chromedp.Action
*SetPermissionParams : github.com/chromedp/chromedp.CallAction
*SetPermissionParams : github.com/chromedp/chromedp.EmulateAction
*SetPermissionParams : github.com/chromedp/chromedp.EvaluateAction
*SetPermissionParams : github.com/chromedp/chromedp.KeyAction
*SetPermissionParams : github.com/chromedp/chromedp.MouseAction
*SetPermissionParams : github.com/chromedp/chromedp.NavigateAction
*SetPermissionParams : github.com/chromedp/chromedp.PollAction
*SetPermissionParams : github.com/chromedp/chromedp.QueryAction
SetPermissionParams : github.com/goccy/go-json.Marshaler
*SetPermissionParams : github.com/goccy/go-json.Unmarshaler
SetPermissionParams : github.com/mailru/easyjson.Marshaler
*SetPermissionParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetPermissionParams : github.com/mailru/easyjson.Unmarshaler
SetPermissionParams : encoding/json.Marshaler
*SetPermissionParams : encoding/json.Unmarshaler
func SetPermission(permission *PermissionDescriptor, setting PermissionSetting) *SetPermissionParams
func SetPermissionParams.WithBrowserContextID(browserContextID cdp.BrowserContextID) *SetPermissionParams
func SetPermissionParams.WithOrigin(origin string) *SetPermissionParams
SetWindowBoundsParams set position and/or size of the browser window.
// New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.
// Browser window id.
Do executes Browser.setWindowBounds against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*SetWindowBoundsParams : github.com/chromedp/chromedp.Action
*SetWindowBoundsParams : github.com/chromedp/chromedp.CallAction
*SetWindowBoundsParams : github.com/chromedp/chromedp.EmulateAction
*SetWindowBoundsParams : github.com/chromedp/chromedp.EvaluateAction
*SetWindowBoundsParams : github.com/chromedp/chromedp.KeyAction
*SetWindowBoundsParams : github.com/chromedp/chromedp.MouseAction
*SetWindowBoundsParams : github.com/chromedp/chromedp.NavigateAction
*SetWindowBoundsParams : github.com/chromedp/chromedp.PollAction
*SetWindowBoundsParams : github.com/chromedp/chromedp.QueryAction
SetWindowBoundsParams : github.com/goccy/go-json.Marshaler
*SetWindowBoundsParams : github.com/goccy/go-json.Unmarshaler
SetWindowBoundsParams : github.com/mailru/easyjson.Marshaler
*SetWindowBoundsParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetWindowBoundsParams : github.com/mailru/easyjson.Unmarshaler
SetWindowBoundsParams : encoding/json.Marshaler
*SetWindowBoundsParams : encoding/json.Unmarshaler
func SetWindowBounds(windowID WindowID, bounds *Bounds) *SetWindowBoundsParams
WindowID [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-WindowID
Int64 returns the WindowID as int64 value.
func (*GetWindowForTargetParams).Do(ctx context.Context) (windowID WindowID, bounds *Bounds, err error)
func GetWindowBounds(windowID WindowID) *GetWindowBoundsParams
func SetWindowBounds(windowID WindowID, bounds *Bounds) *SetWindowBoundsParams
WindowState the state of the browser window.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-WindowState
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the WindowState as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
WindowState : github.com/goccy/go-json.Marshaler
*WindowState : github.com/goccy/go-json.Unmarshaler
WindowState : github.com/mailru/easyjson.Marshaler
*WindowState : github.com/mailru/easyjson.MarshalerUnmarshaler
*WindowState : github.com/mailru/easyjson.Unmarshaler
WindowState : encoding/json.Marshaler
*WindowState : encoding/json.Unmarshaler
WindowState : expvar.Var
WindowState : fmt.Stringer
const WindowStateFullscreen
const WindowStateMaximized
const WindowStateMinimized
const WindowStateNormal
Package-Level Functions (total 18)
AddPrivacySandboxEnrollmentOverride allows a site to use privacy sandbox
features that require enrollment without the site actually being enrolled.
Only supported on page targets.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-addPrivacySandboxEnrollmentOverride
parameters:
url
CancelDownload cancel a download if in progress.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-cancelDownload
parameters:
guid - Global unique identifier of the download.
Close close browser gracefully.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-close
Crash crashes browser on the main thread.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-crash
CrashGpuProcess crashes GPU process.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-crashGpuProcess
ExecuteBrowserCommand invoke custom browser commands used by telemetry.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-executeBrowserCommand
parameters:
commandID
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
GetHistogram get a Chrome histogram by name.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-getHistogram
parameters:
name - Requested histogram name.
GetHistograms get Chrome histograms.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-getHistograms
parameters:
GetVersion returns version information.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-getVersion
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.
GetWindowForTarget get the browser window that contains the devtools
target.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-getWindowForTarget
parameters:
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
ResetPermissions reset all permission management for all origins.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-resetPermissions
parameters:
SetDockTile set dock tile details, platform-specific.
See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#method-setDockTile
parameters:
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.
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.
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.
Package-Level Constants (total 61)
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
CommandID values.
CommandID values.
Command names.
Command names.
Command names.
Command names.
Command names.
DownloadProgressState values.
DownloadProgressState values.
DownloadProgressState values.
PermissionSetting values.
PermissionSetting values.
PermissionSetting values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
PermissionType values.
SetDownloadBehaviorBehavior values.
SetDownloadBehaviorBehavior values.
SetDownloadBehaviorBehavior values.
SetDownloadBehaviorBehavior values.
WindowState values.
WindowState values.
WindowState values.
WindowState values.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |