package headlessexperimental

Import Path
	github.com/chromedp/cdproto/headlessexperimental (on go.dev)

Dependency Relation
	imports 8 packages, and imported by one package

Involved Source Files easyjson.go Package headlessexperimental provides the Chrome DevTools Protocol commands, types, and events for the HeadlessExperimental domain. This domain provides experimental commands only supported in headless mode. Generated by the cdproto-gen command. types.go
Package-Level Type Names (total 4)
/* sort by: | */
BeginFrameParams sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a screenshot from the resulting frame. Requires that the target was created with enabled BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also https://goo.gle/chrome-headless-rendering for more background. // Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set, the current time will be used. // The interval between BeginFrames that is reported to the compositor, in milliseconds. Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds. // Whether updates should not be committed and drawn onto the display. False by default. If true, only side effects of the BeginFrame will be run, such as layout and animations, but any visual updates may not be visible on the display or in screenshots. // If set, a screenshot of the frame will be captured and returned in the response. Otherwise, no screenshot will be captured. Note that capturing a screenshot can fail, for example, during renderer initialization. In such a case, no screenshot data will be returned. Do executes HeadlessExperimental.beginFrame against the provided context. returns: hasDamage - Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the display. Reported for diagnostic uses, may be removed in the future. screenshotData - Base64-encoded image data of the screenshot, if one was requested and successfully taken. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithFrameTimeTicks timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set, the current time will be used. WithInterval the interval between BeginFrames that is reported to the compositor, in milliseconds. Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds. WithNoDisplayUpdates whether updates should not be committed and drawn onto the display. False by default. If true, only side effects of the BeginFrame will be run, such as layout and animations, but any visual updates may not be visible on the display or in screenshots. WithScreenshot if set, a screenshot of the frame will be captured and returned in the response. Otherwise, no screenshot will be captured. Note that capturing a screenshot can fail, for example, during renderer initialization. In such a case, no screenshot data will be returned. BeginFrameParams : github.com/goccy/go-json.Marshaler *BeginFrameParams : github.com/goccy/go-json.Unmarshaler BeginFrameParams : github.com/mailru/easyjson.Marshaler *BeginFrameParams : github.com/mailru/easyjson.MarshalerUnmarshaler *BeginFrameParams : github.com/mailru/easyjson.Unmarshaler BeginFrameParams : encoding/json.Marshaler *BeginFrameParams : encoding/json.Unmarshaler func BeginFrame() *BeginFrameParams func BeginFrameParams.WithFrameTimeTicks(frameTimeTicks float64) *BeginFrameParams func BeginFrameParams.WithInterval(interval float64) *BeginFrameParams func BeginFrameParams.WithNoDisplayUpdates(noDisplayUpdates bool) *BeginFrameParams func BeginFrameParams.WithScreenshot(screenshot *ScreenshotParams) *BeginFrameParams
BeginFrameReturns return values. // Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the display. Reported for diagnostic uses, may be removed in the future. // Base64-encoded image data of the screenshot, if one was requested and successfully taken. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface BeginFrameReturns : github.com/goccy/go-json.Marshaler *BeginFrameReturns : github.com/goccy/go-json.Unmarshaler BeginFrameReturns : github.com/mailru/easyjson.Marshaler *BeginFrameReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *BeginFrameReturns : github.com/mailru/easyjson.Unmarshaler BeginFrameReturns : encoding/json.Marshaler *BeginFrameReturns : encoding/json.Unmarshaler
ScreenshotParams encoding options for a screenshot. See: https://chromedevtools.github.io/devtools-protocol/tot/HeadlessExperimental#type-ScreenshotParams // Image compression format (defaults to png). // Optimize image encoding for speed, not for resulting size (defaults to false) // Compression quality from range [0..100] (jpeg and webp only). MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface ScreenshotParams : github.com/goccy/go-json.Marshaler *ScreenshotParams : github.com/goccy/go-json.Unmarshaler ScreenshotParams : github.com/mailru/easyjson.Marshaler *ScreenshotParams : github.com/mailru/easyjson.MarshalerUnmarshaler *ScreenshotParams : github.com/mailru/easyjson.Unmarshaler ScreenshotParams : encoding/json.Marshaler *ScreenshotParams : encoding/json.Unmarshaler func BeginFrameParams.WithScreenshot(screenshot *ScreenshotParams) *BeginFrameParams
ScreenshotParamsFormat image compression format (defaults to png). See: https://chromedevtools.github.io/devtools-protocol/tot/HeadlessExperimental#type-ScreenshotParams MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the ScreenshotParamsFormat as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. ScreenshotParamsFormat : github.com/goccy/go-json.Marshaler *ScreenshotParamsFormat : github.com/goccy/go-json.Unmarshaler ScreenshotParamsFormat : github.com/mailru/easyjson.Marshaler *ScreenshotParamsFormat : github.com/mailru/easyjson.MarshalerUnmarshaler *ScreenshotParamsFormat : github.com/mailru/easyjson.Unmarshaler ScreenshotParamsFormat : encoding/json.Marshaler *ScreenshotParamsFormat : encoding/json.Unmarshaler ScreenshotParamsFormat : expvar.Var ScreenshotParamsFormat : fmt.Stringer const ScreenshotParamsFormatJpeg const ScreenshotParamsFormatPng const ScreenshotParamsFormatWebp
Package-Level Functions (only one)
BeginFrame sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a screenshot from the resulting frame. Requires that the target was created with enabled BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also https://goo.gle/chrome-headless-rendering for more background. See: https://chromedevtools.github.io/devtools-protocol/tot/HeadlessExperimental#method-beginFrame parameters:
Package-Level Constants (total 4)
Command names.
ScreenshotParamsFormat values.
ScreenshotParamsFormat values.
ScreenshotParamsFormat values.