events.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package overlay
  2. // Code generated by cdproto-gen. DO NOT EDIT.
  3. import (
  4. "github.com/chromedp/cdproto/cdp"
  5. "github.com/chromedp/cdproto/page"
  6. )
  7. // EventInspectNodeRequested fired when the node should be inspected. This
  8. // happens after call to setInspectMode or when user manually inspects an
  9. // element.
  10. //
  11. // See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#event-inspectNodeRequested
  12. type EventInspectNodeRequested struct {
  13. BackendNodeID cdp.BackendNodeID `json:"backendNodeId"` // Id of the node to inspect.
  14. }
  15. // EventNodeHighlightRequested fired when the node should be highlighted.
  16. // This happens after call to setInspectMode.
  17. //
  18. // See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#event-nodeHighlightRequested
  19. type EventNodeHighlightRequested struct {
  20. NodeID cdp.NodeID `json:"nodeId"`
  21. }
  22. // EventScreenshotRequested fired when user asks to capture screenshot of
  23. // some area on the page.
  24. //
  25. // See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#event-screenshotRequested
  26. type EventScreenshotRequested struct {
  27. Viewport *page.Viewport `json:"viewport"` // Viewport to capture, in device independent pixels (dip).
  28. }
  29. // EventInspectModeCanceled fired when user cancels the inspect mode.
  30. //
  31. // See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#event-inspectModeCanceled
  32. type EventInspectModeCanceled struct{}