dom

package
v0.0.0-...-076f285 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeModifiedEvent

type AttributeModifiedEvent struct {
	NodeId NodeId `json:"nodeId"` // Id of the node that has changed.
	Name   string `json:"name"`   // Attribute name.
	Value  string `json:"value"`  // Attribute value.
}

type AttributeRemovedEvent

type AttributeRemovedEvent struct {
	NodeId NodeId `json:"nodeId"` // Id of the node that has changed.
	Name   string `json:"name"`   // A ttribute name.
}

type BackendNode

type BackendNode struct {
	NodeType      int64         `json:"nodeType"` // <code>Node</code>'s nodeType.
	NodeName      string        `json:"nodeName"` // <code>Node</code>'s nodeName.
	BackendNodeId BackendNodeId `json:"backendNodeId"`
}

type BackendNodeId

type BackendNodeId int64

type BoxModel

type BoxModel struct {
	Content      Quad              `json:"content"`                // Content box
	Padding      Quad              `json:"padding"`                // Padding box
	Border       Quad              `json:"border"`                 // Border box
	Margin       Quad              `json:"margin"`                 // Margin box
	Width        int64             `json:"width"`                  // Node width
	Height       int64             `json:"height"`                 // Node height
	ShapeOutside *ShapeOutsideInfo `json:"shapeOutside,omitempty"` // Shape outside coordinates
}

type CharacterDataModifiedEvent

type CharacterDataModifiedEvent struct {
	NodeId        NodeId `json:"nodeId"`        // Id of the node that has changed.
	CharacterData string `json:"characterData"` // New text value.
}

type ChildNodeCountUpdatedEvent

type ChildNodeCountUpdatedEvent struct {
	NodeId         NodeId `json:"nodeId"`         // Id of the node that has changed.
	ChildNodeCount int64  `json:"childNodeCount"` // New node count.
}

type ChildNodeInsertedEvent

type ChildNodeInsertedEvent struct {
	ParentNodeId   NodeId `json:"parentNodeId"`   // Id of the node that has changed.
	PreviousNodeId NodeId `json:"previousNodeId"` // If of the previous siblint.
	Node           Node   `json:"node"`           // Inserted node data.
}

type ChildNodeRemovedEvent

type ChildNodeRemovedEvent struct {
	ParentNodeId NodeId `json:"parentNodeId"` // Parent id.
	NodeId       NodeId `json:"nodeId"`       // Id of the node that has been removed.
}

type CollectClassNamesFromSubtreeCommand

type CollectClassNamesFromSubtreeCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"` // Id of the node to collect class names.
	// contains filtered or unexported fields
}

func (*CollectClassNamesFromSubtreeCommand) Initalize

func (c *CollectClassNamesFromSubtreeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*CollectClassNamesFromSubtreeCommand) Respond

func (*CollectClassNamesFromSubtreeCommand) RespondWithError

func (c *CollectClassNamesFromSubtreeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type CollectClassNamesFromSubtreeCommandFn

type CollectClassNamesFromSubtreeCommandFn struct {
	// contains filtered or unexported fields
}

func (*CollectClassNamesFromSubtreeCommandFn) Load

func (*CollectClassNamesFromSubtreeCommandFn) Store

type CollectClassNamesFromSubtreeReturn

type CollectClassNamesFromSubtreeReturn struct {
	ClassNames []string `json:"classNames"` // Class name list.
}

type CopyToCommand

type CopyToCommand struct {
	DestinationTargetID string

	NodeId             NodeId  `json:"nodeId"`                       // Id of the node to copy.
	TargetNodeId       NodeId  `json:"targetNodeId"`                 // Id of the element to drop the copy into.
	InsertBeforeNodeId *NodeId `json:"insertBeforeNodeId,omitempty"` // Drop the copy before this node (if absent, the copy becomes the last child of <code>targetNodeId</code>).
	// contains filtered or unexported fields
}

func (*CopyToCommand) Initalize

func (c *CopyToCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*CopyToCommand) Respond

func (c *CopyToCommand) Respond(r *CopyToReturn)

func (*CopyToCommand) RespondWithError

func (c *CopyToCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type CopyToCommandFn

type CopyToCommandFn struct {
	// contains filtered or unexported fields
}

func (*CopyToCommandFn) Load

func (a *CopyToCommandFn) Load() func(CopyToCommand)

func (*CopyToCommandFn) Store

func (a *CopyToCommandFn) Store(fn func(CopyToCommand))

type CopyToReturn

type CopyToReturn struct {
	NodeId NodeId `json:"nodeId"` // Id of the node clone.
}

type DOMAgent

type DOMAgent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(conn *shared.Connection) *DOMAgent

func (*DOMAgent) FireAttributeModified

func (agent *DOMAgent) FireAttributeModified(event AttributeModifiedEvent)

func (*DOMAgent) FireAttributeModifiedOnTarget

func (agent *DOMAgent) FireAttributeModifiedOnTarget(targetId string, event AttributeModifiedEvent)

func (*DOMAgent) FireAttributeRemoved

func (agent *DOMAgent) FireAttributeRemoved(event AttributeRemovedEvent)

func (*DOMAgent) FireAttributeRemovedOnTarget

func (agent *DOMAgent) FireAttributeRemovedOnTarget(targetId string, event AttributeRemovedEvent)

func (*DOMAgent) FireCharacterDataModified

func (agent *DOMAgent) FireCharacterDataModified(event CharacterDataModifiedEvent)

func (*DOMAgent) FireCharacterDataModifiedOnTarget

func (agent *DOMAgent) FireCharacterDataModifiedOnTarget(targetId string, event CharacterDataModifiedEvent)

func (*DOMAgent) FireChildNodeCountUpdated

func (agent *DOMAgent) FireChildNodeCountUpdated(event ChildNodeCountUpdatedEvent)

func (*DOMAgent) FireChildNodeCountUpdatedOnTarget

func (agent *DOMAgent) FireChildNodeCountUpdatedOnTarget(targetId string, event ChildNodeCountUpdatedEvent)

func (*DOMAgent) FireChildNodeInserted

func (agent *DOMAgent) FireChildNodeInserted(event ChildNodeInsertedEvent)

func (*DOMAgent) FireChildNodeInsertedOnTarget

func (agent *DOMAgent) FireChildNodeInsertedOnTarget(targetId string, event ChildNodeInsertedEvent)

func (*DOMAgent) FireChildNodeRemoved

func (agent *DOMAgent) FireChildNodeRemoved(event ChildNodeRemovedEvent)

func (*DOMAgent) FireChildNodeRemovedOnTarget

func (agent *DOMAgent) FireChildNodeRemovedOnTarget(targetId string, event ChildNodeRemovedEvent)

func (*DOMAgent) FireDistributedNodesUpdated

func (agent *DOMAgent) FireDistributedNodesUpdated(event DistributedNodesUpdatedEvent)

func (*DOMAgent) FireDistributedNodesUpdatedOnTarget

func (agent *DOMAgent) FireDistributedNodesUpdatedOnTarget(targetId string, event DistributedNodesUpdatedEvent)

func (*DOMAgent) FireDocumentUpdated

func (agent *DOMAgent) FireDocumentUpdated()

Dispatchable Events

func (*DOMAgent) FireDocumentUpdatedOnTarget

func (agent *DOMAgent) FireDocumentUpdatedOnTarget(targetId string)

func (*DOMAgent) FireInlineStyleInvalidated

func (agent *DOMAgent) FireInlineStyleInvalidated(event InlineStyleInvalidatedEvent)

func (*DOMAgent) FireInlineStyleInvalidatedOnTarget

func (agent *DOMAgent) FireInlineStyleInvalidatedOnTarget(targetId string, event InlineStyleInvalidatedEvent)

func (*DOMAgent) FireInspectNodeRequested

func (agent *DOMAgent) FireInspectNodeRequested(event InspectNodeRequestedEvent)

func (*DOMAgent) FireInspectNodeRequestedOnTarget

func (agent *DOMAgent) FireInspectNodeRequestedOnTarget(targetId string, event InspectNodeRequestedEvent)

func (*DOMAgent) FireNodeHighlightRequested

func (agent *DOMAgent) FireNodeHighlightRequested(event NodeHighlightRequestedEvent)

func (*DOMAgent) FireNodeHighlightRequestedOnTarget

func (agent *DOMAgent) FireNodeHighlightRequestedOnTarget(targetId string, event NodeHighlightRequestedEvent)

func (*DOMAgent) FirePseudoElementAdded

func (agent *DOMAgent) FirePseudoElementAdded(event PseudoElementAddedEvent)

func (*DOMAgent) FirePseudoElementAddedOnTarget

func (agent *DOMAgent) FirePseudoElementAddedOnTarget(targetId string, event PseudoElementAddedEvent)

func (*DOMAgent) FirePseudoElementRemoved

func (agent *DOMAgent) FirePseudoElementRemoved(event PseudoElementRemovedEvent)

func (*DOMAgent) FirePseudoElementRemovedOnTarget

func (agent *DOMAgent) FirePseudoElementRemovedOnTarget(targetId string, event PseudoElementRemovedEvent)

func (*DOMAgent) FireSetChildNodes

func (agent *DOMAgent) FireSetChildNodes(event SetChildNodesEvent)

func (*DOMAgent) FireSetChildNodesOnTarget

func (agent *DOMAgent) FireSetChildNodesOnTarget(targetId string, event SetChildNodesEvent)

func (*DOMAgent) FireShadowRootPopped

func (agent *DOMAgent) FireShadowRootPopped(event ShadowRootPoppedEvent)

func (*DOMAgent) FireShadowRootPoppedOnTarget

func (agent *DOMAgent) FireShadowRootPoppedOnTarget(targetId string, event ShadowRootPoppedEvent)

func (*DOMAgent) FireShadowRootPushed

func (agent *DOMAgent) FireShadowRootPushed(event ShadowRootPushedEvent)

func (*DOMAgent) FireShadowRootPushedOnTarget

func (agent *DOMAgent) FireShadowRootPushedOnTarget(targetId string, event ShadowRootPushedEvent)

func (*DOMAgent) Name

func (agent *DOMAgent) Name() string

func (*DOMAgent) ProcessCommand

func (agent *DOMAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)

func (*DOMAgent) SetCollectClassNamesFromSubtreeHandler

func (agent *DOMAgent) SetCollectClassNamesFromSubtreeHandler(handler func(CollectClassNamesFromSubtreeCommand))

func (*DOMAgent) SetCopyToHandler

func (agent *DOMAgent) SetCopyToHandler(handler func(CopyToCommand))

func (*DOMAgent) SetDisableHandler

func (agent *DOMAgent) SetDisableHandler(handler func(DisableCommand))

func (*DOMAgent) SetDiscardSearchResultsHandler

func (agent *DOMAgent) SetDiscardSearchResultsHandler(handler func(DiscardSearchResultsCommand))

func (*DOMAgent) SetEnableHandler

func (agent *DOMAgent) SetEnableHandler(handler func(EnableCommand))

Commands Sent From Frontend

func (*DOMAgent) SetFocusHandler

func (agent *DOMAgent) SetFocusHandler(handler func(FocusCommand))

func (*DOMAgent) SetGetAttributesHandler

func (agent *DOMAgent) SetGetAttributesHandler(handler func(GetAttributesCommand))

func (*DOMAgent) SetGetBoxModelHandler

func (agent *DOMAgent) SetGetBoxModelHandler(handler func(GetBoxModelCommand))

func (*DOMAgent) SetGetDocumentHandler

func (agent *DOMAgent) SetGetDocumentHandler(handler func(GetDocumentCommand))

func (*DOMAgent) SetGetFlattenedDocumentHandler

func (agent *DOMAgent) SetGetFlattenedDocumentHandler(handler func(GetFlattenedDocumentCommand))

func (*DOMAgent) SetGetHighlightObjectForTestHandler

func (agent *DOMAgent) SetGetHighlightObjectForTestHandler(handler func(GetHighlightObjectForTestCommand))

func (*DOMAgent) SetGetNodeForLocationHandler

func (agent *DOMAgent) SetGetNodeForLocationHandler(handler func(GetNodeForLocationCommand))

func (*DOMAgent) SetGetOuterHTMLHandler

func (agent *DOMAgent) SetGetOuterHTMLHandler(handler func(GetOuterHTMLCommand))

func (*DOMAgent) SetGetRelayoutBoundaryHandler

func (agent *DOMAgent) SetGetRelayoutBoundaryHandler(handler func(GetRelayoutBoundaryCommand))

func (*DOMAgent) SetGetSearchResultsHandler

func (agent *DOMAgent) SetGetSearchResultsHandler(handler func(GetSearchResultsCommand))

func (*DOMAgent) SetHideHighlightHandler

func (agent *DOMAgent) SetHideHighlightHandler(handler func(HideHighlightCommand))

func (*DOMAgent) SetHighlightFrameHandler

func (agent *DOMAgent) SetHighlightFrameHandler(handler func(HighlightFrameCommand))

func (*DOMAgent) SetHighlightNodeHandler

func (agent *DOMAgent) SetHighlightNodeHandler(handler func(HighlightNodeCommand))

func (*DOMAgent) SetHighlightQuadHandler

func (agent *DOMAgent) SetHighlightQuadHandler(handler func(HighlightQuadCommand))

func (*DOMAgent) SetHighlightRectHandler

func (agent *DOMAgent) SetHighlightRectHandler(handler func(HighlightRectCommand))

func (*DOMAgent) SetMarkUndoableStateHandler

func (agent *DOMAgent) SetMarkUndoableStateHandler(handler func(MarkUndoableStateCommand))

func (*DOMAgent) SetMoveToHandler

func (agent *DOMAgent) SetMoveToHandler(handler func(MoveToCommand))

func (*DOMAgent) SetPerformSearchHandler

func (agent *DOMAgent) SetPerformSearchHandler(handler func(PerformSearchCommand))

func (*DOMAgent) SetPushNodeByPathToFrontendHandler

func (agent *DOMAgent) SetPushNodeByPathToFrontendHandler(handler func(PushNodeByPathToFrontendCommand))

func (*DOMAgent) SetPushNodesByBackendIdsToFrontendHandler

func (agent *DOMAgent) SetPushNodesByBackendIdsToFrontendHandler(handler func(PushNodesByBackendIdsToFrontendCommand))

func (*DOMAgent) SetQuerySelectorAllHandler

func (agent *DOMAgent) SetQuerySelectorAllHandler(handler func(QuerySelectorAllCommand))

func (*DOMAgent) SetQuerySelectorHandler

func (agent *DOMAgent) SetQuerySelectorHandler(handler func(QuerySelectorCommand))

func (*DOMAgent) SetRedoHandler

func (agent *DOMAgent) SetRedoHandler(handler func(RedoCommand))

func (*DOMAgent) SetRemoveAttributeHandler

func (agent *DOMAgent) SetRemoveAttributeHandler(handler func(RemoveAttributeCommand))

func (*DOMAgent) SetRemoveNodeHandler

func (agent *DOMAgent) SetRemoveNodeHandler(handler func(RemoveNodeCommand))

func (*DOMAgent) SetRequestChildNodesHandler

func (agent *DOMAgent) SetRequestChildNodesHandler(handler func(RequestChildNodesCommand))

func (*DOMAgent) SetRequestNodeHandler

func (agent *DOMAgent) SetRequestNodeHandler(handler func(RequestNodeCommand))

func (*DOMAgent) SetResolveNodeHandler

func (agent *DOMAgent) SetResolveNodeHandler(handler func(ResolveNodeCommand))

func (*DOMAgent) SetSetAttributeValueHandler

func (agent *DOMAgent) SetSetAttributeValueHandler(handler func(SetAttributeValueCommand))

func (*DOMAgent) SetSetAttributesAsTextHandler

func (agent *DOMAgent) SetSetAttributesAsTextHandler(handler func(SetAttributesAsTextCommand))

func (*DOMAgent) SetSetFileInputFilesHandler

func (agent *DOMAgent) SetSetFileInputFilesHandler(handler func(SetFileInputFilesCommand))

func (*DOMAgent) SetSetInspectModeHandler

func (agent *DOMAgent) SetSetInspectModeHandler(handler func(SetInspectModeCommand))

func (*DOMAgent) SetSetInspectedNodeHandler

func (agent *DOMAgent) SetSetInspectedNodeHandler(handler func(SetInspectedNodeCommand))

func (*DOMAgent) SetSetNodeNameHandler

func (agent *DOMAgent) SetSetNodeNameHandler(handler func(SetNodeNameCommand))

func (*DOMAgent) SetSetNodeValueHandler

func (agent *DOMAgent) SetSetNodeValueHandler(handler func(SetNodeValueCommand))

func (*DOMAgent) SetSetOuterHTMLHandler

func (agent *DOMAgent) SetSetOuterHTMLHandler(handler func(SetOuterHTMLCommand))

func (*DOMAgent) SetUndoHandler

func (agent *DOMAgent) SetUndoHandler(handler func(UndoCommand))

type DisableCommand

type DisableCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*DisableCommand) Initalize

func (c *DisableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*DisableCommand) Respond

func (c *DisableCommand) Respond()

func (*DisableCommand) RespondWithError

func (c *DisableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type DisableCommandFn

type DisableCommandFn struct {
	// contains filtered or unexported fields
}

func (*DisableCommandFn) Load

func (a *DisableCommandFn) Load() func(DisableCommand)

func (*DisableCommandFn) Store

func (a *DisableCommandFn) Store(fn func(DisableCommand))

type DisableReturn

type DisableReturn struct {
}

type DiscardSearchResultsCommand

type DiscardSearchResultsCommand struct {
	DestinationTargetID string

	SearchId string `json:"searchId"` // Unique search session identifier.
	// contains filtered or unexported fields
}

func (*DiscardSearchResultsCommand) Initalize

func (c *DiscardSearchResultsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*DiscardSearchResultsCommand) Respond

func (c *DiscardSearchResultsCommand) Respond()

func (*DiscardSearchResultsCommand) RespondWithError

func (c *DiscardSearchResultsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type DiscardSearchResultsCommandFn

type DiscardSearchResultsCommandFn struct {
	// contains filtered or unexported fields
}

func (*DiscardSearchResultsCommandFn) Load

func (*DiscardSearchResultsCommandFn) Store

type DiscardSearchResultsReturn

type DiscardSearchResultsReturn struct {
}

type DistributedNodesUpdatedEvent

type DistributedNodesUpdatedEvent struct {
	InsertionPointId NodeId        `json:"insertionPointId"` // Insertion point where distrubuted nodes were updated.
	DistributedNodes []BackendNode `json:"distributedNodes"` // Distributed nodes for given insertion point.
}

type DocumentUpdatedEvent

type DocumentUpdatedEvent struct {
}

type EnableCommand

type EnableCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*EnableCommand) Initalize

func (c *EnableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*EnableCommand) Respond

func (c *EnableCommand) Respond()

func (*EnableCommand) RespondWithError

func (c *EnableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type EnableCommandFn

type EnableCommandFn struct {
	// contains filtered or unexported fields
}

func (*EnableCommandFn) Load

func (a *EnableCommandFn) Load() func(EnableCommand)

func (*EnableCommandFn) Store

func (a *EnableCommandFn) Store(fn func(EnableCommand))

type EnableReturn

type EnableReturn struct {
}

type FocusCommand

type FocusCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"` // Id of the node to focus.
	// contains filtered or unexported fields
}

func (*FocusCommand) Initalize

func (c *FocusCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*FocusCommand) Respond

func (c *FocusCommand) Respond()

func (*FocusCommand) RespondWithError

func (c *FocusCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type FocusCommandFn

type FocusCommandFn struct {
	// contains filtered or unexported fields
}

func (*FocusCommandFn) Load

func (a *FocusCommandFn) Load() func(FocusCommand)

func (*FocusCommandFn) Store

func (a *FocusCommandFn) Store(fn func(FocusCommand))

type FocusReturn

type FocusReturn struct {
}

type GetAttributesCommand

type GetAttributesCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"` // Id of the node to retrieve attibutes for.
	// contains filtered or unexported fields
}

func (*GetAttributesCommand) Initalize

func (c *GetAttributesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetAttributesCommand) Respond

func (*GetAttributesCommand) RespondWithError

func (c *GetAttributesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetAttributesCommandFn

type GetAttributesCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetAttributesCommandFn) Load

func (*GetAttributesCommandFn) Store

func (a *GetAttributesCommandFn) Store(fn func(GetAttributesCommand))

type GetAttributesReturn

type GetAttributesReturn struct {
	Attributes []string `json:"attributes"` // An interleaved array of node attribute names and values.
}

type GetBoxModelCommand

type GetBoxModelCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"` // Id of the node to get box model for.
	// contains filtered or unexported fields
}

func (*GetBoxModelCommand) Initalize

func (c *GetBoxModelCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetBoxModelCommand) Respond

func (c *GetBoxModelCommand) Respond(r *GetBoxModelReturn)

func (*GetBoxModelCommand) RespondWithError

func (c *GetBoxModelCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetBoxModelCommandFn

type GetBoxModelCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetBoxModelCommandFn) Load

func (a *GetBoxModelCommandFn) Load() func(GetBoxModelCommand)

func (*GetBoxModelCommandFn) Store

func (a *GetBoxModelCommandFn) Store(fn func(GetBoxModelCommand))

type GetBoxModelReturn

type GetBoxModelReturn struct {
	Model BoxModel `json:"model"` // Box model for the node.
}

type GetDocumentCommand

type GetDocumentCommand struct {
	DestinationTargetID string

	Depth  *int64 `json:"depth,omitempty"`  // [Experimental] The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
	Pierce *bool  `json:"pierce,omitempty"` // [Experimental] Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).
	// contains filtered or unexported fields
}

func (*GetDocumentCommand) Initalize

func (c *GetDocumentCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetDocumentCommand) Respond

func (c *GetDocumentCommand) Respond(r *GetDocumentReturn)

func (*GetDocumentCommand) RespondWithError

func (c *GetDocumentCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetDocumentCommandFn

type GetDocumentCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetDocumentCommandFn) Load

func (a *GetDocumentCommandFn) Load() func(GetDocumentCommand)

func (*GetDocumentCommandFn) Store

func (a *GetDocumentCommandFn) Store(fn func(GetDocumentCommand))

type GetDocumentReturn

type GetDocumentReturn struct {
	Root Node `json:"root"` // Resulting node.
}

type GetFlattenedDocumentCommand

type GetFlattenedDocumentCommand struct {
	DestinationTargetID string

	Depth  *int64 `json:"depth,omitempty"`  // [Experimental] The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
	Pierce *bool  `json:"pierce,omitempty"` // [Experimental] Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).
	// contains filtered or unexported fields
}

func (*GetFlattenedDocumentCommand) Initalize

func (c *GetFlattenedDocumentCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetFlattenedDocumentCommand) Respond

func (*GetFlattenedDocumentCommand) RespondWithError

func (c *GetFlattenedDocumentCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetFlattenedDocumentCommandFn

type GetFlattenedDocumentCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetFlattenedDocumentCommandFn) Load

func (*GetFlattenedDocumentCommandFn) Store

type GetFlattenedDocumentReturn

type GetFlattenedDocumentReturn struct {
	Nodes []Node `json:"nodes"` // Resulting node.
}

type GetHighlightObjectForTestCommand

type GetHighlightObjectForTestCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"` // Id of the node to get highlight object for.
	// contains filtered or unexported fields
}

func (*GetHighlightObjectForTestCommand) Initalize

func (c *GetHighlightObjectForTestCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetHighlightObjectForTestCommand) Respond

func (*GetHighlightObjectForTestCommand) RespondWithError

func (c *GetHighlightObjectForTestCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetHighlightObjectForTestCommandFn

type GetHighlightObjectForTestCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetHighlightObjectForTestCommandFn) Load

func (*GetHighlightObjectForTestCommandFn) Store

type GetHighlightObjectForTestReturn

type GetHighlightObjectForTestReturn struct {
	Highlight map[string]string `json:"highlight"` // Highlight data for the node.
}

type GetNodeForLocationCommand

type GetNodeForLocationCommand struct {
	DestinationTargetID string

	X int64 `json:"x"` // X coordinate.
	Y int64 `json:"y"` // Y coordinate.
	// contains filtered or unexported fields
}

func (*GetNodeForLocationCommand) Initalize

func (c *GetNodeForLocationCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetNodeForLocationCommand) Respond

func (*GetNodeForLocationCommand) RespondWithError

func (c *GetNodeForLocationCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetNodeForLocationCommandFn

type GetNodeForLocationCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetNodeForLocationCommandFn) Load

func (*GetNodeForLocationCommandFn) Store

type GetNodeForLocationReturn

type GetNodeForLocationReturn struct {
	NodeId NodeId `json:"nodeId"` // Id of the node at given coordinates.
}

type GetOuterHTMLCommand

type GetOuterHTMLCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"` // Id of the node to get markup for.
	// contains filtered or unexported fields
}

func (*GetOuterHTMLCommand) Initalize

func (c *GetOuterHTMLCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetOuterHTMLCommand) Respond

func (c *GetOuterHTMLCommand) Respond(r *GetOuterHTMLReturn)

func (*GetOuterHTMLCommand) RespondWithError

func (c *GetOuterHTMLCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetOuterHTMLCommandFn

type GetOuterHTMLCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetOuterHTMLCommandFn) Load

func (*GetOuterHTMLCommandFn) Store

func (a *GetOuterHTMLCommandFn) Store(fn func(GetOuterHTMLCommand))

type GetOuterHTMLReturn

type GetOuterHTMLReturn struct {
	OuterHTML string `json:"outerHTML"` // Outer HTML markup.
}

type GetRelayoutBoundaryCommand

type GetRelayoutBoundaryCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"` // Id of the node.
	// contains filtered or unexported fields
}

func (*GetRelayoutBoundaryCommand) Initalize

func (c *GetRelayoutBoundaryCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetRelayoutBoundaryCommand) Respond

func (*GetRelayoutBoundaryCommand) RespondWithError

func (c *GetRelayoutBoundaryCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetRelayoutBoundaryCommandFn

type GetRelayoutBoundaryCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetRelayoutBoundaryCommandFn) Load

func (*GetRelayoutBoundaryCommandFn) Store

type GetRelayoutBoundaryReturn

type GetRelayoutBoundaryReturn struct {
	NodeId NodeId `json:"nodeId"` // Relayout boundary node id for the given node.
}

type GetSearchResultsCommand

type GetSearchResultsCommand struct {
	DestinationTargetID string

	SearchId  string `json:"searchId"`  // Unique search session identifier.
	FromIndex int64  `json:"fromIndex"` // Start index of the search result to be returned.
	ToIndex   int64  `json:"toIndex"`   // End index of the search result to be returned.
	// contains filtered or unexported fields
}

func (*GetSearchResultsCommand) Initalize

func (c *GetSearchResultsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetSearchResultsCommand) Respond

func (*GetSearchResultsCommand) RespondWithError

func (c *GetSearchResultsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetSearchResultsCommandFn

type GetSearchResultsCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetSearchResultsCommandFn) Load

func (*GetSearchResultsCommandFn) Store

type GetSearchResultsReturn

type GetSearchResultsReturn struct {
	NodeIds []NodeId `json:"nodeIds"` // Ids of the search result nodes.
}

type HideHighlightCommand

type HideHighlightCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*HideHighlightCommand) Initalize

func (c *HideHighlightCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*HideHighlightCommand) Respond

func (c *HideHighlightCommand) Respond()

func (*HideHighlightCommand) RespondWithError

func (c *HideHighlightCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type HideHighlightCommandFn

type HideHighlightCommandFn struct {
	// contains filtered or unexported fields
}

func (*HideHighlightCommandFn) Load

func (*HideHighlightCommandFn) Store

func (a *HideHighlightCommandFn) Store(fn func(HideHighlightCommand))

type HideHighlightReturn

type HideHighlightReturn struct {
}

type HighlightConfig

type HighlightConfig struct {
	ShowInfo           *bool   `json:"showInfo,omitempty"`           // Whether the node info tooltip should be shown (default: false).
	ShowRulers         *bool   `json:"showRulers,omitempty"`         // Whether the rulers should be shown (default: false).
	ShowExtensionLines *bool   `json:"showExtensionLines,omitempty"` // Whether the extension lines from node to the rulers should be shown (default: false).
	DisplayAsMaterial  *bool   `json:"displayAsMaterial,omitempty"`  // [Experimental]
	ContentColor       *RGBA   `json:"contentColor,omitempty"`       // The content box highlight fill color (default: transparent).
	PaddingColor       *RGBA   `json:"paddingColor,omitempty"`       // The padding highlight fill color (default: transparent).
	BorderColor        *RGBA   `json:"borderColor,omitempty"`        // The border highlight fill color (default: transparent).
	MarginColor        *RGBA   `json:"marginColor,omitempty"`        // The margin highlight fill color (default: transparent).
	EventTargetColor   *RGBA   `json:"eventTargetColor,omitempty"`   // [Experimental] The event target element highlight fill color (default: transparent).
	ShapeColor         *RGBA   `json:"shapeColor,omitempty"`         // [Experimental] The shape outside fill color (default: transparent).
	ShapeMarginColor   *RGBA   `json:"shapeMarginColor,omitempty"`   // [Experimental] The shape margin fill color (default: transparent).
	SelectorList       *string `json:"selectorList,omitempty"`       // Selectors to highlight relevant nodes.
}

type HighlightFrameCommand

type HighlightFrameCommand struct {
	DestinationTargetID string

	FrameId             string `json:"frameId"`                       // Identifier of the frame to highlight.
	ContentColor        *RGBA  `json:"contentColor,omitempty"`        // The content box highlight fill color (default: transparent).
	ContentOutlineColor *RGBA  `json:"contentOutlineColor,omitempty"` // The content box highlight outline color (default: transparent).
	// contains filtered or unexported fields
}

func (*HighlightFrameCommand) Initalize

func (c *HighlightFrameCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*HighlightFrameCommand) Respond

func (c *HighlightFrameCommand) Respond()

func (*HighlightFrameCommand) RespondWithError

func (c *HighlightFrameCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type HighlightFrameCommandFn

type HighlightFrameCommandFn struct {
	// contains filtered or unexported fields
}

func (*HighlightFrameCommandFn) Load

func (*HighlightFrameCommandFn) Store

type HighlightFrameReturn

type HighlightFrameReturn struct {
}

type HighlightNodeCommand

type HighlightNodeCommand struct {
	DestinationTargetID string

	HighlightConfig HighlightConfig         `json:"highlightConfig"`         // A descriptor for the highlight appearance.
	NodeId          *NodeId                 `json:"nodeId,omitempty"`        // Identifier of the node to highlight.
	BackendNodeId   *BackendNodeId          `json:"backendNodeId,omitempty"` // Identifier of the backend node to highlight.
	ObjectId        *runtime.RemoteObjectId `json:"objectId,omitempty"`      // [Experimental] JavaScript object id of the node to be highlighted.
	// contains filtered or unexported fields
}

func (*HighlightNodeCommand) Initalize

func (c *HighlightNodeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*HighlightNodeCommand) Respond

func (c *HighlightNodeCommand) Respond()

func (*HighlightNodeCommand) RespondWithError

func (c *HighlightNodeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type HighlightNodeCommandFn

type HighlightNodeCommandFn struct {
	// contains filtered or unexported fields
}

func (*HighlightNodeCommandFn) Load

func (*HighlightNodeCommandFn) Store

func (a *HighlightNodeCommandFn) Store(fn func(HighlightNodeCommand))

type HighlightNodeReturn

type HighlightNodeReturn struct {
}

type HighlightQuadCommand

type HighlightQuadCommand struct {
	DestinationTargetID string

	Quad         Quad  `json:"quad"`                   // Quad to highlight
	Color        *RGBA `json:"color,omitempty"`        // The highlight fill color (default: transparent).
	OutlineColor *RGBA `json:"outlineColor,omitempty"` // The highlight outline color (default: transparent).
	// contains filtered or unexported fields
}

func (*HighlightQuadCommand) Initalize

func (c *HighlightQuadCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*HighlightQuadCommand) Respond

func (c *HighlightQuadCommand) Respond()

func (*HighlightQuadCommand) RespondWithError

func (c *HighlightQuadCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type HighlightQuadCommandFn

type HighlightQuadCommandFn struct {
	// contains filtered or unexported fields
}

func (*HighlightQuadCommandFn) Load

func (*HighlightQuadCommandFn) Store

func (a *HighlightQuadCommandFn) Store(fn func(HighlightQuadCommand))

type HighlightQuadReturn

type HighlightQuadReturn struct {
}

type HighlightRectCommand

type HighlightRectCommand struct {
	DestinationTargetID string

	X            int64 `json:"x"`                      // X coordinate
	Y            int64 `json:"y"`                      // Y coordinate
	Width        int64 `json:"width"`                  // Rectangle width
	Height       int64 `json:"height"`                 // Rectangle height
	Color        *RGBA `json:"color,omitempty"`        // The highlight fill color (default: transparent).
	OutlineColor *RGBA `json:"outlineColor,omitempty"` // The highlight outline color (default: transparent).
	// contains filtered or unexported fields
}

func (*HighlightRectCommand) Initalize

func (c *HighlightRectCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*HighlightRectCommand) Respond

func (c *HighlightRectCommand) Respond()

func (*HighlightRectCommand) RespondWithError

func (c *HighlightRectCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type HighlightRectCommandFn

type HighlightRectCommandFn struct {
	// contains filtered or unexported fields
}

func (*HighlightRectCommandFn) Load

func (*HighlightRectCommandFn) Store

func (a *HighlightRectCommandFn) Store(fn func(HighlightRectCommand))

type HighlightRectReturn

type HighlightRectReturn struct {
}

type InlineStyleInvalidatedEvent

type InlineStyleInvalidatedEvent struct {
	NodeIds []NodeId `json:"nodeIds"` // Ids of the nodes for which the inline styles have been invalidated.
}

type InspectMode

type InspectMode string
const (
	InspectModeSearchForNode        InspectMode = "searchForNode"
	InspectModeSearchForUAShadowDOM InspectMode = "searchForUAShadowDOM"
	InspectModeNone                 InspectMode = "none"
)

type InspectNodeRequestedEvent

type InspectNodeRequestedEvent struct {
	BackendNodeId BackendNodeId `json:"backendNodeId"` // Id of the node to inspect.
}

type MarkUndoableStateCommand

type MarkUndoableStateCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*MarkUndoableStateCommand) Initalize

func (c *MarkUndoableStateCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*MarkUndoableStateCommand) Respond

func (c *MarkUndoableStateCommand) Respond()

func (*MarkUndoableStateCommand) RespondWithError

func (c *MarkUndoableStateCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type MarkUndoableStateCommandFn

type MarkUndoableStateCommandFn struct {
	// contains filtered or unexported fields
}

func (*MarkUndoableStateCommandFn) Load

func (*MarkUndoableStateCommandFn) Store

type MarkUndoableStateReturn

type MarkUndoableStateReturn struct {
}

type MoveToCommand

type MoveToCommand struct {
	DestinationTargetID string

	NodeId             NodeId  `json:"nodeId"`                       // Id of the node to move.
	TargetNodeId       NodeId  `json:"targetNodeId"`                 // Id of the element to drop the moved node into.
	InsertBeforeNodeId *NodeId `json:"insertBeforeNodeId,omitempty"` // Drop node before this one (if absent, the moved node becomes the last child of <code>targetNodeId</code>).
	// contains filtered or unexported fields
}

func (*MoveToCommand) Initalize

func (c *MoveToCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*MoveToCommand) Respond

func (c *MoveToCommand) Respond(r *MoveToReturn)

func (*MoveToCommand) RespondWithError

func (c *MoveToCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type MoveToCommandFn

type MoveToCommandFn struct {
	// contains filtered or unexported fields
}

func (*MoveToCommandFn) Load

func (a *MoveToCommandFn) Load() func(MoveToCommand)

func (*MoveToCommandFn) Store

func (a *MoveToCommandFn) Store(fn func(MoveToCommand))

type MoveToReturn

type MoveToReturn struct {
	NodeId NodeId `json:"nodeId"` // New id of the moved node.
}

type Node

type Node struct {
	NodeId           NodeId          `json:"nodeId"`                     // Node identifier that is passed into the rest of the DOM messages as the <code>nodeId</code>. Backend will only push node with given <code>id</code> once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.
	ParentId         *NodeId         `json:"parentId,omitempty"`         // [Experimental] The id of the parent node if any.
	BackendNodeId    BackendNodeId   `json:"backendNodeId"`              // [Experimental] The BackendNodeId for this node.
	NodeType         int64           `json:"nodeType"`                   // <code>Node</code>'s nodeType.
	NodeName         string          `json:"nodeName"`                   // <code>Node</code>'s nodeName.
	LocalName        string          `json:"localName"`                  // <code>Node</code>'s localName.
	NodeValue        string          `json:"nodeValue"`                  // <code>Node</code>'s nodeValue.
	ChildNodeCount   *int64          `json:"childNodeCount,omitempty"`   // Child count for <code>Container</code> nodes.
	Children         *[]Node         `json:"children,omitempty"`         // Child nodes of this node when requested with children.
	Attributes       *[]string       `json:"attributes,omitempty"`       // Attributes of the <code>Element</code> node in the form of flat array <code>[name1, value1, name2, value2]</code>.
	DocumentURL      *string         `json:"documentURL,omitempty"`      // Document URL that <code>Document</code> or <code>FrameOwner</code> node points to.
	BaseURL          *string         `json:"baseURL,omitempty"`          // [Experimental] Base URL that <code>Document</code> or <code>FrameOwner</code> node uses for URL completion.
	PublicId         *string         `json:"publicId,omitempty"`         // <code>DocumentType</code>'s publicId.
	SystemId         *string         `json:"systemId,omitempty"`         // <code>DocumentType</code>'s systemId.
	InternalSubset   *string         `json:"internalSubset,omitempty"`   // <code>DocumentType</code>'s internalSubset.
	XmlVersion       *string         `json:"xmlVersion,omitempty"`       // <code>Document</code>'s XML version in case of XML documents.
	Name             *string         `json:"name,omitempty"`             // <code>Attr</code>'s name.
	Value            *string         `json:"value,omitempty"`            // <code>Attr</code>'s value.
	PseudoType       *PseudoType     `json:"pseudoType,omitempty"`       // Pseudo element type for this node.
	ShadowRootType   *ShadowRootType `json:"shadowRootType,omitempty"`   // Shadow root type.
	FrameId          *string         `json:"frameId,omitempty"`          // [Experimental] Frame ID for frame owner elements.
	ContentDocument  *Node           `json:"contentDocument,omitempty"`  // Content document for frame owner elements.
	ShadowRoots      *[]Node         `json:"shadowRoots,omitempty"`      // [Experimental] Shadow root list for given element host.
	TemplateContent  *Node           `json:"templateContent,omitempty"`  // [Experimental] Content document fragment for template elements.
	PseudoElements   *[]Node         `json:"pseudoElements,omitempty"`   // [Experimental] Pseudo elements associated with this node.
	ImportedDocument *Node           `json:"importedDocument,omitempty"` // Import document for the HTMLImport links.
	DistributedNodes *[]BackendNode  `json:"distributedNodes,omitempty"` // [Experimental] Distributed nodes for given insertion point.
	IsSVG            *bool           `json:"isSVG,omitempty"`            // [Experimental] Whether the node is SVG.
}

type NodeHighlightRequestedEvent

type NodeHighlightRequestedEvent struct {
	NodeId NodeId `json:"nodeId"`
}

type NodeId

type NodeId int64

type PerformSearchCommand

type PerformSearchCommand struct {
	DestinationTargetID string

	Query                     string `json:"query"`                               // Plain text or query selector or XPath search query.
	IncludeUserAgentShadowDOM *bool  `json:"includeUserAgentShadowDOM,omitempty"` // [Experimental] True to search in user agent shadow DOM.
	// contains filtered or unexported fields
}

func (*PerformSearchCommand) Initalize

func (c *PerformSearchCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*PerformSearchCommand) Respond

func (*PerformSearchCommand) RespondWithError

func (c *PerformSearchCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type PerformSearchCommandFn

type PerformSearchCommandFn struct {
	// contains filtered or unexported fields
}

func (*PerformSearchCommandFn) Load

func (*PerformSearchCommandFn) Store

func (a *PerformSearchCommandFn) Store(fn func(PerformSearchCommand))

type PerformSearchReturn

type PerformSearchReturn struct {
	SearchId    string `json:"searchId"`    // Unique search session identifier.
	ResultCount int64  `json:"resultCount"` // Number of search results.
}

type PseudoElementAddedEvent

type PseudoElementAddedEvent struct {
	ParentId      NodeId `json:"parentId"`      // Pseudo element's parent element id.
	PseudoElement Node   `json:"pseudoElement"` // The added pseudo element.
}

type PseudoElementRemovedEvent

type PseudoElementRemovedEvent struct {
	ParentId        NodeId `json:"parentId"`        // Pseudo element's parent element id.
	PseudoElementId NodeId `json:"pseudoElementId"` // The removed pseudo element id.
}

type PseudoType

type PseudoType string
const (
	PseudoTypeFirstDashline           PseudoType = "first-line"
	PseudoTypeFirstDashletter         PseudoType = "first-letter"
	PseudoTypeBefore                  PseudoType = "before"
	PseudoTypeAfter                   PseudoType = "after"
	PseudoTypeBackdrop                PseudoType = "backdrop"
	PseudoTypeSelection               PseudoType = "selection"
	PseudoTypeFirstDashlineinherited  PseudoType = "first-line-inherited"
	PseudoTypeScrollbar               PseudoType = "scrollbar"
	PseudoTypeScrollbarDashthumb      PseudoType = "scrollbar-thumb"
	PseudoTypeScrollbarDashbutton     PseudoType = "scrollbar-button"
	PseudoTypeScrollbarDashtrack      PseudoType = "scrollbar-track"
	PseudoTypeScrollbarDashtrackpiece PseudoType = "scrollbar-track-piece"
	PseudoTypeScrollbarDashcorner     PseudoType = "scrollbar-corner"
	PseudoTypeResizer                 PseudoType = "resizer"
	PseudoTypeInputDashlistbutton     PseudoType = "input-list-button"
)

type PushNodeByPathToFrontendCommand

type PushNodeByPathToFrontendCommand struct {
	DestinationTargetID string

	Path string `json:"path"` // Path to node in the proprietary format.
	// contains filtered or unexported fields
}

func (*PushNodeByPathToFrontendCommand) Initalize

func (c *PushNodeByPathToFrontendCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*PushNodeByPathToFrontendCommand) Respond

func (*PushNodeByPathToFrontendCommand) RespondWithError

func (c *PushNodeByPathToFrontendCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type PushNodeByPathToFrontendCommandFn

type PushNodeByPathToFrontendCommandFn struct {
	// contains filtered or unexported fields
}

func (*PushNodeByPathToFrontendCommandFn) Load

func (*PushNodeByPathToFrontendCommandFn) Store

type PushNodeByPathToFrontendReturn

type PushNodeByPathToFrontendReturn struct {
	NodeId NodeId `json:"nodeId"` // Id of the node for given path.
}

type PushNodesByBackendIdsToFrontendCommand

type PushNodesByBackendIdsToFrontendCommand struct {
	DestinationTargetID string

	BackendNodeIds []BackendNodeId `json:"backendNodeIds"` // The array of backend node ids.
	// contains filtered or unexported fields
}

func (*PushNodesByBackendIdsToFrontendCommand) Initalize

func (c *PushNodesByBackendIdsToFrontendCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*PushNodesByBackendIdsToFrontendCommand) Respond

func (*PushNodesByBackendIdsToFrontendCommand) RespondWithError

func (c *PushNodesByBackendIdsToFrontendCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type PushNodesByBackendIdsToFrontendCommandFn

type PushNodesByBackendIdsToFrontendCommandFn struct {
	// contains filtered or unexported fields
}

func (*PushNodesByBackendIdsToFrontendCommandFn) Load

func (*PushNodesByBackendIdsToFrontendCommandFn) Store

type PushNodesByBackendIdsToFrontendReturn

type PushNodesByBackendIdsToFrontendReturn struct {
	NodeIds []NodeId `json:"nodeIds"` // The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds.
}

type Quad

type Quad []float64

type QuerySelectorAllCommand

type QuerySelectorAllCommand struct {
	DestinationTargetID string

	NodeId   NodeId `json:"nodeId"`   // Id of the node to query upon.
	Selector string `json:"selector"` // Selector string.
	// contains filtered or unexported fields
}

func (*QuerySelectorAllCommand) Initalize

func (c *QuerySelectorAllCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*QuerySelectorAllCommand) Respond

func (*QuerySelectorAllCommand) RespondWithError

func (c *QuerySelectorAllCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type QuerySelectorAllCommandFn

type QuerySelectorAllCommandFn struct {
	// contains filtered or unexported fields
}

func (*QuerySelectorAllCommandFn) Load

func (*QuerySelectorAllCommandFn) Store

type QuerySelectorAllReturn

type QuerySelectorAllReturn struct {
	NodeIds []NodeId `json:"nodeIds"` // Query selector result.
}

type QuerySelectorCommand

type QuerySelectorCommand struct {
	DestinationTargetID string

	NodeId   NodeId `json:"nodeId"`   // Id of the node to query upon.
	Selector string `json:"selector"` // Selector string.
	// contains filtered or unexported fields
}

func (*QuerySelectorCommand) Initalize

func (c *QuerySelectorCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*QuerySelectorCommand) Respond

func (*QuerySelectorCommand) RespondWithError

func (c *QuerySelectorCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type QuerySelectorCommandFn

type QuerySelectorCommandFn struct {
	// contains filtered or unexported fields
}

func (*QuerySelectorCommandFn) Load

func (*QuerySelectorCommandFn) Store

func (a *QuerySelectorCommandFn) Store(fn func(QuerySelectorCommand))

type QuerySelectorReturn

type QuerySelectorReturn struct {
	NodeId NodeId `json:"nodeId"` // Query selector result.
}

type RGBA

type RGBA struct {
	R int64    `json:"r"`           // The red component, in the [0-255] range.
	G int64    `json:"g"`           // The green component, in the [0-255] range.
	B int64    `json:"b"`           // The blue component, in the [0-255] range.
	A *float64 `json:"a,omitempty"` // The alpha component, in the [0-1] range (default: 1).
}

type Rect

type Rect struct {
	X      float64 `json:"x"`      // X coordinate
	Y      float64 `json:"y"`      // Y coordinate
	Width  float64 `json:"width"`  // Rectangle width
	Height float64 `json:"height"` // Rectangle height
}

type RedoCommand

type RedoCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*RedoCommand) Initalize

func (c *RedoCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*RedoCommand) Respond

func (c *RedoCommand) Respond()

func (*RedoCommand) RespondWithError

func (c *RedoCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type RedoCommandFn

type RedoCommandFn struct {
	// contains filtered or unexported fields
}

func (*RedoCommandFn) Load

func (a *RedoCommandFn) Load() func(RedoCommand)

func (*RedoCommandFn) Store

func (a *RedoCommandFn) Store(fn func(RedoCommand))

type RedoReturn

type RedoReturn struct {
}

type RemoveAttributeCommand

type RemoveAttributeCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"` // Id of the element to remove attribute from.
	Name   string `json:"name"`   // Name of the attribute to remove.
	// contains filtered or unexported fields
}

func (*RemoveAttributeCommand) Initalize

func (c *RemoveAttributeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*RemoveAttributeCommand) Respond

func (c *RemoveAttributeCommand) Respond()

func (*RemoveAttributeCommand) RespondWithError

func (c *RemoveAttributeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type RemoveAttributeCommandFn

type RemoveAttributeCommandFn struct {
	// contains filtered or unexported fields
}

func (*RemoveAttributeCommandFn) Load

func (*RemoveAttributeCommandFn) Store

type RemoveAttributeReturn

type RemoveAttributeReturn struct {
}

type RemoveNodeCommand

type RemoveNodeCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"` // Id of the node to remove.
	// contains filtered or unexported fields
}

func (*RemoveNodeCommand) Initalize

func (c *RemoveNodeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*RemoveNodeCommand) Respond

func (c *RemoveNodeCommand) Respond()

func (*RemoveNodeCommand) RespondWithError

func (c *RemoveNodeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type RemoveNodeCommandFn

type RemoveNodeCommandFn struct {
	// contains filtered or unexported fields
}

func (*RemoveNodeCommandFn) Load

func (a *RemoveNodeCommandFn) Load() func(RemoveNodeCommand)

func (*RemoveNodeCommandFn) Store

func (a *RemoveNodeCommandFn) Store(fn func(RemoveNodeCommand))

type RemoveNodeReturn

type RemoveNodeReturn struct {
}

type RequestChildNodesCommand

type RequestChildNodesCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"`           // Id of the node to get children for.
	Depth  *int64 `json:"depth,omitempty"`  // [Experimental] The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
	Pierce *bool  `json:"pierce,omitempty"` // [Experimental] Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).
	// contains filtered or unexported fields
}

func (*RequestChildNodesCommand) Initalize

func (c *RequestChildNodesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*RequestChildNodesCommand) Respond

func (c *RequestChildNodesCommand) Respond()

func (*RequestChildNodesCommand) RespondWithError

func (c *RequestChildNodesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type RequestChildNodesCommandFn

type RequestChildNodesCommandFn struct {
	// contains filtered or unexported fields
}

func (*RequestChildNodesCommandFn) Load

func (*RequestChildNodesCommandFn) Store

type RequestChildNodesReturn

type RequestChildNodesReturn struct {
}

type RequestNodeCommand

type RequestNodeCommand struct {
	DestinationTargetID string

	ObjectId runtime.RemoteObjectId `json:"objectId"` // JavaScript object id to convert into node.
	// contains filtered or unexported fields
}

func (*RequestNodeCommand) Initalize

func (c *RequestNodeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*RequestNodeCommand) Respond

func (c *RequestNodeCommand) Respond(r *RequestNodeReturn)

func (*RequestNodeCommand) RespondWithError

func (c *RequestNodeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type RequestNodeCommandFn

type RequestNodeCommandFn struct {
	// contains filtered or unexported fields
}

func (*RequestNodeCommandFn) Load

func (a *RequestNodeCommandFn) Load() func(RequestNodeCommand)

func (*RequestNodeCommandFn) Store

func (a *RequestNodeCommandFn) Store(fn func(RequestNodeCommand))

type RequestNodeReturn

type RequestNodeReturn struct {
	NodeId NodeId `json:"nodeId"` // Node id for given object.
}

type ResolveNodeCommand

type ResolveNodeCommand struct {
	DestinationTargetID string

	NodeId      NodeId  `json:"nodeId"`                // Id of the node to resolve.
	ObjectGroup *string `json:"objectGroup,omitempty"` // Symbolic group name that can be used to release multiple objects.
	// contains filtered or unexported fields
}

func (*ResolveNodeCommand) Initalize

func (c *ResolveNodeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*ResolveNodeCommand) Respond

func (c *ResolveNodeCommand) Respond(r *ResolveNodeReturn)

func (*ResolveNodeCommand) RespondWithError

func (c *ResolveNodeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type ResolveNodeCommandFn

type ResolveNodeCommandFn struct {
	// contains filtered or unexported fields
}

func (*ResolveNodeCommandFn) Load

func (a *ResolveNodeCommandFn) Load() func(ResolveNodeCommand)

func (*ResolveNodeCommandFn) Store

func (a *ResolveNodeCommandFn) Store(fn func(ResolveNodeCommand))

type ResolveNodeReturn

type ResolveNodeReturn struct {
	Object runtime.RemoteObject `json:"object"` // JavaScript object wrapper for given node.
}

type SetAttributeValueCommand

type SetAttributeValueCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"` // Id of the element to set attribute for.
	Name   string `json:"name"`   // Attribute name.
	Value  string `json:"value"`  // Attribute value.
	// contains filtered or unexported fields
}

func (*SetAttributeValueCommand) Initalize

func (c *SetAttributeValueCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetAttributeValueCommand) Respond

func (c *SetAttributeValueCommand) Respond()

func (*SetAttributeValueCommand) RespondWithError

func (c *SetAttributeValueCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetAttributeValueCommandFn

type SetAttributeValueCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetAttributeValueCommandFn) Load

func (*SetAttributeValueCommandFn) Store

type SetAttributeValueReturn

type SetAttributeValueReturn struct {
}

type SetAttributesAsTextCommand

type SetAttributesAsTextCommand struct {
	DestinationTargetID string

	NodeId NodeId  `json:"nodeId"`         // Id of the element to set attributes for.
	Text   string  `json:"text"`           // Text with a number of attributes. Will parse this text using HTML parser.
	Name   *string `json:"name,omitempty"` // Attribute name to replace with new attributes derived from text in case text parsed successfully.
	// contains filtered or unexported fields
}

func (*SetAttributesAsTextCommand) Initalize

func (c *SetAttributesAsTextCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetAttributesAsTextCommand) Respond

func (c *SetAttributesAsTextCommand) Respond()

func (*SetAttributesAsTextCommand) RespondWithError

func (c *SetAttributesAsTextCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetAttributesAsTextCommandFn

type SetAttributesAsTextCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetAttributesAsTextCommandFn) Load

func (*SetAttributesAsTextCommandFn) Store

type SetAttributesAsTextReturn

type SetAttributesAsTextReturn struct {
}

type SetChildNodesEvent

type SetChildNodesEvent struct {
	ParentId NodeId `json:"parentId"` // Parent node id to populate with children.
	Nodes    []Node `json:"nodes"`    // Child nodes array.
}

type SetFileInputFilesCommand

type SetFileInputFilesCommand struct {
	DestinationTargetID string

	NodeId NodeId   `json:"nodeId"` // Id of the file input node to set files for.
	Files  []string `json:"files"`  // Array of file paths to set.
	// contains filtered or unexported fields
}

func (*SetFileInputFilesCommand) Initalize

func (c *SetFileInputFilesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetFileInputFilesCommand) Respond

func (c *SetFileInputFilesCommand) Respond()

func (*SetFileInputFilesCommand) RespondWithError

func (c *SetFileInputFilesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetFileInputFilesCommandFn

type SetFileInputFilesCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetFileInputFilesCommandFn) Load

func (*SetFileInputFilesCommandFn) Store

type SetFileInputFilesReturn

type SetFileInputFilesReturn struct {
}

type SetInspectModeCommand

type SetInspectModeCommand struct {
	DestinationTargetID string

	Mode            InspectMode      `json:"mode"`                      // Set an inspection mode.
	HighlightConfig *HighlightConfig `json:"highlightConfig,omitempty"` // A descriptor for the highlight appearance of hovered-over nodes. May be omitted if <code>enabled == false</code>.
	// contains filtered or unexported fields
}

func (*SetInspectModeCommand) Initalize

func (c *SetInspectModeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetInspectModeCommand) Respond

func (c *SetInspectModeCommand) Respond()

func (*SetInspectModeCommand) RespondWithError

func (c *SetInspectModeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetInspectModeCommandFn

type SetInspectModeCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetInspectModeCommandFn) Load

func (*SetInspectModeCommandFn) Store

type SetInspectModeReturn

type SetInspectModeReturn struct {
}

type SetInspectedNodeCommand

type SetInspectedNodeCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"` // DOM node id to be accessible by means of $x command line API.
	// contains filtered or unexported fields
}

func (*SetInspectedNodeCommand) Initalize

func (c *SetInspectedNodeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetInspectedNodeCommand) Respond

func (c *SetInspectedNodeCommand) Respond()

func (*SetInspectedNodeCommand) RespondWithError

func (c *SetInspectedNodeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetInspectedNodeCommandFn

type SetInspectedNodeCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetInspectedNodeCommandFn) Load

func (*SetInspectedNodeCommandFn) Store

type SetInspectedNodeReturn

type SetInspectedNodeReturn struct {
}

type SetNodeNameCommand

type SetNodeNameCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"` // Id of the node to set name for.
	Name   string `json:"name"`   // New node's name.
	// contains filtered or unexported fields
}

func (*SetNodeNameCommand) Initalize

func (c *SetNodeNameCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetNodeNameCommand) Respond

func (c *SetNodeNameCommand) Respond(r *SetNodeNameReturn)

func (*SetNodeNameCommand) RespondWithError

func (c *SetNodeNameCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetNodeNameCommandFn

type SetNodeNameCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetNodeNameCommandFn) Load

func (a *SetNodeNameCommandFn) Load() func(SetNodeNameCommand)

func (*SetNodeNameCommandFn) Store

func (a *SetNodeNameCommandFn) Store(fn func(SetNodeNameCommand))

type SetNodeNameReturn

type SetNodeNameReturn struct {
	NodeId NodeId `json:"nodeId"` // New node's id.
}

type SetNodeValueCommand

type SetNodeValueCommand struct {
	DestinationTargetID string

	NodeId NodeId `json:"nodeId"` // Id of the node to set value for.
	Value  string `json:"value"`  // New node's value.
	// contains filtered or unexported fields
}

func (*SetNodeValueCommand) Initalize

func (c *SetNodeValueCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetNodeValueCommand) Respond

func (c *SetNodeValueCommand) Respond()

func (*SetNodeValueCommand) RespondWithError

func (c *SetNodeValueCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetNodeValueCommandFn

type SetNodeValueCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetNodeValueCommandFn) Load

func (*SetNodeValueCommandFn) Store

func (a *SetNodeValueCommandFn) Store(fn func(SetNodeValueCommand))

type SetNodeValueReturn

type SetNodeValueReturn struct {
}

type SetOuterHTMLCommand

type SetOuterHTMLCommand struct {
	DestinationTargetID string

	NodeId    NodeId `json:"nodeId"`    // Id of the node to set markup for.
	OuterHTML string `json:"outerHTML"` // Outer HTML markup to set.
	// contains filtered or unexported fields
}

func (*SetOuterHTMLCommand) Initalize

func (c *SetOuterHTMLCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetOuterHTMLCommand) Respond

func (c *SetOuterHTMLCommand) Respond()

func (*SetOuterHTMLCommand) RespondWithError

func (c *SetOuterHTMLCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetOuterHTMLCommandFn

type SetOuterHTMLCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetOuterHTMLCommandFn) Load

func (*SetOuterHTMLCommandFn) Store

func (a *SetOuterHTMLCommandFn) Store(fn func(SetOuterHTMLCommand))

type SetOuterHTMLReturn

type SetOuterHTMLReturn struct {
}

type ShadowRootPoppedEvent

type ShadowRootPoppedEvent struct {
	HostId NodeId `json:"hostId"` // Host element id.
	RootId NodeId `json:"rootId"` // Shadow root id.
}

type ShadowRootPushedEvent

type ShadowRootPushedEvent struct {
	HostId NodeId `json:"hostId"` // Host element id.
	Root   Node   `json:"root"`   // Shadow root.
}

type ShadowRootType

type ShadowRootType string
const (
	ShadowRootTypeUserDashagent ShadowRootType = "user-agent"
	ShadowRootTypeOpen          ShadowRootType = "open"
	ShadowRootTypeClosed        ShadowRootType = "closed"
)

type ShapeOutsideInfo

type ShapeOutsideInfo struct {
	Bounds      Quad          `json:"bounds"`      // Shape bounds
	Shape       []interface{} `json:"shape"`       // Shape coordinate details
	MarginShape []interface{} `json:"marginShape"` // Margin shape bounds
}

type UndoCommand

type UndoCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*UndoCommand) Initalize

func (c *UndoCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*UndoCommand) Respond

func (c *UndoCommand) Respond()

func (*UndoCommand) RespondWithError

func (c *UndoCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type UndoCommandFn

type UndoCommandFn struct {
	// contains filtered or unexported fields
}

func (*UndoCommandFn) Load

func (a *UndoCommandFn) Load() func(UndoCommand)

func (*UndoCommandFn) Store

func (a *UndoCommandFn) Store(fn func(UndoCommand))

type UndoReturn

type UndoReturn struct {
}

Jump to

Keyboard shortcuts

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