blob: c8cb8ebb3c856f8ffdc1a16ad78282957eede2c1 [file] [log] [blame]
// 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.
}