Source File
events.go
Belonging Package
github.com/chromedp/cdproto/dom
package dom// Code generated by cdproto-gen. DO NOT EDIT.import ()// EventAttributeModified fired when Element's attribute is modified.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-attributeModifiedtype EventAttributeModified struct {NodeID cdp.NodeID `json:"nodeId"` // Id of the node that has changed.Name string `json:"name"` // Attribute name.Value string `json:"value"` // Attribute value.}// EventAttributeRemoved fired when Element's attribute is removed.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-attributeRemovedtype EventAttributeRemoved struct {NodeID cdp.NodeID `json:"nodeId"` // Id of the node that has changed.Name string `json:"name"` // A ttribute name.}// EventCharacterDataModified mirrors DOMCharacterDataModified event.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-characterDataModifiedtype EventCharacterDataModified struct {NodeID cdp.NodeID `json:"nodeId"` // Id of the node that has changed.CharacterData string `json:"characterData"` // New text value.}// EventChildNodeCountUpdated fired when Container's child node count has// changed.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-childNodeCountUpdatedtype EventChildNodeCountUpdated struct {NodeID cdp.NodeID `json:"nodeId"` // Id of the node that has changed.ChildNodeCount int64 `json:"childNodeCount"` // New node count.}// EventChildNodeInserted mirrors DOMNodeInserted event.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-childNodeInsertedtype EventChildNodeInserted struct {ParentNodeID cdp.NodeID `json:"parentNodeId"` // Id of the node that has changed.PreviousNodeID cdp.NodeID `json:"previousNodeId"` // Id of the previous sibling.Node *cdp.Node `json:"node"` // Inserted node data.}// EventChildNodeRemoved mirrors DOMNodeRemoved event.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-childNodeRemovedtype EventChildNodeRemoved struct {ParentNodeID cdp.NodeID `json:"parentNodeId"` // Parent id.NodeID cdp.NodeID `json:"nodeId"` // Id of the node that has been removed.}// EventDistributedNodesUpdated called when distribution is changed.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-distributedNodesUpdatedtype EventDistributedNodesUpdated struct {InsertionPointID cdp.NodeID `json:"insertionPointId"` // Insertion point where distributed nodes were updated.DistributedNodes []*cdp.BackendNode `json:"distributedNodes"` // Distributed nodes for given insertion point.}// EventDocumentUpdated fired when Document has been totally updated. Node// ids are no longer valid.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-documentUpdatedtype EventDocumentUpdated struct{}// EventInlineStyleInvalidated fired when Element's inline style is modified// via a CSS property modification.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-inlineStyleInvalidatedtype EventInlineStyleInvalidated struct {NodeIDs []cdp.NodeID `json:"nodeIds"` // Ids of the nodes for which the inline styles have been invalidated.}// EventPseudoElementAdded called when a pseudo element is added to an// element.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-pseudoElementAddedtype EventPseudoElementAdded struct {ParentID cdp.NodeID `json:"parentId"` // Pseudo element's parent element id.PseudoElement *cdp.Node `json:"pseudoElement"` // The added pseudo element.}// EventTopLayerElementsUpdated called when top layer elements are changed.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-topLayerElementsUpdatedtype EventTopLayerElementsUpdated struct{}// EventPseudoElementRemoved called when a pseudo element is removed from an// element.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-pseudoElementRemovedtype EventPseudoElementRemoved struct {ParentID cdp.NodeID `json:"parentId"` // Pseudo element's parent element id.PseudoElementID cdp.NodeID `json:"pseudoElementId"` // The removed pseudo element id.}// EventSetChildNodes fired when backend wants to provide client with the// missing DOM structure. This happens upon most of the calls requesting node// ids.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-setChildNodestype EventSetChildNodes struct {ParentID cdp.NodeID `json:"parentId"` // Parent node id to populate with children.Nodes []*cdp.Node `json:"nodes"` // Child nodes array.}// EventShadowRootPopped called when shadow root is popped from the element.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-shadowRootPoppedtype EventShadowRootPopped struct {HostID cdp.NodeID `json:"hostId"` // Host element id.RootID cdp.NodeID `json:"rootId"` // Shadow root id.}// EventShadowRootPushed called when shadow root is pushed into the element.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#event-shadowRootPushedtype EventShadowRootPushed struct {HostID cdp.NodeID `json:"hostId"` // Host element id.Root *cdp.Node `json:"root"` // Shadow root.}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |