chromedp/cdp/overlay/events.go
2017-12-18 07:23:14 +07:00

35 lines
1.0 KiB
Go

package overlay
// Code generated by chromedp-gen. DO NOT EDIT.
import (
cdp "github.com/knq/chromedp/cdp"
"github.com/knq/chromedp/cdp/page"
)
// 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.
}
// EventNodeHighlightRequested fired when the node should be highlighted.
// This happens after call to setInspectMode.
type EventNodeHighlightRequested struct {
NodeID cdp.NodeID `json:"nodeId"`
}
// 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.EventOverlayInspectNodeRequested,
cdp.EventOverlayNodeHighlightRequested,
cdp.EventOverlayScreenshotRequested,
}