1449 lines
36 KiB
Go
1449 lines
36 KiB
Go
package cdputil
|
|
|
|
// Code generated by chromedp-gen. DO NOT EDIT.
|
|
|
|
import (
|
|
"errors"
|
|
|
|
cdp "github.com/knq/chromedp/cdp"
|
|
"github.com/knq/chromedp/cdp/accessibility"
|
|
"github.com/knq/chromedp/cdp/animation"
|
|
"github.com/knq/chromedp/cdp/applicationcache"
|
|
"github.com/knq/chromedp/cdp/audits"
|
|
"github.com/knq/chromedp/cdp/browser"
|
|
"github.com/knq/chromedp/cdp/cachestorage"
|
|
"github.com/knq/chromedp/cdp/css"
|
|
"github.com/knq/chromedp/cdp/database"
|
|
"github.com/knq/chromedp/cdp/debugger"
|
|
"github.com/knq/chromedp/cdp/dom"
|
|
"github.com/knq/chromedp/cdp/domdebugger"
|
|
"github.com/knq/chromedp/cdp/domsnapshot"
|
|
"github.com/knq/chromedp/cdp/domstorage"
|
|
"github.com/knq/chromedp/cdp/emulation"
|
|
"github.com/knq/chromedp/cdp/headlessexperimental"
|
|
"github.com/knq/chromedp/cdp/heapprofiler"
|
|
"github.com/knq/chromedp/cdp/indexeddb"
|
|
"github.com/knq/chromedp/cdp/inspector"
|
|
iodom "github.com/knq/chromedp/cdp/io"
|
|
"github.com/knq/chromedp/cdp/layertree"
|
|
logdom "github.com/knq/chromedp/cdp/log"
|
|
"github.com/knq/chromedp/cdp/memory"
|
|
"github.com/knq/chromedp/cdp/network"
|
|
"github.com/knq/chromedp/cdp/overlay"
|
|
"github.com/knq/chromedp/cdp/page"
|
|
"github.com/knq/chromedp/cdp/performance"
|
|
"github.com/knq/chromedp/cdp/profiler"
|
|
"github.com/knq/chromedp/cdp/runtime"
|
|
"github.com/knq/chromedp/cdp/security"
|
|
"github.com/knq/chromedp/cdp/serviceworker"
|
|
"github.com/knq/chromedp/cdp/storage"
|
|
"github.com/knq/chromedp/cdp/systeminfo"
|
|
"github.com/knq/chromedp/cdp/target"
|
|
"github.com/knq/chromedp/cdp/tethering"
|
|
"github.com/knq/chromedp/cdp/tracing"
|
|
"github.com/mailru/easyjson"
|
|
)
|
|
|
|
type empty struct{}
|
|
|
|
var emptyVal = &empty{}
|
|
|
|
// UnmarshalMessage unmarshals the message result or params.
|
|
func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
|
var v easyjson.Unmarshaler
|
|
switch msg.Method {
|
|
case cdp.CommandAccessibilityGetPartialAXTree:
|
|
v = new(accessibility.GetPartialAXTreeReturns)
|
|
|
|
case cdp.CommandAnimationDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandAnimationEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandAnimationGetCurrentTime:
|
|
v = new(animation.GetCurrentTimeReturns)
|
|
|
|
case cdp.CommandAnimationGetPlaybackRate:
|
|
v = new(animation.GetPlaybackRateReturns)
|
|
|
|
case cdp.CommandAnimationReleaseAnimations:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandAnimationResolveAnimation:
|
|
v = new(animation.ResolveAnimationReturns)
|
|
|
|
case cdp.CommandAnimationSeekAnimations:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandAnimationSetPaused:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandAnimationSetPlaybackRate:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandAnimationSetTiming:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventAnimationAnimationCanceled:
|
|
v = new(animation.EventAnimationCanceled)
|
|
|
|
case cdp.EventAnimationAnimationCreated:
|
|
v = new(animation.EventAnimationCreated)
|
|
|
|
case cdp.EventAnimationAnimationStarted:
|
|
v = new(animation.EventAnimationStarted)
|
|
|
|
case cdp.CommandApplicationCacheEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandApplicationCacheGetApplicationCacheForFrame:
|
|
v = new(applicationcache.GetApplicationCacheForFrameReturns)
|
|
|
|
case cdp.CommandApplicationCacheGetFramesWithManifests:
|
|
v = new(applicationcache.GetFramesWithManifestsReturns)
|
|
|
|
case cdp.CommandApplicationCacheGetManifestForFrame:
|
|
v = new(applicationcache.GetManifestForFrameReturns)
|
|
|
|
case cdp.EventApplicationCacheApplicationCacheStatusUpdated:
|
|
v = new(applicationcache.EventApplicationCacheStatusUpdated)
|
|
|
|
case cdp.EventApplicationCacheNetworkStateUpdated:
|
|
v = new(applicationcache.EventNetworkStateUpdated)
|
|
|
|
case cdp.CommandAuditsGetEncodedResponse:
|
|
v = new(audits.GetEncodedResponseReturns)
|
|
|
|
case cdp.CommandBrowserClose:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandBrowserGetVersion:
|
|
v = new(browser.GetVersionReturns)
|
|
|
|
case cdp.CommandBrowserGetWindowBounds:
|
|
v = new(browser.GetWindowBoundsReturns)
|
|
|
|
case cdp.CommandBrowserGetWindowForTarget:
|
|
v = new(browser.GetWindowForTargetReturns)
|
|
|
|
case cdp.CommandBrowserSetWindowBounds:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandCSSAddRule:
|
|
v = new(css.AddRuleReturns)
|
|
|
|
case cdp.CommandCSSCollectClassNames:
|
|
v = new(css.CollectClassNamesReturns)
|
|
|
|
case cdp.CommandCSSCreateStyleSheet:
|
|
v = new(css.CreateStyleSheetReturns)
|
|
|
|
case cdp.CommandCSSDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandCSSEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandCSSForcePseudoState:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandCSSGetBackgroundColors:
|
|
v = new(css.GetBackgroundColorsReturns)
|
|
|
|
case cdp.CommandCSSGetComputedStyleForNode:
|
|
v = new(css.GetComputedStyleForNodeReturns)
|
|
|
|
case cdp.CommandCSSGetInlineStylesForNode:
|
|
v = new(css.GetInlineStylesForNodeReturns)
|
|
|
|
case cdp.CommandCSSGetMatchedStylesForNode:
|
|
v = new(css.GetMatchedStylesForNodeReturns)
|
|
|
|
case cdp.CommandCSSGetMediaQueries:
|
|
v = new(css.GetMediaQueriesReturns)
|
|
|
|
case cdp.CommandCSSGetPlatformFontsForNode:
|
|
v = new(css.GetPlatformFontsForNodeReturns)
|
|
|
|
case cdp.CommandCSSGetStyleSheetText:
|
|
v = new(css.GetStyleSheetTextReturns)
|
|
|
|
case cdp.CommandCSSSetEffectivePropertyValueForNode:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandCSSSetKeyframeKey:
|
|
v = new(css.SetKeyframeKeyReturns)
|
|
|
|
case cdp.CommandCSSSetMediaText:
|
|
v = new(css.SetMediaTextReturns)
|
|
|
|
case cdp.CommandCSSSetRuleSelector:
|
|
v = new(css.SetRuleSelectorReturns)
|
|
|
|
case cdp.CommandCSSSetStyleSheetText:
|
|
v = new(css.SetStyleSheetTextReturns)
|
|
|
|
case cdp.CommandCSSSetStyleTexts:
|
|
v = new(css.SetStyleTextsReturns)
|
|
|
|
case cdp.CommandCSSStartRuleUsageTracking:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandCSSStopRuleUsageTracking:
|
|
v = new(css.StopRuleUsageTrackingReturns)
|
|
|
|
case cdp.CommandCSSTakeCoverageDelta:
|
|
v = new(css.TakeCoverageDeltaReturns)
|
|
|
|
case cdp.EventCSSFontsUpdated:
|
|
v = new(css.EventFontsUpdated)
|
|
|
|
case cdp.EventCSSMediaQueryResultChanged:
|
|
v = new(css.EventMediaQueryResultChanged)
|
|
|
|
case cdp.EventCSSStyleSheetAdded:
|
|
v = new(css.EventStyleSheetAdded)
|
|
|
|
case cdp.EventCSSStyleSheetChanged:
|
|
v = new(css.EventStyleSheetChanged)
|
|
|
|
case cdp.EventCSSStyleSheetRemoved:
|
|
v = new(css.EventStyleSheetRemoved)
|
|
|
|
case cdp.CommandCacheStorageDeleteCache:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandCacheStorageDeleteEntry:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandCacheStorageRequestCacheNames:
|
|
v = new(cachestorage.RequestCacheNamesReturns)
|
|
|
|
case cdp.CommandCacheStorageRequestCachedResponse:
|
|
v = new(cachestorage.RequestCachedResponseReturns)
|
|
|
|
case cdp.CommandCacheStorageRequestEntries:
|
|
v = new(cachestorage.RequestEntriesReturns)
|
|
|
|
case cdp.CommandDOMCollectClassNamesFromSubtree:
|
|
v = new(dom.CollectClassNamesFromSubtreeReturns)
|
|
|
|
case cdp.CommandDOMCopyTo:
|
|
v = new(dom.CopyToReturns)
|
|
|
|
case cdp.CommandDOMDescribeNode:
|
|
v = new(dom.DescribeNodeReturns)
|
|
|
|
case cdp.CommandDOMDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMDiscardSearchResults:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMFocus:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMGetAttributes:
|
|
v = new(dom.GetAttributesReturns)
|
|
|
|
case cdp.CommandDOMGetBoxModel:
|
|
v = new(dom.GetBoxModelReturns)
|
|
|
|
case cdp.CommandDOMGetDocument:
|
|
v = new(dom.GetDocumentReturns)
|
|
|
|
case cdp.CommandDOMGetFlattenedDocument:
|
|
v = new(dom.GetFlattenedDocumentReturns)
|
|
|
|
case cdp.CommandDOMGetNodeForLocation:
|
|
v = new(dom.GetNodeForLocationReturns)
|
|
|
|
case cdp.CommandDOMGetOuterHTML:
|
|
v = new(dom.GetOuterHTMLReturns)
|
|
|
|
case cdp.CommandDOMGetRelayoutBoundary:
|
|
v = new(dom.GetRelayoutBoundaryReturns)
|
|
|
|
case cdp.CommandDOMGetSearchResults:
|
|
v = new(dom.GetSearchResultsReturns)
|
|
|
|
case cdp.CommandDOMMarkUndoableState:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMMoveTo:
|
|
v = new(dom.MoveToReturns)
|
|
|
|
case cdp.CommandDOMPerformSearch:
|
|
v = new(dom.PerformSearchReturns)
|
|
|
|
case cdp.CommandDOMPushNodeByPathToFrontend:
|
|
v = new(dom.PushNodeByPathToFrontendReturns)
|
|
|
|
case cdp.CommandDOMPushNodesByBackendIdsToFrontend:
|
|
v = new(dom.PushNodesByBackendIdsToFrontendReturns)
|
|
|
|
case cdp.CommandDOMQuerySelector:
|
|
v = new(dom.QuerySelectorReturns)
|
|
|
|
case cdp.CommandDOMQuerySelectorAll:
|
|
v = new(dom.QuerySelectorAllReturns)
|
|
|
|
case cdp.CommandDOMRedo:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMRemoveAttribute:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMRemoveNode:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMRequestChildNodes:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMRequestNode:
|
|
v = new(dom.RequestNodeReturns)
|
|
|
|
case cdp.CommandDOMResolveNode:
|
|
v = new(dom.ResolveNodeReturns)
|
|
|
|
case cdp.CommandDOMSetAttributeValue:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMSetAttributesAsText:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMSetFileInputFiles:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMSetInspectedNode:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMSetNodeName:
|
|
v = new(dom.SetNodeNameReturns)
|
|
|
|
case cdp.CommandDOMSetNodeValue:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMSetOuterHTML:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMUndo:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventDOMAttributeModified:
|
|
v = new(dom.EventAttributeModified)
|
|
|
|
case cdp.EventDOMAttributeRemoved:
|
|
v = new(dom.EventAttributeRemoved)
|
|
|
|
case cdp.EventDOMCharacterDataModified:
|
|
v = new(dom.EventCharacterDataModified)
|
|
|
|
case cdp.EventDOMChildNodeCountUpdated:
|
|
v = new(dom.EventChildNodeCountUpdated)
|
|
|
|
case cdp.EventDOMChildNodeInserted:
|
|
v = new(dom.EventChildNodeInserted)
|
|
|
|
case cdp.EventDOMChildNodeRemoved:
|
|
v = new(dom.EventChildNodeRemoved)
|
|
|
|
case cdp.EventDOMDistributedNodesUpdated:
|
|
v = new(dom.EventDistributedNodesUpdated)
|
|
|
|
case cdp.EventDOMDocumentUpdated:
|
|
v = new(dom.EventDocumentUpdated)
|
|
|
|
case cdp.EventDOMInlineStyleInvalidated:
|
|
v = new(dom.EventInlineStyleInvalidated)
|
|
|
|
case cdp.EventDOMPseudoElementAdded:
|
|
v = new(dom.EventPseudoElementAdded)
|
|
|
|
case cdp.EventDOMPseudoElementRemoved:
|
|
v = new(dom.EventPseudoElementRemoved)
|
|
|
|
case cdp.EventDOMSetChildNodes:
|
|
v = new(dom.EventSetChildNodes)
|
|
|
|
case cdp.EventDOMShadowRootPopped:
|
|
v = new(dom.EventShadowRootPopped)
|
|
|
|
case cdp.EventDOMShadowRootPushed:
|
|
v = new(dom.EventShadowRootPushed)
|
|
|
|
case cdp.CommandDOMDebuggerGetEventListeners:
|
|
v = new(domdebugger.GetEventListenersReturns)
|
|
|
|
case cdp.CommandDOMDebuggerRemoveDOMBreakpoint:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMDebuggerRemoveEventListenerBreakpoint:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMDebuggerRemoveInstrumentationBreakpoint:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMDebuggerRemoveXHRBreakpoint:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMDebuggerSetDOMBreakpoint:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMDebuggerSetEventListenerBreakpoint:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMDebuggerSetInstrumentationBreakpoint:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMDebuggerSetXHRBreakpoint:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMSnapshotGetSnapshot:
|
|
v = new(domsnapshot.GetSnapshotReturns)
|
|
|
|
case cdp.CommandDOMStorageClear:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMStorageDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMStorageEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMStorageGetDOMStorageItems:
|
|
v = new(domstorage.GetDOMStorageItemsReturns)
|
|
|
|
case cdp.CommandDOMStorageRemoveDOMStorageItem:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDOMStorageSetDOMStorageItem:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventDOMStorageDomStorageItemAdded:
|
|
v = new(domstorage.EventDomStorageItemAdded)
|
|
|
|
case cdp.EventDOMStorageDomStorageItemRemoved:
|
|
v = new(domstorage.EventDomStorageItemRemoved)
|
|
|
|
case cdp.EventDOMStorageDomStorageItemUpdated:
|
|
v = new(domstorage.EventDomStorageItemUpdated)
|
|
|
|
case cdp.EventDOMStorageDomStorageItemsCleared:
|
|
v = new(domstorage.EventDomStorageItemsCleared)
|
|
|
|
case cdp.CommandDatabaseDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDatabaseEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDatabaseExecuteSQL:
|
|
v = new(database.ExecuteSQLReturns)
|
|
|
|
case cdp.CommandDatabaseGetDatabaseTableNames:
|
|
v = new(database.GetDatabaseTableNamesReturns)
|
|
|
|
case cdp.EventDatabaseAddDatabase:
|
|
v = new(database.EventAddDatabase)
|
|
|
|
case cdp.CommandDeviceOrientationClearDeviceOrientationOverride:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDeviceOrientationSetDeviceOrientationOverride:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationCanEmulate:
|
|
v = new(emulation.CanEmulateReturns)
|
|
|
|
case cdp.CommandEmulationClearDeviceMetricsOverride:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationClearGeolocationOverride:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationResetPageScaleFactor:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationSetCPUThrottlingRate:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationSetDefaultBackgroundColorOverride:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationSetDeviceMetricsOverride:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationSetEmitTouchEventsForMouse:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationSetEmulatedMedia:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationSetGeolocationOverride:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationSetNavigatorOverrides:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationSetPageScaleFactor:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationSetScriptExecutionDisabled:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationSetTouchEmulationEnabled:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandEmulationSetVirtualTimePolicy:
|
|
v = new(emulation.SetVirtualTimePolicyReturns)
|
|
|
|
case cdp.EventEmulationVirtualTimeAdvanced:
|
|
v = new(emulation.EventVirtualTimeAdvanced)
|
|
|
|
case cdp.EventEmulationVirtualTimeBudgetExpired:
|
|
v = new(emulation.EventVirtualTimeBudgetExpired)
|
|
|
|
case cdp.EventEmulationVirtualTimePaused:
|
|
v = new(emulation.EventVirtualTimePaused)
|
|
|
|
case cdp.CommandHeadlessExperimentalBeginFrame:
|
|
v = new(headlessexperimental.BeginFrameReturns)
|
|
|
|
case cdp.CommandHeadlessExperimentalDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandHeadlessExperimentalEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventHeadlessExperimentalMainFrameReadyForScreenshots:
|
|
v = new(headlessexperimental.EventMainFrameReadyForScreenshots)
|
|
|
|
case cdp.EventHeadlessExperimentalNeedsBeginFramesChanged:
|
|
v = new(headlessexperimental.EventNeedsBeginFramesChanged)
|
|
|
|
case cdp.CommandIOClose:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandIORead:
|
|
v = new(iodom.ReadReturns)
|
|
|
|
case cdp.CommandIOResolveBlob:
|
|
v = new(iodom.ResolveBlobReturns)
|
|
|
|
case cdp.CommandIndexedDBClearObjectStore:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandIndexedDBDeleteDatabase:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandIndexedDBDeleteObjectStoreEntries:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandIndexedDBDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandIndexedDBEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandIndexedDBRequestData:
|
|
v = new(indexeddb.RequestDataReturns)
|
|
|
|
case cdp.CommandIndexedDBRequestDatabase:
|
|
v = new(indexeddb.RequestDatabaseReturns)
|
|
|
|
case cdp.CommandIndexedDBRequestDatabaseNames:
|
|
v = new(indexeddb.RequestDatabaseNamesReturns)
|
|
|
|
case cdp.CommandInputDispatchKeyEvent:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandInputDispatchMouseEvent:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandInputDispatchTouchEvent:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandInputEmulateTouchFromMouseEvent:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandInputSetIgnoreInputEvents:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandInputSynthesizePinchGesture:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandInputSynthesizeScrollGesture:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandInputSynthesizeTapGesture:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandInspectorDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandInspectorEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventInspectorDetached:
|
|
v = new(inspector.EventDetached)
|
|
|
|
case cdp.EventInspectorTargetCrashed:
|
|
v = new(inspector.EventTargetCrashed)
|
|
|
|
case cdp.CommandLayerTreeCompositingReasons:
|
|
v = new(layertree.CompositingReasonsReturns)
|
|
|
|
case cdp.CommandLayerTreeDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandLayerTreeEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandLayerTreeLoadSnapshot:
|
|
v = new(layertree.LoadSnapshotReturns)
|
|
|
|
case cdp.CommandLayerTreeMakeSnapshot:
|
|
v = new(layertree.MakeSnapshotReturns)
|
|
|
|
case cdp.CommandLayerTreeProfileSnapshot:
|
|
v = new(layertree.ProfileSnapshotReturns)
|
|
|
|
case cdp.CommandLayerTreeReleaseSnapshot:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandLayerTreeReplaySnapshot:
|
|
v = new(layertree.ReplaySnapshotReturns)
|
|
|
|
case cdp.CommandLayerTreeSnapshotCommandLog:
|
|
v = new(layertree.SnapshotCommandLogReturns)
|
|
|
|
case cdp.EventLayerTreeLayerPainted:
|
|
v = new(layertree.EventLayerPainted)
|
|
|
|
case cdp.EventLayerTreeLayerTreeDidChange:
|
|
v = new(layertree.EventLayerTreeDidChange)
|
|
|
|
case cdp.CommandLogClear:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandLogDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandLogEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandLogStartViolationsReport:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandLogStopViolationsReport:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventLogEntryAdded:
|
|
v = new(logdom.EventEntryAdded)
|
|
|
|
case cdp.CommandMemoryGetDOMCounters:
|
|
v = new(memory.GetDOMCountersReturns)
|
|
|
|
case cdp.CommandMemoryPrepareForLeakDetection:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandMemorySetPressureNotificationsSuppressed:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandMemorySimulatePressureNotification:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkClearBrowserCache:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkClearBrowserCookies:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkContinueInterceptedRequest:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkDeleteCookies:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkEmulateNetworkConditions:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkGetAllCookies:
|
|
v = new(network.GetAllCookiesReturns)
|
|
|
|
case cdp.CommandNetworkGetCertificate:
|
|
v = new(network.GetCertificateReturns)
|
|
|
|
case cdp.CommandNetworkGetCookies:
|
|
v = new(network.GetCookiesReturns)
|
|
|
|
case cdp.CommandNetworkGetResponseBody:
|
|
v = new(network.GetResponseBodyReturns)
|
|
|
|
case cdp.CommandNetworkGetResponseBodyForInterception:
|
|
v = new(network.GetResponseBodyForInterceptionReturns)
|
|
|
|
case cdp.CommandNetworkReplayXHR:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkSearchInResponseBody:
|
|
v = new(network.SearchInResponseBodyReturns)
|
|
|
|
case cdp.CommandNetworkSetBlockedURLS:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkSetBypassServiceWorker:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkSetCacheDisabled:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkSetCookie:
|
|
v = new(network.SetCookieReturns)
|
|
|
|
case cdp.CommandNetworkSetCookies:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkSetDataSizeLimitsForTest:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkSetExtraHTTPHeaders:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkSetRequestInterception:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandNetworkSetUserAgentOverride:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventNetworkDataReceived:
|
|
v = new(network.EventDataReceived)
|
|
|
|
case cdp.EventNetworkEventSourceMessageReceived:
|
|
v = new(network.EventEventSourceMessageReceived)
|
|
|
|
case cdp.EventNetworkLoadingFailed:
|
|
v = new(network.EventLoadingFailed)
|
|
|
|
case cdp.EventNetworkLoadingFinished:
|
|
v = new(network.EventLoadingFinished)
|
|
|
|
case cdp.EventNetworkRequestIntercepted:
|
|
v = new(network.EventRequestIntercepted)
|
|
|
|
case cdp.EventNetworkRequestServedFromCache:
|
|
v = new(network.EventRequestServedFromCache)
|
|
|
|
case cdp.EventNetworkRequestWillBeSent:
|
|
v = new(network.EventRequestWillBeSent)
|
|
|
|
case cdp.EventNetworkResourceChangedPriority:
|
|
v = new(network.EventResourceChangedPriority)
|
|
|
|
case cdp.EventNetworkResponseReceived:
|
|
v = new(network.EventResponseReceived)
|
|
|
|
case cdp.EventNetworkWebSocketClosed:
|
|
v = new(network.EventWebSocketClosed)
|
|
|
|
case cdp.EventNetworkWebSocketCreated:
|
|
v = new(network.EventWebSocketCreated)
|
|
|
|
case cdp.EventNetworkWebSocketFrameError:
|
|
v = new(network.EventWebSocketFrameError)
|
|
|
|
case cdp.EventNetworkWebSocketFrameReceived:
|
|
v = new(network.EventWebSocketFrameReceived)
|
|
|
|
case cdp.EventNetworkWebSocketFrameSent:
|
|
v = new(network.EventWebSocketFrameSent)
|
|
|
|
case cdp.EventNetworkWebSocketHandshakeResponseReceived:
|
|
v = new(network.EventWebSocketHandshakeResponseReceived)
|
|
|
|
case cdp.EventNetworkWebSocketWillSendHandshakeRequest:
|
|
v = new(network.EventWebSocketWillSendHandshakeRequest)
|
|
|
|
case cdp.CommandOverlayDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlayEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlayGetHighlightObjectForTest:
|
|
v = new(overlay.GetHighlightObjectForTestReturns)
|
|
|
|
case cdp.CommandOverlayHideHighlight:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlayHighlightFrame:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlayHighlightNode:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlayHighlightQuad:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlayHighlightRect:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlaySetInspectMode:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlaySetPausedInDebuggerMessage:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlaySetShowDebugBorders:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlaySetShowFPSCounter:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlaySetShowPaintRects:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlaySetShowScrollBottleneckRects:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlaySetShowViewportSizeOnResize:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandOverlaySetSuspended:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventOverlayInspectNodeRequested:
|
|
v = new(overlay.EventInspectNodeRequested)
|
|
|
|
case cdp.EventOverlayNodeHighlightRequested:
|
|
v = new(overlay.EventNodeHighlightRequested)
|
|
|
|
case cdp.EventOverlayScreenshotRequested:
|
|
v = new(overlay.EventScreenshotRequested)
|
|
|
|
case cdp.CommandPageAddScriptToEvaluateOnNewDocument:
|
|
v = new(page.AddScriptToEvaluateOnNewDocumentReturns)
|
|
|
|
case cdp.CommandPageBringToFront:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageCaptureScreenshot:
|
|
v = new(page.CaptureScreenshotReturns)
|
|
|
|
case cdp.CommandPageCreateIsolatedWorld:
|
|
v = new(page.CreateIsolatedWorldReturns)
|
|
|
|
case cdp.CommandPageDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageGetAppManifest:
|
|
v = new(page.GetAppManifestReturns)
|
|
|
|
case cdp.CommandPageGetFrameTree:
|
|
v = new(page.GetFrameTreeReturns)
|
|
|
|
case cdp.CommandPageGetLayoutMetrics:
|
|
v = new(page.GetLayoutMetricsReturns)
|
|
|
|
case cdp.CommandPageGetNavigationHistory:
|
|
v = new(page.GetNavigationHistoryReturns)
|
|
|
|
case cdp.CommandPageGetResourceContent:
|
|
v = new(page.GetResourceContentReturns)
|
|
|
|
case cdp.CommandPageGetResourceTree:
|
|
v = new(page.GetResourceTreeReturns)
|
|
|
|
case cdp.CommandPageHandleJavaScriptDialog:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageNavigate:
|
|
v = new(page.NavigateReturns)
|
|
|
|
case cdp.CommandPageNavigateToHistoryEntry:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPagePrintToPDF:
|
|
v = new(page.PrintToPDFReturns)
|
|
|
|
case cdp.CommandPageReload:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageRemoveScriptToEvaluateOnNewDocument:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageRequestAppBanner:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageScreencastFrameAck:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageSearchInResource:
|
|
v = new(page.SearchInResourceReturns)
|
|
|
|
case cdp.CommandPageSetAdBlockingEnabled:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageSetAutoAttachToCreatedPages:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageSetDocumentContent:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageSetDownloadBehavior:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageSetLifecycleEventsEnabled:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageStartScreencast:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageStopLoading:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPageStopScreencast:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventPageDomContentEventFired:
|
|
v = new(page.EventDomContentEventFired)
|
|
|
|
case cdp.EventPageFrameAttached:
|
|
v = new(page.EventFrameAttached)
|
|
|
|
case cdp.EventPageFrameClearedScheduledNavigation:
|
|
v = new(page.EventFrameClearedScheduledNavigation)
|
|
|
|
case cdp.EventPageFrameDetached:
|
|
v = new(page.EventFrameDetached)
|
|
|
|
case cdp.EventPageFrameNavigated:
|
|
v = new(page.EventFrameNavigated)
|
|
|
|
case cdp.EventPageFrameResized:
|
|
v = new(page.EventFrameResized)
|
|
|
|
case cdp.EventPageFrameScheduledNavigation:
|
|
v = new(page.EventFrameScheduledNavigation)
|
|
|
|
case cdp.EventPageFrameStartedLoading:
|
|
v = new(page.EventFrameStartedLoading)
|
|
|
|
case cdp.EventPageFrameStoppedLoading:
|
|
v = new(page.EventFrameStoppedLoading)
|
|
|
|
case cdp.EventPageInterstitialHidden:
|
|
v = new(page.EventInterstitialHidden)
|
|
|
|
case cdp.EventPageInterstitialShown:
|
|
v = new(page.EventInterstitialShown)
|
|
|
|
case cdp.EventPageJavascriptDialogClosed:
|
|
v = new(page.EventJavascriptDialogClosed)
|
|
|
|
case cdp.EventPageJavascriptDialogOpening:
|
|
v = new(page.EventJavascriptDialogOpening)
|
|
|
|
case cdp.EventPageLifecycleEvent:
|
|
v = new(page.EventLifecycleEvent)
|
|
|
|
case cdp.EventPageLoadEventFired:
|
|
v = new(page.EventLoadEventFired)
|
|
|
|
case cdp.EventPageScreencastFrame:
|
|
v = new(page.EventScreencastFrame)
|
|
|
|
case cdp.EventPageScreencastVisibilityChanged:
|
|
v = new(page.EventScreencastVisibilityChanged)
|
|
|
|
case cdp.EventPageWindowOpen:
|
|
v = new(page.EventWindowOpen)
|
|
|
|
case cdp.CommandPerformanceDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPerformanceEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandPerformanceGetMetrics:
|
|
v = new(performance.GetMetricsReturns)
|
|
|
|
case cdp.EventPerformanceMetrics:
|
|
v = new(performance.EventMetrics)
|
|
|
|
case cdp.CommandSecurityDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandSecurityEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandSecuritySetIgnoreCertificateErrors:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventSecuritySecurityStateChanged:
|
|
v = new(security.EventSecurityStateChanged)
|
|
|
|
case cdp.CommandServiceWorkerDeliverPushMessage:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandServiceWorkerDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandServiceWorkerDispatchSyncEvent:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandServiceWorkerEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandServiceWorkerInspectWorker:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandServiceWorkerSetForceUpdateOnPageLoad:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandServiceWorkerSkipWaiting:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandServiceWorkerStartWorker:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandServiceWorkerStopAllWorkers:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandServiceWorkerStopWorker:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandServiceWorkerUnregister:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandServiceWorkerUpdateRegistration:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventServiceWorkerWorkerErrorReported:
|
|
v = new(serviceworker.EventWorkerErrorReported)
|
|
|
|
case cdp.EventServiceWorkerWorkerRegistrationUpdated:
|
|
v = new(serviceworker.EventWorkerRegistrationUpdated)
|
|
|
|
case cdp.EventServiceWorkerWorkerVersionUpdated:
|
|
v = new(serviceworker.EventWorkerVersionUpdated)
|
|
|
|
case cdp.CommandStorageClearDataForOrigin:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandStorageGetUsageAndQuota:
|
|
v = new(storage.GetUsageAndQuotaReturns)
|
|
|
|
case cdp.CommandStorageTrackCacheStorageForOrigin:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandStorageTrackIndexedDBForOrigin:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandStorageUntrackCacheStorageForOrigin:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandStorageUntrackIndexedDBForOrigin:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventStorageCacheStorageContentUpdated:
|
|
v = new(storage.EventCacheStorageContentUpdated)
|
|
|
|
case cdp.EventStorageCacheStorageListUpdated:
|
|
v = new(storage.EventCacheStorageListUpdated)
|
|
|
|
case cdp.EventStorageIndexedDBContentUpdated:
|
|
v = new(storage.EventIndexedDBContentUpdated)
|
|
|
|
case cdp.EventStorageIndexedDBListUpdated:
|
|
v = new(storage.EventIndexedDBListUpdated)
|
|
|
|
case cdp.CommandSystemInfoGetInfo:
|
|
v = new(systeminfo.GetInfoReturns)
|
|
|
|
case cdp.CommandTargetActivateTarget:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandTargetAttachToTarget:
|
|
v = new(target.AttachToTargetReturns)
|
|
|
|
case cdp.CommandTargetCloseTarget:
|
|
v = new(target.CloseTargetReturns)
|
|
|
|
case cdp.CommandTargetCreateBrowserContext:
|
|
v = new(target.CreateBrowserContextReturns)
|
|
|
|
case cdp.CommandTargetCreateTarget:
|
|
v = new(target.CreateTargetReturns)
|
|
|
|
case cdp.CommandTargetDetachFromTarget:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandTargetDisposeBrowserContext:
|
|
v = new(target.DisposeBrowserContextReturns)
|
|
|
|
case cdp.CommandTargetGetTargetInfo:
|
|
v = new(target.GetTargetInfoReturns)
|
|
|
|
case cdp.CommandTargetGetTargets:
|
|
v = new(target.GetTargetsReturns)
|
|
|
|
case cdp.CommandTargetSendMessageToTarget:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandTargetSetAttachToFrames:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandTargetSetAutoAttach:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandTargetSetDiscoverTargets:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandTargetSetRemoteLocations:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventTargetAttachedToTarget:
|
|
v = new(target.EventAttachedToTarget)
|
|
|
|
case cdp.EventTargetDetachedFromTarget:
|
|
v = new(target.EventDetachedFromTarget)
|
|
|
|
case cdp.EventTargetReceivedMessageFromTarget:
|
|
v = new(target.EventReceivedMessageFromTarget)
|
|
|
|
case cdp.EventTargetTargetCreated:
|
|
v = new(target.EventTargetCreated)
|
|
|
|
case cdp.EventTargetTargetDestroyed:
|
|
v = new(target.EventTargetDestroyed)
|
|
|
|
case cdp.EventTargetTargetInfoChanged:
|
|
v = new(target.EventTargetInfoChanged)
|
|
|
|
case cdp.CommandTetheringBind:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandTetheringUnbind:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventTetheringAccepted:
|
|
v = new(tethering.EventAccepted)
|
|
|
|
case cdp.CommandTracingEnd:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandTracingGetCategories:
|
|
v = new(tracing.GetCategoriesReturns)
|
|
|
|
case cdp.CommandTracingRecordClockSyncMarker:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandTracingRequestMemoryDump:
|
|
v = new(tracing.RequestMemoryDumpReturns)
|
|
|
|
case cdp.CommandTracingStart:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventTracingBufferUsage:
|
|
v = new(tracing.EventBufferUsage)
|
|
|
|
case cdp.EventTracingDataCollected:
|
|
v = new(tracing.EventDataCollected)
|
|
|
|
case cdp.EventTracingTracingComplete:
|
|
v = new(tracing.EventTracingComplete)
|
|
|
|
case cdp.CommandDebuggerContinueToLocation:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerEnable:
|
|
v = new(debugger.EnableReturns)
|
|
|
|
case cdp.CommandDebuggerEvaluateOnCallFrame:
|
|
v = new(debugger.EvaluateOnCallFrameReturns)
|
|
|
|
case cdp.CommandDebuggerGetPossibleBreakpoints:
|
|
v = new(debugger.GetPossibleBreakpointsReturns)
|
|
|
|
case cdp.CommandDebuggerGetScriptSource:
|
|
v = new(debugger.GetScriptSourceReturns)
|
|
|
|
case cdp.CommandDebuggerGetStackTrace:
|
|
v = new(debugger.GetStackTraceReturns)
|
|
|
|
case cdp.CommandDebuggerPause:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerPauseOnAsyncCall:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerRemoveBreakpoint:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerRestartFrame:
|
|
v = new(debugger.RestartFrameReturns)
|
|
|
|
case cdp.CommandDebuggerResume:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerScheduleStepIntoAsync:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerSearchInContent:
|
|
v = new(debugger.SearchInContentReturns)
|
|
|
|
case cdp.CommandDebuggerSetAsyncCallStackDepth:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerSetBlackboxPatterns:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerSetBlackboxedRanges:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerSetBreakpoint:
|
|
v = new(debugger.SetBreakpointReturns)
|
|
|
|
case cdp.CommandDebuggerSetBreakpointByURL:
|
|
v = new(debugger.SetBreakpointByURLReturns)
|
|
|
|
case cdp.CommandDebuggerSetBreakpointsActive:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerSetPauseOnExceptions:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerSetReturnValue:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerSetScriptSource:
|
|
v = new(debugger.SetScriptSourceReturns)
|
|
|
|
case cdp.CommandDebuggerSetSkipAllPauses:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerSetVariableValue:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerStepInto:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerStepOut:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandDebuggerStepOver:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventDebuggerBreakpointResolved:
|
|
v = new(debugger.EventBreakpointResolved)
|
|
|
|
case cdp.EventDebuggerPaused:
|
|
v = new(debugger.EventPaused)
|
|
|
|
case cdp.EventDebuggerResumed:
|
|
v = new(debugger.EventResumed)
|
|
|
|
case cdp.EventDebuggerScriptFailedToParse:
|
|
v = new(debugger.EventScriptFailedToParse)
|
|
|
|
case cdp.EventDebuggerScriptParsed:
|
|
v = new(debugger.EventScriptParsed)
|
|
|
|
case cdp.CommandHeapProfilerAddInspectedHeapObject:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandHeapProfilerCollectGarbage:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandHeapProfilerDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandHeapProfilerEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandHeapProfilerGetHeapObjectID:
|
|
v = new(heapprofiler.GetHeapObjectIDReturns)
|
|
|
|
case cdp.CommandHeapProfilerGetObjectByHeapObjectID:
|
|
v = new(heapprofiler.GetObjectByHeapObjectIDReturns)
|
|
|
|
case cdp.CommandHeapProfilerGetSamplingProfile:
|
|
v = new(heapprofiler.GetSamplingProfileReturns)
|
|
|
|
case cdp.CommandHeapProfilerStartSampling:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandHeapProfilerStartTrackingHeapObjects:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandHeapProfilerStopSampling:
|
|
v = new(heapprofiler.StopSamplingReturns)
|
|
|
|
case cdp.CommandHeapProfilerStopTrackingHeapObjects:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandHeapProfilerTakeHeapSnapshot:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventHeapProfilerAddHeapSnapshotChunk:
|
|
v = new(heapprofiler.EventAddHeapSnapshotChunk)
|
|
|
|
case cdp.EventHeapProfilerHeapStatsUpdate:
|
|
v = new(heapprofiler.EventHeapStatsUpdate)
|
|
|
|
case cdp.EventHeapProfilerLastSeenObjectID:
|
|
v = new(heapprofiler.EventLastSeenObjectID)
|
|
|
|
case cdp.EventHeapProfilerReportHeapSnapshotProgress:
|
|
v = new(heapprofiler.EventReportHeapSnapshotProgress)
|
|
|
|
case cdp.EventHeapProfilerResetProfiles:
|
|
v = new(heapprofiler.EventResetProfiles)
|
|
|
|
case cdp.CommandProfilerDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandProfilerEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandProfilerGetBestEffortCoverage:
|
|
v = new(profiler.GetBestEffortCoverageReturns)
|
|
|
|
case cdp.CommandProfilerSetSamplingInterval:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandProfilerStart:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandProfilerStartPreciseCoverage:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandProfilerStartTypeProfile:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandProfilerStop:
|
|
v = new(profiler.StopReturns)
|
|
|
|
case cdp.CommandProfilerStopPreciseCoverage:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandProfilerStopTypeProfile:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandProfilerTakePreciseCoverage:
|
|
v = new(profiler.TakePreciseCoverageReturns)
|
|
|
|
case cdp.CommandProfilerTakeTypeProfile:
|
|
v = new(profiler.TakeTypeProfileReturns)
|
|
|
|
case cdp.EventProfilerConsoleProfileFinished:
|
|
v = new(profiler.EventConsoleProfileFinished)
|
|
|
|
case cdp.EventProfilerConsoleProfileStarted:
|
|
v = new(profiler.EventConsoleProfileStarted)
|
|
|
|
case cdp.CommandRuntimeAwaitPromise:
|
|
v = new(runtime.AwaitPromiseReturns)
|
|
|
|
case cdp.CommandRuntimeCallFunctionOn:
|
|
v = new(runtime.CallFunctionOnReturns)
|
|
|
|
case cdp.CommandRuntimeCompileScript:
|
|
v = new(runtime.CompileScriptReturns)
|
|
|
|
case cdp.CommandRuntimeDisable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandRuntimeDiscardConsoleEntries:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandRuntimeEnable:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandRuntimeEvaluate:
|
|
v = new(runtime.EvaluateReturns)
|
|
|
|
case cdp.CommandRuntimeGetProperties:
|
|
v = new(runtime.GetPropertiesReturns)
|
|
|
|
case cdp.CommandRuntimeGlobalLexicalScopeNames:
|
|
v = new(runtime.GlobalLexicalScopeNamesReturns)
|
|
|
|
case cdp.CommandRuntimeQueryObjects:
|
|
v = new(runtime.QueryObjectsReturns)
|
|
|
|
case cdp.CommandRuntimeReleaseObject:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandRuntimeReleaseObjectGroup:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandRuntimeRunIfWaitingForDebugger:
|
|
return emptyVal, nil
|
|
|
|
case cdp.CommandRuntimeRunScript:
|
|
v = new(runtime.RunScriptReturns)
|
|
|
|
case cdp.CommandRuntimeSetCustomObjectFormatterEnabled:
|
|
return emptyVal, nil
|
|
|
|
case cdp.EventRuntimeConsoleAPICalled:
|
|
v = new(runtime.EventConsoleAPICalled)
|
|
|
|
case cdp.EventRuntimeExceptionRevoked:
|
|
v = new(runtime.EventExceptionRevoked)
|
|
|
|
case cdp.EventRuntimeExceptionThrown:
|
|
v = new(runtime.EventExceptionThrown)
|
|
|
|
case cdp.EventRuntimeExecutionContextCreated:
|
|
v = new(runtime.EventExecutionContextCreated)
|
|
|
|
case cdp.EventRuntimeExecutionContextDestroyed:
|
|
v = new(runtime.EventExecutionContextDestroyed)
|
|
|
|
case cdp.EventRuntimeExecutionContextsCleared:
|
|
v = new(runtime.EventExecutionContextsCleared)
|
|
|
|
case cdp.EventRuntimeInspectRequested:
|
|
v = new(runtime.EventInspectRequested)
|
|
}
|
|
|
|
var buf easyjson.RawMessage
|
|
switch {
|
|
case msg.Params != nil:
|
|
buf = msg.Params
|
|
|
|
case msg.Result != nil:
|
|
buf = msg.Result
|
|
|
|
default:
|
|
return nil, errors.New("msg missing params or result")
|
|
}
|
|
|
|
err := easyjson.Unmarshal(buf, v)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return v, nil
|
|
}
|