chromedp/cdp/runtime/events.go
2017-01-24 22:09:23 +07:00

82 lines
2.7 KiB
Go

package runtime
// AUTOGENERATED. DO NOT EDIT.
import (
. "github.com/knq/chromedp/cdp"
"github.com/mailru/easyjson"
)
var (
_ BackendNode
_ BackendNodeID
_ ComputedProperty
_ ErrorType
_ Frame
_ FrameID
_ LoaderID
_ Message
_ MessageError
_ MethodType
_ Node
_ NodeID
_ NodeType
_ PseudoType
_ RGBA
_ ShadowRootType
_ Timestamp
)
// EventExecutionContextCreated issued when new execution context is created.
type EventExecutionContextCreated struct {
Context *ExecutionContextDescription `json:"context,omitempty"` // A newly created execution contex.
}
// 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 {
Timestamp Timestamp `json:"timestamp,omitempty"` // Timestamp of the exception.
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.
Timestamp Timestamp `json:"timestamp,omitempty"` // Call timestamp.
StackTrace *StackTrace `json:"stackTrace,omitempty"` // Stack trace captured when the call was made.
}
// 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"`
}
// EventTypes is all event types in the domain.
var EventTypes = []MethodType{
EventRuntimeExecutionContextCreated,
EventRuntimeExecutionContextDestroyed,
EventRuntimeExecutionContextsCleared,
EventRuntimeExceptionThrown,
EventRuntimeExceptionRevoked,
EventRuntimeConsoleAPICalled,
EventRuntimeInspectRequested,
}