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

26 lines
685 B
Go

package layertree
// Code generated by chromedp-gen. DO NOT EDIT.
import (
cdp "github.com/knq/chromedp/cdp"
"github.com/knq/chromedp/cdp/dom"
)
// EventLayerPainted [no description].
type EventLayerPainted struct {
LayerID LayerID `json:"layerId"` // The id of the painted layer.
Clip *dom.Rect `json:"clip"` // Clip rectangle.
}
// EventLayerTreeDidChange [no description].
type EventLayerTreeDidChange struct {
Layers []*Layer `json:"layers,omitempty"` // Layer tree, absent if not in the comspositing mode.
}
// EventTypes all event types in the domain.
var EventTypes = []cdp.MethodType{
cdp.EventLayerTreeLayerPainted,
cdp.EventLayerTreeLayerTreeDidChange,
}