cdp

package
v0.0.0-...-5828393 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Empty = easyjson.RawMessage(`{}`)

Empty is an empty JSON object message.

Functions

This section is empty.

Types

type BackendNode

type BackendNode struct {
	NodeType      NodeType      `json:"nodeType,omitempty"` // Node's nodeType.
	NodeName      string        `json:"nodeName,omitempty"` // Node's nodeName.
	BackendNodeID BackendNodeID `json:"backendNodeId,omitempty"`
}

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 (
	ErrContextDone   ErrorType = "context done"
	ErrChannelClosed ErrorType = "channel closed"
	ErrInvalidResult ErrorType = "invalid result"
	ErrUnknownResult ErrorType = "unknown result"
)

ErrorType values.

func (ErrorType) Error

func (t ErrorType) Error() string

Error satisfies the error interface.

func (ErrorType) MarshalEasyJSON

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ErrorType) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (ErrorType) String

func (t ErrorType) String() string

String returns the ErrorType as string value.

func (*ErrorType) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ErrorType) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type Frame

type Frame struct {
	ID             FrameID          `json:"id,omitempty"`             // Frame unique identifier.
	ParentID       FrameID          `json:"parentId,omitempty"`       // Parent frame identifier.
	LoaderID       LoaderID         `json:"loaderId,omitempty"`       // 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,omitempty"`            // Frame document's URL.
	SecurityOrigin string           `json:"securityOrigin,omitempty"` // Frame document's security origin.
	MimeType       string           `json:"mimeType,omitempty"`       // Frame document's mimeType as determined by the browser.
	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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Frame) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Frame) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Frame) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type FrameHandler

type FrameHandler interface {
	SetActive(context.Context, FrameID) error
	GetRoot(context.Context) (*Node, error)
	WaitFrame(context.Context, FrameID) (*Frame, error)
	WaitNode(context.Context, *Frame, NodeID) (*Node, error)
	Listen(...MethodType) <-chan interface{}

	// Execute executes the specified command using the supplied context and
	// parameters.
	Execute(context.Context, MethodType, easyjson.RawMessage) <-chan interface{}
}

FrameHandler is the common interface for a frame handler.

type FrameID

type FrameID string

FrameID unique frame identifier.

func (FrameID) String

func (t FrameID) String() string

String returns the FrameID as string value.

func (*FrameID) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*FrameID) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type FrameState

type FrameState uint16

FrameState is the state of a Frame.

const (
	FrameDOMContentEventFired FrameState = 1 << (15 - iota)
	FrameLoadEventFired
	FrameAttached
	FrameNavigated
	FrameLoading
	FrameScheduledNavigation
)

FrameState enum values.

func (FrameState) String

func (fs FrameState) String() string

String satisfies stringer interface.

type LoaderID

type LoaderID string

LoaderID unique loader identifier.

func (LoaderID) String

func (t LoaderID) String() string

String returns the LoaderID as string value.

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Message) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Message) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Message) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type MessageError

type MessageError struct {
	Code    int64  `json:"code,omitempty"`    // Error code.
	Message string `json:"message,omitempty"` // Error message.
}

MessageError message error type.

func (*MessageError) Error

func (e *MessageError) Error() string

Error satisfies error interface.

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"
	CommandMemorySetPressureNotificationsSuppressed        MethodType = "Memory.setPressureNotificationsSuppressed"
	CommandMemorySimulatePressureNotification              MethodType = "Memory.simulatePressureNotification"
	EventPageDomContentEventFired                          MethodType = "Page.domContentEventFired"
	EventPageLoadEventFired                                MethodType = "Page.loadEventFired"
	EventPageFrameAttached                                 MethodType = "Page.frameAttached"
	EventPageFrameNavigated                                MethodType = "Page.frameNavigated"
	EventPageFrameDetached                                 MethodType = "Page.frameDetached"
	EventPageFrameStartedLoading                           MethodType = "Page.frameStartedLoading"
	EventPageFrameStoppedLoading                           MethodType = "Page.frameStoppedLoading"
	EventPageFrameScheduledNavigation                      MethodType = "Page.frameScheduledNavigation"
	EventPageFrameClearedScheduledNavigation               MethodType = "Page.frameClearedScheduledNavigation"
	EventPageFrameResized                                  MethodType = "Page.frameResized"
	EventPageJavascriptDialogOpening                       MethodType = "Page.javascriptDialogOpening"
	EventPageJavascriptDialogClosed                        MethodType = "Page.javascriptDialogClosed"
	EventPageScreencastFrame                               MethodType = "Page.screencastFrame"
	EventPageScreencastVisibilityChanged                   MethodType = "Page.screencastVisibilityChanged"
	EventPageColorPicked                                   MethodType = "Page.colorPicked"
	EventPageInterstitialShown                             MethodType = "Page.interstitialShown"
	EventPageInterstitialHidden                            MethodType = "Page.interstitialHidden"
	EventPageNavigationRequested                           MethodType = "Page.navigationRequested"
	CommandPageEnable                                      MethodType = "Page.enable"
	CommandPageDisable                                     MethodType = "Page.disable"
	CommandPageAddScriptToEvaluateOnLoad                   MethodType = "Page.addScriptToEvaluateOnLoad"
	CommandPageRemoveScriptToEvaluateOnLoad                MethodType = "Page.removeScriptToEvaluateOnLoad"
	CommandPageSetAutoAttachToCreatedPages                 MethodType = "Page.setAutoAttachToCreatedPages"
	CommandPageReload                                      MethodType = "Page.reload"
	CommandPageNavigate                                    MethodType = "Page.navigate"
	CommandPageStopLoading                                 MethodType = "Page.stopLoading"
	CommandPageGetNavigationHistory                        MethodType = "Page.getNavigationHistory"
	CommandPageNavigateToHistoryEntry                      MethodType = "Page.navigateToHistoryEntry"
	CommandPageGetResourceTree                             MethodType = "Page.getResourceTree"
	CommandPageGetResourceContent                          MethodType = "Page.getResourceContent"
	CommandPageSearchInResource                            MethodType = "Page.searchInResource"
	CommandPageSetDocumentContent                          MethodType = "Page.setDocumentContent"
	CommandPageCaptureScreenshot                           MethodType = "Page.captureScreenshot"
	CommandPageStartScreencast                             MethodType = "Page.startScreencast"
	CommandPageStopScreencast                              MethodType = "Page.stopScreencast"
	CommandPageScreencastFrameAck                          MethodType = "Page.screencastFrameAck"
	CommandPageHandleJavaScriptDialog                      MethodType = "Page.handleJavaScriptDialog"
	CommandPageSetColorPickerEnabled                       MethodType = "Page.setColorPickerEnabled"
	CommandPageConfigureOverlay                            MethodType = "Page.configureOverlay"
	CommandPageGetAppManifest                              MethodType = "Page.getAppManifest"
	CommandPageRequestAppBanner                            MethodType = "Page.requestAppBanner"
	CommandPageSetControlNavigations                       MethodType = "Page.setControlNavigations"
	CommandPageProcessNavigation                           MethodType = "Page.processNavigation"
	CommandPageGetLayoutMetrics                            MethodType = "Page.getLayoutMetrics"
	CommandRenderingSetShowPaintRects                      MethodType = "Rendering.setShowPaintRects"
	CommandRenderingSetShowDebugBorders                    MethodType = "Rendering.setShowDebugBorders"
	CommandRenderingSetShowFPSCounter                      MethodType = "Rendering.setShowFPSCounter"
	CommandRenderingSetShowScrollBottleneckRects           MethodType = "Rendering.setShowScrollBottleneckRects"
	CommandRenderingSetShowViewportSizeOnResize            MethodType = "Rendering.setShowViewportSizeOnResize"
	EventEmulationVirtualTimeBudgetExpired                 MethodType = "Emulation.virtualTimeBudgetExpired"
	CommandEmulationSetDeviceMetricsOverride               MethodType = "Emulation.setDeviceMetricsOverride"
	CommandEmulationClearDeviceMetricsOverride             MethodType = "Emulation.clearDeviceMetricsOverride"
	CommandEmulationForceViewport                          MethodType = "Emulation.forceViewport"
	CommandEmulationResetViewport                          MethodType = "Emulation.resetViewport"
	CommandEmulationResetPageScaleFactor                   MethodType = "Emulation.resetPageScaleFactor"
	CommandEmulationSetPageScaleFactor                     MethodType = "Emulation.setPageScaleFactor"
	CommandEmulationSetVisibleSize                         MethodType = "Emulation.setVisibleSize"
	CommandEmulationSetScriptExecutionDisabled             MethodType = "Emulation.setScriptExecutionDisabled"
	CommandEmulationSetGeolocationOverride                 MethodType = "Emulation.setGeolocationOverride"
	CommandEmulationClearGeolocationOverride               MethodType = "Emulation.clearGeolocationOverride"
	CommandEmulationSetTouchEmulationEnabled               MethodType = "Emulation.setTouchEmulationEnabled"
	CommandEmulationSetEmulatedMedia                       MethodType = "Emulation.setEmulatedMedia"
	CommandEmulationSetCPUThrottlingRate                   MethodType = "Emulation.setCPUThrottlingRate"
	CommandEmulationCanEmulate                             MethodType = "Emulation.canEmulate"
	CommandEmulationSetVirtualTimePolicy                   MethodType = "Emulation.setVirtualTimePolicy"
	EventSecuritySecurityStateChanged                      MethodType = "Security.securityStateChanged"
	CommandSecurityEnable                                  MethodType = "Security.enable"
	CommandSecurityDisable                                 MethodType = "Security.disable"
	CommandSecurityShowCertificateViewer                   MethodType = "Security.showCertificateViewer"
	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"
	CommandNetworkEnable                                   MethodType = "Network.enable"
	CommandNetworkDisable                                  MethodType = "Network.disable"
	CommandNetworkSetUserAgentOverride                     MethodType = "Network.setUserAgentOverride"
	CommandNetworkSetExtraHTTPHeaders                      MethodType = "Network.setExtraHTTPHeaders"
	CommandNetworkGetResponseBody                          MethodType = "Network.getResponseBody"
	CommandNetworkAddBlockedURL                            MethodType = "Network.addBlockedURL"
	CommandNetworkRemoveBlockedURL                         MethodType = "Network.removeBlockedURL"
	CommandNetworkReplayXHR                                MethodType = "Network.replayXHR"
	CommandNetworkSetMonitoringXHREnabled                  MethodType = "Network.setMonitoringXHREnabled"
	CommandNetworkCanClearBrowserCache                     MethodType = "Network.canClearBrowserCache"
	CommandNetworkClearBrowserCache                        MethodType = "Network.clearBrowserCache"
	CommandNetworkCanClearBrowserCookies                   MethodType = "Network.canClearBrowserCookies"
	CommandNetworkClearBrowserCookies                      MethodType = "Network.clearBrowserCookies"
	CommandNetworkGetCookies                               MethodType = "Network.getCookies"
	CommandNetworkGetAllCookies                            MethodType = "Network.getAllCookies"
	CommandNetworkDeleteCookie                             MethodType = "Network.deleteCookie"
	CommandNetworkSetCookie                                MethodType = "Network.setCookie"
	CommandNetworkCanEmulateNetworkConditions              MethodType = "Network.canEmulateNetworkConditions"
	CommandNetworkEmulateNetworkConditions                 MethodType = "Network.emulateNetworkConditions"
	CommandNetworkSetCacheDisabled                         MethodType = "Network.setCacheDisabled"
	CommandNetworkSetBypassServiceWorker                   MethodType = "Network.setBypassServiceWorker"
	CommandNetworkSetDataSizeLimitsForTest                 MethodType = "Network.setDataSizeLimitsForTest"
	CommandNetworkGetCertificate                           MethodType = "Network.getCertificate"
	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"
	CommandCacheStorageRequestCacheNames                   MethodType = "CacheStorage.requestCacheNames"
	CommandCacheStorageRequestEntries                      MethodType = "CacheStorage.requestEntries"
	CommandCacheStorageDeleteCache                         MethodType = "CacheStorage.deleteCache"
	CommandCacheStorageDeleteEntry                         MethodType = "CacheStorage.deleteEntry"
	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"
	EventDOMInspectNodeRequested                           MethodType = "DOM.inspectNodeRequested"
	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"
	EventDOMNodeHighlightRequested                         MethodType = "DOM.nodeHighlightRequested"
	CommandDOMEnable                                       MethodType = "DOM.enable"
	CommandDOMDisable                                      MethodType = "DOM.disable"
	CommandDOMGetDocument                                  MethodType = "DOM.getDocument"
	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"
	CommandDOMSetInspectMode                               MethodType = "DOM.setInspectMode"
	CommandDOMHighlightRect                                MethodType = "DOM.highlightRect"
	CommandDOMHighlightQuad                                MethodType = "DOM.highlightQuad"
	CommandDOMHighlightNode                                MethodType = "DOM.highlightNode"
	CommandDOMHideHighlight                                MethodType = "DOM.hideHighlight"
	CommandDOMHighlightFrame                               MethodType = "DOM.highlightFrame"
	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"
	CommandDOMGetHighlightObjectForTest                    MethodType = "DOM.getHighlightObjectForTest"
	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"
	CommandCSSGetLayoutTreeAndStyles                       MethodType = "CSS.getLayoutTreeAndStyles"
	CommandCSSStartRuleUsageTracking                       MethodType = "CSS.startRuleUsageTracking"
	CommandCSSStopRuleUsageTracking                        MethodType = "CSS.stopRuleUsageTracking"
	CommandIORead                                          MethodType = "IO.read"
	CommandIOClose                                         MethodType = "IO.close"
	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"
	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"
	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"
	CommandServiceWorkerInspectWorker                      MethodType = "ServiceWorker.inspectWorker"
	CommandServiceWorkerSetForceUpdateOnPageLoad           MethodType = "ServiceWorker.setForceUpdateOnPageLoad"
	CommandServiceWorkerDeliverPushMessage                 MethodType = "ServiceWorker.deliverPushMessage"
	CommandServiceWorkerDispatchSyncEvent                  MethodType = "ServiceWorker.dispatchSyncEvent"
	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"
	CommandStorageClearDataForOrigin                       MethodType = "Storage.clearDataForOrigin"
	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"
	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"
	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"
	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"
	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 Node

type Node struct {
	NodeID           NodeID         `json:"nodeId,omitempty"`           // 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.
	BackendNodeID    BackendNodeID  `json:"backendNodeId,omitempty"`    // The BackendNodeId for this node.
	NodeType         NodeType       `json:"nodeType,omitempty"`         // Node's nodeType.
	NodeName         string         `json:"nodeName,omitempty"`         // Node's nodeName.
	LocalName        string         `json:"localName,omitempty"`        // Node's localName.
	NodeValue        string         `json:"nodeValue,omitempty"`        // 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

func (n *Node) AttributeValue(name string) string

AttributeValue returns the named attribute for the node.

func (Node) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Node) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Node) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Node) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (*Node) XPath

func (n *Node) XPath() string

XPath returns the full XPath tree for the node.

func (*Node) XPathByID

func (n *Node) XPathByID() string

XPathByID returns the XPath tree for the node, stopping at the first parent with an id attribute.

type NodeID

type NodeID int64

NodeID unique DOM node identifier.

func (NodeID) Int64

func (t NodeID) Int64() int64

Int64 returns the NodeID as int64 value.

func (*NodeID) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*NodeID) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type NodeState

type NodeState uint8

NodeState is the state of a DOM node.

const (
	NodeReady NodeState = 1 << (7 - iota)
	NodeVisible
	NodeHighlighted
)

NodeState enum values.

func (NodeState) String

func (ns NodeState) String() string

String satisfies stringer interface.

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) Int64

func (t NodeType) Int64() int64

Int64 returns the NodeType as int64 value.

func (NodeType) MarshalEasyJSON

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (NodeType) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (NodeType) String

func (t NodeType) String() string

String returns the NodeType as string value.

func (*NodeType) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*NodeType) UnmarshalJSON

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

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,omitempty"` // The red component, in the [0-255] range.
	G int64   `json:"g,omitempty"` // The green component, in the [0-255] range.
	B int64   `json:"b,omitempty"` // 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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (RGBA) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*RGBA) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RGBA) UnmarshalJSON

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

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 Timestamp

type Timestamp time.Time

Timestamp number of seconds since epoch.

func (Timestamp) MarshalEasyJSON

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (Timestamp) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (Timestamp) Time

func (t Timestamp) Time() time.Time

Time returns the Timestamp as time.Time value.

func (*Timestamp) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*Timestamp) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

Directories

Path Synopsis
Package accessibility provides the Chrome Debugging Protocol commands, types, and events for the Chrome Accessibility domain.
Package accessibility provides the Chrome Debugging Protocol commands, types, and events for the Chrome Accessibility domain.
Package animation provides the Chrome Debugging Protocol commands, types, and events for the Chrome Animation domain.
Package animation provides the Chrome Debugging Protocol commands, types, and events for the Chrome Animation domain.
Package applicationcache provides the Chrome Debugging Protocol commands, types, and events for the Chrome ApplicationCache domain.
Package applicationcache provides the Chrome Debugging Protocol commands, types, and events for the Chrome ApplicationCache domain.
Package cachestorage provides the Chrome Debugging Protocol commands, types, and events for the Chrome CacheStorage domain.
Package cachestorage provides the Chrome Debugging Protocol commands, types, and events for the Chrome CacheStorage domain.
Package css provides the Chrome Debugging Protocol commands, types, and events for the Chrome CSS domain.
Package css provides the Chrome Debugging Protocol commands, types, and events for the Chrome CSS domain.
Package database provides the Chrome Debugging Protocol commands, types, and events for the Chrome Database domain.
Package database provides the Chrome Debugging Protocol commands, types, and events for the Chrome Database domain.
Package debugger provides the Chrome Debugging Protocol commands, types, and events for the Chrome Debugger domain.
Package debugger provides the Chrome Debugging Protocol commands, types, and events for the Chrome Debugger domain.
Package deviceorientation provides the Chrome Debugging Protocol commands, types, and events for the Chrome DeviceOrientation domain.
Package deviceorientation provides the Chrome Debugging Protocol commands, types, and events for the Chrome DeviceOrientation domain.
Package dom provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOM domain.
Package dom provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOM domain.
Package domdebugger provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOMDebugger domain.
Package domdebugger provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOMDebugger domain.
Package domstorage provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOMStorage domain.
Package domstorage provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOMStorage domain.
Package emulation provides the Chrome Debugging Protocol commands, types, and events for the Chrome Emulation domain.
Package emulation provides the Chrome Debugging Protocol commands, types, and events for the Chrome Emulation domain.
Package heapprofiler provides the Chrome Debugging Protocol commands, types, and events for the Chrome HeapProfiler domain.
Package heapprofiler provides the Chrome Debugging Protocol commands, types, and events for the Chrome HeapProfiler domain.
Package indexeddb provides the Chrome Debugging Protocol commands, types, and events for the Chrome IndexedDB domain.
Package indexeddb provides the Chrome Debugging Protocol commands, types, and events for the Chrome IndexedDB domain.
Package input provides the Chrome Debugging Protocol commands, types, and events for the Chrome Input domain.
Package input provides the Chrome Debugging Protocol commands, types, and events for the Chrome Input domain.
Package inspector provides the Chrome Debugging Protocol commands, types, and events for the Chrome Inspector domain.
Package inspector provides the Chrome Debugging Protocol commands, types, and events for the Chrome Inspector domain.
Package io provides the Chrome Debugging Protocol commands, types, and events for the Chrome IO domain.
Package io provides the Chrome Debugging Protocol commands, types, and events for the Chrome IO domain.
Package layertree provides the Chrome Debugging Protocol commands, types, and events for the Chrome LayerTree domain.
Package layertree provides the Chrome Debugging Protocol commands, types, and events for the Chrome LayerTree domain.
Package log provides the Chrome Debugging Protocol commands, types, and events for the Chrome Log domain.
Package log provides the Chrome Debugging Protocol commands, types, and events for the Chrome Log domain.
Package memory provides the Chrome Debugging Protocol commands, types, and events for the Chrome Memory domain.
Package memory provides the Chrome Debugging Protocol commands, types, and events for the Chrome Memory domain.
Package network provides the Chrome Debugging Protocol commands, types, and events for the Chrome Network domain.
Package network provides the Chrome Debugging Protocol commands, types, and events for the Chrome Network domain.
Package page provides the Chrome Debugging Protocol commands, types, and events for the Chrome Page domain.
Package page provides the Chrome Debugging Protocol commands, types, and events for the Chrome Page domain.
Package profiler provides the Chrome Debugging Protocol commands, types, and events for the Chrome Profiler domain.
Package profiler provides the Chrome Debugging Protocol commands, types, and events for the Chrome Profiler domain.
Package rendering provides the Chrome Debugging Protocol commands, types, and events for the Chrome Rendering domain.
Package rendering provides the Chrome Debugging Protocol commands, types, and events for the Chrome Rendering domain.
Package runtime provides the Chrome Debugging Protocol commands, types, and events for the Chrome Runtime domain.
Package runtime provides the Chrome Debugging Protocol commands, types, and events for the Chrome Runtime domain.
Package schema provides the Chrome Debugging Protocol commands, types, and events for the Chrome Schema domain.
Package schema provides the Chrome Debugging Protocol commands, types, and events for the Chrome Schema domain.
Package security provides the Chrome Debugging Protocol commands, types, and events for the Chrome Security domain.
Package security provides the Chrome Debugging Protocol commands, types, and events for the Chrome Security domain.
Package serviceworker provides the Chrome Debugging Protocol commands, types, and events for the Chrome ServiceWorker domain.
Package serviceworker provides the Chrome Debugging Protocol commands, types, and events for the Chrome ServiceWorker domain.
Package storage provides the Chrome Debugging Protocol commands, types, and events for the Chrome Storage domain.
Package storage provides the Chrome Debugging Protocol commands, types, and events for the Chrome Storage domain.
Package systeminfo provides the Chrome Debugging Protocol commands, types, and events for the Chrome SystemInfo domain.
Package systeminfo provides the Chrome Debugging Protocol commands, types, and events for the Chrome SystemInfo domain.
Package target provides the Chrome Debugging Protocol commands, types, and events for the Chrome Target domain.
Package target provides the Chrome Debugging Protocol commands, types, and events for the Chrome Target domain.
Package tethering provides the Chrome Debugging Protocol commands, types, and events for the Chrome Tethering domain.
Package tethering provides the Chrome Debugging Protocol commands, types, and events for the Chrome Tethering domain.
Package tracing provides the Chrome Debugging Protocol commands, types, and events for the Chrome Tracing domain.
Package tracing provides the Chrome Debugging Protocol commands, types, and events for the Chrome Tracing domain.

Jump to

Keyboard shortcuts

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