chromedp/cdp/emulation/events.go

31 lines
1.0 KiB
Go
Raw Normal View History

2017-01-24 15:09:23 +00:00
package emulation
// 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
)
2017-09-03 01:15:59 +00:00
// EventVirtualTimeBudgetExpired notification sent after the virtual time
2017-01-24 15:09:23 +00:00
// budget for the current VirtualTimePolicy has run out.
type EventVirtualTimeBudgetExpired struct{}
2017-10-07 01:22:18 +00:00
// EventVirtualTimeAdvanced notification sent after the virtual time has
// advanced.
type EventVirtualTimeAdvanced struct {
2017-11-22 05:01:27 +00:00
VirtualTimeElapsed float64 `json:"virtualTimeElapsed"` // The amount of virtual time that has elapsed in milliseconds since virtual time was first enabled.
2017-10-07 01:22:18 +00:00
}
2017-09-03 01:15:59 +00:00
// EventVirtualTimePaused notification sent after the virtual time has
// paused.
type EventVirtualTimePaused struct {
2017-11-22 05:01:27 +00:00
VirtualTimeElapsed float64 `json:"virtualTimeElapsed"` // The amount of virtual time that has elapsed in milliseconds since virtual time was first enabled.
2017-09-03 01:15:59 +00:00
}
2017-01-26 07:28:34 +00:00
// EventTypes all event types in the domain.
var EventTypes = []cdp.MethodType{
cdp.EventEmulationVirtualTimeBudgetExpired,
2017-10-07 01:22:18 +00:00
cdp.EventEmulationVirtualTimeAdvanced,
2017-09-03 01:15:59 +00:00
cdp.EventEmulationVirtualTimePaused,
2017-01-24 15:09:23 +00:00
}