events.go 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package runtime
  2. // Code generated by cdproto-gen. DO NOT EDIT.
  3. import (
  4. "github.com/mailru/easyjson"
  5. )
  6. // EventBindingCalled notification is issued every time when binding is
  7. // called.
  8. //
  9. // See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-bindingCalled
  10. type EventBindingCalled struct {
  11. Name string `json:"name"`
  12. Payload string `json:"payload"`
  13. ExecutionContextID ExecutionContextID `json:"executionContextId"` // Identifier of the context where the call was made.
  14. }
  15. // EventConsoleAPICalled issued when console API was called.
  16. //
  17. // See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-consoleAPICalled
  18. type EventConsoleAPICalled struct {
  19. Type APIType `json:"type"` // Type of the call.
  20. Args []*RemoteObject `json:"args"` // Call arguments.
  21. ExecutionContextID ExecutionContextID `json:"executionContextId"` // Identifier of the context where the call was made.
  22. Timestamp *Timestamp `json:"timestamp"` // Call timestamp.
  23. StackTrace *StackTrace `json:"stackTrace,omitempty"` // Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: assert, error, trace, warning. For other types the async call chain can be retrieved using Debugger.getStackTrace and stackTrace.parentId field.
  24. Context string `json:"context,omitempty"` // Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
  25. }
  26. // EventExceptionRevoked issued when unhandled exception was revoked.
  27. //
  28. // See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-exceptionRevoked
  29. type EventExceptionRevoked struct {
  30. Reason string `json:"reason"` // Reason describing why exception was revoked.
  31. ExceptionID int64 `json:"exceptionId"` // The id of revoked exception, as reported in exceptionThrown.
  32. }
  33. // EventExceptionThrown issued when exception was thrown and unhandled.
  34. //
  35. // See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-exceptionThrown
  36. type EventExceptionThrown struct {
  37. Timestamp *Timestamp `json:"timestamp"` // Timestamp of the exception.
  38. ExceptionDetails *ExceptionDetails `json:"exceptionDetails"`
  39. }
  40. // EventExecutionContextCreated issued when new execution context is created.
  41. //
  42. // See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-executionContextCreated
  43. type EventExecutionContextCreated struct {
  44. Context *ExecutionContextDescription `json:"context"` // A newly created execution context.
  45. }
  46. // EventExecutionContextDestroyed issued when execution context is destroyed.
  47. //
  48. // See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-executionContextDestroyed
  49. type EventExecutionContextDestroyed struct {
  50. ExecutionContextID ExecutionContextID `json:"executionContextId"` // Id of the destroyed context
  51. ExecutionContextUniqueID string `json:"executionContextUniqueId"` // Unique Id of the destroyed context
  52. }
  53. // EventExecutionContextsCleared issued when all executionContexts were
  54. // cleared in browser.
  55. //
  56. // See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-executionContextsCleared
  57. type EventExecutionContextsCleared struct{}
  58. // EventInspectRequested issued when object should be inspected (for example,
  59. // as a result of inspect() command line API call).
  60. //
  61. // See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-inspectRequested
  62. type EventInspectRequested struct {
  63. Object *RemoteObject `json:"object"`
  64. Hints easyjson.RawMessage `json:"hints"`
  65. ExecutionContextID ExecutionContextID `json:"executionContextId,omitempty"` // Identifier of the context where the call was made.
  66. }