chromedp/cdp/layertree/events.go

26 lines
685 B
Go
Raw Normal View History

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