chromedp/cdp/cdputil/cdputil.go

1449 lines
36 KiB
Go
Raw Normal View History

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