chromedp/cdp/css/events.go

43 lines
1.3 KiB
Go
Raw Normal View History

2017-01-24 15:09:23 +00:00
package css
// 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
)
// EventMediaQueryResultChanged fires whenever a MediaQuery result changes
// (for example, after a browser window has been resized.) The current
// implementation considers only viewport-dependent media features.
type EventMediaQueryResultChanged struct{}
// EventFontsUpdated fires whenever a web font gets loaded.
type EventFontsUpdated struct{}
// EventStyleSheetChanged fired whenever a stylesheet is changed as a result
// of the client operation.
type EventStyleSheetChanged struct {
StyleSheetID StyleSheetID `json:"styleSheetId"`
2017-01-24 15:09:23 +00:00
}
// EventStyleSheetAdded fired whenever an active document stylesheet is
// added.
type EventStyleSheetAdded struct {
Header *StyleSheetHeader `json:"header"` // Added stylesheet metainfo.
2017-01-24 15:09:23 +00:00
}
// EventStyleSheetRemoved fired whenever an active document stylesheet is
// removed.
type EventStyleSheetRemoved struct {
StyleSheetID StyleSheetID `json:"styleSheetId"` // Identifier of the removed stylesheet.
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.EventCSSMediaQueryResultChanged,
cdp.EventCSSFontsUpdated,
cdp.EventCSSStyleSheetChanged,
cdp.EventCSSStyleSheetAdded,
cdp.EventCSSStyleSheetRemoved,
2017-01-24 15:09:23 +00:00
}