events.go 1.9 KB

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