events.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package css
  2. // Code generated by cdproto-gen. DO NOT EDIT.
  3. // EventFontsUpdated fires whenever a web font is updated. A non-empty font
  4. // parameter indicates a successfully loaded web font.
  5. //
  6. // See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-fontsUpdated
  7. type EventFontsUpdated struct {
  8. Font *FontFace `json:"font,omitempty"` // The web font that has loaded.
  9. }
  10. // EventMediaQueryResultChanged fires whenever a MediaQuery result changes
  11. // (for example, after a browser window has been resized.) The current
  12. // implementation considers only viewport-dependent media features.
  13. //
  14. // See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-mediaQueryResultChanged
  15. type EventMediaQueryResultChanged struct{}
  16. // EventStyleSheetAdded fired whenever an active document stylesheet is
  17. // added.
  18. //
  19. // See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-styleSheetAdded
  20. type EventStyleSheetAdded struct {
  21. Header *StyleSheetHeader `json:"header"` // Added stylesheet metainfo.
  22. }
  23. // EventStyleSheetChanged fired whenever a stylesheet is changed as a result
  24. // of the client operation.
  25. //
  26. // See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-styleSheetChanged
  27. type EventStyleSheetChanged struct {
  28. StyleSheetID StyleSheetID `json:"styleSheetId"`
  29. }
  30. // EventStyleSheetRemoved fired whenever an active document stylesheet is
  31. // removed.
  32. //
  33. // See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-styleSheetRemoved
  34. type EventStyleSheetRemoved struct {
  35. StyleSheetID StyleSheetID `json:"styleSheetId"` // Identifier of the removed stylesheet.
  36. }