chromedp/cdp/overlay/events.go

35 lines
1.0 KiB
Go
Raw Normal View History

package overlay
// Code generated by chromedp-gen. DO NOT EDIT.
import (
cdp "github.com/knq/chromedp/cdp"
2017-07-31 02:26:12 +00:00
"github.com/knq/chromedp/cdp/page"
)
// EventNodeHighlightRequested fired when the node should be highlighted.
// This happens after call to setInspectMode.
type EventNodeHighlightRequested struct {
NodeID cdp.NodeID `json:"nodeId"`
}
// EventInspectNodeRequested fired when the node should be inspected. This
// happens after call to setInspectMode or when user manually inspects an
// element.
type EventInspectNodeRequested struct {
BackendNodeID cdp.BackendNodeID `json:"backendNodeId"` // Id of the node to inspect.
}
2017-07-31 02:26:12 +00:00
// EventScreenshotRequested fired when user asks to capture screenshot of
// some area on the page.
type EventScreenshotRequested struct {
Viewport *page.Viewport `json:"viewport"` // Viewport to capture, in CSS.
}
// EventTypes all event types in the domain.
var EventTypes = []cdp.MethodType{
cdp.EventOverlayNodeHighlightRequested,
cdp.EventOverlayInspectNodeRequested,
2017-07-31 02:26:12 +00:00
cdp.EventOverlayScreenshotRequested,
}