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-07-02 11:44:34 +00:00
Context * ExecutionContextDescription ` json:"context" ` // A newly created execution context.
2017-01-24 15:09:23 +00:00
}
// EventExecutionContextDestroyed issued when execution context is destroyed.
type EventExecutionContextDestroyed struct {
2017-07-02 11:44:34 +00:00
ExecutionContextID ExecutionContextID ` json:"executionContextId" ` // Id of the destroyed context
2017-01-24 15:09:23 +00:00
}
// 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-02 11:44:34 +00:00
Timestamp * Timestamp ` json:"timestamp" ` // Timestamp of the exception.
ExceptionDetails * ExceptionDetails ` json:"exceptionDetails" `
2017-01-24 15:09:23 +00:00
}
// EventExceptionRevoked issued when unhandled exception was revoked.
type EventExceptionRevoked struct {
2017-07-02 11:44:34 +00:00
Reason string ` json:"reason" ` // Reason describing why exception was revoked.
ExceptionID int64 ` json:"exceptionId" ` // The id of revoked exception, as reported in exceptionUnhandled.
2017-01-24 15:09:23 +00:00
}
// EventConsoleAPICalled issued when console API was called.
type EventConsoleAPICalled struct {
2017-07-02 11:44:34 +00:00
Type APIType ` json:"type" ` // Type of the call.
Args [ ] * RemoteObject ` json:"args" ` // Call arguments.
ExecutionContextID ExecutionContextID ` json:"executionContextId" ` // Identifier of the context where the call was made.
Timestamp * Timestamp ` json:"timestamp" ` // Call timestamp.
StackTrace * StackTrace ` json:"stackTrace,omitempty" ` // Stack trace captured when the call was made.
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 {
2017-07-02 11:44:34 +00:00
Object * RemoteObject ` json:"object" `
Hints easyjson . RawMessage ` json:"hints" `
2017-01-24 15:09:23 +00:00
}
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
}