-
Notifications
You must be signed in to change notification settings - Fork 46
/
event.go
48 lines (40 loc) · 1.89 KB
/
event.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Code generated by cdpgen. DO NOT EDIT.
package overlay
import (
"github.com/mafredri/cdp/protocol/dom"
"github.com/mafredri/cdp/protocol/page"
"github.com/mafredri/cdp/rpcc"
)
// NodeHighlightRequestedClient is a client for NodeHighlightRequested events. Fired when the node should be highlighted. This happens after call to setInspectMode.
type NodeHighlightRequestedClient interface {
// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
// triggered, context canceled or connection closed.
Recv() (*NodeHighlightRequestedReply, error)
rpcc.Stream
}
// NodeHighlightRequestedReply is the reply for NodeHighlightRequested events.
type NodeHighlightRequestedReply struct {
NodeID dom.NodeID `json:"nodeId"` // No description.
}
// InspectNodeRequestedClient is a client for InspectNodeRequested events. Fired when the node should be inspected. This happens after call to setInspectMode or when user manually inspects an element.
type InspectNodeRequestedClient interface {
// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
// triggered, context canceled or connection closed.
Recv() (*InspectNodeRequestedReply, error)
rpcc.Stream
}
// InspectNodeRequestedReply is the reply for InspectNodeRequested events.
type InspectNodeRequestedReply struct {
BackendNodeID dom.BackendNodeID `json:"backendNodeId"` // Id of the node to inspect.
}
// ScreenshotRequestedClient is a client for ScreenshotRequested events. Fired when user asks to capture screenshot of some area on the page.
type ScreenshotRequestedClient interface {
// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
// triggered, context canceled or connection closed.
Recv() (*ScreenshotRequestedReply, error)
rpcc.Stream
}
// ScreenshotRequestedReply is the reply for ScreenshotRequested events.
type ScreenshotRequestedReply struct {
Viewport page.Viewport `json:"viewport"` // Viewport to capture, in CSS.
}