domdebugger

package
v0.0.0-...-7421a99 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package domdebugger provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOMDebugger domain.

DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.

Generated by the chromedp-gen command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DOMBreakpointType

type DOMBreakpointType string

DOMBreakpointType dOM breakpoint type.

const (
	DOMBreakpointTypeSubtreeModified   DOMBreakpointType = "subtree-modified"
	DOMBreakpointTypeAttributeModified DOMBreakpointType = "attribute-modified"
	DOMBreakpointTypeNodeRemoved       DOMBreakpointType = "node-removed"
)

DOMBreakpointType values.

func (DOMBreakpointType) MarshalEasyJSON

func (t DOMBreakpointType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (DOMBreakpointType) MarshalJSON

func (t DOMBreakpointType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (DOMBreakpointType) String

func (t DOMBreakpointType) String() string

String returns the DOMBreakpointType as string value.

func (*DOMBreakpointType) UnmarshalEasyJSON

func (t *DOMBreakpointType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*DOMBreakpointType) UnmarshalJSON

func (t *DOMBreakpointType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type EventListener

type EventListener struct {
	Type            string                `json:"type,omitempty"`            // EventListener's type.
	UseCapture      bool                  `json:"useCapture,omitempty"`      // EventListener's useCapture.
	Passive         bool                  `json:"passive,omitempty"`         // EventListener's passive flag.
	Once            bool                  `json:"once,omitempty"`            // EventListener's once flag.
	ScriptID        runtime.ScriptID      `json:"scriptId,omitempty"`        // Script id of the handler code.
	LineNumber      int64                 `json:"lineNumber,omitempty"`      // Line number in the script (0-based).
	ColumnNumber    int64                 `json:"columnNumber,omitempty"`    // Column number in the script (0-based).
	Handler         *runtime.RemoteObject `json:"handler,omitempty"`         // Event handler function value.
	OriginalHandler *runtime.RemoteObject `json:"originalHandler,omitempty"` // Event original handler function value.
	RemoveFunction  *runtime.RemoteObject `json:"removeFunction,omitempty"`  // Event listener remove function.
}

EventListener object event listener.

func (EventListener) MarshalEasyJSON

func (v EventListener) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventListener) MarshalJSON

func (v EventListener) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventListener) UnmarshalEasyJSON

func (v *EventListener) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventListener) UnmarshalJSON

func (v *EventListener) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetEventListenersParams

type GetEventListenersParams struct {
	ObjectID runtime.RemoteObjectID `json:"objectId"` // Identifier of the object to return listeners for.
}

GetEventListenersParams returns event listeners of the given object.

func GetEventListeners

func GetEventListeners(objectID runtime.RemoteObjectID) *GetEventListenersParams

GetEventListeners returns event listeners of the given object.

parameters:

objectID - Identifier of the object to return listeners for.

func (*GetEventListenersParams) Do

func (p *GetEventListenersParams) Do(ctxt context.Context, h cdp.FrameHandler) (listeners []*EventListener, err error)

Do executes DOMDebugger.getEventListeners.

returns:

listeners - Array of relevant listeners.

func (GetEventListenersParams) MarshalEasyJSON

func (v GetEventListenersParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetEventListenersParams) MarshalJSON

func (v GetEventListenersParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetEventListenersParams) UnmarshalEasyJSON

func (v *GetEventListenersParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetEventListenersParams) UnmarshalJSON

func (v *GetEventListenersParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetEventListenersReturns

type GetEventListenersReturns struct {
	Listeners []*EventListener `json:"listeners,omitempty"` // Array of relevant listeners.
}

GetEventListenersReturns return values.

func (GetEventListenersReturns) MarshalEasyJSON

func (v GetEventListenersReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetEventListenersReturns) MarshalJSON

func (v GetEventListenersReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetEventListenersReturns) UnmarshalEasyJSON

func (v *GetEventListenersReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetEventListenersReturns) UnmarshalJSON

func (v *GetEventListenersReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RemoveDOMBreakpointParams

type RemoveDOMBreakpointParams struct {
	NodeID cdp.NodeID        `json:"nodeId"` // Identifier of the node to remove breakpoint from.
	Type   DOMBreakpointType `json:"type"`   // Type of the breakpoint to remove.
}

RemoveDOMBreakpointParams removes DOM breakpoint that was set using setDOMBreakpoint.

func RemoveDOMBreakpoint

func RemoveDOMBreakpoint(nodeID cdp.NodeID, typeVal DOMBreakpointType) *RemoveDOMBreakpointParams

RemoveDOMBreakpoint removes DOM breakpoint that was set using setDOMBreakpoint.

parameters:

nodeID - Identifier of the node to remove breakpoint from.
type - Type of the breakpoint to remove.

func (*RemoveDOMBreakpointParams) Do

Do executes DOMDebugger.removeDOMBreakpoint.

func (RemoveDOMBreakpointParams) MarshalEasyJSON

func (v RemoveDOMBreakpointParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveDOMBreakpointParams) MarshalJSON

func (v RemoveDOMBreakpointParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RemoveDOMBreakpointParams) UnmarshalEasyJSON

func (v *RemoveDOMBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveDOMBreakpointParams) UnmarshalJSON

func (v *RemoveDOMBreakpointParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RemoveEventListenerBreakpointParams

type RemoveEventListenerBreakpointParams struct {
	EventName  string `json:"eventName"`            // Event name.
	TargetName string `json:"targetName,omitempty"` // EventTarget interface name.
}

RemoveEventListenerBreakpointParams removes breakpoint on particular DOM event.

func RemoveEventListenerBreakpoint

func RemoveEventListenerBreakpoint(eventName string) *RemoveEventListenerBreakpointParams

RemoveEventListenerBreakpoint removes breakpoint on particular DOM event.

parameters:

eventName - Event name.

func (*RemoveEventListenerBreakpointParams) Do

Do executes DOMDebugger.removeEventListenerBreakpoint.

func (RemoveEventListenerBreakpointParams) MarshalEasyJSON

func (v RemoveEventListenerBreakpointParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveEventListenerBreakpointParams) MarshalJSON

func (v RemoveEventListenerBreakpointParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RemoveEventListenerBreakpointParams) UnmarshalEasyJSON

func (v *RemoveEventListenerBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveEventListenerBreakpointParams) UnmarshalJSON

func (v *RemoveEventListenerBreakpointParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (RemoveEventListenerBreakpointParams) WithTargetName

WithTargetName eventTarget interface name.

type RemoveInstrumentationBreakpointParams

type RemoveInstrumentationBreakpointParams struct {
	EventName string `json:"eventName"` // Instrumentation name to stop on.
}

RemoveInstrumentationBreakpointParams removes breakpoint on particular native event.

func RemoveInstrumentationBreakpoint

func RemoveInstrumentationBreakpoint(eventName string) *RemoveInstrumentationBreakpointParams

RemoveInstrumentationBreakpoint removes breakpoint on particular native event.

parameters:

eventName - Instrumentation name to stop on.

func (*RemoveInstrumentationBreakpointParams) Do

Do executes DOMDebugger.removeInstrumentationBreakpoint.

func (RemoveInstrumentationBreakpointParams) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveInstrumentationBreakpointParams) MarshalJSON

func (v RemoveInstrumentationBreakpointParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RemoveInstrumentationBreakpointParams) UnmarshalEasyJSON

func (v *RemoveInstrumentationBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveInstrumentationBreakpointParams) UnmarshalJSON

func (v *RemoveInstrumentationBreakpointParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RemoveXHRBreakpointParams

type RemoveXHRBreakpointParams struct {
	URL string `json:"url"` // Resource URL substring.
}

RemoveXHRBreakpointParams removes breakpoint from XMLHttpRequest.

func RemoveXHRBreakpoint

func RemoveXHRBreakpoint(url string) *RemoveXHRBreakpointParams

RemoveXHRBreakpoint removes breakpoint from XMLHttpRequest.

parameters:

url - Resource URL substring.

func (*RemoveXHRBreakpointParams) Do

Do executes DOMDebugger.removeXHRBreakpoint.

func (RemoveXHRBreakpointParams) MarshalEasyJSON

func (v RemoveXHRBreakpointParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveXHRBreakpointParams) MarshalJSON

func (v RemoveXHRBreakpointParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RemoveXHRBreakpointParams) UnmarshalEasyJSON

func (v *RemoveXHRBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveXHRBreakpointParams) UnmarshalJSON

func (v *RemoveXHRBreakpointParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetDOMBreakpointParams

type SetDOMBreakpointParams struct {
	NodeID cdp.NodeID        `json:"nodeId"` // Identifier of the node to set breakpoint on.
	Type   DOMBreakpointType `json:"type"`   // Type of the operation to stop upon.
}

SetDOMBreakpointParams sets breakpoint on particular operation with DOM.

func SetDOMBreakpoint

func SetDOMBreakpoint(nodeID cdp.NodeID, typeVal DOMBreakpointType) *SetDOMBreakpointParams

SetDOMBreakpoint sets breakpoint on particular operation with DOM.

parameters:

nodeID - Identifier of the node to set breakpoint on.
type - Type of the operation to stop upon.

func (*SetDOMBreakpointParams) Do

Do executes DOMDebugger.setDOMBreakpoint.

func (SetDOMBreakpointParams) MarshalEasyJSON

func (v SetDOMBreakpointParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDOMBreakpointParams) MarshalJSON

func (v SetDOMBreakpointParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetDOMBreakpointParams) UnmarshalEasyJSON

func (v *SetDOMBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDOMBreakpointParams) UnmarshalJSON

func (v *SetDOMBreakpointParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetEventListenerBreakpointParams

type SetEventListenerBreakpointParams struct {
	EventName  string `json:"eventName"`            // DOM Event name to stop on (any DOM event will do).
	TargetName string `json:"targetName,omitempty"` // EventTarget interface name to stop on. If equal to "*" or not provided, will stop on any EventTarget.
}

SetEventListenerBreakpointParams sets breakpoint on particular DOM event.

func SetEventListenerBreakpoint

func SetEventListenerBreakpoint(eventName string) *SetEventListenerBreakpointParams

SetEventListenerBreakpoint sets breakpoint on particular DOM event.

parameters:

eventName - DOM Event name to stop on (any DOM event will do).

func (*SetEventListenerBreakpointParams) Do

Do executes DOMDebugger.setEventListenerBreakpoint.

func (SetEventListenerBreakpointParams) MarshalEasyJSON

func (v SetEventListenerBreakpointParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetEventListenerBreakpointParams) MarshalJSON

func (v SetEventListenerBreakpointParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetEventListenerBreakpointParams) UnmarshalEasyJSON

func (v *SetEventListenerBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetEventListenerBreakpointParams) UnmarshalJSON

func (v *SetEventListenerBreakpointParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetEventListenerBreakpointParams) WithTargetName

WithTargetName eventTarget interface name to stop on. If equal to "*" or not provided, will stop on any EventTarget.

type SetInstrumentationBreakpointParams

type SetInstrumentationBreakpointParams struct {
	EventName string `json:"eventName"` // Instrumentation name to stop on.
}

SetInstrumentationBreakpointParams sets breakpoint on particular native event.

func SetInstrumentationBreakpoint

func SetInstrumentationBreakpoint(eventName string) *SetInstrumentationBreakpointParams

SetInstrumentationBreakpoint sets breakpoint on particular native event.

parameters:

eventName - Instrumentation name to stop on.

func (*SetInstrumentationBreakpointParams) Do

Do executes DOMDebugger.setInstrumentationBreakpoint.

func (SetInstrumentationBreakpointParams) MarshalEasyJSON

func (v SetInstrumentationBreakpointParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetInstrumentationBreakpointParams) MarshalJSON

func (v SetInstrumentationBreakpointParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetInstrumentationBreakpointParams) UnmarshalEasyJSON

func (v *SetInstrumentationBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetInstrumentationBreakpointParams) UnmarshalJSON

func (v *SetInstrumentationBreakpointParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetXHRBreakpointParams

type SetXHRBreakpointParams struct {
	URL string `json:"url"` // Resource URL substring. All XHRs having this substring in the URL will get stopped upon.
}

SetXHRBreakpointParams sets breakpoint on XMLHttpRequest.

func SetXHRBreakpoint

func SetXHRBreakpoint(url string) *SetXHRBreakpointParams

SetXHRBreakpoint sets breakpoint on XMLHttpRequest.

parameters:

url - Resource URL substring. All XHRs having this substring in the URL will get stopped upon.

func (*SetXHRBreakpointParams) Do

Do executes DOMDebugger.setXHRBreakpoint.

func (SetXHRBreakpointParams) MarshalEasyJSON

func (v SetXHRBreakpointParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetXHRBreakpointParams) MarshalJSON

func (v SetXHRBreakpointParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetXHRBreakpointParams) UnmarshalEasyJSON

func (v *SetXHRBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetXHRBreakpointParams) UnmarshalJSON

func (v *SetXHRBreakpointParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL