1package runtime 2 3// Code generated by cdproto-gen. DO NOT EDIT. 4 5import ( 6 "github.com/mailru/easyjson" 7) 8 9// EventBindingCalled notification is issued every time when binding is 10// called. 11// 12// See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-bindingCalled 13type EventBindingCalled struct { 14 Name string `json:"name"` 15 Payload string `json:"payload"` 16 ExecutionContextID ExecutionContextID `json:"executionContextId"` // Identifier of the context where the call was made. 17} 18 19// EventConsoleAPICalled issued when console API was called. 20// 21// See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-consoleAPICalled 22type EventConsoleAPICalled struct { 23 Type APIType `json:"type"` // Type of the call. 24 Args []*RemoteObject `json:"args"` // Call arguments. 25 ExecutionContextID ExecutionContextID `json:"executionContextId"` // Identifier of the context where the call was made. 26 Timestamp *Timestamp `json:"timestamp"` // Call timestamp. 27 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. 28 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. 29} 30 31// EventExceptionRevoked issued when unhandled exception was revoked. 32// 33// See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-exceptionRevoked 34type EventExceptionRevoked struct { 35 Reason string `json:"reason"` // Reason describing why exception was revoked. 36 ExceptionID int64 `json:"exceptionId"` // The id of revoked exception, as reported in exceptionThrown. 37} 38 39// EventExceptionThrown issued when exception was thrown and unhandled. 40// 41// See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-exceptionThrown 42type EventExceptionThrown struct { 43 Timestamp *Timestamp `json:"timestamp"` // Timestamp of the exception. 44 ExceptionDetails *ExceptionDetails `json:"exceptionDetails"` 45} 46 47// EventExecutionContextCreated issued when new execution context is created. 48// 49// See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-executionContextCreated 50type EventExecutionContextCreated struct { 51 Context *ExecutionContextDescription `json:"context"` // A newly created execution context. 52} 53 54// EventExecutionContextDestroyed issued when execution context is destroyed. 55// 56// See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-executionContextDestroyed 57type EventExecutionContextDestroyed struct { 58 ExecutionContextID ExecutionContextID `json:"executionContextId"` // Id of the destroyed context 59} 60 61// EventExecutionContextsCleared issued when all executionContexts were 62// cleared in browser. 63// 64// See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-executionContextsCleared 65type EventExecutionContextsCleared struct{} 66 67// EventInspectRequested issued when object should be inspected (for example, 68// as a result of inspect() command line API call). 69// 70// See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#event-inspectRequested 71type EventInspectRequested struct { 72 Object *RemoteObject `json:"object"` 73 Hints easyjson.RawMessage `json:"hints"` 74} 75