Documentation ¶
Index ¶
- Constants
- Variables
- type BackendNode
- type BackendNodeID
- type ErrorType
- type Frame
- type FrameID
- type FrameState
- type Handler
- type LoaderID
- type Message
- type MessageError
- type MethodType
- type MonotonicTime
- type Node
- func (n *Node) AttributeValue(name string) string
- func (n *Node) FullXPath() string
- func (n *Node) FullXPathByID() string
- func (v Node) MarshalEasyJSON(w *jwriter.Writer)
- func (v Node) MarshalJSON() ([]byte, error)
- func (n *Node) PartialXPath() string
- func (n *Node) PartialXPathByID() string
- func (v *Node) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Node) UnmarshalJSON(data []byte) error
- type NodeID
- type NodeState
- type NodeType
- type PseudoType
- type RGBA
- type ShadowRootType
- type TimeSinceEpoch
Constants ¶
const EmptyFrameID = FrameID("")
EmptyFrameID is the "non-existent" frame id.
const EmptyNodeID = NodeID(0)
EmptyNodeID is the "non-existent" node id.
Variables ¶
var MonotonicTimeEpoch *time.Time
MonotonicTimeEpoch is the MonotonicTime time epoch.
Functions ¶
This section is empty.
Types ¶
type BackendNode ¶
type BackendNode struct { NodeType NodeType `json:"nodeType"` // Node's nodeType. NodeName string `json:"nodeName"` // Node's nodeName. BackendNodeID BackendNodeID `json:"backendNodeId"` }
BackendNode backend node with a friendly name.
func (BackendNode) MarshalEasyJSON ¶
func (v BackendNode) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (BackendNode) MarshalJSON ¶
func (v BackendNode) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*BackendNode) UnmarshalEasyJSON ¶
func (v *BackendNode) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*BackendNode) UnmarshalJSON ¶
func (v *BackendNode) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type BackendNodeID ¶
type BackendNodeID int64
BackendNodeID unique DOM node identifier used to reference a node that may not have been pushed to the front-end.
func (BackendNodeID) Int64 ¶
func (t BackendNodeID) Int64() int64
Int64 returns the BackendNodeID as int64 value.
func (*BackendNodeID) UnmarshalEasyJSON ¶
func (t *BackendNodeID) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*BackendNodeID) UnmarshalJSON ¶
func (t *BackendNodeID) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type ErrorType ¶
type ErrorType string
ErrorType error type.
const ( ErrChannelClosed ErrorType = "channel closed" ErrInvalidResult ErrorType = "invalid result" ErrUnknownResult ErrorType = "unknown result" )
ErrorType values.
func (ErrorType) MarshalEasyJSON ¶
MarshalEasyJSON satisfies easyjson.Marshaler.
func (ErrorType) MarshalJSON ¶
MarshalJSON satisfies json.Marshaler.
func (*ErrorType) UnmarshalEasyJSON ¶
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*ErrorType) UnmarshalJSON ¶
UnmarshalJSON satisfies json.Unmarshaler.
type Frame ¶
type Frame struct { ID FrameID `json:"id"` // Frame unique identifier. ParentID FrameID `json:"parentId,omitempty"` // Parent frame identifier. LoaderID LoaderID `json:"loaderId"` // Identifier of the loader associated with this frame. Name string `json:"name,omitempty"` // Frame's name as specified in the tag. URL string `json:"url"` // Frame document's URL. SecurityOrigin string `json:"securityOrigin"` // Frame document's security origin. MimeType string `json:"mimeType"` // Frame document's mimeType as determined by the browser. UnreachableURL string `json:"unreachableUrl,omitempty"` // If the frame failed to load, this contains the URL that could not be loaded. State FrameState `json:"-"` // Frame state. Root *Node `json:"-"` // Frame document root. Nodes map[NodeID]*Node `json:"-"` // Frame nodes. sync.RWMutex `json:"-"` // Read write mutex. }
Frame information about the Frame on the page.
func (Frame) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Frame) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Frame) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Frame) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type FrameID ¶
type FrameID string
FrameID unique frame identifier.
func (*FrameID) UnmarshalEasyJSON ¶
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*FrameID) UnmarshalJSON ¶
UnmarshalJSON satisfies json.Unmarshaler.
type FrameState ¶
type FrameState uint16
FrameState is the state of a Frame.
const ( FrameDOMContentEventFired FrameState = 1 << (15 - iota) FrameLoadEventFired FrameAttached FrameLoading )
FrameState enum values.
func (FrameState) String ¶
func (fs FrameState) String() string
String satisfies stringer interface.
type Handler ¶
type Handler interface { // SetActive changes the top level frame id. SetActive(context.Context, FrameID) error // GetRoot returns the root document node for the top level frame. GetRoot(context.Context) (*Node, error) // WaitFrame waits for a frame to be available. WaitFrame(context.Context, FrameID) (*Frame, error) // WaitNode waits for a node to be available. WaitNode(context.Context, *Frame, NodeID) (*Node, error) // Execute executes the specified command using the supplied context and // parameters. Execute(context.Context, MethodType, easyjson.Marshaler, easyjson.Unmarshaler) error // Listen creates a channel that will receive an event for the types // specified. Listen(...MethodType) <-chan interface{} // Release releases a channel returned from Listen. Release(<-chan interface{}) }
Handler is the common interface for a Chrome Debugging Protocol target.
type Message ¶
type Message struct { ID int64 `json:"id,omitempty"` // Unique message identifier. Method MethodType `json:"method,omitempty"` // Event or command type. Params easyjson.RawMessage `json:"params,omitempty"` // Event or command parameters. Result easyjson.RawMessage `json:"result,omitempty"` // Command return values. Error *MessageError `json:"error,omitempty"` // Error message. }
Message chrome Debugging Protocol message sent to/read over websocket connection.
func (Message) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Message) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Message) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Message) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type MessageError ¶
type MessageError struct { Code int64 `json:"code"` // Error code. Message string `json:"message"` // Error message. }
MessageError message error type.
func (MessageError) MarshalEasyJSON ¶
func (v MessageError) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (MessageError) MarshalJSON ¶
func (v MessageError) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*MessageError) UnmarshalEasyJSON ¶
func (v *MessageError) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*MessageError) UnmarshalJSON ¶
func (v *MessageError) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type MethodType ¶
type MethodType string
MethodType chrome Debugging Protocol method type (ie, event and command names).
const ( EventInspectorDetached MethodType = "Inspector.detached" EventInspectorTargetCrashed MethodType = "Inspector.targetCrashed" CommandInspectorEnable MethodType = "Inspector.enable" CommandInspectorDisable MethodType = "Inspector.disable" CommandMemoryGetDOMCounters MethodType = "Memory.getDOMCounters" CommandMemoryPrepareForLeakDetection MethodType = "Memory.prepareForLeakDetection" CommandMemorySetPressureNotificationsSuppressed MethodType = "Memory.setPressureNotificationsSuppressed" CommandMemorySimulatePressureNotification MethodType = "Memory.simulatePressureNotification" EventPerformanceMetrics MethodType = "Performance.metrics" CommandPerformanceEnable MethodType = "Performance.enable" CommandPerformanceDisable MethodType = "Performance.disable" CommandPerformanceGetMetrics MethodType = "Performance.getMetrics" EventPageDomContentEventFired MethodType = "Page.domContentEventFired" EventPageLoadEventFired MethodType = "Page.loadEventFired" EventPageLifecycleEvent MethodType = "Page.lifecycleEvent" EventPageFrameAttached MethodType = "Page.frameAttached" EventPageFrameDetached MethodType = "Page.frameDetached" EventPageFrameStartedLoading MethodType = "Page.frameStartedLoading" EventPageFrameStoppedLoading MethodType = "Page.frameStoppedLoading" EventPageFrameResized MethodType = "Page.frameResized" EventPageJavascriptDialogOpening MethodType = "Page.javascriptDialogOpening" EventPageJavascriptDialogClosed MethodType = "Page.javascriptDialogClosed" EventPageScreencastFrame MethodType = "Page.screencastFrame" EventPageScreencastVisibilityChanged MethodType = "Page.screencastVisibilityChanged" EventPageInterstitialShown MethodType = "Page.interstitialShown" EventPageInterstitialHidden MethodType = "Page.interstitialHidden" EventPageWindowOpen MethodType = "Page.windowOpen" CommandPageEnable MethodType = "Page.enable" CommandPageDisable MethodType = "Page.disable" CommandPageAddScriptToEvaluateOnNewDocument MethodType = "Page.addScriptToEvaluateOnNewDocument" CommandPageRemoveScriptToEvaluateOnNewDocument MethodType = "Page.removeScriptToEvaluateOnNewDocument" CommandPageSetAutoAttachToCreatedPages MethodType = "Page.setAutoAttachToCreatedPages" CommandPageReload MethodType = "Page.reload" CommandPageSetAdBlockingEnabled MethodType = "Page.setAdBlockingEnabled" CommandPageStopLoading MethodType = "Page.stopLoading" CommandPageGetResourceTree MethodType = "Page.getResourceTree" CommandPageGetResourceContent MethodType = "Page.getResourceContent" CommandPageSearchInResource MethodType = "Page.searchInResource" CommandPageSetDocumentContent MethodType = "Page.setDocumentContent" CommandPageCaptureScreenshot MethodType = "Page.captureScreenshot" CommandPagePrintToPDF MethodType = "Page.printToPDF" CommandPageStartScreencast MethodType = "Page.startScreencast" CommandPageStopScreencast MethodType = "Page.stopScreencast" CommandPageScreencastFrameAck MethodType = "Page.screencastFrameAck" CommandPageHandleJavaScriptDialog MethodType = "Page.handleJavaScriptDialog" CommandPageGetAppManifest MethodType = "Page.getAppManifest" CommandPageRequestAppBanner MethodType = "Page.requestAppBanner" CommandPageGetLayoutMetrics MethodType = "Page.getLayoutMetrics" CommandPageCreateIsolatedWorld MethodType = "Page.createIsolatedWorld" CommandPageBringToFront MethodType = "Page.bringToFront" CommandPageSetDownloadBehavior MethodType = "Page.setDownloadBehavior" EventOverlayNodeHighlightRequested MethodType = "Overlay.nodeHighlightRequested" EventOverlayInspectNodeRequested MethodType = "Overlay.inspectNodeRequested" EventOverlayScreenshotRequested MethodType = "Overlay.screenshotRequested" CommandOverlayEnable MethodType = "Overlay.enable" CommandOverlayDisable MethodType = "Overlay.disable" CommandOverlaySetShowPaintRects MethodType = "Overlay.setShowPaintRects" CommandOverlaySetShowDebugBorders MethodType = "Overlay.setShowDebugBorders" CommandOverlaySetShowFPSCounter MethodType = "Overlay.setShowFPSCounter" CommandOverlaySetShowScrollBottleneckRects MethodType = "Overlay.setShowScrollBottleneckRects" CommandOverlaySetShowViewportSizeOnResize MethodType = "Overlay.setShowViewportSizeOnResize" CommandOverlaySetPausedInDebuggerMessage MethodType = "Overlay.setPausedInDebuggerMessage" CommandOverlaySetSuspended MethodType = "Overlay.setSuspended" CommandOverlaySetInspectMode MethodType = "Overlay.setInspectMode" CommandOverlayHighlightRect MethodType = "Overlay.highlightRect" CommandOverlayHighlightQuad MethodType = "Overlay.highlightQuad" CommandOverlayHighlightNode MethodType = "Overlay.highlightNode" CommandOverlayHighlightFrame MethodType = "Overlay.highlightFrame" CommandOverlayHideHighlight MethodType = "Overlay.hideHighlight" CommandOverlayGetHighlightObjectForTest MethodType = "Overlay.getHighlightObjectForTest" EventEmulationVirtualTimeBudgetExpired MethodType = "Emulation.virtualTimeBudgetExpired" EventEmulationVirtualTimeAdvanced MethodType = "Emulation.virtualTimeAdvanced" EventEmulationVirtualTimePaused MethodType = "Emulation.virtualTimePaused" CommandEmulationSetDeviceMetricsOverride MethodType = "Emulation.setDeviceMetricsOverride" CommandEmulationClearDeviceMetricsOverride MethodType = "Emulation.clearDeviceMetricsOverride" CommandEmulationResetPageScaleFactor MethodType = "Emulation.resetPageScaleFactor" CommandEmulationSetPageScaleFactor MethodType = "Emulation.setPageScaleFactor" CommandEmulationSetScriptExecutionDisabled MethodType = "Emulation.setScriptExecutionDisabled" CommandEmulationSetGeolocationOverride MethodType = "Emulation.setGeolocationOverride" CommandEmulationClearGeolocationOverride MethodType = "Emulation.clearGeolocationOverride" CommandEmulationSetTouchEmulationEnabled MethodType = "Emulation.setTouchEmulationEnabled" CommandEmulationSetEmitTouchEventsForMouse MethodType = "Emulation.setEmitTouchEventsForMouse" CommandEmulationSetEmulatedMedia MethodType = "Emulation.setEmulatedMedia" CommandEmulationSetCPUThrottlingRate MethodType = "Emulation.setCPUThrottlingRate" CommandEmulationCanEmulate MethodType = "Emulation.canEmulate" CommandEmulationSetVirtualTimePolicy MethodType = "Emulation.setVirtualTimePolicy" CommandEmulationSetDefaultBackgroundColorOverride MethodType = "Emulation.setDefaultBackgroundColorOverride" EventSecuritySecurityStateChanged MethodType = "Security.securityStateChanged" EventSecurityCertificateError MethodType = "Security.certificateError" CommandSecurityEnable MethodType = "Security.enable" CommandSecurityDisable MethodType = "Security.disable" CommandSecurityHandleCertificateError MethodType = "Security.handleCertificateError" CommandSecuritySetOverrideCertificateErrors MethodType = "Security.setOverrideCertificateErrors" CommandAuditsGetEncodedResponse MethodType = "Audits.getEncodedResponse" EventNetworkResourceChangedPriority MethodType = "Network.resourceChangedPriority" EventNetworkRequestWillBeSent MethodType = "Network.requestWillBeSent" EventNetworkRequestServedFromCache MethodType = "Network.requestServedFromCache" EventNetworkResponseReceived MethodType = "Network.responseReceived" EventNetworkDataReceived MethodType = "Network.dataReceived" EventNetworkLoadingFinished MethodType = "Network.loadingFinished" EventNetworkLoadingFailed MethodType = "Network.loadingFailed" EventNetworkWebSocketWillSendHandshakeRequest MethodType = "Network.webSocketWillSendHandshakeRequest" EventNetworkWebSocketHandshakeResponseReceived MethodType = "Network.webSocketHandshakeResponseReceived" EventNetworkWebSocketCreated MethodType = "Network.webSocketCreated" EventNetworkWebSocketClosed MethodType = "Network.webSocketClosed" EventNetworkWebSocketFrameReceived MethodType = "Network.webSocketFrameReceived" EventNetworkWebSocketFrameError MethodType = "Network.webSocketFrameError" EventNetworkWebSocketFrameSent MethodType = "Network.webSocketFrameSent" EventNetworkEventSourceMessageReceived MethodType = "Network.eventSourceMessageReceived" EventNetworkRequestIntercepted MethodType = "Network.requestIntercepted" CommandNetworkEnable MethodType = "Network.enable" CommandNetworkDisable MethodType = "Network.disable" CommandNetworkSetUserAgentOverride MethodType = "Network.setUserAgentOverride" CommandNetworkSetExtraHTTPHeaders MethodType = "Network.setExtraHTTPHeaders" CommandNetworkGetResponseBody MethodType = "Network.getResponseBody" CommandNetworkSetBlockedURLS MethodType = "Network.setBlockedURLs" CommandNetworkReplayXHR MethodType = "Network.replayXHR" CommandNetworkCanClearBrowserCache MethodType = "Network.canClearBrowserCache" CommandNetworkClearBrowserCache MethodType = "Network.clearBrowserCache" CommandNetworkCanClearBrowserCookies MethodType = "Network.canClearBrowserCookies" CommandNetworkClearBrowserCookies MethodType = "Network.clearBrowserCookies" CommandNetworkGetCookies MethodType = "Network.getCookies" CommandNetworkGetAllCookies MethodType = "Network.getAllCookies" CommandNetworkDeleteCookies MethodType = "Network.deleteCookies" CommandNetworkSetCookie MethodType = "Network.setCookie" CommandNetworkSetCookies MethodType = "Network.setCookies" CommandNetworkCanEmulateNetworkConditions MethodType = "Network.canEmulateNetworkConditions" CommandNetworkEmulateNetworkConditions MethodType = "Network.emulateNetworkConditions" CommandNetworkSetCacheDisabled MethodType = "Network.setCacheDisabled" CommandNetworkSetBypassServiceWorker MethodType = "Network.setBypassServiceWorker" CommandNetworkSetDataSizeLimitsForTest MethodType = "Network.setDataSizeLimitsForTest" CommandNetworkGetCertificate MethodType = "Network.getCertificate" CommandNetworkSetRequestInterceptionEnabled MethodType = "Network.setRequestInterceptionEnabled" CommandNetworkContinueInterceptedRequest MethodType = "Network.continueInterceptedRequest" EventDatabaseAddDatabase MethodType = "Database.addDatabase" CommandDatabaseEnable MethodType = "Database.enable" CommandDatabaseDisable MethodType = "Database.disable" CommandDatabaseGetDatabaseTableNames MethodType = "Database.getDatabaseTableNames" CommandDatabaseExecuteSQL MethodType = "Database.executeSQL" CommandIndexedDBEnable MethodType = "IndexedDB.enable" CommandIndexedDBDisable MethodType = "IndexedDB.disable" CommandIndexedDBRequestDatabaseNames MethodType = "IndexedDB.requestDatabaseNames" CommandIndexedDBRequestDatabase MethodType = "IndexedDB.requestDatabase" CommandIndexedDBRequestData MethodType = "IndexedDB.requestData" CommandIndexedDBClearObjectStore MethodType = "IndexedDB.clearObjectStore" CommandIndexedDBDeleteDatabase MethodType = "IndexedDB.deleteDatabase" CommandCacheStorageRequestCacheNames MethodType = "CacheStorage.requestCacheNames" CommandCacheStorageRequestEntries MethodType = "CacheStorage.requestEntries" CommandCacheStorageDeleteCache MethodType = "CacheStorage.deleteCache" CommandCacheStorageDeleteEntry MethodType = "CacheStorage.deleteEntry" CommandCacheStorageRequestCachedResponse MethodType = "CacheStorage.requestCachedResponse" EventDOMStorageDomStorageItemsCleared MethodType = "DOMStorage.domStorageItemsCleared" EventDOMStorageDomStorageItemRemoved MethodType = "DOMStorage.domStorageItemRemoved" EventDOMStorageDomStorageItemAdded MethodType = "DOMStorage.domStorageItemAdded" EventDOMStorageDomStorageItemUpdated MethodType = "DOMStorage.domStorageItemUpdated" CommandDOMStorageEnable MethodType = "DOMStorage.enable" CommandDOMStorageDisable MethodType = "DOMStorage.disable" CommandDOMStorageClear MethodType = "DOMStorage.clear" CommandDOMStorageGetDOMStorageItems MethodType = "DOMStorage.getDOMStorageItems" CommandDOMStorageSetDOMStorageItem MethodType = "DOMStorage.setDOMStorageItem" CommandDOMStorageRemoveDOMStorageItem MethodType = "DOMStorage.removeDOMStorageItem" EventApplicationCacheApplicationCacheStatusUpdated MethodType = "ApplicationCache.applicationCacheStatusUpdated" EventApplicationCacheNetworkStateUpdated MethodType = "ApplicationCache.networkStateUpdated" CommandApplicationCacheGetFramesWithManifests MethodType = "ApplicationCache.getFramesWithManifests" CommandApplicationCacheEnable MethodType = "ApplicationCache.enable" CommandApplicationCacheGetManifestForFrame MethodType = "ApplicationCache.getManifestForFrame" CommandApplicationCacheGetApplicationCacheForFrame MethodType = "ApplicationCache.getApplicationCacheForFrame" EventDOMDocumentUpdated MethodType = "DOM.documentUpdated" EventDOMSetChildNodes MethodType = "DOM.setChildNodes" EventDOMAttributeModified MethodType = "DOM.attributeModified" EventDOMAttributeRemoved MethodType = "DOM.attributeRemoved" EventDOMInlineStyleInvalidated MethodType = "DOM.inlineStyleInvalidated" EventDOMCharacterDataModified MethodType = "DOM.characterDataModified" EventDOMChildNodeCountUpdated MethodType = "DOM.childNodeCountUpdated" EventDOMChildNodeInserted MethodType = "DOM.childNodeInserted" EventDOMChildNodeRemoved MethodType = "DOM.childNodeRemoved" EventDOMShadowRootPushed MethodType = "DOM.shadowRootPushed" EventDOMShadowRootPopped MethodType = "DOM.shadowRootPopped" EventDOMPseudoElementAdded MethodType = "DOM.pseudoElementAdded" EventDOMPseudoElementRemoved MethodType = "DOM.pseudoElementRemoved" EventDOMDistributedNodesUpdated MethodType = "DOM.distributedNodesUpdated" CommandDOMEnable MethodType = "DOM.enable" CommandDOMDisable MethodType = "DOM.disable" CommandDOMGetDocument MethodType = "DOM.getDocument" CommandDOMGetFlattenedDocument MethodType = "DOM.getFlattenedDocument" CommandDOMCollectClassNamesFromSubtree MethodType = "DOM.collectClassNamesFromSubtree" CommandDOMRequestChildNodes MethodType = "DOM.requestChildNodes" CommandDOMQuerySelector MethodType = "DOM.querySelector" CommandDOMQuerySelectorAll MethodType = "DOM.querySelectorAll" CommandDOMSetNodeName MethodType = "DOM.setNodeName" CommandDOMSetNodeValue MethodType = "DOM.setNodeValue" CommandDOMRemoveNode MethodType = "DOM.removeNode" CommandDOMSetAttributeValue MethodType = "DOM.setAttributeValue" CommandDOMSetAttributesAsText MethodType = "DOM.setAttributesAsText" CommandDOMRemoveAttribute MethodType = "DOM.removeAttribute" CommandDOMGetOuterHTML MethodType = "DOM.getOuterHTML" CommandDOMSetOuterHTML MethodType = "DOM.setOuterHTML" CommandDOMPerformSearch MethodType = "DOM.performSearch" CommandDOMGetSearchResults MethodType = "DOM.getSearchResults" CommandDOMDiscardSearchResults MethodType = "DOM.discardSearchResults" CommandDOMRequestNode MethodType = "DOM.requestNode" CommandDOMPushNodeByPathToFrontend MethodType = "DOM.pushNodeByPathToFrontend" CommandDOMPushNodesByBackendIdsToFrontend MethodType = "DOM.pushNodesByBackendIdsToFrontend" CommandDOMSetInspectedNode MethodType = "DOM.setInspectedNode" CommandDOMResolveNode MethodType = "DOM.resolveNode" CommandDOMGetAttributes MethodType = "DOM.getAttributes" CommandDOMCopyTo MethodType = "DOM.copyTo" CommandDOMMoveTo MethodType = "DOM.moveTo" CommandDOMUndo MethodType = "DOM.undo" CommandDOMRedo MethodType = "DOM.redo" CommandDOMMarkUndoableState MethodType = "DOM.markUndoableState" CommandDOMFocus MethodType = "DOM.focus" CommandDOMSetFileInputFiles MethodType = "DOM.setFileInputFiles" CommandDOMGetBoxModel MethodType = "DOM.getBoxModel" CommandDOMGetNodeForLocation MethodType = "DOM.getNodeForLocation" CommandDOMGetRelayoutBoundary MethodType = "DOM.getRelayoutBoundary" CommandDOMDescribeNode MethodType = "DOM.describeNode" EventCSSMediaQueryResultChanged MethodType = "CSS.mediaQueryResultChanged" EventCSSFontsUpdated MethodType = "CSS.fontsUpdated" EventCSSStyleSheetChanged MethodType = "CSS.styleSheetChanged" EventCSSStyleSheetAdded MethodType = "CSS.styleSheetAdded" EventCSSStyleSheetRemoved MethodType = "CSS.styleSheetRemoved" CommandCSSEnable MethodType = "CSS.enable" CommandCSSDisable MethodType = "CSS.disable" CommandCSSGetMatchedStylesForNode MethodType = "CSS.getMatchedStylesForNode" CommandCSSGetInlineStylesForNode MethodType = "CSS.getInlineStylesForNode" CommandCSSGetComputedStyleForNode MethodType = "CSS.getComputedStyleForNode" CommandCSSGetPlatformFontsForNode MethodType = "CSS.getPlatformFontsForNode" CommandCSSGetStyleSheetText MethodType = "CSS.getStyleSheetText" CommandCSSCollectClassNames MethodType = "CSS.collectClassNames" CommandCSSSetStyleSheetText MethodType = "CSS.setStyleSheetText" CommandCSSSetRuleSelector MethodType = "CSS.setRuleSelector" CommandCSSSetKeyframeKey MethodType = "CSS.setKeyframeKey" CommandCSSSetStyleTexts MethodType = "CSS.setStyleTexts" CommandCSSSetMediaText MethodType = "CSS.setMediaText" CommandCSSCreateStyleSheet MethodType = "CSS.createStyleSheet" CommandCSSAddRule MethodType = "CSS.addRule" CommandCSSForcePseudoState MethodType = "CSS.forcePseudoState" CommandCSSGetMediaQueries MethodType = "CSS.getMediaQueries" CommandCSSSetEffectivePropertyValueForNode MethodType = "CSS.setEffectivePropertyValueForNode" CommandCSSGetBackgroundColors MethodType = "CSS.getBackgroundColors" CommandCSSStartRuleUsageTracking MethodType = "CSS.startRuleUsageTracking" CommandCSSTakeCoverageDelta MethodType = "CSS.takeCoverageDelta" CommandCSSStopRuleUsageTracking MethodType = "CSS.stopRuleUsageTracking" CommandDOMSnapshotGetSnapshot MethodType = "DOMSnapshot.getSnapshot" CommandIORead MethodType = "IO.read" CommandIOClose MethodType = "IO.close" CommandIOResolveBlob MethodType = "IO.resolveBlob" CommandDOMDebuggerSetDOMBreakpoint MethodType = "DOMDebugger.setDOMBreakpoint" CommandDOMDebuggerRemoveDOMBreakpoint MethodType = "DOMDebugger.removeDOMBreakpoint" CommandDOMDebuggerSetEventListenerBreakpoint MethodType = "DOMDebugger.setEventListenerBreakpoint" CommandDOMDebuggerRemoveEventListenerBreakpoint MethodType = "DOMDebugger.removeEventListenerBreakpoint" CommandDOMDebuggerSetInstrumentationBreakpoint MethodType = "DOMDebugger.setInstrumentationBreakpoint" CommandDOMDebuggerRemoveInstrumentationBreakpoint MethodType = "DOMDebugger.removeInstrumentationBreakpoint" CommandDOMDebuggerSetXHRBreakpoint MethodType = "DOMDebugger.setXHRBreakpoint" CommandDOMDebuggerRemoveXHRBreakpoint MethodType = "DOMDebugger.removeXHRBreakpoint" CommandDOMDebuggerGetEventListeners MethodType = "DOMDebugger.getEventListeners" EventTargetTargetCreated MethodType = "Target.targetCreated" EventTargetTargetInfoChanged MethodType = "Target.targetInfoChanged" EventTargetTargetDestroyed MethodType = "Target.targetDestroyed" EventTargetAttachedToTarget MethodType = "Target.attachedToTarget" EventTargetDetachedFromTarget MethodType = "Target.detachedFromTarget" EventTargetReceivedMessageFromTarget MethodType = "Target.receivedMessageFromTarget" CommandTargetSetDiscoverTargets MethodType = "Target.setDiscoverTargets" CommandTargetSetAutoAttach MethodType = "Target.setAutoAttach" CommandTargetSetAttachToFrames MethodType = "Target.setAttachToFrames" CommandTargetSetRemoteLocations MethodType = "Target.setRemoteLocations" CommandTargetSendMessageToTarget MethodType = "Target.sendMessageToTarget" CommandTargetGetTargetInfo MethodType = "Target.getTargetInfo" CommandTargetActivateTarget MethodType = "Target.activateTarget" CommandTargetCloseTarget MethodType = "Target.closeTarget" CommandTargetAttachToTarget MethodType = "Target.attachToTarget" CommandTargetDetachFromTarget MethodType = "Target.detachFromTarget" CommandTargetCreateBrowserContext MethodType = "Target.createBrowserContext" CommandTargetDisposeBrowserContext MethodType = "Target.disposeBrowserContext" CommandTargetCreateTarget MethodType = "Target.createTarget" CommandTargetGetTargets MethodType = "Target.getTargets" EventHeadlessExperimentalNeedsBeginFramesChanged MethodType = "HeadlessExperimental.needsBeginFramesChanged" EventHeadlessExperimentalMainFrameReadyForScreenshots MethodType = "HeadlessExperimental.mainFrameReadyForScreenshots" CommandHeadlessExperimentalEnable MethodType = "HeadlessExperimental.enable" CommandHeadlessExperimentalDisable MethodType = "HeadlessExperimental.disable" CommandHeadlessExperimentalBeginFrame MethodType = "HeadlessExperimental.beginFrame" EventServiceWorkerWorkerRegistrationUpdated MethodType = "ServiceWorker.workerRegistrationUpdated" EventServiceWorkerWorkerVersionUpdated MethodType = "ServiceWorker.workerVersionUpdated" EventServiceWorkerWorkerErrorReported MethodType = "ServiceWorker.workerErrorReported" CommandServiceWorkerEnable MethodType = "ServiceWorker.enable" CommandServiceWorkerDisable MethodType = "ServiceWorker.disable" CommandServiceWorkerUnregister MethodType = "ServiceWorker.unregister" CommandServiceWorkerUpdateRegistration MethodType = "ServiceWorker.updateRegistration" CommandServiceWorkerStartWorker MethodType = "ServiceWorker.startWorker" CommandServiceWorkerSkipWaiting MethodType = "ServiceWorker.skipWaiting" CommandServiceWorkerStopWorker MethodType = "ServiceWorker.stopWorker" CommandServiceWorkerStopAllWorkers MethodType = "ServiceWorker.stopAllWorkers" CommandServiceWorkerInspectWorker MethodType = "ServiceWorker.inspectWorker" CommandServiceWorkerSetForceUpdateOnPageLoad MethodType = "ServiceWorker.setForceUpdateOnPageLoad" CommandServiceWorkerDeliverPushMessage MethodType = "ServiceWorker.deliverPushMessage" CommandServiceWorkerDispatchSyncEvent MethodType = "ServiceWorker.dispatchSyncEvent" CommandInputSetIgnoreInputEvents MethodType = "Input.setIgnoreInputEvents" CommandInputDispatchKeyEvent MethodType = "Input.dispatchKeyEvent" CommandInputDispatchMouseEvent MethodType = "Input.dispatchMouseEvent" CommandInputDispatchTouchEvent MethodType = "Input.dispatchTouchEvent" CommandInputEmulateTouchFromMouseEvent MethodType = "Input.emulateTouchFromMouseEvent" CommandInputSynthesizePinchGesture MethodType = "Input.synthesizePinchGesture" CommandInputSynthesizeScrollGesture MethodType = "Input.synthesizeScrollGesture" CommandInputSynthesizeTapGesture MethodType = "Input.synthesizeTapGesture" EventLayerTreeLayerTreeDidChange MethodType = "LayerTree.layerTreeDidChange" EventLayerTreeLayerPainted MethodType = "LayerTree.layerPainted" CommandLayerTreeEnable MethodType = "LayerTree.enable" CommandLayerTreeDisable MethodType = "LayerTree.disable" CommandLayerTreeCompositingReasons MethodType = "LayerTree.compositingReasons" CommandLayerTreeMakeSnapshot MethodType = "LayerTree.makeSnapshot" CommandLayerTreeLoadSnapshot MethodType = "LayerTree.loadSnapshot" CommandLayerTreeReleaseSnapshot MethodType = "LayerTree.releaseSnapshot" CommandLayerTreeProfileSnapshot MethodType = "LayerTree.profileSnapshot" CommandLayerTreeReplaySnapshot MethodType = "LayerTree.replaySnapshot" CommandLayerTreeSnapshotCommandLog MethodType = "LayerTree.snapshotCommandLog" CommandDeviceOrientationSetDeviceOrientationOverride MethodType = "DeviceOrientation.setDeviceOrientationOverride" CommandDeviceOrientationClearDeviceOrientationOverride MethodType = "DeviceOrientation.clearDeviceOrientationOverride" EventTracingDataCollected MethodType = "Tracing.dataCollected" EventTracingTracingComplete MethodType = "Tracing.tracingComplete" EventTracingBufferUsage MethodType = "Tracing.bufferUsage" CommandTracingStart MethodType = "Tracing.start" CommandTracingEnd MethodType = "Tracing.end" CommandTracingGetCategories MethodType = "Tracing.getCategories" CommandTracingRequestMemoryDump MethodType = "Tracing.requestMemoryDump" CommandTracingRecordClockSyncMarker MethodType = "Tracing.recordClockSyncMarker" EventAnimationAnimationCreated MethodType = "Animation.animationCreated" EventAnimationAnimationStarted MethodType = "Animation.animationStarted" EventAnimationAnimationCanceled MethodType = "Animation.animationCanceled" CommandAnimationEnable MethodType = "Animation.enable" CommandAnimationDisable MethodType = "Animation.disable" CommandAnimationGetPlaybackRate MethodType = "Animation.getPlaybackRate" CommandAnimationSetPlaybackRate MethodType = "Animation.setPlaybackRate" CommandAnimationGetCurrentTime MethodType = "Animation.getCurrentTime" CommandAnimationSetPaused MethodType = "Animation.setPaused" CommandAnimationSetTiming MethodType = "Animation.setTiming" CommandAnimationSeekAnimations MethodType = "Animation.seekAnimations" CommandAnimationReleaseAnimations MethodType = "Animation.releaseAnimations" CommandAnimationResolveAnimation MethodType = "Animation.resolveAnimation" CommandAccessibilityGetPartialAXTree MethodType = "Accessibility.getPartialAXTree" EventStorageCacheStorageListUpdated MethodType = "Storage.cacheStorageListUpdated" EventStorageCacheStorageContentUpdated MethodType = "Storage.cacheStorageContentUpdated" EventStorageIndexedDBListUpdated MethodType = "Storage.indexedDBListUpdated" EventStorageIndexedDBContentUpdated MethodType = "Storage.indexedDBContentUpdated" CommandStorageClearDataForOrigin MethodType = "Storage.clearDataForOrigin" CommandStorageGetUsageAndQuota MethodType = "Storage.getUsageAndQuota" CommandStorageTrackCacheStorageForOrigin MethodType = "Storage.trackCacheStorageForOrigin" CommandStorageUntrackCacheStorageForOrigin MethodType = "Storage.untrackCacheStorageForOrigin" CommandStorageTrackIndexedDBForOrigin MethodType = "Storage.trackIndexedDBForOrigin" CommandStorageUntrackIndexedDBForOrigin MethodType = "Storage.untrackIndexedDBForOrigin" EventLogEntryAdded MethodType = "Log.entryAdded" CommandLogEnable MethodType = "Log.enable" CommandLogDisable MethodType = "Log.disable" CommandLogClear MethodType = "Log.clear" CommandLogStartViolationsReport MethodType = "Log.startViolationsReport" CommandLogStopViolationsReport MethodType = "Log.stopViolationsReport" CommandSystemInfoGetInfo MethodType = "SystemInfo.getInfo" EventTetheringAccepted MethodType = "Tethering.accepted" CommandTetheringBind MethodType = "Tethering.bind" CommandTetheringUnbind MethodType = "Tethering.unbind" CommandBrowserClose MethodType = "Browser.close" CommandBrowserGetWindowForTarget MethodType = "Browser.getWindowForTarget" CommandBrowserGetVersion MethodType = "Browser.getVersion" CommandBrowserSetWindowBounds MethodType = "Browser.setWindowBounds" CommandBrowserGetWindowBounds MethodType = "Browser.getWindowBounds" CommandSchemaGetDomains MethodType = "Schema.getDomains" EventRuntimeExecutionContextCreated MethodType = "Runtime.executionContextCreated" EventRuntimeExecutionContextDestroyed MethodType = "Runtime.executionContextDestroyed" EventRuntimeExecutionContextsCleared MethodType = "Runtime.executionContextsCleared" EventRuntimeExceptionThrown MethodType = "Runtime.exceptionThrown" EventRuntimeExceptionRevoked MethodType = "Runtime.exceptionRevoked" EventRuntimeConsoleAPICalled MethodType = "Runtime.consoleAPICalled" EventRuntimeInspectRequested MethodType = "Runtime.inspectRequested" CommandRuntimeEvaluate MethodType = "Runtime.evaluate" CommandRuntimeAwaitPromise MethodType = "Runtime.awaitPromise" CommandRuntimeCallFunctionOn MethodType = "Runtime.callFunctionOn" CommandRuntimeGetProperties MethodType = "Runtime.getProperties" CommandRuntimeReleaseObject MethodType = "Runtime.releaseObject" CommandRuntimeReleaseObjectGroup MethodType = "Runtime.releaseObjectGroup" CommandRuntimeRunIfWaitingForDebugger MethodType = "Runtime.runIfWaitingForDebugger" CommandRuntimeEnable MethodType = "Runtime.enable" CommandRuntimeDisable MethodType = "Runtime.disable" CommandRuntimeDiscardConsoleEntries MethodType = "Runtime.discardConsoleEntries" CommandRuntimeSetCustomObjectFormatterEnabled MethodType = "Runtime.setCustomObjectFormatterEnabled" CommandRuntimeCompileScript MethodType = "Runtime.compileScript" CommandRuntimeRunScript MethodType = "Runtime.runScript" CommandRuntimeQueryObjects MethodType = "Runtime.queryObjects" CommandRuntimeGlobalLexicalScopeNames MethodType = "Runtime.globalLexicalScopeNames" EventDebuggerScriptParsed MethodType = "Debugger.scriptParsed" EventDebuggerScriptFailedToParse MethodType = "Debugger.scriptFailedToParse" EventDebuggerBreakpointResolved MethodType = "Debugger.breakpointResolved" EventDebuggerPaused MethodType = "Debugger.paused" EventDebuggerResumed MethodType = "Debugger.resumed" CommandDebuggerEnable MethodType = "Debugger.enable" CommandDebuggerDisable MethodType = "Debugger.disable" CommandDebuggerSetBreakpointsActive MethodType = "Debugger.setBreakpointsActive" CommandDebuggerSetSkipAllPauses MethodType = "Debugger.setSkipAllPauses" CommandDebuggerSetBreakpointByURL MethodType = "Debugger.setBreakpointByUrl" CommandDebuggerSetBreakpoint MethodType = "Debugger.setBreakpoint" CommandDebuggerRemoveBreakpoint MethodType = "Debugger.removeBreakpoint" CommandDebuggerGetPossibleBreakpoints MethodType = "Debugger.getPossibleBreakpoints" CommandDebuggerContinueToLocation MethodType = "Debugger.continueToLocation" CommandDebuggerStepOver MethodType = "Debugger.stepOver" CommandDebuggerStepInto MethodType = "Debugger.stepInto" CommandDebuggerStepOut MethodType = "Debugger.stepOut" CommandDebuggerPause MethodType = "Debugger.pause" CommandDebuggerScheduleStepIntoAsync MethodType = "Debugger.scheduleStepIntoAsync" CommandDebuggerResume MethodType = "Debugger.resume" CommandDebuggerSearchInContent MethodType = "Debugger.searchInContent" CommandDebuggerSetScriptSource MethodType = "Debugger.setScriptSource" CommandDebuggerRestartFrame MethodType = "Debugger.restartFrame" CommandDebuggerGetScriptSource MethodType = "Debugger.getScriptSource" CommandDebuggerSetPauseOnExceptions MethodType = "Debugger.setPauseOnExceptions" CommandDebuggerEvaluateOnCallFrame MethodType = "Debugger.evaluateOnCallFrame" CommandDebuggerSetVariableValue MethodType = "Debugger.setVariableValue" CommandDebuggerSetAsyncCallStackDepth MethodType = "Debugger.setAsyncCallStackDepth" CommandDebuggerSetBlackboxPatterns MethodType = "Debugger.setBlackboxPatterns" CommandDebuggerSetBlackboxedRanges MethodType = "Debugger.setBlackboxedRanges" EventProfilerConsoleProfileStarted MethodType = "Profiler.consoleProfileStarted" EventProfilerConsoleProfileFinished MethodType = "Profiler.consoleProfileFinished" CommandProfilerEnable MethodType = "Profiler.enable" CommandProfilerDisable MethodType = "Profiler.disable" CommandProfilerSetSamplingInterval MethodType = "Profiler.setSamplingInterval" CommandProfilerStart MethodType = "Profiler.start" CommandProfilerStop MethodType = "Profiler.stop" CommandProfilerStartPreciseCoverage MethodType = "Profiler.startPreciseCoverage" CommandProfilerStopPreciseCoverage MethodType = "Profiler.stopPreciseCoverage" CommandProfilerTakePreciseCoverage MethodType = "Profiler.takePreciseCoverage" CommandProfilerGetBestEffortCoverage MethodType = "Profiler.getBestEffortCoverage" CommandProfilerStartTypeProfile MethodType = "Profiler.startTypeProfile" CommandProfilerStopTypeProfile MethodType = "Profiler.stopTypeProfile" CommandProfilerTakeTypeProfile MethodType = "Profiler.takeTypeProfile" EventHeapProfilerAddHeapSnapshotChunk MethodType = "HeapProfiler.addHeapSnapshotChunk" EventHeapProfilerResetProfiles MethodType = "HeapProfiler.resetProfiles" EventHeapProfilerReportHeapSnapshotProgress MethodType = "HeapProfiler.reportHeapSnapshotProgress" EventHeapProfilerLastSeenObjectID MethodType = "HeapProfiler.lastSeenObjectId" EventHeapProfilerHeapStatsUpdate MethodType = "HeapProfiler.heapStatsUpdate" CommandHeapProfilerEnable MethodType = "HeapProfiler.enable" CommandHeapProfilerDisable MethodType = "HeapProfiler.disable" CommandHeapProfilerStartTrackingHeapObjects MethodType = "HeapProfiler.startTrackingHeapObjects" CommandHeapProfilerStopTrackingHeapObjects MethodType = "HeapProfiler.stopTrackingHeapObjects" CommandHeapProfilerTakeHeapSnapshot MethodType = "HeapProfiler.takeHeapSnapshot" CommandHeapProfilerCollectGarbage MethodType = "HeapProfiler.collectGarbage" CommandHeapProfilerGetObjectByHeapObjectID MethodType = "HeapProfiler.getObjectByHeapObjectId" CommandHeapProfilerAddInspectedHeapObject MethodType = "HeapProfiler.addInspectedHeapObject" CommandHeapProfilerGetHeapObjectID MethodType = "HeapProfiler.getHeapObjectId" CommandHeapProfilerStartSampling MethodType = "HeapProfiler.startSampling" CommandHeapProfilerStopSampling MethodType = "HeapProfiler.stopSampling" )
MethodType values.
func (MethodType) Domain ¶
func (t MethodType) Domain() string
Domain returns the Chrome Debugging Protocol domain of the event or command.
func (MethodType) MarshalEasyJSON ¶
func (t MethodType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (MethodType) MarshalJSON ¶
func (t MethodType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (MethodType) String ¶
func (t MethodType) String() string
String returns the MethodType as string value.
func (*MethodType) UnmarshalEasyJSON ¶
func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*MethodType) UnmarshalJSON ¶
func (t *MethodType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type MonotonicTime ¶
MonotonicTime monotonically increasing time in seconds since an arbitrary point in the past.
func (MonotonicTime) MarshalEasyJSON ¶
func (t MonotonicTime) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (MonotonicTime) MarshalJSON ¶
func (t MonotonicTime) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (MonotonicTime) Time ¶
func (t MonotonicTime) Time() time.Time
Time returns the MonotonicTime as time.Time value.
func (*MonotonicTime) UnmarshalEasyJSON ¶
func (t *MonotonicTime) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*MonotonicTime) UnmarshalJSON ¶
func (t *MonotonicTime) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type Node ¶
type Node struct { NodeID NodeID `json:"nodeId"` // Node identifier that is passed into the rest of the DOM messages as the nodeId. Backend will only push node with given id 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"` // The id of the parent node if any. BackendNodeID BackendNodeID `json:"backendNodeId"` // The BackendNodeId for this node. NodeType NodeType `json:"nodeType"` // Node's nodeType. NodeName string `json:"nodeName"` // Node's nodeName. LocalName string `json:"localName"` // Node's localName. NodeValue string `json:"nodeValue"` // Node's nodeValue. ChildNodeCount int64 `json:"childNodeCount,omitempty"` // Child count for Container nodes. Children []*Node `json:"children,omitempty"` // Child nodes of this node when requested with children. Attributes []string `json:"attributes,omitempty"` // Attributes of the Element node in the form of flat array [name1, value1, name2, value2]. DocumentURL string `json:"documentURL,omitempty"` // Document URL that Document or FrameOwner node points to. BaseURL string `json:"baseURL,omitempty"` // Base URL that Document or FrameOwner node uses for URL completion. PublicID string `json:"publicId,omitempty"` // DocumentType's publicId. SystemID string `json:"systemId,omitempty"` // DocumentType's systemId. InternalSubset string `json:"internalSubset,omitempty"` // DocumentType's internalSubset. XMLVersion string `json:"xmlVersion,omitempty"` // Document's XML version in case of XML documents. Name string `json:"name,omitempty"` // Attr's name. Value string `json:"value,omitempty"` // Attr's value. PseudoType PseudoType `json:"pseudoType,omitempty"` // Pseudo element type for this node. ShadowRootType ShadowRootType `json:"shadowRootType,omitempty"` // Shadow root type. FrameID FrameID `json:"frameId,omitempty"` // Frame ID for frame owner elements. ContentDocument *Node `json:"contentDocument,omitempty"` // Content document for frame owner elements. ShadowRoots []*Node `json:"shadowRoots,omitempty"` // Shadow root list for given element host. TemplateContent *Node `json:"templateContent,omitempty"` // Content document fragment for template elements. PseudoElements []*Node `json:"pseudoElements,omitempty"` // Pseudo elements associated with this node. ImportedDocument *Node `json:"importedDocument,omitempty"` // Import document for the HTMLImport links. DistributedNodes []*BackendNode `json:"distributedNodes,omitempty"` // Distributed nodes for given insertion point. IsSVG bool `json:"isSVG,omitempty"` // Whether the node is SVG. Parent *Node `json:"-"` // Parent node. Invalidated chan struct{} `json:"-"` // Invalidated channel. State NodeState `json:"-"` // Node state. sync.RWMutex `json:"-"` // Read write mutex. }
Node DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.
func (*Node) AttributeValue ¶
AttributeValue returns the named attribute for the node.
func (*Node) FullXPath ¶
FullXPath returns the full XPath for the node, stopping only at the top most document root.
func (*Node) FullXPathByID ¶
FullXPathByID returns the full XPath for the node, stopping at the top most document root or at the closest parent node with an id attribute.
func (Node) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Node) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Node) PartialXPath ¶
PartialXPath returns the partial XPath for the node, stopping at the nearest parent document node.
func (*Node) PartialXPathByID ¶
PartialXPathByID returns the partial XPath for the node, stopping at the first parent with an id attribute or at nearest parent document node.
func (*Node) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Node) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type NodeID ¶
type NodeID int64
NodeID unique DOM node identifier.
func (*NodeID) UnmarshalEasyJSON ¶
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*NodeID) UnmarshalJSON ¶
UnmarshalJSON satisfies json.Unmarshaler.
type NodeType ¶
type NodeType int64
NodeType node type.
const ( NodeTypeElement NodeType = 1 NodeTypeAttribute NodeType = 2 NodeTypeText NodeType = 3 NodeTypeCDATA NodeType = 4 NodeTypeEntityReference NodeType = 5 NodeTypeEntity NodeType = 6 NodeTypeProcessingInstruction NodeType = 7 NodeTypeComment NodeType = 8 NodeTypeDocument NodeType = 9 NodeTypeDocumentType NodeType = 10 NodeTypeDocumentFragment NodeType = 11 NodeTypeNotation NodeType = 12 )
NodeType values.
func (NodeType) MarshalEasyJSON ¶
MarshalEasyJSON satisfies easyjson.Marshaler.
func (NodeType) MarshalJSON ¶
MarshalJSON satisfies json.Marshaler.
func (*NodeType) UnmarshalEasyJSON ¶
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*NodeType) UnmarshalJSON ¶
UnmarshalJSON satisfies json.Unmarshaler.
type PseudoType ¶
type PseudoType string
PseudoType pseudo element type.
const ( PseudoTypeFirstLine PseudoType = "first-line" PseudoTypeFirstLetter PseudoType = "first-letter" PseudoTypeBefore PseudoType = "before" PseudoTypeAfter PseudoType = "after" PseudoTypeBackdrop PseudoType = "backdrop" PseudoTypeSelection PseudoType = "selection" PseudoTypeFirstLineInherited PseudoType = "first-line-inherited" PseudoTypeScrollbar PseudoType = "scrollbar" PseudoTypeScrollbarThumb PseudoType = "scrollbar-thumb" PseudoTypeScrollbarButton PseudoType = "scrollbar-button" PseudoTypeScrollbarTrack PseudoType = "scrollbar-track" PseudoTypeScrollbarTrackPiece PseudoType = "scrollbar-track-piece" PseudoTypeScrollbarCorner PseudoType = "scrollbar-corner" PseudoTypeResizer PseudoType = "resizer" PseudoTypeInputListButton PseudoType = "input-list-button" )
PseudoType values.
func (PseudoType) MarshalEasyJSON ¶
func (t PseudoType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (PseudoType) MarshalJSON ¶
func (t PseudoType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (PseudoType) String ¶
func (t PseudoType) String() string
String returns the PseudoType as string value.
func (*PseudoType) UnmarshalEasyJSON ¶
func (t *PseudoType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*PseudoType) UnmarshalJSON ¶
func (t *PseudoType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
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). }
RGBA a structure holding an RGBA color.
func (RGBA) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (RGBA) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*RGBA) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RGBA) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ShadowRootType ¶
type ShadowRootType string
ShadowRootType shadow root type.
const ( ShadowRootTypeUserAgent ShadowRootType = "user-agent" ShadowRootTypeOpen ShadowRootType = "open" ShadowRootTypeClosed ShadowRootType = "closed" )
ShadowRootType values.
func (ShadowRootType) MarshalEasyJSON ¶
func (t ShadowRootType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (ShadowRootType) MarshalJSON ¶
func (t ShadowRootType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (ShadowRootType) String ¶
func (t ShadowRootType) String() string
String returns the ShadowRootType as string value.
func (*ShadowRootType) UnmarshalEasyJSON ¶
func (t *ShadowRootType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*ShadowRootType) UnmarshalJSON ¶
func (t *ShadowRootType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type TimeSinceEpoch ¶
TimeSinceEpoch uTC time in seconds, counted from January 1, 1970.
func (TimeSinceEpoch) MarshalEasyJSON ¶
func (t TimeSinceEpoch) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (TimeSinceEpoch) MarshalJSON ¶
func (t TimeSinceEpoch) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (TimeSinceEpoch) Time ¶
func (t TimeSinceEpoch) Time() time.Time
Time returns the TimeSinceEpoch as time.Time value.
func (*TimeSinceEpoch) UnmarshalEasyJSON ¶
func (t *TimeSinceEpoch) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*TimeSinceEpoch) UnmarshalJSON ¶
func (t *TimeSinceEpoch) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
Directories ¶
Path | Synopsis |
---|---|
Package accessibility provides the Chrome Debugging Protocol commands, types, and events for the Accessibility domain.
|
Package accessibility provides the Chrome Debugging Protocol commands, types, and events for the Accessibility domain. |
Package animation provides the Chrome Debugging Protocol commands, types, and events for the Animation domain.
|
Package animation provides the Chrome Debugging Protocol commands, types, and events for the Animation domain. |
Package applicationcache provides the Chrome Debugging Protocol commands, types, and events for the ApplicationCache domain.
|
Package applicationcache provides the Chrome Debugging Protocol commands, types, and events for the ApplicationCache domain. |
Package audits provides the Chrome Debugging Protocol commands, types, and events for the Audits domain.
|
Package audits provides the Chrome Debugging Protocol commands, types, and events for the Audits domain. |
Package browser provides the Chrome Debugging Protocol commands, types, and events for the Browser domain.
|
Package browser provides the Chrome Debugging Protocol commands, types, and events for the Browser domain. |
Package cachestorage provides the Chrome Debugging Protocol commands, types, and events for the CacheStorage domain.
|
Package cachestorage provides the Chrome Debugging Protocol commands, types, and events for the CacheStorage domain. |
Package css provides the Chrome Debugging Protocol commands, types, and events for the CSS domain.
|
Package css provides the Chrome Debugging Protocol commands, types, and events for the CSS domain. |
Package database provides the Chrome Debugging Protocol commands, types, and events for the Database domain.
|
Package database provides the Chrome Debugging Protocol commands, types, and events for the Database domain. |
Package debugger provides the Chrome Debugging Protocol commands, types, and events for the Debugger domain.
|
Package debugger provides the Chrome Debugging Protocol commands, types, and events for the Debugger domain. |
Package deviceorientation provides the Chrome Debugging Protocol commands, types, and events for the DeviceOrientation domain.
|
Package deviceorientation provides the Chrome Debugging Protocol commands, types, and events for the DeviceOrientation domain. |
Package dom provides the Chrome Debugging Protocol commands, types, and events for the DOM domain.
|
Package dom provides the Chrome Debugging Protocol commands, types, and events for the DOM domain. |
Package domdebugger provides the Chrome Debugging Protocol commands, types, and events for the DOMDebugger domain.
|
Package domdebugger provides the Chrome Debugging Protocol commands, types, and events for the DOMDebugger domain. |
Package domsnapshot provides the Chrome Debugging Protocol commands, types, and events for the DOMSnapshot domain.
|
Package domsnapshot provides the Chrome Debugging Protocol commands, types, and events for the DOMSnapshot domain. |
Package domstorage provides the Chrome Debugging Protocol commands, types, and events for the DOMStorage domain.
|
Package domstorage provides the Chrome Debugging Protocol commands, types, and events for the DOMStorage domain. |
Package emulation provides the Chrome Debugging Protocol commands, types, and events for the Emulation domain.
|
Package emulation provides the Chrome Debugging Protocol commands, types, and events for the Emulation domain. |
Package har provides the Chrome Debugging Protocol commands, types, and events for the HAR domain.
|
Package har provides the Chrome Debugging Protocol commands, types, and events for the HAR domain. |
Package headlessexperimental provides the Chrome Debugging Protocol commands, types, and events for the HeadlessExperimental domain.
|
Package headlessexperimental provides the Chrome Debugging Protocol commands, types, and events for the HeadlessExperimental domain. |
Package heapprofiler provides the Chrome Debugging Protocol commands, types, and events for the HeapProfiler domain.
|
Package heapprofiler provides the Chrome Debugging Protocol commands, types, and events for the HeapProfiler domain. |
Package indexeddb provides the Chrome Debugging Protocol commands, types, and events for the IndexedDB domain.
|
Package indexeddb provides the Chrome Debugging Protocol commands, types, and events for the IndexedDB domain. |
Package input provides the Chrome Debugging Protocol commands, types, and events for the Input domain.
|
Package input provides the Chrome Debugging Protocol commands, types, and events for the Input domain. |
Package inspector provides the Chrome Debugging Protocol commands, types, and events for the Inspector domain.
|
Package inspector provides the Chrome Debugging Protocol commands, types, and events for the Inspector domain. |
Package io provides the Chrome Debugging Protocol commands, types, and events for the IO domain.
|
Package io provides the Chrome Debugging Protocol commands, types, and events for the IO domain. |
Package layertree provides the Chrome Debugging Protocol commands, types, and events for the LayerTree domain.
|
Package layertree provides the Chrome Debugging Protocol commands, types, and events for the LayerTree domain. |
Package log provides the Chrome Debugging Protocol commands, types, and events for the Log domain.
|
Package log provides the Chrome Debugging Protocol commands, types, and events for the Log domain. |
Package memory provides the Chrome Debugging Protocol commands, types, and events for the Memory domain.
|
Package memory provides the Chrome Debugging Protocol commands, types, and events for the Memory domain. |
Package network provides the Chrome Debugging Protocol commands, types, and events for the Network domain.
|
Package network provides the Chrome Debugging Protocol commands, types, and events for the Network domain. |
Package overlay provides the Chrome Debugging Protocol commands, types, and events for the Overlay domain.
|
Package overlay provides the Chrome Debugging Protocol commands, types, and events for the Overlay domain. |
Package page provides the Chrome Debugging Protocol commands, types, and events for the Page domain.
|
Package page provides the Chrome Debugging Protocol commands, types, and events for the Page domain. |
Package performance provides the Chrome Debugging Protocol commands, types, and events for the Performance domain.
|
Package performance provides the Chrome Debugging Protocol commands, types, and events for the Performance domain. |
Package profiler provides the Chrome Debugging Protocol commands, types, and events for the Profiler domain.
|
Package profiler provides the Chrome Debugging Protocol commands, types, and events for the Profiler domain. |
Package runtime provides the Chrome Debugging Protocol commands, types, and events for the Runtime domain.
|
Package runtime provides the Chrome Debugging Protocol commands, types, and events for the Runtime domain. |
Package schema provides the Chrome Debugging Protocol commands, types, and events for the Schema domain.
|
Package schema provides the Chrome Debugging Protocol commands, types, and events for the Schema domain. |
Package security provides the Chrome Debugging Protocol commands, types, and events for the Security domain.
|
Package security provides the Chrome Debugging Protocol commands, types, and events for the Security domain. |
Package serviceworker provides the Chrome Debugging Protocol commands, types, and events for the ServiceWorker domain.
|
Package serviceworker provides the Chrome Debugging Protocol commands, types, and events for the ServiceWorker domain. |
Package storage provides the Chrome Debugging Protocol commands, types, and events for the Storage domain.
|
Package storage provides the Chrome Debugging Protocol commands, types, and events for the Storage domain. |
Package systeminfo provides the Chrome Debugging Protocol commands, types, and events for the SystemInfo domain.
|
Package systeminfo provides the Chrome Debugging Protocol commands, types, and events for the SystemInfo domain. |
Package target provides the Chrome Debugging Protocol commands, types, and events for the Target domain.
|
Package target provides the Chrome Debugging Protocol commands, types, and events for the Target domain. |
Package tethering provides the Chrome Debugging Protocol commands, types, and events for the Tethering domain.
|
Package tethering provides the Chrome Debugging Protocol commands, types, and events for the Tethering domain. |
Package tracing provides the Chrome Debugging Protocol commands, types, and events for the Tracing domain.
|
Package tracing provides the Chrome Debugging Protocol commands, types, and events for the Tracing domain. |