/
event.go
35 lines (29 loc) · 1.05 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
// Code generated by cdpgen. DO NOT EDIT.
package layertree
import (
"github.com/mafredri/cdp/protocol/dom"
"github.com/mafredri/cdp/rpcc"
)
// LayerPaintedClient is a client for LayerPainted events.
type LayerPaintedClient interface {
// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
// triggered, context canceled or connection closed.
Recv() (*LayerPaintedReply, error)
rpcc.Stream
}
// LayerPaintedReply is the reply for LayerPainted events.
type LayerPaintedReply struct {
LayerID LayerID `json:"layerId"` // The id of the painted layer.
Clip dom.Rect `json:"clip"` // Clip rectangle.
}
// DidChangeClient is a client for LayerTreeDidChange events.
type DidChangeClient interface {
// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
// triggered, context canceled or connection closed.
Recv() (*DidChangeReply, error)
rpcc.Stream
}
// DidChangeReply is the reply for LayerTreeDidChange events.
type DidChangeReply struct {
Layers []Layer `json:"layers,omitempty"` // Layer tree, absent if not in the comspositing mode.
}