2017-01-24 15:09:23 +00:00
package runtime
// AUTOGENERATED. DO NOT EDIT.
import (
2017-01-26 07:28:34 +00:00
cdp "github.com/knq/chromedp/cdp"
2017-01-24 15:09:23 +00:00
"github.com/mailru/easyjson"
)
// EventExecutionContextCreated issued when new execution context is created.
type EventExecutionContextCreated struct {
2017-05-06 01:20:24 +00:00
Context * ExecutionContextDescription ` json:"context,omitempty" ` // A newly created execution context.
2017-01-24 15:09:23 +00:00
}
// EventExecutionContextDestroyed issued when execution context is destroyed.
type EventExecutionContextDestroyed struct {
ExecutionContextID ExecutionContextID ` json:"executionContextId,omitempty" ` // Id of the destroyed context
}
// EventExecutionContextsCleared issued when all executionContexts were
// cleared in browser.
type EventExecutionContextsCleared struct { }
// EventExceptionThrown issued when exception was thrown and unhandled.
type EventExceptionThrown struct {
2017-07-01 08:55:35 +00:00
Timestamp Timestamp ` json:"timestamp,omitempty" ` // Timestamp of the exception.
2017-01-24 15:09:23 +00:00
ExceptionDetails * ExceptionDetails ` json:"exceptionDetails,omitempty" `
}
// EventExceptionRevoked issued when unhandled exception was revoked.
type EventExceptionRevoked struct {
Reason string ` json:"reason,omitempty" ` // Reason describing why exception was revoked.
ExceptionID int64 ` json:"exceptionId,omitempty" ` // The id of revoked exception, as reported in exceptionUnhandled.
}
// EventConsoleAPICalled issued when console API was called.
type EventConsoleAPICalled struct {
Type APIType ` json:"type,omitempty" ` // Type of the call.
Args [ ] * RemoteObject ` json:"args,omitempty" ` // Call arguments.
ExecutionContextID ExecutionContextID ` json:"executionContextId,omitempty" ` // Identifier of the context where the call was made.
2017-07-01 08:55:35 +00:00
Timestamp Timestamp ` json:"timestamp,omitempty" ` // Call timestamp.
2017-01-24 15:09:23 +00:00
StackTrace * StackTrace ` json:"stackTrace,omitempty" ` // Stack trace captured when the call was made.
2017-06-18 00:55:45 +00:00
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.
2017-01-24 15:09:23 +00:00
}
// EventInspectRequested issued when object should be inspected (for example,
// as a result of inspect() command line API call).
type EventInspectRequested struct {
Object * RemoteObject ` json:"object,omitempty" `
Hints easyjson . RawMessage ` json:"hints,omitempty" `
}
2017-01-26 07:28:34 +00:00
// EventTypes all event types in the domain.
var EventTypes = [ ] cdp . MethodType {
cdp . EventRuntimeExecutionContextCreated ,
cdp . EventRuntimeExecutionContextDestroyed ,
cdp . EventRuntimeExecutionContextsCleared ,
cdp . EventRuntimeExceptionThrown ,
cdp . EventRuntimeExceptionRevoked ,
cdp . EventRuntimeConsoleAPICalled ,
cdp . EventRuntimeInspectRequested ,
2017-01-24 15:09:23 +00:00
}