chromedp/cdp/headlessexperimental/events.go

25 lines
832 B
Go
Raw Normal View History

2017-10-15 05:47:06 +00:00
package headlessexperimental
// Code generated by chromedp-gen. DO NOT EDIT.
import (
cdp "github.com/knq/chromedp/cdp"
)
// EventNeedsBeginFramesChanged issued when the target starts or stops
// needing BeginFrames.
type EventNeedsBeginFramesChanged struct {
NeedsBeginFrames bool `json:"needsBeginFrames"` // True if BeginFrames are needed, false otherwise.
}
// EventMainFrameReadyForScreenshots issued when the main frame has first
// submitted a frame to the browser. May only be fired while a BeginFrame is in
// flight. Before this event, screenshotting requests may fail.
type EventMainFrameReadyForScreenshots struct{}
// EventTypes all event types in the domain.
var EventTypes = []cdp.MethodType{
cdp.EventHeadlessExperimentalNeedsBeginFramesChanged,
cdp.EventHeadlessExperimentalMainFrameReadyForScreenshots,
}