cdproto.go 129 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458
  1. // Package cdproto provides the Chrome DevTools Protocol
  2. // commands, types, and events for the cdproto domain.
  3. //
  4. // Chrome DevTools Protocol types.
  5. //
  6. // Generated by the cdproto-gen command.
  7. package cdproto
  8. // Code generated by cdproto-gen. DO NOT EDIT.
  9. import (
  10. "fmt"
  11. "strings"
  12. "github.com/chromedp/cdproto/accessibility"
  13. "github.com/chromedp/cdproto/animation"
  14. "github.com/chromedp/cdproto/audits"
  15. "github.com/chromedp/cdproto/autofill"
  16. "github.com/chromedp/cdproto/backgroundservice"
  17. "github.com/chromedp/cdproto/bluetoothemulation"
  18. "github.com/chromedp/cdproto/browser"
  19. "github.com/chromedp/cdproto/cachestorage"
  20. "github.com/chromedp/cdproto/cast"
  21. "github.com/chromedp/cdproto/cdp"
  22. "github.com/chromedp/cdproto/css"
  23. "github.com/chromedp/cdproto/debugger"
  24. "github.com/chromedp/cdproto/deviceaccess"
  25. "github.com/chromedp/cdproto/deviceorientation"
  26. "github.com/chromedp/cdproto/dom"
  27. "github.com/chromedp/cdproto/domdebugger"
  28. "github.com/chromedp/cdproto/domsnapshot"
  29. "github.com/chromedp/cdproto/domstorage"
  30. "github.com/chromedp/cdproto/emulation"
  31. "github.com/chromedp/cdproto/eventbreakpoints"
  32. "github.com/chromedp/cdproto/extensions"
  33. "github.com/chromedp/cdproto/fedcm"
  34. "github.com/chromedp/cdproto/fetch"
  35. "github.com/chromedp/cdproto/filesystem"
  36. "github.com/chromedp/cdproto/headlessexperimental"
  37. "github.com/chromedp/cdproto/heapprofiler"
  38. "github.com/chromedp/cdproto/indexeddb"
  39. "github.com/chromedp/cdproto/input"
  40. "github.com/chromedp/cdproto/inspector"
  41. "github.com/chromedp/cdproto/io"
  42. "github.com/chromedp/cdproto/layertree"
  43. "github.com/chromedp/cdproto/log"
  44. "github.com/chromedp/cdproto/media"
  45. "github.com/chromedp/cdproto/memory"
  46. "github.com/chromedp/cdproto/network"
  47. "github.com/chromedp/cdproto/overlay"
  48. "github.com/chromedp/cdproto/page"
  49. "github.com/chromedp/cdproto/performance"
  50. "github.com/chromedp/cdproto/performancetimeline"
  51. "github.com/chromedp/cdproto/preload"
  52. "github.com/chromedp/cdproto/profiler"
  53. "github.com/chromedp/cdproto/pwa"
  54. "github.com/chromedp/cdproto/runtime"
  55. "github.com/chromedp/cdproto/security"
  56. "github.com/chromedp/cdproto/serviceworker"
  57. "github.com/chromedp/cdproto/storage"
  58. "github.com/chromedp/cdproto/systeminfo"
  59. "github.com/chromedp/cdproto/target"
  60. "github.com/chromedp/cdproto/tethering"
  61. "github.com/chromedp/cdproto/tracing"
  62. "github.com/chromedp/cdproto/webaudio"
  63. "github.com/chromedp/cdproto/webauthn"
  64. jsonv2 "github.com/go-json-experiment/json"
  65. "github.com/go-json-experiment/json/jsontext"
  66. )
  67. // MethodType chrome DevTools Protocol method type (ie, event and command
  68. // names).
  69. type MethodType string
  70. // String returns the MethodType as string value.
  71. func (t MethodType) String() string {
  72. return string(t)
  73. }
  74. // Domain returns the Chrome DevTools Protocol domain of the event or command.
  75. func (t MethodType) Domain() string {
  76. return string(t[:strings.IndexByte(string(t), '.')])
  77. }
  78. // MethodType values.
  79. const (
  80. CommandAccessibilityDisable = accessibility.CommandDisable
  81. CommandAccessibilityEnable = accessibility.CommandEnable
  82. CommandAccessibilityGetPartialAXTree = accessibility.CommandGetPartialAXTree
  83. CommandAccessibilityGetFullAXTree = accessibility.CommandGetFullAXTree
  84. CommandAccessibilityGetRootAXNode = accessibility.CommandGetRootAXNode
  85. CommandAccessibilityGetAXNodeAndAncestors = accessibility.CommandGetAXNodeAndAncestors
  86. CommandAccessibilityGetChildAXNodes = accessibility.CommandGetChildAXNodes
  87. CommandAccessibilityQueryAXTree = accessibility.CommandQueryAXTree
  88. EventAccessibilityLoadComplete = "Accessibility.loadComplete"
  89. EventAccessibilityNodesUpdated = "Accessibility.nodesUpdated"
  90. CommandAnimationDisable = animation.CommandDisable
  91. CommandAnimationEnable = animation.CommandEnable
  92. CommandAnimationGetCurrentTime = animation.CommandGetCurrentTime
  93. CommandAnimationGetPlaybackRate = animation.CommandGetPlaybackRate
  94. CommandAnimationReleaseAnimations = animation.CommandReleaseAnimations
  95. CommandAnimationResolveAnimation = animation.CommandResolveAnimation
  96. CommandAnimationSeekAnimations = animation.CommandSeekAnimations
  97. CommandAnimationSetPaused = animation.CommandSetPaused
  98. CommandAnimationSetPlaybackRate = animation.CommandSetPlaybackRate
  99. CommandAnimationSetTiming = animation.CommandSetTiming
  100. EventAnimationAnimationCanceled = "Animation.animationCanceled"
  101. EventAnimationAnimationCreated = "Animation.animationCreated"
  102. EventAnimationAnimationStarted = "Animation.animationStarted"
  103. EventAnimationAnimationUpdated = "Animation.animationUpdated"
  104. CommandAuditsGetEncodedResponse = audits.CommandGetEncodedResponse
  105. CommandAuditsDisable = audits.CommandDisable
  106. CommandAuditsEnable = audits.CommandEnable
  107. CommandAuditsCheckContrast = audits.CommandCheckContrast
  108. CommandAuditsCheckFormsIssues = audits.CommandCheckFormsIssues
  109. EventAuditsIssueAdded = "Audits.issueAdded"
  110. CommandAutofillTrigger = autofill.CommandTrigger
  111. CommandAutofillSetAddresses = autofill.CommandSetAddresses
  112. CommandAutofillDisable = autofill.CommandDisable
  113. CommandAutofillEnable = autofill.CommandEnable
  114. EventAutofillAddressFormFilled = "Autofill.addressFormFilled"
  115. CommandBackgroundServiceStartObserving = backgroundservice.CommandStartObserving
  116. CommandBackgroundServiceStopObserving = backgroundservice.CommandStopObserving
  117. CommandBackgroundServiceSetRecording = backgroundservice.CommandSetRecording
  118. CommandBackgroundServiceClearEvents = backgroundservice.CommandClearEvents
  119. EventBackgroundServiceRecordingStateChanged = "BackgroundService.recordingStateChanged"
  120. EventBackgroundServiceBackgroundServiceEventReceived = "BackgroundService.backgroundServiceEventReceived"
  121. CommandBluetoothEmulationEnable = bluetoothemulation.CommandEnable
  122. CommandBluetoothEmulationSetSimulatedCentralState = bluetoothemulation.CommandSetSimulatedCentralState
  123. CommandBluetoothEmulationDisable = bluetoothemulation.CommandDisable
  124. CommandBluetoothEmulationSimulatePreconnectedPeripheral = bluetoothemulation.CommandSimulatePreconnectedPeripheral
  125. CommandBluetoothEmulationSimulateAdvertisement = bluetoothemulation.CommandSimulateAdvertisement
  126. CommandBluetoothEmulationSimulateGATTOperationResponse = bluetoothemulation.CommandSimulateGATTOperationResponse
  127. CommandBluetoothEmulationAddService = bluetoothemulation.CommandAddService
  128. CommandBluetoothEmulationRemoveService = bluetoothemulation.CommandRemoveService
  129. CommandBluetoothEmulationAddCharacteristic = bluetoothemulation.CommandAddCharacteristic
  130. CommandBluetoothEmulationRemoveCharacteristic = bluetoothemulation.CommandRemoveCharacteristic
  131. CommandBluetoothEmulationAddDescriptor = bluetoothemulation.CommandAddDescriptor
  132. CommandBluetoothEmulationRemoveDescriptor = bluetoothemulation.CommandRemoveDescriptor
  133. EventBluetoothEmulationGattOperationReceived = "BluetoothEmulation.gattOperationReceived"
  134. CommandBrowserSetPermission = browser.CommandSetPermission
  135. CommandBrowserGrantPermissions = browser.CommandGrantPermissions
  136. CommandBrowserResetPermissions = browser.CommandResetPermissions
  137. CommandBrowserSetDownloadBehavior = browser.CommandSetDownloadBehavior
  138. CommandBrowserCancelDownload = browser.CommandCancelDownload
  139. CommandBrowserClose = browser.CommandClose
  140. CommandBrowserCrash = browser.CommandCrash
  141. CommandBrowserCrashGPUProcess = browser.CommandCrashGPUProcess
  142. CommandBrowserGetVersion = browser.CommandGetVersion
  143. CommandBrowserGetBrowserCommandLine = browser.CommandGetBrowserCommandLine
  144. CommandBrowserGetHistograms = browser.CommandGetHistograms
  145. CommandBrowserGetHistogram = browser.CommandGetHistogram
  146. CommandBrowserGetWindowBounds = browser.CommandGetWindowBounds
  147. CommandBrowserGetWindowForTarget = browser.CommandGetWindowForTarget
  148. CommandBrowserSetWindowBounds = browser.CommandSetWindowBounds
  149. CommandBrowserSetDockTile = browser.CommandSetDockTile
  150. CommandBrowserExecuteBrowserCommand = browser.CommandExecuteBrowserCommand
  151. CommandBrowserAddPrivacySandboxEnrollmentOverride = browser.CommandAddPrivacySandboxEnrollmentOverride
  152. CommandBrowserAddPrivacySandboxCoordinatorKeyConfig = browser.CommandAddPrivacySandboxCoordinatorKeyConfig
  153. EventBrowserDownloadWillBegin = "Browser.downloadWillBegin"
  154. EventBrowserDownloadProgress = "Browser.downloadProgress"
  155. CommandCSSAddRule = css.CommandAddRule
  156. CommandCSSCollectClassNames = css.CommandCollectClassNames
  157. CommandCSSCreateStyleSheet = css.CommandCreateStyleSheet
  158. CommandCSSDisable = css.CommandDisable
  159. CommandCSSEnable = css.CommandEnable
  160. CommandCSSForcePseudoState = css.CommandForcePseudoState
  161. CommandCSSForceStartingStyle = css.CommandForceStartingStyle
  162. CommandCSSGetBackgroundColors = css.CommandGetBackgroundColors
  163. CommandCSSGetComputedStyleForNode = css.CommandGetComputedStyleForNode
  164. CommandCSSResolveValues = css.CommandResolveValues
  165. CommandCSSGetLonghandProperties = css.CommandGetLonghandProperties
  166. CommandCSSGetInlineStylesForNode = css.CommandGetInlineStylesForNode
  167. CommandCSSGetAnimatedStylesForNode = css.CommandGetAnimatedStylesForNode
  168. CommandCSSGetMatchedStylesForNode = css.CommandGetMatchedStylesForNode
  169. CommandCSSGetMediaQueries = css.CommandGetMediaQueries
  170. CommandCSSGetPlatformFontsForNode = css.CommandGetPlatformFontsForNode
  171. CommandCSSGetStyleSheetText = css.CommandGetStyleSheetText
  172. CommandCSSGetLayersForNode = css.CommandGetLayersForNode
  173. CommandCSSGetLocationForSelector = css.CommandGetLocationForSelector
  174. CommandCSSTrackComputedStyleUpdatesForNode = css.CommandTrackComputedStyleUpdatesForNode
  175. CommandCSSTrackComputedStyleUpdates = css.CommandTrackComputedStyleUpdates
  176. CommandCSSTakeComputedStyleUpdates = css.CommandTakeComputedStyleUpdates
  177. CommandCSSSetEffectivePropertyValueForNode = css.CommandSetEffectivePropertyValueForNode
  178. CommandCSSSetPropertyRulePropertyName = css.CommandSetPropertyRulePropertyName
  179. CommandCSSSetKeyframeKey = css.CommandSetKeyframeKey
  180. CommandCSSSetMediaText = css.CommandSetMediaText
  181. CommandCSSSetContainerQueryText = css.CommandSetContainerQueryText
  182. CommandCSSSetSupportsText = css.CommandSetSupportsText
  183. CommandCSSSetScopeText = css.CommandSetScopeText
  184. CommandCSSSetRuleSelector = css.CommandSetRuleSelector
  185. CommandCSSSetStyleSheetText = css.CommandSetStyleSheetText
  186. CommandCSSSetStyleTexts = css.CommandSetStyleTexts
  187. CommandCSSStartRuleUsageTracking = css.CommandStartRuleUsageTracking
  188. CommandCSSStopRuleUsageTracking = css.CommandStopRuleUsageTracking
  189. CommandCSSTakeCoverageDelta = css.CommandTakeCoverageDelta
  190. CommandCSSSetLocalFontsEnabled = css.CommandSetLocalFontsEnabled
  191. EventCSSFontsUpdated = "CSS.fontsUpdated"
  192. EventCSSMediaQueryResultChanged = "CSS.mediaQueryResultChanged"
  193. EventCSSStyleSheetAdded = "CSS.styleSheetAdded"
  194. EventCSSStyleSheetChanged = "CSS.styleSheetChanged"
  195. EventCSSStyleSheetRemoved = "CSS.styleSheetRemoved"
  196. EventCSSComputedStyleUpdated = "CSS.computedStyleUpdated"
  197. CommandCacheStorageDeleteCache = cachestorage.CommandDeleteCache
  198. CommandCacheStorageDeleteEntry = cachestorage.CommandDeleteEntry
  199. CommandCacheStorageRequestCacheNames = cachestorage.CommandRequestCacheNames
  200. CommandCacheStorageRequestCachedResponse = cachestorage.CommandRequestCachedResponse
  201. CommandCacheStorageRequestEntries = cachestorage.CommandRequestEntries
  202. CommandCastEnable = cast.CommandEnable
  203. CommandCastDisable = cast.CommandDisable
  204. CommandCastSetSinkToUse = cast.CommandSetSinkToUse
  205. CommandCastStartDesktopMirroring = cast.CommandStartDesktopMirroring
  206. CommandCastStartTabMirroring = cast.CommandStartTabMirroring
  207. CommandCastStopCasting = cast.CommandStopCasting
  208. EventCastSinksUpdated = "Cast.sinksUpdated"
  209. EventCastIssueUpdated = "Cast.issueUpdated"
  210. CommandDOMCollectClassNamesFromSubtree = dom.CommandCollectClassNamesFromSubtree
  211. CommandDOMCopyTo = dom.CommandCopyTo
  212. CommandDOMDescribeNode = dom.CommandDescribeNode
  213. CommandDOMScrollIntoViewIfNeeded = dom.CommandScrollIntoViewIfNeeded
  214. CommandDOMDisable = dom.CommandDisable
  215. CommandDOMDiscardSearchResults = dom.CommandDiscardSearchResults
  216. CommandDOMEnable = dom.CommandEnable
  217. CommandDOMFocus = dom.CommandFocus
  218. CommandDOMGetAttributes = dom.CommandGetAttributes
  219. CommandDOMGetBoxModel = dom.CommandGetBoxModel
  220. CommandDOMGetContentQuads = dom.CommandGetContentQuads
  221. CommandDOMGetDocument = dom.CommandGetDocument
  222. CommandDOMGetNodesForSubtreeByStyle = dom.CommandGetNodesForSubtreeByStyle
  223. CommandDOMGetNodeForLocation = dom.CommandGetNodeForLocation
  224. CommandDOMGetOuterHTML = dom.CommandGetOuterHTML
  225. CommandDOMGetRelayoutBoundary = dom.CommandGetRelayoutBoundary
  226. CommandDOMGetSearchResults = dom.CommandGetSearchResults
  227. CommandDOMMarkUndoableState = dom.CommandMarkUndoableState
  228. CommandDOMMoveTo = dom.CommandMoveTo
  229. CommandDOMPerformSearch = dom.CommandPerformSearch
  230. CommandDOMPushNodeByPathToFrontend = dom.CommandPushNodeByPathToFrontend
  231. CommandDOMPushNodesByBackendIDsToFrontend = dom.CommandPushNodesByBackendIDsToFrontend
  232. CommandDOMQuerySelector = dom.CommandQuerySelector
  233. CommandDOMQuerySelectorAll = dom.CommandQuerySelectorAll
  234. CommandDOMGetTopLayerElements = dom.CommandGetTopLayerElements
  235. CommandDOMGetElementByRelation = dom.CommandGetElementByRelation
  236. CommandDOMRedo = dom.CommandRedo
  237. CommandDOMRemoveAttribute = dom.CommandRemoveAttribute
  238. CommandDOMRemoveNode = dom.CommandRemoveNode
  239. CommandDOMRequestChildNodes = dom.CommandRequestChildNodes
  240. CommandDOMRequestNode = dom.CommandRequestNode
  241. CommandDOMResolveNode = dom.CommandResolveNode
  242. CommandDOMSetAttributeValue = dom.CommandSetAttributeValue
  243. CommandDOMSetAttributesAsText = dom.CommandSetAttributesAsText
  244. CommandDOMSetFileInputFiles = dom.CommandSetFileInputFiles
  245. CommandDOMSetNodeStackTracesEnabled = dom.CommandSetNodeStackTracesEnabled
  246. CommandDOMGetNodeStackTraces = dom.CommandGetNodeStackTraces
  247. CommandDOMGetFileInfo = dom.CommandGetFileInfo
  248. CommandDOMGetDetachedDomNodes = dom.CommandGetDetachedDomNodes
  249. CommandDOMSetInspectedNode = dom.CommandSetInspectedNode
  250. CommandDOMSetNodeName = dom.CommandSetNodeName
  251. CommandDOMSetNodeValue = dom.CommandSetNodeValue
  252. CommandDOMSetOuterHTML = dom.CommandSetOuterHTML
  253. CommandDOMUndo = dom.CommandUndo
  254. CommandDOMGetFrameOwner = dom.CommandGetFrameOwner
  255. CommandDOMGetContainerForNode = dom.CommandGetContainerForNode
  256. CommandDOMGetQueryingDescendantsForContainer = dom.CommandGetQueryingDescendantsForContainer
  257. CommandDOMGetAnchorElement = dom.CommandGetAnchorElement
  258. EventDOMAttributeModified = "DOM.attributeModified"
  259. EventDOMAttributeRemoved = "DOM.attributeRemoved"
  260. EventDOMCharacterDataModified = "DOM.characterDataModified"
  261. EventDOMChildNodeCountUpdated = "DOM.childNodeCountUpdated"
  262. EventDOMChildNodeInserted = "DOM.childNodeInserted"
  263. EventDOMChildNodeRemoved = "DOM.childNodeRemoved"
  264. EventDOMDistributedNodesUpdated = "DOM.distributedNodesUpdated"
  265. EventDOMDocumentUpdated = "DOM.documentUpdated"
  266. EventDOMInlineStyleInvalidated = "DOM.inlineStyleInvalidated"
  267. EventDOMPseudoElementAdded = "DOM.pseudoElementAdded"
  268. EventDOMTopLayerElementsUpdated = "DOM.topLayerElementsUpdated"
  269. EventDOMScrollableFlagUpdated = "DOM.scrollableFlagUpdated"
  270. EventDOMPseudoElementRemoved = "DOM.pseudoElementRemoved"
  271. EventDOMSetChildNodes = "DOM.setChildNodes"
  272. EventDOMShadowRootPopped = "DOM.shadowRootPopped"
  273. EventDOMShadowRootPushed = "DOM.shadowRootPushed"
  274. CommandDOMDebuggerGetEventListeners = domdebugger.CommandGetEventListeners
  275. CommandDOMDebuggerRemoveDOMBreakpoint = domdebugger.CommandRemoveDOMBreakpoint
  276. CommandDOMDebuggerRemoveEventListenerBreakpoint = domdebugger.CommandRemoveEventListenerBreakpoint
  277. CommandDOMDebuggerRemoveXHRBreakpoint = domdebugger.CommandRemoveXHRBreakpoint
  278. CommandDOMDebuggerSetBreakOnCSPViolation = domdebugger.CommandSetBreakOnCSPViolation
  279. CommandDOMDebuggerSetDOMBreakpoint = domdebugger.CommandSetDOMBreakpoint
  280. CommandDOMDebuggerSetEventListenerBreakpoint = domdebugger.CommandSetEventListenerBreakpoint
  281. CommandDOMDebuggerSetXHRBreakpoint = domdebugger.CommandSetXHRBreakpoint
  282. CommandDOMSnapshotDisable = domsnapshot.CommandDisable
  283. CommandDOMSnapshotEnable = domsnapshot.CommandEnable
  284. CommandDOMSnapshotCaptureSnapshot = domsnapshot.CommandCaptureSnapshot
  285. CommandDOMStorageClear = domstorage.CommandClear
  286. CommandDOMStorageDisable = domstorage.CommandDisable
  287. CommandDOMStorageEnable = domstorage.CommandEnable
  288. CommandDOMStorageGetDOMStorageItems = domstorage.CommandGetDOMStorageItems
  289. CommandDOMStorageRemoveDOMStorageItem = domstorage.CommandRemoveDOMStorageItem
  290. CommandDOMStorageSetDOMStorageItem = domstorage.CommandSetDOMStorageItem
  291. EventDOMStorageDomStorageItemAdded = "DOMStorage.domStorageItemAdded"
  292. EventDOMStorageDomStorageItemRemoved = "DOMStorage.domStorageItemRemoved"
  293. EventDOMStorageDomStorageItemUpdated = "DOMStorage.domStorageItemUpdated"
  294. EventDOMStorageDomStorageItemsCleared = "DOMStorage.domStorageItemsCleared"
  295. CommandDebuggerContinueToLocation = debugger.CommandContinueToLocation
  296. CommandDebuggerDisable = debugger.CommandDisable
  297. CommandDebuggerEnable = debugger.CommandEnable
  298. CommandDebuggerEvaluateOnCallFrame = debugger.CommandEvaluateOnCallFrame
  299. CommandDebuggerGetPossibleBreakpoints = debugger.CommandGetPossibleBreakpoints
  300. CommandDebuggerGetScriptSource = debugger.CommandGetScriptSource
  301. CommandDebuggerDisassembleWasmModule = debugger.CommandDisassembleWasmModule
  302. CommandDebuggerNextWasmDisassemblyChunk = debugger.CommandNextWasmDisassemblyChunk
  303. CommandDebuggerGetStackTrace = debugger.CommandGetStackTrace
  304. CommandDebuggerPause = debugger.CommandPause
  305. CommandDebuggerRemoveBreakpoint = debugger.CommandRemoveBreakpoint
  306. CommandDebuggerRestartFrame = debugger.CommandRestartFrame
  307. CommandDebuggerResume = debugger.CommandResume
  308. CommandDebuggerSearchInContent = debugger.CommandSearchInContent
  309. CommandDebuggerSetAsyncCallStackDepth = debugger.CommandSetAsyncCallStackDepth
  310. CommandDebuggerSetBlackboxExecutionContexts = debugger.CommandSetBlackboxExecutionContexts
  311. CommandDebuggerSetBlackboxPatterns = debugger.CommandSetBlackboxPatterns
  312. CommandDebuggerSetBlackboxedRanges = debugger.CommandSetBlackboxedRanges
  313. CommandDebuggerSetBreakpoint = debugger.CommandSetBreakpoint
  314. CommandDebuggerSetInstrumentationBreakpoint = debugger.CommandSetInstrumentationBreakpoint
  315. CommandDebuggerSetBreakpointByURL = debugger.CommandSetBreakpointByURL
  316. CommandDebuggerSetBreakpointOnFunctionCall = debugger.CommandSetBreakpointOnFunctionCall
  317. CommandDebuggerSetBreakpointsActive = debugger.CommandSetBreakpointsActive
  318. CommandDebuggerSetPauseOnExceptions = debugger.CommandSetPauseOnExceptions
  319. CommandDebuggerSetReturnValue = debugger.CommandSetReturnValue
  320. CommandDebuggerSetScriptSource = debugger.CommandSetScriptSource
  321. CommandDebuggerSetSkipAllPauses = debugger.CommandSetSkipAllPauses
  322. CommandDebuggerSetVariableValue = debugger.CommandSetVariableValue
  323. CommandDebuggerStepInto = debugger.CommandStepInto
  324. CommandDebuggerStepOut = debugger.CommandStepOut
  325. CommandDebuggerStepOver = debugger.CommandStepOver
  326. EventDebuggerPaused = "Debugger.paused"
  327. EventDebuggerResumed = "Debugger.resumed"
  328. EventDebuggerScriptFailedToParse = "Debugger.scriptFailedToParse"
  329. EventDebuggerScriptParsed = "Debugger.scriptParsed"
  330. CommandDeviceAccessEnable = deviceaccess.CommandEnable
  331. CommandDeviceAccessDisable = deviceaccess.CommandDisable
  332. CommandDeviceAccessSelectPrompt = deviceaccess.CommandSelectPrompt
  333. CommandDeviceAccessCancelPrompt = deviceaccess.CommandCancelPrompt
  334. EventDeviceAccessDeviceRequestPrompted = "DeviceAccess.deviceRequestPrompted"
  335. CommandDeviceOrientationClearDeviceOrientationOverride = deviceorientation.CommandClearDeviceOrientationOverride
  336. CommandDeviceOrientationSetDeviceOrientationOverride = deviceorientation.CommandSetDeviceOrientationOverride
  337. CommandEmulationClearDeviceMetricsOverride = emulation.CommandClearDeviceMetricsOverride
  338. CommandEmulationClearGeolocationOverride = emulation.CommandClearGeolocationOverride
  339. CommandEmulationResetPageScaleFactor = emulation.CommandResetPageScaleFactor
  340. CommandEmulationSetFocusEmulationEnabled = emulation.CommandSetFocusEmulationEnabled
  341. CommandEmulationSetAutoDarkModeOverride = emulation.CommandSetAutoDarkModeOverride
  342. CommandEmulationSetCPUThrottlingRate = emulation.CommandSetCPUThrottlingRate
  343. CommandEmulationSetDefaultBackgroundColorOverride = emulation.CommandSetDefaultBackgroundColorOverride
  344. CommandEmulationSetSafeAreaInsetsOverride = emulation.CommandSetSafeAreaInsetsOverride
  345. CommandEmulationSetDeviceMetricsOverride = emulation.CommandSetDeviceMetricsOverride
  346. CommandEmulationSetDevicePostureOverride = emulation.CommandSetDevicePostureOverride
  347. CommandEmulationClearDevicePostureOverride = emulation.CommandClearDevicePostureOverride
  348. CommandEmulationSetDisplayFeaturesOverride = emulation.CommandSetDisplayFeaturesOverride
  349. CommandEmulationClearDisplayFeaturesOverride = emulation.CommandClearDisplayFeaturesOverride
  350. CommandEmulationSetScrollbarsHidden = emulation.CommandSetScrollbarsHidden
  351. CommandEmulationSetDocumentCookieDisabled = emulation.CommandSetDocumentCookieDisabled
  352. CommandEmulationSetEmitTouchEventsForMouse = emulation.CommandSetEmitTouchEventsForMouse
  353. CommandEmulationSetEmulatedMedia = emulation.CommandSetEmulatedMedia
  354. CommandEmulationSetEmulatedVisionDeficiency = emulation.CommandSetEmulatedVisionDeficiency
  355. CommandEmulationSetGeolocationOverride = emulation.CommandSetGeolocationOverride
  356. CommandEmulationGetOverriddenSensorInformation = emulation.CommandGetOverriddenSensorInformation
  357. CommandEmulationSetSensorOverrideEnabled = emulation.CommandSetSensorOverrideEnabled
  358. CommandEmulationSetSensorOverrideReadings = emulation.CommandSetSensorOverrideReadings
  359. CommandEmulationSetPressureSourceOverrideEnabled = emulation.CommandSetPressureSourceOverrideEnabled
  360. CommandEmulationSetPressureStateOverride = emulation.CommandSetPressureStateOverride
  361. CommandEmulationSetIdleOverride = emulation.CommandSetIdleOverride
  362. CommandEmulationClearIdleOverride = emulation.CommandClearIdleOverride
  363. CommandEmulationSetPageScaleFactor = emulation.CommandSetPageScaleFactor
  364. CommandEmulationSetScriptExecutionDisabled = emulation.CommandSetScriptExecutionDisabled
  365. CommandEmulationSetTouchEmulationEnabled = emulation.CommandSetTouchEmulationEnabled
  366. CommandEmulationSetVirtualTimePolicy = emulation.CommandSetVirtualTimePolicy
  367. CommandEmulationSetLocaleOverride = emulation.CommandSetLocaleOverride
  368. CommandEmulationSetTimezoneOverride = emulation.CommandSetTimezoneOverride
  369. CommandEmulationSetDisabledImageTypes = emulation.CommandSetDisabledImageTypes
  370. CommandEmulationSetHardwareConcurrencyOverride = emulation.CommandSetHardwareConcurrencyOverride
  371. CommandEmulationSetUserAgentOverride = emulation.CommandSetUserAgentOverride
  372. CommandEmulationSetAutomationOverride = emulation.CommandSetAutomationOverride
  373. EventEmulationVirtualTimeBudgetExpired = "Emulation.virtualTimeBudgetExpired"
  374. CommandEventBreakpointsSetInstrumentationBreakpoint = eventbreakpoints.CommandSetInstrumentationBreakpoint
  375. CommandEventBreakpointsRemoveInstrumentationBreakpoint = eventbreakpoints.CommandRemoveInstrumentationBreakpoint
  376. CommandEventBreakpointsDisable = eventbreakpoints.CommandDisable
  377. CommandExtensionsLoadUnpacked = extensions.CommandLoadUnpacked
  378. CommandExtensionsUninstall = extensions.CommandUninstall
  379. CommandExtensionsGetStorageItems = extensions.CommandGetStorageItems
  380. CommandExtensionsRemoveStorageItems = extensions.CommandRemoveStorageItems
  381. CommandExtensionsClearStorageItems = extensions.CommandClearStorageItems
  382. CommandExtensionsSetStorageItems = extensions.CommandSetStorageItems
  383. CommandFedCmEnable = fedcm.CommandEnable
  384. CommandFedCmDisable = fedcm.CommandDisable
  385. CommandFedCmSelectAccount = fedcm.CommandSelectAccount
  386. CommandFedCmClickDialogButton = fedcm.CommandClickDialogButton
  387. CommandFedCmOpenURL = fedcm.CommandOpenURL
  388. CommandFedCmDismissDialog = fedcm.CommandDismissDialog
  389. CommandFedCmResetCooldown = fedcm.CommandResetCooldown
  390. EventFedCmDialogShown = "FedCm.dialogShown"
  391. EventFedCmDialogClosed = "FedCm.dialogClosed"
  392. CommandFetchDisable = fetch.CommandDisable
  393. CommandFetchEnable = fetch.CommandEnable
  394. CommandFetchFailRequest = fetch.CommandFailRequest
  395. CommandFetchFulfillRequest = fetch.CommandFulfillRequest
  396. CommandFetchContinueRequest = fetch.CommandContinueRequest
  397. CommandFetchContinueWithAuth = fetch.CommandContinueWithAuth
  398. CommandFetchContinueResponse = fetch.CommandContinueResponse
  399. CommandFetchGetResponseBody = fetch.CommandGetResponseBody
  400. CommandFetchTakeResponseBodyAsStream = fetch.CommandTakeResponseBodyAsStream
  401. EventFetchRequestPaused = "Fetch.requestPaused"
  402. EventFetchAuthRequired = "Fetch.authRequired"
  403. CommandFileSystemGetDirectory = filesystem.CommandGetDirectory
  404. CommandHeadlessExperimentalBeginFrame = headlessexperimental.CommandBeginFrame
  405. CommandHeapProfilerAddInspectedHeapObject = heapprofiler.CommandAddInspectedHeapObject
  406. CommandHeapProfilerCollectGarbage = heapprofiler.CommandCollectGarbage
  407. CommandHeapProfilerDisable = heapprofiler.CommandDisable
  408. CommandHeapProfilerEnable = heapprofiler.CommandEnable
  409. CommandHeapProfilerGetHeapObjectID = heapprofiler.CommandGetHeapObjectID
  410. CommandHeapProfilerGetObjectByHeapObjectID = heapprofiler.CommandGetObjectByHeapObjectID
  411. CommandHeapProfilerGetSamplingProfile = heapprofiler.CommandGetSamplingProfile
  412. CommandHeapProfilerStartSampling = heapprofiler.CommandStartSampling
  413. CommandHeapProfilerStartTrackingHeapObjects = heapprofiler.CommandStartTrackingHeapObjects
  414. CommandHeapProfilerStopSampling = heapprofiler.CommandStopSampling
  415. CommandHeapProfilerStopTrackingHeapObjects = heapprofiler.CommandStopTrackingHeapObjects
  416. CommandHeapProfilerTakeHeapSnapshot = heapprofiler.CommandTakeHeapSnapshot
  417. EventHeapProfilerAddHeapSnapshotChunk = "HeapProfiler.addHeapSnapshotChunk"
  418. EventHeapProfilerHeapStatsUpdate = "HeapProfiler.heapStatsUpdate"
  419. EventHeapProfilerLastSeenObjectID = "HeapProfiler.lastSeenObjectId"
  420. EventHeapProfilerReportHeapSnapshotProgress = "HeapProfiler.reportHeapSnapshotProgress"
  421. EventHeapProfilerResetProfiles = "HeapProfiler.resetProfiles"
  422. CommandIOClose = io.CommandClose
  423. CommandIORead = io.CommandRead
  424. CommandIOResolveBlob = io.CommandResolveBlob
  425. CommandIndexedDBClearObjectStore = indexeddb.CommandClearObjectStore
  426. CommandIndexedDBDeleteDatabase = indexeddb.CommandDeleteDatabase
  427. CommandIndexedDBDeleteObjectStoreEntries = indexeddb.CommandDeleteObjectStoreEntries
  428. CommandIndexedDBDisable = indexeddb.CommandDisable
  429. CommandIndexedDBEnable = indexeddb.CommandEnable
  430. CommandIndexedDBRequestData = indexeddb.CommandRequestData
  431. CommandIndexedDBGetMetadata = indexeddb.CommandGetMetadata
  432. CommandIndexedDBRequestDatabase = indexeddb.CommandRequestDatabase
  433. CommandIndexedDBRequestDatabaseNames = indexeddb.CommandRequestDatabaseNames
  434. CommandInputDispatchDragEvent = input.CommandDispatchDragEvent
  435. CommandInputDispatchKeyEvent = input.CommandDispatchKeyEvent
  436. CommandInputInsertText = input.CommandInsertText
  437. CommandInputImeSetComposition = input.CommandImeSetComposition
  438. CommandInputDispatchMouseEvent = input.CommandDispatchMouseEvent
  439. CommandInputDispatchTouchEvent = input.CommandDispatchTouchEvent
  440. CommandInputCancelDragging = input.CommandCancelDragging
  441. CommandInputEmulateTouchFromMouseEvent = input.CommandEmulateTouchFromMouseEvent
  442. CommandInputSetIgnoreInputEvents = input.CommandSetIgnoreInputEvents
  443. CommandInputSetInterceptDrags = input.CommandSetInterceptDrags
  444. CommandInputSynthesizePinchGesture = input.CommandSynthesizePinchGesture
  445. CommandInputSynthesizeScrollGesture = input.CommandSynthesizeScrollGesture
  446. CommandInputSynthesizeTapGesture = input.CommandSynthesizeTapGesture
  447. EventInputDragIntercepted = "Input.dragIntercepted"
  448. CommandInspectorDisable = inspector.CommandDisable
  449. CommandInspectorEnable = inspector.CommandEnable
  450. EventInspectorDetached = "Inspector.detached"
  451. EventInspectorTargetCrashed = "Inspector.targetCrashed"
  452. EventInspectorTargetReloadedAfterCrash = "Inspector.targetReloadedAfterCrash"
  453. CommandLayerTreeCompositingReasons = layertree.CommandCompositingReasons
  454. CommandLayerTreeDisable = layertree.CommandDisable
  455. CommandLayerTreeEnable = layertree.CommandEnable
  456. CommandLayerTreeLoadSnapshot = layertree.CommandLoadSnapshot
  457. CommandLayerTreeMakeSnapshot = layertree.CommandMakeSnapshot
  458. CommandLayerTreeProfileSnapshot = layertree.CommandProfileSnapshot
  459. CommandLayerTreeReleaseSnapshot = layertree.CommandReleaseSnapshot
  460. CommandLayerTreeReplaySnapshot = layertree.CommandReplaySnapshot
  461. CommandLayerTreeSnapshotCommandLog = layertree.CommandSnapshotCommandLog
  462. EventLayerTreeLayerPainted = "LayerTree.layerPainted"
  463. EventLayerTreeLayerTreeDidChange = "LayerTree.layerTreeDidChange"
  464. CommandLogClear = log.CommandClear
  465. CommandLogDisable = log.CommandDisable
  466. CommandLogEnable = log.CommandEnable
  467. CommandLogStartViolationsReport = log.CommandStartViolationsReport
  468. CommandLogStopViolationsReport = log.CommandStopViolationsReport
  469. EventLogEntryAdded = "Log.entryAdded"
  470. CommandMediaEnable = media.CommandEnable
  471. CommandMediaDisable = media.CommandDisable
  472. EventMediaPlayerPropertiesChanged = "Media.playerPropertiesChanged"
  473. EventMediaPlayerEventsAdded = "Media.playerEventsAdded"
  474. EventMediaPlayerMessagesLogged = "Media.playerMessagesLogged"
  475. EventMediaPlayerErrorsRaised = "Media.playerErrorsRaised"
  476. EventMediaPlayersCreated = "Media.playersCreated"
  477. CommandMemoryGetDOMCounters = memory.CommandGetDOMCounters
  478. CommandMemoryGetDOMCountersForLeakDetection = memory.CommandGetDOMCountersForLeakDetection
  479. CommandMemoryPrepareForLeakDetection = memory.CommandPrepareForLeakDetection
  480. CommandMemoryForciblyPurgeJavaScriptMemory = memory.CommandForciblyPurgeJavaScriptMemory
  481. CommandMemorySetPressureNotificationsSuppressed = memory.CommandSetPressureNotificationsSuppressed
  482. CommandMemorySimulatePressureNotification = memory.CommandSimulatePressureNotification
  483. CommandMemoryStartSampling = memory.CommandStartSampling
  484. CommandMemoryStopSampling = memory.CommandStopSampling
  485. CommandMemoryGetAllTimeSamplingProfile = memory.CommandGetAllTimeSamplingProfile
  486. CommandMemoryGetBrowserSamplingProfile = memory.CommandGetBrowserSamplingProfile
  487. CommandMemoryGetSamplingProfile = memory.CommandGetSamplingProfile
  488. CommandNetworkSetAcceptedEncodings = network.CommandSetAcceptedEncodings
  489. CommandNetworkClearAcceptedEncodingsOverride = network.CommandClearAcceptedEncodingsOverride
  490. CommandNetworkClearBrowserCache = network.CommandClearBrowserCache
  491. CommandNetworkClearBrowserCookies = network.CommandClearBrowserCookies
  492. CommandNetworkDeleteCookies = network.CommandDeleteCookies
  493. CommandNetworkDisable = network.CommandDisable
  494. CommandNetworkEmulateNetworkConditions = network.CommandEmulateNetworkConditions
  495. CommandNetworkEnable = network.CommandEnable
  496. CommandNetworkGetCertificate = network.CommandGetCertificate
  497. CommandNetworkGetCookies = network.CommandGetCookies
  498. CommandNetworkGetResponseBody = network.CommandGetResponseBody
  499. CommandNetworkGetRequestPostData = network.CommandGetRequestPostData
  500. CommandNetworkGetResponseBodyForInterception = network.CommandGetResponseBodyForInterception
  501. CommandNetworkTakeResponseBodyForInterceptionAsStream = network.CommandTakeResponseBodyForInterceptionAsStream
  502. CommandNetworkReplayXHR = network.CommandReplayXHR
  503. CommandNetworkSearchInResponseBody = network.CommandSearchInResponseBody
  504. CommandNetworkSetBlockedURLs = network.CommandSetBlockedURLs
  505. CommandNetworkSetBypassServiceWorker = network.CommandSetBypassServiceWorker
  506. CommandNetworkSetCacheDisabled = network.CommandSetCacheDisabled
  507. CommandNetworkSetCookie = network.CommandSetCookie
  508. CommandNetworkSetCookies = network.CommandSetCookies
  509. CommandNetworkSetExtraHTTPHeaders = network.CommandSetExtraHTTPHeaders
  510. CommandNetworkSetAttachDebugStack = network.CommandSetAttachDebugStack
  511. CommandNetworkStreamResourceContent = network.CommandStreamResourceContent
  512. CommandNetworkGetSecurityIsolationStatus = network.CommandGetSecurityIsolationStatus
  513. CommandNetworkEnableReportingAPI = network.CommandEnableReportingAPI
  514. CommandNetworkLoadNetworkResource = network.CommandLoadNetworkResource
  515. CommandNetworkSetCookieControls = network.CommandSetCookieControls
  516. EventNetworkDataReceived = "Network.dataReceived"
  517. EventNetworkEventSourceMessageReceived = "Network.eventSourceMessageReceived"
  518. EventNetworkLoadingFailed = "Network.loadingFailed"
  519. EventNetworkLoadingFinished = "Network.loadingFinished"
  520. EventNetworkRequestServedFromCache = "Network.requestServedFromCache"
  521. EventNetworkRequestWillBeSent = "Network.requestWillBeSent"
  522. EventNetworkResourceChangedPriority = "Network.resourceChangedPriority"
  523. EventNetworkSignedExchangeReceived = "Network.signedExchangeReceived"
  524. EventNetworkResponseReceived = "Network.responseReceived"
  525. EventNetworkWebSocketClosed = "Network.webSocketClosed"
  526. EventNetworkWebSocketCreated = "Network.webSocketCreated"
  527. EventNetworkWebSocketFrameError = "Network.webSocketFrameError"
  528. EventNetworkWebSocketFrameReceived = "Network.webSocketFrameReceived"
  529. EventNetworkWebSocketFrameSent = "Network.webSocketFrameSent"
  530. EventNetworkWebSocketHandshakeResponseReceived = "Network.webSocketHandshakeResponseReceived"
  531. EventNetworkWebSocketWillSendHandshakeRequest = "Network.webSocketWillSendHandshakeRequest"
  532. EventNetworkWebTransportCreated = "Network.webTransportCreated"
  533. EventNetworkWebTransportConnectionEstablished = "Network.webTransportConnectionEstablished"
  534. EventNetworkWebTransportClosed = "Network.webTransportClosed"
  535. EventNetworkDirectTCPSocketCreated = "Network.directTCPSocketCreated"
  536. EventNetworkDirectTCPSocketOpened = "Network.directTCPSocketOpened"
  537. EventNetworkDirectTCPSocketAborted = "Network.directTCPSocketAborted"
  538. EventNetworkDirectTCPSocketClosed = "Network.directTCPSocketClosed"
  539. EventNetworkRequestWillBeSentExtraInfo = "Network.requestWillBeSentExtraInfo"
  540. EventNetworkResponseReceivedExtraInfo = "Network.responseReceivedExtraInfo"
  541. EventNetworkResponseReceivedEarlyHints = "Network.responseReceivedEarlyHints"
  542. EventNetworkTrustTokenOperationDone = "Network.trustTokenOperationDone"
  543. EventNetworkPolicyUpdated = "Network.policyUpdated"
  544. EventNetworkSubresourceWebBundleMetadataReceived = "Network.subresourceWebBundleMetadataReceived"
  545. EventNetworkSubresourceWebBundleMetadataError = "Network.subresourceWebBundleMetadataError"
  546. EventNetworkSubresourceWebBundleInnerResponseParsed = "Network.subresourceWebBundleInnerResponseParsed"
  547. EventNetworkSubresourceWebBundleInnerResponseError = "Network.subresourceWebBundleInnerResponseError"
  548. EventNetworkReportingAPIReportAdded = "Network.reportingApiReportAdded"
  549. EventNetworkReportingAPIReportUpdated = "Network.reportingApiReportUpdated"
  550. EventNetworkReportingAPIEndpointsChangedForOrigin = "Network.reportingApiEndpointsChangedForOrigin"
  551. CommandOverlayDisable = overlay.CommandDisable
  552. CommandOverlayEnable = overlay.CommandEnable
  553. CommandOverlayGetHighlightObjectForTest = overlay.CommandGetHighlightObjectForTest
  554. CommandOverlayGetGridHighlightObjectsForTest = overlay.CommandGetGridHighlightObjectsForTest
  555. CommandOverlayGetSourceOrderHighlightObjectForTest = overlay.CommandGetSourceOrderHighlightObjectForTest
  556. CommandOverlayHideHighlight = overlay.CommandHideHighlight
  557. CommandOverlayHighlightNode = overlay.CommandHighlightNode
  558. CommandOverlayHighlightQuad = overlay.CommandHighlightQuad
  559. CommandOverlayHighlightRect = overlay.CommandHighlightRect
  560. CommandOverlayHighlightSourceOrder = overlay.CommandHighlightSourceOrder
  561. CommandOverlaySetInspectMode = overlay.CommandSetInspectMode
  562. CommandOverlaySetShowAdHighlights = overlay.CommandSetShowAdHighlights
  563. CommandOverlaySetPausedInDebuggerMessage = overlay.CommandSetPausedInDebuggerMessage
  564. CommandOverlaySetShowDebugBorders = overlay.CommandSetShowDebugBorders
  565. CommandOverlaySetShowFPSCounter = overlay.CommandSetShowFPSCounter
  566. CommandOverlaySetShowGridOverlays = overlay.CommandSetShowGridOverlays
  567. CommandOverlaySetShowFlexOverlays = overlay.CommandSetShowFlexOverlays
  568. CommandOverlaySetShowScrollSnapOverlays = overlay.CommandSetShowScrollSnapOverlays
  569. CommandOverlaySetShowContainerQueryOverlays = overlay.CommandSetShowContainerQueryOverlays
  570. CommandOverlaySetShowPaintRects = overlay.CommandSetShowPaintRects
  571. CommandOverlaySetShowLayoutShiftRegions = overlay.CommandSetShowLayoutShiftRegions
  572. CommandOverlaySetShowScrollBottleneckRects = overlay.CommandSetShowScrollBottleneckRects
  573. CommandOverlaySetShowViewportSizeOnResize = overlay.CommandSetShowViewportSizeOnResize
  574. CommandOverlaySetShowHinge = overlay.CommandSetShowHinge
  575. CommandOverlaySetShowIsolatedElements = overlay.CommandSetShowIsolatedElements
  576. CommandOverlaySetShowWindowControlsOverlay = overlay.CommandSetShowWindowControlsOverlay
  577. EventOverlayInspectNodeRequested = "Overlay.inspectNodeRequested"
  578. EventOverlayNodeHighlightRequested = "Overlay.nodeHighlightRequested"
  579. EventOverlayScreenshotRequested = "Overlay.screenshotRequested"
  580. EventOverlayInspectModeCanceled = "Overlay.inspectModeCanceled"
  581. CommandPWAGetOsAppState = pwa.CommandGetOsAppState
  582. CommandPWAInstall = pwa.CommandInstall
  583. CommandPWAUninstall = pwa.CommandUninstall
  584. CommandPWALaunch = pwa.CommandLaunch
  585. CommandPWALaunchFilesInApp = pwa.CommandLaunchFilesInApp
  586. CommandPWAOpenCurrentPageInApp = pwa.CommandOpenCurrentPageInApp
  587. CommandPWAChangeAppUserSettings = pwa.CommandChangeAppUserSettings
  588. CommandPageAddScriptToEvaluateOnNewDocument = page.CommandAddScriptToEvaluateOnNewDocument
  589. CommandPageBringToFront = page.CommandBringToFront
  590. CommandPageCaptureScreenshot = page.CommandCaptureScreenshot
  591. CommandPageCaptureSnapshot = page.CommandCaptureSnapshot
  592. CommandPageCreateIsolatedWorld = page.CommandCreateIsolatedWorld
  593. CommandPageDisable = page.CommandDisable
  594. CommandPageEnable = page.CommandEnable
  595. CommandPageGetAppManifest = page.CommandGetAppManifest
  596. CommandPageGetInstallabilityErrors = page.CommandGetInstallabilityErrors
  597. CommandPageGetAppID = page.CommandGetAppID
  598. CommandPageGetAdScriptID = page.CommandGetAdScriptID
  599. CommandPageGetFrameTree = page.CommandGetFrameTree
  600. CommandPageGetLayoutMetrics = page.CommandGetLayoutMetrics
  601. CommandPageGetNavigationHistory = page.CommandGetNavigationHistory
  602. CommandPageResetNavigationHistory = page.CommandResetNavigationHistory
  603. CommandPageGetResourceContent = page.CommandGetResourceContent
  604. CommandPageGetResourceTree = page.CommandGetResourceTree
  605. CommandPageHandleJavaScriptDialog = page.CommandHandleJavaScriptDialog
  606. CommandPageNavigate = page.CommandNavigate
  607. CommandPageNavigateToHistoryEntry = page.CommandNavigateToHistoryEntry
  608. CommandPagePrintToPDF = page.CommandPrintToPDF
  609. CommandPageReload = page.CommandReload
  610. CommandPageRemoveScriptToEvaluateOnNewDocument = page.CommandRemoveScriptToEvaluateOnNewDocument
  611. CommandPageScreencastFrameAck = page.CommandScreencastFrameAck
  612. CommandPageSearchInResource = page.CommandSearchInResource
  613. CommandPageSetAdBlockingEnabled = page.CommandSetAdBlockingEnabled
  614. CommandPageSetBypassCSP = page.CommandSetBypassCSP
  615. CommandPageGetPermissionsPolicyState = page.CommandGetPermissionsPolicyState
  616. CommandPageGetOriginTrials = page.CommandGetOriginTrials
  617. CommandPageSetFontFamilies = page.CommandSetFontFamilies
  618. CommandPageSetFontSizes = page.CommandSetFontSizes
  619. CommandPageSetDocumentContent = page.CommandSetDocumentContent
  620. CommandPageSetLifecycleEventsEnabled = page.CommandSetLifecycleEventsEnabled
  621. CommandPageStartScreencast = page.CommandStartScreencast
  622. CommandPageStopLoading = page.CommandStopLoading
  623. CommandPageCrash = page.CommandCrash
  624. CommandPageClose = page.CommandClose
  625. CommandPageSetWebLifecycleState = page.CommandSetWebLifecycleState
  626. CommandPageStopScreencast = page.CommandStopScreencast
  627. CommandPageProduceCompilationCache = page.CommandProduceCompilationCache
  628. CommandPageAddCompilationCache = page.CommandAddCompilationCache
  629. CommandPageClearCompilationCache = page.CommandClearCompilationCache
  630. CommandPageSetSPCTransactionMode = page.CommandSetSPCTransactionMode
  631. CommandPageSetRPHRegistrationMode = page.CommandSetRPHRegistrationMode
  632. CommandPageGenerateTestReport = page.CommandGenerateTestReport
  633. CommandPageWaitForDebugger = page.CommandWaitForDebugger
  634. CommandPageSetInterceptFileChooserDialog = page.CommandSetInterceptFileChooserDialog
  635. CommandPageSetPrerenderingAllowed = page.CommandSetPrerenderingAllowed
  636. EventPageDomContentEventFired = "Page.domContentEventFired"
  637. EventPageFileChooserOpened = "Page.fileChooserOpened"
  638. EventPageFrameAttached = "Page.frameAttached"
  639. EventPageFrameDetached = "Page.frameDetached"
  640. EventPageFrameSubtreeWillBeDetached = "Page.frameSubtreeWillBeDetached"
  641. EventPageFrameNavigated = "Page.frameNavigated"
  642. EventPageDocumentOpened = "Page.documentOpened"
  643. EventPageFrameResized = "Page.frameResized"
  644. EventPageFrameStartedNavigating = "Page.frameStartedNavigating"
  645. EventPageFrameRequestedNavigation = "Page.frameRequestedNavigation"
  646. EventPageFrameStartedLoading = "Page.frameStartedLoading"
  647. EventPageFrameStoppedLoading = "Page.frameStoppedLoading"
  648. EventPageInterstitialHidden = "Page.interstitialHidden"
  649. EventPageInterstitialShown = "Page.interstitialShown"
  650. EventPageJavascriptDialogClosed = "Page.javascriptDialogClosed"
  651. EventPageJavascriptDialogOpening = "Page.javascriptDialogOpening"
  652. EventPageLifecycleEvent = "Page.lifecycleEvent"
  653. EventPageBackForwardCacheNotUsed = "Page.backForwardCacheNotUsed"
  654. EventPageLoadEventFired = "Page.loadEventFired"
  655. EventPageNavigatedWithinDocument = "Page.navigatedWithinDocument"
  656. EventPageScreencastFrame = "Page.screencastFrame"
  657. EventPageScreencastVisibilityChanged = "Page.screencastVisibilityChanged"
  658. EventPageWindowOpen = "Page.windowOpen"
  659. EventPageCompilationCacheProduced = "Page.compilationCacheProduced"
  660. CommandPerformanceDisable = performance.CommandDisable
  661. CommandPerformanceEnable = performance.CommandEnable
  662. CommandPerformanceGetMetrics = performance.CommandGetMetrics
  663. EventPerformanceMetrics = "Performance.metrics"
  664. CommandPerformanceTimelineEnable = performancetimeline.CommandEnable
  665. EventPerformanceTimelineTimelineEventAdded = "PerformanceTimeline.timelineEventAdded"
  666. CommandPreloadEnable = preload.CommandEnable
  667. CommandPreloadDisable = preload.CommandDisable
  668. EventPreloadRuleSetUpdated = "Preload.ruleSetUpdated"
  669. EventPreloadRuleSetRemoved = "Preload.ruleSetRemoved"
  670. EventPreloadPreloadEnabledStateUpdated = "Preload.preloadEnabledStateUpdated"
  671. EventPreloadPrefetchStatusUpdated = "Preload.prefetchStatusUpdated"
  672. EventPreloadPrerenderStatusUpdated = "Preload.prerenderStatusUpdated"
  673. EventPreloadPreloadingAttemptSourcesUpdated = "Preload.preloadingAttemptSourcesUpdated"
  674. CommandProfilerDisable = profiler.CommandDisable
  675. CommandProfilerEnable = profiler.CommandEnable
  676. CommandProfilerGetBestEffortCoverage = profiler.CommandGetBestEffortCoverage
  677. CommandProfilerSetSamplingInterval = profiler.CommandSetSamplingInterval
  678. CommandProfilerStart = profiler.CommandStart
  679. CommandProfilerStartPreciseCoverage = profiler.CommandStartPreciseCoverage
  680. CommandProfilerStop = profiler.CommandStop
  681. CommandProfilerStopPreciseCoverage = profiler.CommandStopPreciseCoverage
  682. CommandProfilerTakePreciseCoverage = profiler.CommandTakePreciseCoverage
  683. EventProfilerConsoleProfileFinished = "Profiler.consoleProfileFinished"
  684. EventProfilerConsoleProfileStarted = "Profiler.consoleProfileStarted"
  685. EventProfilerPreciseCoverageDeltaUpdate = "Profiler.preciseCoverageDeltaUpdate"
  686. CommandRuntimeAwaitPromise = runtime.CommandAwaitPromise
  687. CommandRuntimeCallFunctionOn = runtime.CommandCallFunctionOn
  688. CommandRuntimeCompileScript = runtime.CommandCompileScript
  689. CommandRuntimeDisable = runtime.CommandDisable
  690. CommandRuntimeDiscardConsoleEntries = runtime.CommandDiscardConsoleEntries
  691. CommandRuntimeEnable = runtime.CommandEnable
  692. CommandRuntimeEvaluate = runtime.CommandEvaluate
  693. CommandRuntimeGetIsolateID = runtime.CommandGetIsolateID
  694. CommandRuntimeGetHeapUsage = runtime.CommandGetHeapUsage
  695. CommandRuntimeGetProperties = runtime.CommandGetProperties
  696. CommandRuntimeGlobalLexicalScopeNames = runtime.CommandGlobalLexicalScopeNames
  697. CommandRuntimeQueryObjects = runtime.CommandQueryObjects
  698. CommandRuntimeReleaseObject = runtime.CommandReleaseObject
  699. CommandRuntimeReleaseObjectGroup = runtime.CommandReleaseObjectGroup
  700. CommandRuntimeRunIfWaitingForDebugger = runtime.CommandRunIfWaitingForDebugger
  701. CommandRuntimeRunScript = runtime.CommandRunScript
  702. CommandRuntimeSetCustomObjectFormatterEnabled = runtime.CommandSetCustomObjectFormatterEnabled
  703. CommandRuntimeSetMaxCallStackSizeToCapture = runtime.CommandSetMaxCallStackSizeToCapture
  704. CommandRuntimeTerminateExecution = runtime.CommandTerminateExecution
  705. CommandRuntimeAddBinding = runtime.CommandAddBinding
  706. CommandRuntimeRemoveBinding = runtime.CommandRemoveBinding
  707. CommandRuntimeGetExceptionDetails = runtime.CommandGetExceptionDetails
  708. EventRuntimeBindingCalled = "Runtime.bindingCalled"
  709. EventRuntimeConsoleAPICalled = "Runtime.consoleAPICalled"
  710. EventRuntimeExceptionRevoked = "Runtime.exceptionRevoked"
  711. EventRuntimeExceptionThrown = "Runtime.exceptionThrown"
  712. EventRuntimeExecutionContextCreated = "Runtime.executionContextCreated"
  713. EventRuntimeExecutionContextDestroyed = "Runtime.executionContextDestroyed"
  714. EventRuntimeExecutionContextsCleared = "Runtime.executionContextsCleared"
  715. EventRuntimeInspectRequested = "Runtime.inspectRequested"
  716. CommandSecurityDisable = security.CommandDisable
  717. CommandSecurityEnable = security.CommandEnable
  718. CommandSecuritySetIgnoreCertificateErrors = security.CommandSetIgnoreCertificateErrors
  719. EventSecurityVisibleSecurityStateChanged = "Security.visibleSecurityStateChanged"
  720. CommandServiceWorkerDeliverPushMessage = serviceworker.CommandDeliverPushMessage
  721. CommandServiceWorkerDisable = serviceworker.CommandDisable
  722. CommandServiceWorkerDispatchSyncEvent = serviceworker.CommandDispatchSyncEvent
  723. CommandServiceWorkerDispatchPeriodicSyncEvent = serviceworker.CommandDispatchPeriodicSyncEvent
  724. CommandServiceWorkerEnable = serviceworker.CommandEnable
  725. CommandServiceWorkerInspectWorker = serviceworker.CommandInspectWorker
  726. CommandServiceWorkerSetForceUpdateOnPageLoad = serviceworker.CommandSetForceUpdateOnPageLoad
  727. CommandServiceWorkerSkipWaiting = serviceworker.CommandSkipWaiting
  728. CommandServiceWorkerStartWorker = serviceworker.CommandStartWorker
  729. CommandServiceWorkerStopAllWorkers = serviceworker.CommandStopAllWorkers
  730. CommandServiceWorkerStopWorker = serviceworker.CommandStopWorker
  731. CommandServiceWorkerUnregister = serviceworker.CommandUnregister
  732. CommandServiceWorkerUpdateRegistration = serviceworker.CommandUpdateRegistration
  733. EventServiceWorkerWorkerErrorReported = "ServiceWorker.workerErrorReported"
  734. EventServiceWorkerWorkerRegistrationUpdated = "ServiceWorker.workerRegistrationUpdated"
  735. EventServiceWorkerWorkerVersionUpdated = "ServiceWorker.workerVersionUpdated"
  736. CommandStorageGetStorageKeyForFrame = storage.CommandGetStorageKeyForFrame
  737. CommandStorageClearDataForOrigin = storage.CommandClearDataForOrigin
  738. CommandStorageClearDataForStorageKey = storage.CommandClearDataForStorageKey
  739. CommandStorageGetCookies = storage.CommandGetCookies
  740. CommandStorageSetCookies = storage.CommandSetCookies
  741. CommandStorageClearCookies = storage.CommandClearCookies
  742. CommandStorageGetUsageAndQuota = storage.CommandGetUsageAndQuota
  743. CommandStorageOverrideQuotaForOrigin = storage.CommandOverrideQuotaForOrigin
  744. CommandStorageTrackCacheStorageForOrigin = storage.CommandTrackCacheStorageForOrigin
  745. CommandStorageTrackCacheStorageForStorageKey = storage.CommandTrackCacheStorageForStorageKey
  746. CommandStorageTrackIndexedDBForOrigin = storage.CommandTrackIndexedDBForOrigin
  747. CommandStorageTrackIndexedDBForStorageKey = storage.CommandTrackIndexedDBForStorageKey
  748. CommandStorageUntrackCacheStorageForOrigin = storage.CommandUntrackCacheStorageForOrigin
  749. CommandStorageUntrackCacheStorageForStorageKey = storage.CommandUntrackCacheStorageForStorageKey
  750. CommandStorageUntrackIndexedDBForOrigin = storage.CommandUntrackIndexedDBForOrigin
  751. CommandStorageUntrackIndexedDBForStorageKey = storage.CommandUntrackIndexedDBForStorageKey
  752. CommandStorageGetTrustTokens = storage.CommandGetTrustTokens
  753. CommandStorageClearTrustTokens = storage.CommandClearTrustTokens
  754. CommandStorageGetInterestGroupDetails = storage.CommandGetInterestGroupDetails
  755. CommandStorageSetInterestGroupTracking = storage.CommandSetInterestGroupTracking
  756. CommandStorageSetInterestGroupAuctionTracking = storage.CommandSetInterestGroupAuctionTracking
  757. CommandStorageGetSharedStorageMetadata = storage.CommandGetSharedStorageMetadata
  758. CommandStorageGetSharedStorageEntries = storage.CommandGetSharedStorageEntries
  759. CommandStorageSetSharedStorageEntry = storage.CommandSetSharedStorageEntry
  760. CommandStorageDeleteSharedStorageEntry = storage.CommandDeleteSharedStorageEntry
  761. CommandStorageClearSharedStorageEntries = storage.CommandClearSharedStorageEntries
  762. CommandStorageResetSharedStorageBudget = storage.CommandResetSharedStorageBudget
  763. CommandStorageSetSharedStorageTracking = storage.CommandSetSharedStorageTracking
  764. CommandStorageSetStorageBucketTracking = storage.CommandSetStorageBucketTracking
  765. CommandStorageDeleteStorageBucket = storage.CommandDeleteStorageBucket
  766. CommandStorageRunBounceTrackingMitigations = storage.CommandRunBounceTrackingMitigations
  767. CommandStorageSetAttributionReportingLocalTestingMode = storage.CommandSetAttributionReportingLocalTestingMode
  768. CommandStorageSetAttributionReportingTracking = storage.CommandSetAttributionReportingTracking
  769. CommandStorageSendPendingAttributionReports = storage.CommandSendPendingAttributionReports
  770. CommandStorageGetRelatedWebsiteSets = storage.CommandGetRelatedWebsiteSets
  771. CommandStorageGetAffectedURLsForThirdPartyCookieMetadata = storage.CommandGetAffectedURLsForThirdPartyCookieMetadata
  772. EventStorageCacheStorageContentUpdated = "Storage.cacheStorageContentUpdated"
  773. EventStorageCacheStorageListUpdated = "Storage.cacheStorageListUpdated"
  774. EventStorageIndexedDBContentUpdated = "Storage.indexedDBContentUpdated"
  775. EventStorageIndexedDBListUpdated = "Storage.indexedDBListUpdated"
  776. EventStorageInterestGroupAccessed = "Storage.interestGroupAccessed"
  777. EventStorageInterestGroupAuctionEventOccurred = "Storage.interestGroupAuctionEventOccurred"
  778. EventStorageInterestGroupAuctionNetworkRequestCreated = "Storage.interestGroupAuctionNetworkRequestCreated"
  779. EventStorageSharedStorageAccessed = "Storage.sharedStorageAccessed"
  780. EventStorageStorageBucketCreatedOrUpdated = "Storage.storageBucketCreatedOrUpdated"
  781. EventStorageStorageBucketDeleted = "Storage.storageBucketDeleted"
  782. EventStorageAttributionReportingSourceRegistered = "Storage.attributionReportingSourceRegistered"
  783. EventStorageAttributionReportingTriggerRegistered = "Storage.attributionReportingTriggerRegistered"
  784. CommandSystemInfoGetInfo = systeminfo.CommandGetInfo
  785. CommandSystemInfoGetFeatureState = systeminfo.CommandGetFeatureState
  786. CommandSystemInfoGetProcessInfo = systeminfo.CommandGetProcessInfo
  787. CommandTargetActivateTarget = target.CommandActivateTarget
  788. CommandTargetAttachToTarget = target.CommandAttachToTarget
  789. CommandTargetAttachToBrowserTarget = target.CommandAttachToBrowserTarget
  790. CommandTargetCloseTarget = target.CommandCloseTarget
  791. CommandTargetExposeDevToolsProtocol = target.CommandExposeDevToolsProtocol
  792. CommandTargetCreateBrowserContext = target.CommandCreateBrowserContext
  793. CommandTargetGetBrowserContexts = target.CommandGetBrowserContexts
  794. CommandTargetCreateTarget = target.CommandCreateTarget
  795. CommandTargetDetachFromTarget = target.CommandDetachFromTarget
  796. CommandTargetDisposeBrowserContext = target.CommandDisposeBrowserContext
  797. CommandTargetGetTargetInfo = target.CommandGetTargetInfo
  798. CommandTargetGetTargets = target.CommandGetTargets
  799. CommandTargetSetAutoAttach = target.CommandSetAutoAttach
  800. CommandTargetAutoAttachRelated = target.CommandAutoAttachRelated
  801. CommandTargetSetDiscoverTargets = target.CommandSetDiscoverTargets
  802. CommandTargetSetRemoteLocations = target.CommandSetRemoteLocations
  803. EventTargetAttachedToTarget = "Target.attachedToTarget"
  804. EventTargetDetachedFromTarget = "Target.detachedFromTarget"
  805. EventTargetReceivedMessageFromTarget = "Target.receivedMessageFromTarget"
  806. EventTargetTargetCreated = "Target.targetCreated"
  807. EventTargetTargetDestroyed = "Target.targetDestroyed"
  808. EventTargetTargetCrashed = "Target.targetCrashed"
  809. EventTargetTargetInfoChanged = "Target.targetInfoChanged"
  810. CommandTetheringBind = tethering.CommandBind
  811. CommandTetheringUnbind = tethering.CommandUnbind
  812. EventTetheringAccepted = "Tethering.accepted"
  813. CommandTracingEnd = tracing.CommandEnd
  814. CommandTracingGetCategories = tracing.CommandGetCategories
  815. CommandTracingRecordClockSyncMarker = tracing.CommandRecordClockSyncMarker
  816. CommandTracingRequestMemoryDump = tracing.CommandRequestMemoryDump
  817. CommandTracingStart = tracing.CommandStart
  818. EventTracingBufferUsage = "Tracing.bufferUsage"
  819. EventTracingDataCollected = "Tracing.dataCollected"
  820. EventTracingTracingComplete = "Tracing.tracingComplete"
  821. CommandWebAudioEnable = webaudio.CommandEnable
  822. CommandWebAudioDisable = webaudio.CommandDisable
  823. CommandWebAudioGetRealtimeData = webaudio.CommandGetRealtimeData
  824. EventWebAudioContextCreated = "WebAudio.contextCreated"
  825. EventWebAudioContextWillBeDestroyed = "WebAudio.contextWillBeDestroyed"
  826. EventWebAudioContextChanged = "WebAudio.contextChanged"
  827. EventWebAudioAudioListenerCreated = "WebAudio.audioListenerCreated"
  828. EventWebAudioAudioListenerWillBeDestroyed = "WebAudio.audioListenerWillBeDestroyed"
  829. EventWebAudioAudioNodeCreated = "WebAudio.audioNodeCreated"
  830. EventWebAudioAudioNodeWillBeDestroyed = "WebAudio.audioNodeWillBeDestroyed"
  831. EventWebAudioAudioParamCreated = "WebAudio.audioParamCreated"
  832. EventWebAudioAudioParamWillBeDestroyed = "WebAudio.audioParamWillBeDestroyed"
  833. EventWebAudioNodesConnected = "WebAudio.nodesConnected"
  834. EventWebAudioNodesDisconnected = "WebAudio.nodesDisconnected"
  835. EventWebAudioNodeParamConnected = "WebAudio.nodeParamConnected"
  836. EventWebAudioNodeParamDisconnected = "WebAudio.nodeParamDisconnected"
  837. CommandWebAuthnEnable = webauthn.CommandEnable
  838. CommandWebAuthnDisable = webauthn.CommandDisable
  839. CommandWebAuthnAddVirtualAuthenticator = webauthn.CommandAddVirtualAuthenticator
  840. CommandWebAuthnSetResponseOverrideBits = webauthn.CommandSetResponseOverrideBits
  841. CommandWebAuthnRemoveVirtualAuthenticator = webauthn.CommandRemoveVirtualAuthenticator
  842. CommandWebAuthnAddCredential = webauthn.CommandAddCredential
  843. CommandWebAuthnGetCredential = webauthn.CommandGetCredential
  844. CommandWebAuthnGetCredentials = webauthn.CommandGetCredentials
  845. CommandWebAuthnRemoveCredential = webauthn.CommandRemoveCredential
  846. CommandWebAuthnClearCredentials = webauthn.CommandClearCredentials
  847. CommandWebAuthnSetUserVerified = webauthn.CommandSetUserVerified
  848. CommandWebAuthnSetAutomaticPresenceSimulation = webauthn.CommandSetAutomaticPresenceSimulation
  849. CommandWebAuthnSetCredentialProperties = webauthn.CommandSetCredentialProperties
  850. EventWebAuthnCredentialAdded = "WebAuthn.credentialAdded"
  851. EventWebAuthnCredentialDeleted = "WebAuthn.credentialDeleted"
  852. EventWebAuthnCredentialUpdated = "WebAuthn.credentialUpdated"
  853. EventWebAuthnCredentialAsserted = "WebAuthn.credentialAsserted"
  854. )
  855. // Error error type.
  856. type Error struct {
  857. Code int64 `json:"code"` // Error code.
  858. Message string `json:"message"` // Error message.
  859. }
  860. // Error satisfies the error interface.
  861. func (e *Error) Error() string {
  862. return fmt.Sprintf("%s (%d)", e.Message, e.Code)
  863. }
  864. // Message chrome DevTools Protocol message sent/read over websocket
  865. // connection.
  866. type Message struct {
  867. ID int64 `json:"id,omitempty,omitzero"` // Unique message identifier.
  868. SessionID target.SessionID `json:"sessionId,omitempty,omitzero"` // Session that the message belongs to when using flat access.
  869. Method MethodType `json:"method,omitempty,omitzero"` // Event or command type.
  870. Params jsontext.Value `json:"params,omitempty,omitzero"` // Event or command parameters.
  871. Result jsontext.Value `json:"result,omitempty,omitzero"` // Command return values.
  872. Error *Error `json:"error,omitempty,omitzero"` // Error message.
  873. }
  874. type empty struct{}
  875. var emptyVal = &empty{}
  876. // UnmarshalMessage unmarshals the message result or params.
  877. func UnmarshalMessage(msg *Message, opts ...jsonv2.Options) (any, error) {
  878. var v any
  879. switch msg.Method {
  880. case CommandAccessibilityDisable:
  881. return emptyVal, nil
  882. case CommandAccessibilityEnable:
  883. return emptyVal, nil
  884. case CommandAccessibilityGetPartialAXTree:
  885. v = new(accessibility.GetPartialAXTreeReturns)
  886. case CommandAccessibilityGetFullAXTree:
  887. v = new(accessibility.GetFullAXTreeReturns)
  888. case CommandAccessibilityGetRootAXNode:
  889. v = new(accessibility.GetRootAXNodeReturns)
  890. case CommandAccessibilityGetAXNodeAndAncestors:
  891. v = new(accessibility.GetAXNodeAndAncestorsReturns)
  892. case CommandAccessibilityGetChildAXNodes:
  893. v = new(accessibility.GetChildAXNodesReturns)
  894. case CommandAccessibilityQueryAXTree:
  895. v = new(accessibility.QueryAXTreeReturns)
  896. case EventAccessibilityLoadComplete:
  897. v = new(accessibility.EventLoadComplete)
  898. case EventAccessibilityNodesUpdated:
  899. v = new(accessibility.EventNodesUpdated)
  900. case CommandAnimationDisable:
  901. return emptyVal, nil
  902. case CommandAnimationEnable:
  903. return emptyVal, nil
  904. case CommandAnimationGetCurrentTime:
  905. v = new(animation.GetCurrentTimeReturns)
  906. case CommandAnimationGetPlaybackRate:
  907. v = new(animation.GetPlaybackRateReturns)
  908. case CommandAnimationReleaseAnimations:
  909. return emptyVal, nil
  910. case CommandAnimationResolveAnimation:
  911. v = new(animation.ResolveAnimationReturns)
  912. case CommandAnimationSeekAnimations:
  913. return emptyVal, nil
  914. case CommandAnimationSetPaused:
  915. return emptyVal, nil
  916. case CommandAnimationSetPlaybackRate:
  917. return emptyVal, nil
  918. case CommandAnimationSetTiming:
  919. return emptyVal, nil
  920. case EventAnimationAnimationCanceled:
  921. v = new(animation.EventAnimationCanceled)
  922. case EventAnimationAnimationCreated:
  923. v = new(animation.EventAnimationCreated)
  924. case EventAnimationAnimationStarted:
  925. v = new(animation.EventAnimationStarted)
  926. case EventAnimationAnimationUpdated:
  927. v = new(animation.EventAnimationUpdated)
  928. case CommandAuditsGetEncodedResponse:
  929. v = new(audits.GetEncodedResponseReturns)
  930. case CommandAuditsDisable:
  931. return emptyVal, nil
  932. case CommandAuditsEnable:
  933. return emptyVal, nil
  934. case CommandAuditsCheckContrast:
  935. return emptyVal, nil
  936. case CommandAuditsCheckFormsIssues:
  937. v = new(audits.CheckFormsIssuesReturns)
  938. case EventAuditsIssueAdded:
  939. v = new(audits.EventIssueAdded)
  940. case CommandAutofillTrigger:
  941. return emptyVal, nil
  942. case CommandAutofillSetAddresses:
  943. return emptyVal, nil
  944. case CommandAutofillDisable:
  945. return emptyVal, nil
  946. case CommandAutofillEnable:
  947. return emptyVal, nil
  948. case EventAutofillAddressFormFilled:
  949. v = new(autofill.EventAddressFormFilled)
  950. case CommandBackgroundServiceStartObserving:
  951. return emptyVal, nil
  952. case CommandBackgroundServiceStopObserving:
  953. return emptyVal, nil
  954. case CommandBackgroundServiceSetRecording:
  955. return emptyVal, nil
  956. case CommandBackgroundServiceClearEvents:
  957. return emptyVal, nil
  958. case EventBackgroundServiceRecordingStateChanged:
  959. v = new(backgroundservice.EventRecordingStateChanged)
  960. case EventBackgroundServiceBackgroundServiceEventReceived:
  961. v = new(backgroundservice.EventBackgroundServiceEventReceived)
  962. case CommandBluetoothEmulationEnable:
  963. return emptyVal, nil
  964. case CommandBluetoothEmulationSetSimulatedCentralState:
  965. return emptyVal, nil
  966. case CommandBluetoothEmulationDisable:
  967. return emptyVal, nil
  968. case CommandBluetoothEmulationSimulatePreconnectedPeripheral:
  969. return emptyVal, nil
  970. case CommandBluetoothEmulationSimulateAdvertisement:
  971. return emptyVal, nil
  972. case CommandBluetoothEmulationSimulateGATTOperationResponse:
  973. return emptyVal, nil
  974. case CommandBluetoothEmulationAddService:
  975. v = new(bluetoothemulation.AddServiceReturns)
  976. case CommandBluetoothEmulationRemoveService:
  977. return emptyVal, nil
  978. case CommandBluetoothEmulationAddCharacteristic:
  979. v = new(bluetoothemulation.AddCharacteristicReturns)
  980. case CommandBluetoothEmulationRemoveCharacteristic:
  981. return emptyVal, nil
  982. case CommandBluetoothEmulationAddDescriptor:
  983. v = new(bluetoothemulation.AddDescriptorReturns)
  984. case CommandBluetoothEmulationRemoveDescriptor:
  985. return emptyVal, nil
  986. case EventBluetoothEmulationGattOperationReceived:
  987. v = new(bluetoothemulation.EventGattOperationReceived)
  988. case CommandBrowserSetPermission:
  989. return emptyVal, nil
  990. case CommandBrowserGrantPermissions:
  991. return emptyVal, nil
  992. case CommandBrowserResetPermissions:
  993. return emptyVal, nil
  994. case CommandBrowserSetDownloadBehavior:
  995. return emptyVal, nil
  996. case CommandBrowserCancelDownload:
  997. return emptyVal, nil
  998. case CommandBrowserClose:
  999. return emptyVal, nil
  1000. case CommandBrowserCrash:
  1001. return emptyVal, nil
  1002. case CommandBrowserCrashGPUProcess:
  1003. return emptyVal, nil
  1004. case CommandBrowserGetVersion:
  1005. v = new(browser.GetVersionReturns)
  1006. case CommandBrowserGetBrowserCommandLine:
  1007. v = new(browser.GetBrowserCommandLineReturns)
  1008. case CommandBrowserGetHistograms:
  1009. v = new(browser.GetHistogramsReturns)
  1010. case CommandBrowserGetHistogram:
  1011. v = new(browser.GetHistogramReturns)
  1012. case CommandBrowserGetWindowBounds:
  1013. v = new(browser.GetWindowBoundsReturns)
  1014. case CommandBrowserGetWindowForTarget:
  1015. v = new(browser.GetWindowForTargetReturns)
  1016. case CommandBrowserSetWindowBounds:
  1017. return emptyVal, nil
  1018. case CommandBrowserSetDockTile:
  1019. return emptyVal, nil
  1020. case CommandBrowserExecuteBrowserCommand:
  1021. return emptyVal, nil
  1022. case CommandBrowserAddPrivacySandboxEnrollmentOverride:
  1023. return emptyVal, nil
  1024. case CommandBrowserAddPrivacySandboxCoordinatorKeyConfig:
  1025. return emptyVal, nil
  1026. case EventBrowserDownloadWillBegin:
  1027. v = new(browser.EventDownloadWillBegin)
  1028. case EventBrowserDownloadProgress:
  1029. v = new(browser.EventDownloadProgress)
  1030. case CommandCSSAddRule:
  1031. v = new(css.AddRuleReturns)
  1032. case CommandCSSCollectClassNames:
  1033. v = new(css.CollectClassNamesReturns)
  1034. case CommandCSSCreateStyleSheet:
  1035. v = new(css.CreateStyleSheetReturns)
  1036. case CommandCSSDisable:
  1037. return emptyVal, nil
  1038. case CommandCSSEnable:
  1039. return emptyVal, nil
  1040. case CommandCSSForcePseudoState:
  1041. return emptyVal, nil
  1042. case CommandCSSForceStartingStyle:
  1043. return emptyVal, nil
  1044. case CommandCSSGetBackgroundColors:
  1045. v = new(css.GetBackgroundColorsReturns)
  1046. case CommandCSSGetComputedStyleForNode:
  1047. v = new(css.GetComputedStyleForNodeReturns)
  1048. case CommandCSSResolveValues:
  1049. v = new(css.ResolveValuesReturns)
  1050. case CommandCSSGetLonghandProperties:
  1051. v = new(css.GetLonghandPropertiesReturns)
  1052. case CommandCSSGetInlineStylesForNode:
  1053. v = new(css.GetInlineStylesForNodeReturns)
  1054. case CommandCSSGetAnimatedStylesForNode:
  1055. v = new(css.GetAnimatedStylesForNodeReturns)
  1056. case CommandCSSGetMatchedStylesForNode:
  1057. v = new(css.GetMatchedStylesForNodeReturns)
  1058. case CommandCSSGetMediaQueries:
  1059. v = new(css.GetMediaQueriesReturns)
  1060. case CommandCSSGetPlatformFontsForNode:
  1061. v = new(css.GetPlatformFontsForNodeReturns)
  1062. case CommandCSSGetStyleSheetText:
  1063. v = new(css.GetStyleSheetTextReturns)
  1064. case CommandCSSGetLayersForNode:
  1065. v = new(css.GetLayersForNodeReturns)
  1066. case CommandCSSGetLocationForSelector:
  1067. v = new(css.GetLocationForSelectorReturns)
  1068. case CommandCSSTrackComputedStyleUpdatesForNode:
  1069. return emptyVal, nil
  1070. case CommandCSSTrackComputedStyleUpdates:
  1071. return emptyVal, nil
  1072. case CommandCSSTakeComputedStyleUpdates:
  1073. v = new(css.TakeComputedStyleUpdatesReturns)
  1074. case CommandCSSSetEffectivePropertyValueForNode:
  1075. return emptyVal, nil
  1076. case CommandCSSSetPropertyRulePropertyName:
  1077. v = new(css.SetPropertyRulePropertyNameReturns)
  1078. case CommandCSSSetKeyframeKey:
  1079. v = new(css.SetKeyframeKeyReturns)
  1080. case CommandCSSSetMediaText:
  1081. v = new(css.SetMediaTextReturns)
  1082. case CommandCSSSetContainerQueryText:
  1083. v = new(css.SetContainerQueryTextReturns)
  1084. case CommandCSSSetSupportsText:
  1085. v = new(css.SetSupportsTextReturns)
  1086. case CommandCSSSetScopeText:
  1087. v = new(css.SetScopeTextReturns)
  1088. case CommandCSSSetRuleSelector:
  1089. v = new(css.SetRuleSelectorReturns)
  1090. case CommandCSSSetStyleSheetText:
  1091. v = new(css.SetStyleSheetTextReturns)
  1092. case CommandCSSSetStyleTexts:
  1093. v = new(css.SetStyleTextsReturns)
  1094. case CommandCSSStartRuleUsageTracking:
  1095. return emptyVal, nil
  1096. case CommandCSSStopRuleUsageTracking:
  1097. v = new(css.StopRuleUsageTrackingReturns)
  1098. case CommandCSSTakeCoverageDelta:
  1099. v = new(css.TakeCoverageDeltaReturns)
  1100. case CommandCSSSetLocalFontsEnabled:
  1101. return emptyVal, nil
  1102. case EventCSSFontsUpdated:
  1103. v = new(css.EventFontsUpdated)
  1104. case EventCSSMediaQueryResultChanged:
  1105. v = new(css.EventMediaQueryResultChanged)
  1106. case EventCSSStyleSheetAdded:
  1107. v = new(css.EventStyleSheetAdded)
  1108. case EventCSSStyleSheetChanged:
  1109. v = new(css.EventStyleSheetChanged)
  1110. case EventCSSStyleSheetRemoved:
  1111. v = new(css.EventStyleSheetRemoved)
  1112. case EventCSSComputedStyleUpdated:
  1113. v = new(css.EventComputedStyleUpdated)
  1114. case CommandCacheStorageDeleteCache:
  1115. return emptyVal, nil
  1116. case CommandCacheStorageDeleteEntry:
  1117. return emptyVal, nil
  1118. case CommandCacheStorageRequestCacheNames:
  1119. v = new(cachestorage.RequestCacheNamesReturns)
  1120. case CommandCacheStorageRequestCachedResponse:
  1121. v = new(cachestorage.RequestCachedResponseReturns)
  1122. case CommandCacheStorageRequestEntries:
  1123. v = new(cachestorage.RequestEntriesReturns)
  1124. case CommandCastEnable:
  1125. return emptyVal, nil
  1126. case CommandCastDisable:
  1127. return emptyVal, nil
  1128. case CommandCastSetSinkToUse:
  1129. return emptyVal, nil
  1130. case CommandCastStartDesktopMirroring:
  1131. return emptyVal, nil
  1132. case CommandCastStartTabMirroring:
  1133. return emptyVal, nil
  1134. case CommandCastStopCasting:
  1135. return emptyVal, nil
  1136. case EventCastSinksUpdated:
  1137. v = new(cast.EventSinksUpdated)
  1138. case EventCastIssueUpdated:
  1139. v = new(cast.EventIssueUpdated)
  1140. case CommandDOMCollectClassNamesFromSubtree:
  1141. v = new(dom.CollectClassNamesFromSubtreeReturns)
  1142. case CommandDOMCopyTo:
  1143. v = new(dom.CopyToReturns)
  1144. case CommandDOMDescribeNode:
  1145. v = new(dom.DescribeNodeReturns)
  1146. case CommandDOMScrollIntoViewIfNeeded:
  1147. return emptyVal, nil
  1148. case CommandDOMDisable:
  1149. return emptyVal, nil
  1150. case CommandDOMDiscardSearchResults:
  1151. return emptyVal, nil
  1152. case CommandDOMEnable:
  1153. return emptyVal, nil
  1154. case CommandDOMFocus:
  1155. return emptyVal, nil
  1156. case CommandDOMGetAttributes:
  1157. v = new(dom.GetAttributesReturns)
  1158. case CommandDOMGetBoxModel:
  1159. v = new(dom.GetBoxModelReturns)
  1160. case CommandDOMGetContentQuads:
  1161. v = new(dom.GetContentQuadsReturns)
  1162. case CommandDOMGetDocument:
  1163. v = new(dom.GetDocumentReturns)
  1164. case CommandDOMGetNodesForSubtreeByStyle:
  1165. v = new(dom.GetNodesForSubtreeByStyleReturns)
  1166. case CommandDOMGetNodeForLocation:
  1167. v = new(dom.GetNodeForLocationReturns)
  1168. case CommandDOMGetOuterHTML:
  1169. v = new(dom.GetOuterHTMLReturns)
  1170. case CommandDOMGetRelayoutBoundary:
  1171. v = new(dom.GetRelayoutBoundaryReturns)
  1172. case CommandDOMGetSearchResults:
  1173. v = new(dom.GetSearchResultsReturns)
  1174. case CommandDOMMarkUndoableState:
  1175. return emptyVal, nil
  1176. case CommandDOMMoveTo:
  1177. v = new(dom.MoveToReturns)
  1178. case CommandDOMPerformSearch:
  1179. v = new(dom.PerformSearchReturns)
  1180. case CommandDOMPushNodeByPathToFrontend:
  1181. v = new(dom.PushNodeByPathToFrontendReturns)
  1182. case CommandDOMPushNodesByBackendIDsToFrontend:
  1183. v = new(dom.PushNodesByBackendIDsToFrontendReturns)
  1184. case CommandDOMQuerySelector:
  1185. v = new(dom.QuerySelectorReturns)
  1186. case CommandDOMQuerySelectorAll:
  1187. v = new(dom.QuerySelectorAllReturns)
  1188. case CommandDOMGetTopLayerElements:
  1189. v = new(dom.GetTopLayerElementsReturns)
  1190. case CommandDOMGetElementByRelation:
  1191. v = new(dom.GetElementByRelationReturns)
  1192. case CommandDOMRedo:
  1193. return emptyVal, nil
  1194. case CommandDOMRemoveAttribute:
  1195. return emptyVal, nil
  1196. case CommandDOMRemoveNode:
  1197. return emptyVal, nil
  1198. case CommandDOMRequestChildNodes:
  1199. return emptyVal, nil
  1200. case CommandDOMRequestNode:
  1201. v = new(dom.RequestNodeReturns)
  1202. case CommandDOMResolveNode:
  1203. v = new(dom.ResolveNodeReturns)
  1204. case CommandDOMSetAttributeValue:
  1205. return emptyVal, nil
  1206. case CommandDOMSetAttributesAsText:
  1207. return emptyVal, nil
  1208. case CommandDOMSetFileInputFiles:
  1209. return emptyVal, nil
  1210. case CommandDOMSetNodeStackTracesEnabled:
  1211. return emptyVal, nil
  1212. case CommandDOMGetNodeStackTraces:
  1213. v = new(dom.GetNodeStackTracesReturns)
  1214. case CommandDOMGetFileInfo:
  1215. v = new(dom.GetFileInfoReturns)
  1216. case CommandDOMGetDetachedDomNodes:
  1217. v = new(dom.GetDetachedDomNodesReturns)
  1218. case CommandDOMSetInspectedNode:
  1219. return emptyVal, nil
  1220. case CommandDOMSetNodeName:
  1221. v = new(dom.SetNodeNameReturns)
  1222. case CommandDOMSetNodeValue:
  1223. return emptyVal, nil
  1224. case CommandDOMSetOuterHTML:
  1225. return emptyVal, nil
  1226. case CommandDOMUndo:
  1227. return emptyVal, nil
  1228. case CommandDOMGetFrameOwner:
  1229. v = new(dom.GetFrameOwnerReturns)
  1230. case CommandDOMGetContainerForNode:
  1231. v = new(dom.GetContainerForNodeReturns)
  1232. case CommandDOMGetQueryingDescendantsForContainer:
  1233. v = new(dom.GetQueryingDescendantsForContainerReturns)
  1234. case CommandDOMGetAnchorElement:
  1235. v = new(dom.GetAnchorElementReturns)
  1236. case EventDOMAttributeModified:
  1237. v = new(dom.EventAttributeModified)
  1238. case EventDOMAttributeRemoved:
  1239. v = new(dom.EventAttributeRemoved)
  1240. case EventDOMCharacterDataModified:
  1241. v = new(dom.EventCharacterDataModified)
  1242. case EventDOMChildNodeCountUpdated:
  1243. v = new(dom.EventChildNodeCountUpdated)
  1244. case EventDOMChildNodeInserted:
  1245. v = new(dom.EventChildNodeInserted)
  1246. case EventDOMChildNodeRemoved:
  1247. v = new(dom.EventChildNodeRemoved)
  1248. case EventDOMDistributedNodesUpdated:
  1249. v = new(dom.EventDistributedNodesUpdated)
  1250. case EventDOMDocumentUpdated:
  1251. v = new(dom.EventDocumentUpdated)
  1252. case EventDOMInlineStyleInvalidated:
  1253. v = new(dom.EventInlineStyleInvalidated)
  1254. case EventDOMPseudoElementAdded:
  1255. v = new(dom.EventPseudoElementAdded)
  1256. case EventDOMTopLayerElementsUpdated:
  1257. v = new(dom.EventTopLayerElementsUpdated)
  1258. case EventDOMScrollableFlagUpdated:
  1259. v = new(dom.EventScrollableFlagUpdated)
  1260. case EventDOMPseudoElementRemoved:
  1261. v = new(dom.EventPseudoElementRemoved)
  1262. case EventDOMSetChildNodes:
  1263. v = new(dom.EventSetChildNodes)
  1264. case EventDOMShadowRootPopped:
  1265. v = new(dom.EventShadowRootPopped)
  1266. case EventDOMShadowRootPushed:
  1267. v = new(dom.EventShadowRootPushed)
  1268. case CommandDOMDebuggerGetEventListeners:
  1269. v = new(domdebugger.GetEventListenersReturns)
  1270. case CommandDOMDebuggerRemoveDOMBreakpoint:
  1271. return emptyVal, nil
  1272. case CommandDOMDebuggerRemoveEventListenerBreakpoint:
  1273. return emptyVal, nil
  1274. case CommandDOMDebuggerRemoveXHRBreakpoint:
  1275. return emptyVal, nil
  1276. case CommandDOMDebuggerSetBreakOnCSPViolation:
  1277. return emptyVal, nil
  1278. case CommandDOMDebuggerSetDOMBreakpoint:
  1279. return emptyVal, nil
  1280. case CommandDOMDebuggerSetEventListenerBreakpoint:
  1281. return emptyVal, nil
  1282. case CommandDOMDebuggerSetXHRBreakpoint:
  1283. return emptyVal, nil
  1284. case CommandDOMSnapshotDisable:
  1285. return emptyVal, nil
  1286. case CommandDOMSnapshotEnable:
  1287. return emptyVal, nil
  1288. case CommandDOMSnapshotCaptureSnapshot:
  1289. v = new(domsnapshot.CaptureSnapshotReturns)
  1290. case CommandDOMStorageClear:
  1291. return emptyVal, nil
  1292. case CommandDOMStorageDisable:
  1293. return emptyVal, nil
  1294. case CommandDOMStorageEnable:
  1295. return emptyVal, nil
  1296. case CommandDOMStorageGetDOMStorageItems:
  1297. v = new(domstorage.GetDOMStorageItemsReturns)
  1298. case CommandDOMStorageRemoveDOMStorageItem:
  1299. return emptyVal, nil
  1300. case CommandDOMStorageSetDOMStorageItem:
  1301. return emptyVal, nil
  1302. case EventDOMStorageDomStorageItemAdded:
  1303. v = new(domstorage.EventDomStorageItemAdded)
  1304. case EventDOMStorageDomStorageItemRemoved:
  1305. v = new(domstorage.EventDomStorageItemRemoved)
  1306. case EventDOMStorageDomStorageItemUpdated:
  1307. v = new(domstorage.EventDomStorageItemUpdated)
  1308. case EventDOMStorageDomStorageItemsCleared:
  1309. v = new(domstorage.EventDomStorageItemsCleared)
  1310. case CommandDebuggerContinueToLocation:
  1311. return emptyVal, nil
  1312. case CommandDebuggerDisable:
  1313. return emptyVal, nil
  1314. case CommandDebuggerEnable:
  1315. v = new(debugger.EnableReturns)
  1316. case CommandDebuggerEvaluateOnCallFrame:
  1317. v = new(debugger.EvaluateOnCallFrameReturns)
  1318. case CommandDebuggerGetPossibleBreakpoints:
  1319. v = new(debugger.GetPossibleBreakpointsReturns)
  1320. case CommandDebuggerGetScriptSource:
  1321. v = new(debugger.GetScriptSourceReturns)
  1322. case CommandDebuggerDisassembleWasmModule:
  1323. v = new(debugger.DisassembleWasmModuleReturns)
  1324. case CommandDebuggerNextWasmDisassemblyChunk:
  1325. v = new(debugger.NextWasmDisassemblyChunkReturns)
  1326. case CommandDebuggerGetStackTrace:
  1327. v = new(debugger.GetStackTraceReturns)
  1328. case CommandDebuggerPause:
  1329. return emptyVal, nil
  1330. case CommandDebuggerRemoveBreakpoint:
  1331. return emptyVal, nil
  1332. case CommandDebuggerRestartFrame:
  1333. return emptyVal, nil
  1334. case CommandDebuggerResume:
  1335. return emptyVal, nil
  1336. case CommandDebuggerSearchInContent:
  1337. v = new(debugger.SearchInContentReturns)
  1338. case CommandDebuggerSetAsyncCallStackDepth:
  1339. return emptyVal, nil
  1340. case CommandDebuggerSetBlackboxExecutionContexts:
  1341. return emptyVal, nil
  1342. case CommandDebuggerSetBlackboxPatterns:
  1343. return emptyVal, nil
  1344. case CommandDebuggerSetBlackboxedRanges:
  1345. return emptyVal, nil
  1346. case CommandDebuggerSetBreakpoint:
  1347. v = new(debugger.SetBreakpointReturns)
  1348. case CommandDebuggerSetInstrumentationBreakpoint:
  1349. v = new(debugger.SetInstrumentationBreakpointReturns)
  1350. case CommandDebuggerSetBreakpointByURL:
  1351. v = new(debugger.SetBreakpointByURLReturns)
  1352. case CommandDebuggerSetBreakpointOnFunctionCall:
  1353. v = new(debugger.SetBreakpointOnFunctionCallReturns)
  1354. case CommandDebuggerSetBreakpointsActive:
  1355. return emptyVal, nil
  1356. case CommandDebuggerSetPauseOnExceptions:
  1357. return emptyVal, nil
  1358. case CommandDebuggerSetReturnValue:
  1359. return emptyVal, nil
  1360. case CommandDebuggerSetScriptSource:
  1361. v = new(debugger.SetScriptSourceReturns)
  1362. case CommandDebuggerSetSkipAllPauses:
  1363. return emptyVal, nil
  1364. case CommandDebuggerSetVariableValue:
  1365. return emptyVal, nil
  1366. case CommandDebuggerStepInto:
  1367. return emptyVal, nil
  1368. case CommandDebuggerStepOut:
  1369. return emptyVal, nil
  1370. case CommandDebuggerStepOver:
  1371. return emptyVal, nil
  1372. case EventDebuggerPaused:
  1373. v = new(debugger.EventPaused)
  1374. case EventDebuggerResumed:
  1375. v = new(debugger.EventResumed)
  1376. case EventDebuggerScriptFailedToParse:
  1377. v = new(debugger.EventScriptFailedToParse)
  1378. case EventDebuggerScriptParsed:
  1379. v = new(debugger.EventScriptParsed)
  1380. case CommandDeviceAccessEnable:
  1381. return emptyVal, nil
  1382. case CommandDeviceAccessDisable:
  1383. return emptyVal, nil
  1384. case CommandDeviceAccessSelectPrompt:
  1385. return emptyVal, nil
  1386. case CommandDeviceAccessCancelPrompt:
  1387. return emptyVal, nil
  1388. case EventDeviceAccessDeviceRequestPrompted:
  1389. v = new(deviceaccess.EventDeviceRequestPrompted)
  1390. case CommandDeviceOrientationClearDeviceOrientationOverride:
  1391. return emptyVal, nil
  1392. case CommandDeviceOrientationSetDeviceOrientationOverride:
  1393. return emptyVal, nil
  1394. case CommandEmulationClearDeviceMetricsOverride:
  1395. return emptyVal, nil
  1396. case CommandEmulationClearGeolocationOverride:
  1397. return emptyVal, nil
  1398. case CommandEmulationResetPageScaleFactor:
  1399. return emptyVal, nil
  1400. case CommandEmulationSetFocusEmulationEnabled:
  1401. return emptyVal, nil
  1402. case CommandEmulationSetAutoDarkModeOverride:
  1403. return emptyVal, nil
  1404. case CommandEmulationSetCPUThrottlingRate:
  1405. return emptyVal, nil
  1406. case CommandEmulationSetDefaultBackgroundColorOverride:
  1407. return emptyVal, nil
  1408. case CommandEmulationSetSafeAreaInsetsOverride:
  1409. return emptyVal, nil
  1410. case CommandEmulationSetDeviceMetricsOverride:
  1411. return emptyVal, nil
  1412. case CommandEmulationSetDevicePostureOverride:
  1413. return emptyVal, nil
  1414. case CommandEmulationClearDevicePostureOverride:
  1415. return emptyVal, nil
  1416. case CommandEmulationSetDisplayFeaturesOverride:
  1417. return emptyVal, nil
  1418. case CommandEmulationClearDisplayFeaturesOverride:
  1419. return emptyVal, nil
  1420. case CommandEmulationSetScrollbarsHidden:
  1421. return emptyVal, nil
  1422. case CommandEmulationSetDocumentCookieDisabled:
  1423. return emptyVal, nil
  1424. case CommandEmulationSetEmitTouchEventsForMouse:
  1425. return emptyVal, nil
  1426. case CommandEmulationSetEmulatedMedia:
  1427. return emptyVal, nil
  1428. case CommandEmulationSetEmulatedVisionDeficiency:
  1429. return emptyVal, nil
  1430. case CommandEmulationSetGeolocationOverride:
  1431. return emptyVal, nil
  1432. case CommandEmulationGetOverriddenSensorInformation:
  1433. v = new(emulation.GetOverriddenSensorInformationReturns)
  1434. case CommandEmulationSetSensorOverrideEnabled:
  1435. return emptyVal, nil
  1436. case CommandEmulationSetSensorOverrideReadings:
  1437. return emptyVal, nil
  1438. case CommandEmulationSetPressureSourceOverrideEnabled:
  1439. return emptyVal, nil
  1440. case CommandEmulationSetPressureStateOverride:
  1441. return emptyVal, nil
  1442. case CommandEmulationSetIdleOverride:
  1443. return emptyVal, nil
  1444. case CommandEmulationClearIdleOverride:
  1445. return emptyVal, nil
  1446. case CommandEmulationSetPageScaleFactor:
  1447. return emptyVal, nil
  1448. case CommandEmulationSetScriptExecutionDisabled:
  1449. return emptyVal, nil
  1450. case CommandEmulationSetTouchEmulationEnabled:
  1451. return emptyVal, nil
  1452. case CommandEmulationSetVirtualTimePolicy:
  1453. v = new(emulation.SetVirtualTimePolicyReturns)
  1454. case CommandEmulationSetLocaleOverride:
  1455. return emptyVal, nil
  1456. case CommandEmulationSetTimezoneOverride:
  1457. return emptyVal, nil
  1458. case CommandEmulationSetDisabledImageTypes:
  1459. return emptyVal, nil
  1460. case CommandEmulationSetHardwareConcurrencyOverride:
  1461. return emptyVal, nil
  1462. case CommandEmulationSetUserAgentOverride:
  1463. return emptyVal, nil
  1464. case CommandEmulationSetAutomationOverride:
  1465. return emptyVal, nil
  1466. case EventEmulationVirtualTimeBudgetExpired:
  1467. v = new(emulation.EventVirtualTimeBudgetExpired)
  1468. case CommandEventBreakpointsSetInstrumentationBreakpoint:
  1469. return emptyVal, nil
  1470. case CommandEventBreakpointsRemoveInstrumentationBreakpoint:
  1471. return emptyVal, nil
  1472. case CommandEventBreakpointsDisable:
  1473. return emptyVal, nil
  1474. case CommandExtensionsLoadUnpacked:
  1475. v = new(extensions.LoadUnpackedReturns)
  1476. case CommandExtensionsUninstall:
  1477. return emptyVal, nil
  1478. case CommandExtensionsGetStorageItems:
  1479. v = new(extensions.GetStorageItemsReturns)
  1480. case CommandExtensionsRemoveStorageItems:
  1481. return emptyVal, nil
  1482. case CommandExtensionsClearStorageItems:
  1483. return emptyVal, nil
  1484. case CommandExtensionsSetStorageItems:
  1485. return emptyVal, nil
  1486. case CommandFedCmEnable:
  1487. return emptyVal, nil
  1488. case CommandFedCmDisable:
  1489. return emptyVal, nil
  1490. case CommandFedCmSelectAccount:
  1491. return emptyVal, nil
  1492. case CommandFedCmClickDialogButton:
  1493. return emptyVal, nil
  1494. case CommandFedCmOpenURL:
  1495. return emptyVal, nil
  1496. case CommandFedCmDismissDialog:
  1497. return emptyVal, nil
  1498. case CommandFedCmResetCooldown:
  1499. return emptyVal, nil
  1500. case EventFedCmDialogShown:
  1501. v = new(fedcm.EventDialogShown)
  1502. case EventFedCmDialogClosed:
  1503. v = new(fedcm.EventDialogClosed)
  1504. case CommandFetchDisable:
  1505. return emptyVal, nil
  1506. case CommandFetchEnable:
  1507. return emptyVal, nil
  1508. case CommandFetchFailRequest:
  1509. return emptyVal, nil
  1510. case CommandFetchFulfillRequest:
  1511. return emptyVal, nil
  1512. case CommandFetchContinueRequest:
  1513. return emptyVal, nil
  1514. case CommandFetchContinueWithAuth:
  1515. return emptyVal, nil
  1516. case CommandFetchContinueResponse:
  1517. return emptyVal, nil
  1518. case CommandFetchGetResponseBody:
  1519. v = new(fetch.GetResponseBodyReturns)
  1520. case CommandFetchTakeResponseBodyAsStream:
  1521. v = new(fetch.TakeResponseBodyAsStreamReturns)
  1522. case EventFetchRequestPaused:
  1523. v = new(fetch.EventRequestPaused)
  1524. case EventFetchAuthRequired:
  1525. v = new(fetch.EventAuthRequired)
  1526. case CommandFileSystemGetDirectory:
  1527. v = new(filesystem.GetDirectoryReturns)
  1528. case CommandHeadlessExperimentalBeginFrame:
  1529. v = new(headlessexperimental.BeginFrameReturns)
  1530. case CommandHeapProfilerAddInspectedHeapObject:
  1531. return emptyVal, nil
  1532. case CommandHeapProfilerCollectGarbage:
  1533. return emptyVal, nil
  1534. case CommandHeapProfilerDisable:
  1535. return emptyVal, nil
  1536. case CommandHeapProfilerEnable:
  1537. return emptyVal, nil
  1538. case CommandHeapProfilerGetHeapObjectID:
  1539. v = new(heapprofiler.GetHeapObjectIDReturns)
  1540. case CommandHeapProfilerGetObjectByHeapObjectID:
  1541. v = new(heapprofiler.GetObjectByHeapObjectIDReturns)
  1542. case CommandHeapProfilerGetSamplingProfile:
  1543. v = new(heapprofiler.GetSamplingProfileReturns)
  1544. case CommandHeapProfilerStartSampling:
  1545. return emptyVal, nil
  1546. case CommandHeapProfilerStartTrackingHeapObjects:
  1547. return emptyVal, nil
  1548. case CommandHeapProfilerStopSampling:
  1549. v = new(heapprofiler.StopSamplingReturns)
  1550. case CommandHeapProfilerStopTrackingHeapObjects:
  1551. return emptyVal, nil
  1552. case CommandHeapProfilerTakeHeapSnapshot:
  1553. return emptyVal, nil
  1554. case EventHeapProfilerAddHeapSnapshotChunk:
  1555. v = new(heapprofiler.EventAddHeapSnapshotChunk)
  1556. case EventHeapProfilerHeapStatsUpdate:
  1557. v = new(heapprofiler.EventHeapStatsUpdate)
  1558. case EventHeapProfilerLastSeenObjectID:
  1559. v = new(heapprofiler.EventLastSeenObjectID)
  1560. case EventHeapProfilerReportHeapSnapshotProgress:
  1561. v = new(heapprofiler.EventReportHeapSnapshotProgress)
  1562. case EventHeapProfilerResetProfiles:
  1563. v = new(heapprofiler.EventResetProfiles)
  1564. case CommandIOClose:
  1565. return emptyVal, nil
  1566. case CommandIORead:
  1567. v = new(io.ReadReturns)
  1568. case CommandIOResolveBlob:
  1569. v = new(io.ResolveBlobReturns)
  1570. case CommandIndexedDBClearObjectStore:
  1571. return emptyVal, nil
  1572. case CommandIndexedDBDeleteDatabase:
  1573. return emptyVal, nil
  1574. case CommandIndexedDBDeleteObjectStoreEntries:
  1575. return emptyVal, nil
  1576. case CommandIndexedDBDisable:
  1577. return emptyVal, nil
  1578. case CommandIndexedDBEnable:
  1579. return emptyVal, nil
  1580. case CommandIndexedDBRequestData:
  1581. v = new(indexeddb.RequestDataReturns)
  1582. case CommandIndexedDBGetMetadata:
  1583. v = new(indexeddb.GetMetadataReturns)
  1584. case CommandIndexedDBRequestDatabase:
  1585. v = new(indexeddb.RequestDatabaseReturns)
  1586. case CommandIndexedDBRequestDatabaseNames:
  1587. v = new(indexeddb.RequestDatabaseNamesReturns)
  1588. case CommandInputDispatchDragEvent:
  1589. return emptyVal, nil
  1590. case CommandInputDispatchKeyEvent:
  1591. return emptyVal, nil
  1592. case CommandInputInsertText:
  1593. return emptyVal, nil
  1594. case CommandInputImeSetComposition:
  1595. return emptyVal, nil
  1596. case CommandInputDispatchMouseEvent:
  1597. return emptyVal, nil
  1598. case CommandInputDispatchTouchEvent:
  1599. return emptyVal, nil
  1600. case CommandInputCancelDragging:
  1601. return emptyVal, nil
  1602. case CommandInputEmulateTouchFromMouseEvent:
  1603. return emptyVal, nil
  1604. case CommandInputSetIgnoreInputEvents:
  1605. return emptyVal, nil
  1606. case CommandInputSetInterceptDrags:
  1607. return emptyVal, nil
  1608. case CommandInputSynthesizePinchGesture:
  1609. return emptyVal, nil
  1610. case CommandInputSynthesizeScrollGesture:
  1611. return emptyVal, nil
  1612. case CommandInputSynthesizeTapGesture:
  1613. return emptyVal, nil
  1614. case EventInputDragIntercepted:
  1615. v = new(input.EventDragIntercepted)
  1616. case CommandInspectorDisable:
  1617. return emptyVal, nil
  1618. case CommandInspectorEnable:
  1619. return emptyVal, nil
  1620. case EventInspectorDetached:
  1621. v = new(inspector.EventDetached)
  1622. case EventInspectorTargetCrashed:
  1623. v = new(inspector.EventTargetCrashed)
  1624. case EventInspectorTargetReloadedAfterCrash:
  1625. v = new(inspector.EventTargetReloadedAfterCrash)
  1626. case CommandLayerTreeCompositingReasons:
  1627. v = new(layertree.CompositingReasonsReturns)
  1628. case CommandLayerTreeDisable:
  1629. return emptyVal, nil
  1630. case CommandLayerTreeEnable:
  1631. return emptyVal, nil
  1632. case CommandLayerTreeLoadSnapshot:
  1633. v = new(layertree.LoadSnapshotReturns)
  1634. case CommandLayerTreeMakeSnapshot:
  1635. v = new(layertree.MakeSnapshotReturns)
  1636. case CommandLayerTreeProfileSnapshot:
  1637. v = new(layertree.ProfileSnapshotReturns)
  1638. case CommandLayerTreeReleaseSnapshot:
  1639. return emptyVal, nil
  1640. case CommandLayerTreeReplaySnapshot:
  1641. v = new(layertree.ReplaySnapshotReturns)
  1642. case CommandLayerTreeSnapshotCommandLog:
  1643. v = new(layertree.SnapshotCommandLogReturns)
  1644. case EventLayerTreeLayerPainted:
  1645. v = new(layertree.EventLayerPainted)
  1646. case EventLayerTreeLayerTreeDidChange:
  1647. v = new(layertree.EventLayerTreeDidChange)
  1648. case CommandLogClear:
  1649. return emptyVal, nil
  1650. case CommandLogDisable:
  1651. return emptyVal, nil
  1652. case CommandLogEnable:
  1653. return emptyVal, nil
  1654. case CommandLogStartViolationsReport:
  1655. return emptyVal, nil
  1656. case CommandLogStopViolationsReport:
  1657. return emptyVal, nil
  1658. case EventLogEntryAdded:
  1659. v = new(log.EventEntryAdded)
  1660. case CommandMediaEnable:
  1661. return emptyVal, nil
  1662. case CommandMediaDisable:
  1663. return emptyVal, nil
  1664. case EventMediaPlayerPropertiesChanged:
  1665. v = new(media.EventPlayerPropertiesChanged)
  1666. case EventMediaPlayerEventsAdded:
  1667. v = new(media.EventPlayerEventsAdded)
  1668. case EventMediaPlayerMessagesLogged:
  1669. v = new(media.EventPlayerMessagesLogged)
  1670. case EventMediaPlayerErrorsRaised:
  1671. v = new(media.EventPlayerErrorsRaised)
  1672. case EventMediaPlayersCreated:
  1673. v = new(media.EventPlayersCreated)
  1674. case CommandMemoryGetDOMCounters:
  1675. v = new(memory.GetDOMCountersReturns)
  1676. case CommandMemoryGetDOMCountersForLeakDetection:
  1677. v = new(memory.GetDOMCountersForLeakDetectionReturns)
  1678. case CommandMemoryPrepareForLeakDetection:
  1679. return emptyVal, nil
  1680. case CommandMemoryForciblyPurgeJavaScriptMemory:
  1681. return emptyVal, nil
  1682. case CommandMemorySetPressureNotificationsSuppressed:
  1683. return emptyVal, nil
  1684. case CommandMemorySimulatePressureNotification:
  1685. return emptyVal, nil
  1686. case CommandMemoryStartSampling:
  1687. return emptyVal, nil
  1688. case CommandMemoryStopSampling:
  1689. return emptyVal, nil
  1690. case CommandMemoryGetAllTimeSamplingProfile:
  1691. v = new(memory.GetAllTimeSamplingProfileReturns)
  1692. case CommandMemoryGetBrowserSamplingProfile:
  1693. v = new(memory.GetBrowserSamplingProfileReturns)
  1694. case CommandMemoryGetSamplingProfile:
  1695. v = new(memory.GetSamplingProfileReturns)
  1696. case CommandNetworkSetAcceptedEncodings:
  1697. return emptyVal, nil
  1698. case CommandNetworkClearAcceptedEncodingsOverride:
  1699. return emptyVal, nil
  1700. case CommandNetworkClearBrowserCache:
  1701. return emptyVal, nil
  1702. case CommandNetworkClearBrowserCookies:
  1703. return emptyVal, nil
  1704. case CommandNetworkDeleteCookies:
  1705. return emptyVal, nil
  1706. case CommandNetworkDisable:
  1707. return emptyVal, nil
  1708. case CommandNetworkEmulateNetworkConditions:
  1709. return emptyVal, nil
  1710. case CommandNetworkEnable:
  1711. return emptyVal, nil
  1712. case CommandNetworkGetCertificate:
  1713. v = new(network.GetCertificateReturns)
  1714. case CommandNetworkGetCookies:
  1715. v = new(network.GetCookiesReturns)
  1716. case CommandNetworkGetResponseBody:
  1717. v = new(network.GetResponseBodyReturns)
  1718. case CommandNetworkGetRequestPostData:
  1719. v = new(network.GetRequestPostDataReturns)
  1720. case CommandNetworkGetResponseBodyForInterception:
  1721. v = new(network.GetResponseBodyForInterceptionReturns)
  1722. case CommandNetworkTakeResponseBodyForInterceptionAsStream:
  1723. v = new(network.TakeResponseBodyForInterceptionAsStreamReturns)
  1724. case CommandNetworkReplayXHR:
  1725. return emptyVal, nil
  1726. case CommandNetworkSearchInResponseBody:
  1727. v = new(network.SearchInResponseBodyReturns)
  1728. case CommandNetworkSetBlockedURLs:
  1729. return emptyVal, nil
  1730. case CommandNetworkSetBypassServiceWorker:
  1731. return emptyVal, nil
  1732. case CommandNetworkSetCacheDisabled:
  1733. return emptyVal, nil
  1734. case CommandNetworkSetCookie:
  1735. return emptyVal, nil
  1736. case CommandNetworkSetCookies:
  1737. return emptyVal, nil
  1738. case CommandNetworkSetExtraHTTPHeaders:
  1739. return emptyVal, nil
  1740. case CommandNetworkSetAttachDebugStack:
  1741. return emptyVal, nil
  1742. case CommandNetworkStreamResourceContent:
  1743. v = new(network.StreamResourceContentReturns)
  1744. case CommandNetworkGetSecurityIsolationStatus:
  1745. v = new(network.GetSecurityIsolationStatusReturns)
  1746. case CommandNetworkEnableReportingAPI:
  1747. return emptyVal, nil
  1748. case CommandNetworkLoadNetworkResource:
  1749. v = new(network.LoadNetworkResourceReturns)
  1750. case CommandNetworkSetCookieControls:
  1751. return emptyVal, nil
  1752. case EventNetworkDataReceived:
  1753. v = new(network.EventDataReceived)
  1754. case EventNetworkEventSourceMessageReceived:
  1755. v = new(network.EventEventSourceMessageReceived)
  1756. case EventNetworkLoadingFailed:
  1757. v = new(network.EventLoadingFailed)
  1758. case EventNetworkLoadingFinished:
  1759. v = new(network.EventLoadingFinished)
  1760. case EventNetworkRequestServedFromCache:
  1761. v = new(network.EventRequestServedFromCache)
  1762. case EventNetworkRequestWillBeSent:
  1763. v = new(network.EventRequestWillBeSent)
  1764. case EventNetworkResourceChangedPriority:
  1765. v = new(network.EventResourceChangedPriority)
  1766. case EventNetworkSignedExchangeReceived:
  1767. v = new(network.EventSignedExchangeReceived)
  1768. case EventNetworkResponseReceived:
  1769. v = new(network.EventResponseReceived)
  1770. case EventNetworkWebSocketClosed:
  1771. v = new(network.EventWebSocketClosed)
  1772. case EventNetworkWebSocketCreated:
  1773. v = new(network.EventWebSocketCreated)
  1774. case EventNetworkWebSocketFrameError:
  1775. v = new(network.EventWebSocketFrameError)
  1776. case EventNetworkWebSocketFrameReceived:
  1777. v = new(network.EventWebSocketFrameReceived)
  1778. case EventNetworkWebSocketFrameSent:
  1779. v = new(network.EventWebSocketFrameSent)
  1780. case EventNetworkWebSocketHandshakeResponseReceived:
  1781. v = new(network.EventWebSocketHandshakeResponseReceived)
  1782. case EventNetworkWebSocketWillSendHandshakeRequest:
  1783. v = new(network.EventWebSocketWillSendHandshakeRequest)
  1784. case EventNetworkWebTransportCreated:
  1785. v = new(network.EventWebTransportCreated)
  1786. case EventNetworkWebTransportConnectionEstablished:
  1787. v = new(network.EventWebTransportConnectionEstablished)
  1788. case EventNetworkWebTransportClosed:
  1789. v = new(network.EventWebTransportClosed)
  1790. case EventNetworkDirectTCPSocketCreated:
  1791. v = new(network.EventDirectTCPSocketCreated)
  1792. case EventNetworkDirectTCPSocketOpened:
  1793. v = new(network.EventDirectTCPSocketOpened)
  1794. case EventNetworkDirectTCPSocketAborted:
  1795. v = new(network.EventDirectTCPSocketAborted)
  1796. case EventNetworkDirectTCPSocketClosed:
  1797. v = new(network.EventDirectTCPSocketClosed)
  1798. case EventNetworkRequestWillBeSentExtraInfo:
  1799. v = new(network.EventRequestWillBeSentExtraInfo)
  1800. case EventNetworkResponseReceivedExtraInfo:
  1801. v = new(network.EventResponseReceivedExtraInfo)
  1802. case EventNetworkResponseReceivedEarlyHints:
  1803. v = new(network.EventResponseReceivedEarlyHints)
  1804. case EventNetworkTrustTokenOperationDone:
  1805. v = new(network.EventTrustTokenOperationDone)
  1806. case EventNetworkPolicyUpdated:
  1807. v = new(network.EventPolicyUpdated)
  1808. case EventNetworkSubresourceWebBundleMetadataReceived:
  1809. v = new(network.EventSubresourceWebBundleMetadataReceived)
  1810. case EventNetworkSubresourceWebBundleMetadataError:
  1811. v = new(network.EventSubresourceWebBundleMetadataError)
  1812. case EventNetworkSubresourceWebBundleInnerResponseParsed:
  1813. v = new(network.EventSubresourceWebBundleInnerResponseParsed)
  1814. case EventNetworkSubresourceWebBundleInnerResponseError:
  1815. v = new(network.EventSubresourceWebBundleInnerResponseError)
  1816. case EventNetworkReportingAPIReportAdded:
  1817. v = new(network.EventReportingAPIReportAdded)
  1818. case EventNetworkReportingAPIReportUpdated:
  1819. v = new(network.EventReportingAPIReportUpdated)
  1820. case EventNetworkReportingAPIEndpointsChangedForOrigin:
  1821. v = new(network.EventReportingAPIEndpointsChangedForOrigin)
  1822. case CommandOverlayDisable:
  1823. return emptyVal, nil
  1824. case CommandOverlayEnable:
  1825. return emptyVal, nil
  1826. case CommandOverlayGetHighlightObjectForTest:
  1827. v = new(overlay.GetHighlightObjectForTestReturns)
  1828. case CommandOverlayGetGridHighlightObjectsForTest:
  1829. v = new(overlay.GetGridHighlightObjectsForTestReturns)
  1830. case CommandOverlayGetSourceOrderHighlightObjectForTest:
  1831. v = new(overlay.GetSourceOrderHighlightObjectForTestReturns)
  1832. case CommandOverlayHideHighlight:
  1833. return emptyVal, nil
  1834. case CommandOverlayHighlightNode:
  1835. return emptyVal, nil
  1836. case CommandOverlayHighlightQuad:
  1837. return emptyVal, nil
  1838. case CommandOverlayHighlightRect:
  1839. return emptyVal, nil
  1840. case CommandOverlayHighlightSourceOrder:
  1841. return emptyVal, nil
  1842. case CommandOverlaySetInspectMode:
  1843. return emptyVal, nil
  1844. case CommandOverlaySetShowAdHighlights:
  1845. return emptyVal, nil
  1846. case CommandOverlaySetPausedInDebuggerMessage:
  1847. return emptyVal, nil
  1848. case CommandOverlaySetShowDebugBorders:
  1849. return emptyVal, nil
  1850. case CommandOverlaySetShowFPSCounter:
  1851. return emptyVal, nil
  1852. case CommandOverlaySetShowGridOverlays:
  1853. return emptyVal, nil
  1854. case CommandOverlaySetShowFlexOverlays:
  1855. return emptyVal, nil
  1856. case CommandOverlaySetShowScrollSnapOverlays:
  1857. return emptyVal, nil
  1858. case CommandOverlaySetShowContainerQueryOverlays:
  1859. return emptyVal, nil
  1860. case CommandOverlaySetShowPaintRects:
  1861. return emptyVal, nil
  1862. case CommandOverlaySetShowLayoutShiftRegions:
  1863. return emptyVal, nil
  1864. case CommandOverlaySetShowScrollBottleneckRects:
  1865. return emptyVal, nil
  1866. case CommandOverlaySetShowViewportSizeOnResize:
  1867. return emptyVal, nil
  1868. case CommandOverlaySetShowHinge:
  1869. return emptyVal, nil
  1870. case CommandOverlaySetShowIsolatedElements:
  1871. return emptyVal, nil
  1872. case CommandOverlaySetShowWindowControlsOverlay:
  1873. return emptyVal, nil
  1874. case EventOverlayInspectNodeRequested:
  1875. v = new(overlay.EventInspectNodeRequested)
  1876. case EventOverlayNodeHighlightRequested:
  1877. v = new(overlay.EventNodeHighlightRequested)
  1878. case EventOverlayScreenshotRequested:
  1879. v = new(overlay.EventScreenshotRequested)
  1880. case EventOverlayInspectModeCanceled:
  1881. v = new(overlay.EventInspectModeCanceled)
  1882. case CommandPWAGetOsAppState:
  1883. v = new(pwa.GetOsAppStateReturns)
  1884. case CommandPWAInstall:
  1885. return emptyVal, nil
  1886. case CommandPWAUninstall:
  1887. return emptyVal, nil
  1888. case CommandPWALaunch:
  1889. v = new(pwa.LaunchReturns)
  1890. case CommandPWALaunchFilesInApp:
  1891. v = new(pwa.LaunchFilesInAppReturns)
  1892. case CommandPWAOpenCurrentPageInApp:
  1893. return emptyVal, nil
  1894. case CommandPWAChangeAppUserSettings:
  1895. return emptyVal, nil
  1896. case CommandPageAddScriptToEvaluateOnNewDocument:
  1897. v = new(page.AddScriptToEvaluateOnNewDocumentReturns)
  1898. case CommandPageBringToFront:
  1899. return emptyVal, nil
  1900. case CommandPageCaptureScreenshot:
  1901. v = new(page.CaptureScreenshotReturns)
  1902. case CommandPageCaptureSnapshot:
  1903. v = new(page.CaptureSnapshotReturns)
  1904. case CommandPageCreateIsolatedWorld:
  1905. v = new(page.CreateIsolatedWorldReturns)
  1906. case CommandPageDisable:
  1907. return emptyVal, nil
  1908. case CommandPageEnable:
  1909. return emptyVal, nil
  1910. case CommandPageGetAppManifest:
  1911. v = new(page.GetAppManifestReturns)
  1912. case CommandPageGetInstallabilityErrors:
  1913. v = new(page.GetInstallabilityErrorsReturns)
  1914. case CommandPageGetAppID:
  1915. v = new(page.GetAppIDReturns)
  1916. case CommandPageGetAdScriptID:
  1917. v = new(page.GetAdScriptIDReturns)
  1918. case CommandPageGetFrameTree:
  1919. v = new(page.GetFrameTreeReturns)
  1920. case CommandPageGetLayoutMetrics:
  1921. v = new(page.GetLayoutMetricsReturns)
  1922. case CommandPageGetNavigationHistory:
  1923. v = new(page.GetNavigationHistoryReturns)
  1924. case CommandPageResetNavigationHistory:
  1925. return emptyVal, nil
  1926. case CommandPageGetResourceContent:
  1927. v = new(page.GetResourceContentReturns)
  1928. case CommandPageGetResourceTree:
  1929. v = new(page.GetResourceTreeReturns)
  1930. case CommandPageHandleJavaScriptDialog:
  1931. return emptyVal, nil
  1932. case CommandPageNavigate:
  1933. v = new(page.NavigateReturns)
  1934. case CommandPageNavigateToHistoryEntry:
  1935. return emptyVal, nil
  1936. case CommandPagePrintToPDF:
  1937. v = new(page.PrintToPDFReturns)
  1938. case CommandPageReload:
  1939. return emptyVal, nil
  1940. case CommandPageRemoveScriptToEvaluateOnNewDocument:
  1941. return emptyVal, nil
  1942. case CommandPageScreencastFrameAck:
  1943. return emptyVal, nil
  1944. case CommandPageSearchInResource:
  1945. v = new(page.SearchInResourceReturns)
  1946. case CommandPageSetAdBlockingEnabled:
  1947. return emptyVal, nil
  1948. case CommandPageSetBypassCSP:
  1949. return emptyVal, nil
  1950. case CommandPageGetPermissionsPolicyState:
  1951. v = new(page.GetPermissionsPolicyStateReturns)
  1952. case CommandPageGetOriginTrials:
  1953. v = new(page.GetOriginTrialsReturns)
  1954. case CommandPageSetFontFamilies:
  1955. return emptyVal, nil
  1956. case CommandPageSetFontSizes:
  1957. return emptyVal, nil
  1958. case CommandPageSetDocumentContent:
  1959. return emptyVal, nil
  1960. case CommandPageSetLifecycleEventsEnabled:
  1961. return emptyVal, nil
  1962. case CommandPageStartScreencast:
  1963. return emptyVal, nil
  1964. case CommandPageStopLoading:
  1965. return emptyVal, nil
  1966. case CommandPageCrash:
  1967. return emptyVal, nil
  1968. case CommandPageClose:
  1969. return emptyVal, nil
  1970. case CommandPageSetWebLifecycleState:
  1971. return emptyVal, nil
  1972. case CommandPageStopScreencast:
  1973. return emptyVal, nil
  1974. case CommandPageProduceCompilationCache:
  1975. return emptyVal, nil
  1976. case CommandPageAddCompilationCache:
  1977. return emptyVal, nil
  1978. case CommandPageClearCompilationCache:
  1979. return emptyVal, nil
  1980. case CommandPageSetSPCTransactionMode:
  1981. return emptyVal, nil
  1982. case CommandPageSetRPHRegistrationMode:
  1983. return emptyVal, nil
  1984. case CommandPageGenerateTestReport:
  1985. return emptyVal, nil
  1986. case CommandPageWaitForDebugger:
  1987. return emptyVal, nil
  1988. case CommandPageSetInterceptFileChooserDialog:
  1989. return emptyVal, nil
  1990. case CommandPageSetPrerenderingAllowed:
  1991. return emptyVal, nil
  1992. case EventPageDomContentEventFired:
  1993. v = new(page.EventDomContentEventFired)
  1994. case EventPageFileChooserOpened:
  1995. v = new(page.EventFileChooserOpened)
  1996. case EventPageFrameAttached:
  1997. v = new(page.EventFrameAttached)
  1998. case EventPageFrameDetached:
  1999. v = new(page.EventFrameDetached)
  2000. case EventPageFrameSubtreeWillBeDetached:
  2001. v = new(page.EventFrameSubtreeWillBeDetached)
  2002. case EventPageFrameNavigated:
  2003. v = new(page.EventFrameNavigated)
  2004. case EventPageDocumentOpened:
  2005. v = new(page.EventDocumentOpened)
  2006. case EventPageFrameResized:
  2007. v = new(page.EventFrameResized)
  2008. case EventPageFrameStartedNavigating:
  2009. v = new(page.EventFrameStartedNavigating)
  2010. case EventPageFrameRequestedNavigation:
  2011. v = new(page.EventFrameRequestedNavigation)
  2012. case EventPageFrameStartedLoading:
  2013. v = new(page.EventFrameStartedLoading)
  2014. case EventPageFrameStoppedLoading:
  2015. v = new(page.EventFrameStoppedLoading)
  2016. case EventPageInterstitialHidden:
  2017. v = new(page.EventInterstitialHidden)
  2018. case EventPageInterstitialShown:
  2019. v = new(page.EventInterstitialShown)
  2020. case EventPageJavascriptDialogClosed:
  2021. v = new(page.EventJavascriptDialogClosed)
  2022. case EventPageJavascriptDialogOpening:
  2023. v = new(page.EventJavascriptDialogOpening)
  2024. case EventPageLifecycleEvent:
  2025. v = new(page.EventLifecycleEvent)
  2026. case EventPageBackForwardCacheNotUsed:
  2027. v = new(page.EventBackForwardCacheNotUsed)
  2028. case EventPageLoadEventFired:
  2029. v = new(page.EventLoadEventFired)
  2030. case EventPageNavigatedWithinDocument:
  2031. v = new(page.EventNavigatedWithinDocument)
  2032. case EventPageScreencastFrame:
  2033. v = new(page.EventScreencastFrame)
  2034. case EventPageScreencastVisibilityChanged:
  2035. v = new(page.EventScreencastVisibilityChanged)
  2036. case EventPageWindowOpen:
  2037. v = new(page.EventWindowOpen)
  2038. case EventPageCompilationCacheProduced:
  2039. v = new(page.EventCompilationCacheProduced)
  2040. case CommandPerformanceDisable:
  2041. return emptyVal, nil
  2042. case CommandPerformanceEnable:
  2043. return emptyVal, nil
  2044. case CommandPerformanceGetMetrics:
  2045. v = new(performance.GetMetricsReturns)
  2046. case EventPerformanceMetrics:
  2047. v = new(performance.EventMetrics)
  2048. case CommandPerformanceTimelineEnable:
  2049. return emptyVal, nil
  2050. case EventPerformanceTimelineTimelineEventAdded:
  2051. v = new(performancetimeline.EventTimelineEventAdded)
  2052. case CommandPreloadEnable:
  2053. return emptyVal, nil
  2054. case CommandPreloadDisable:
  2055. return emptyVal, nil
  2056. case EventPreloadRuleSetUpdated:
  2057. v = new(preload.EventRuleSetUpdated)
  2058. case EventPreloadRuleSetRemoved:
  2059. v = new(preload.EventRuleSetRemoved)
  2060. case EventPreloadPreloadEnabledStateUpdated:
  2061. v = new(preload.EventPreloadEnabledStateUpdated)
  2062. case EventPreloadPrefetchStatusUpdated:
  2063. v = new(preload.EventPrefetchStatusUpdated)
  2064. case EventPreloadPrerenderStatusUpdated:
  2065. v = new(preload.EventPrerenderStatusUpdated)
  2066. case EventPreloadPreloadingAttemptSourcesUpdated:
  2067. v = new(preload.EventPreloadingAttemptSourcesUpdated)
  2068. case CommandProfilerDisable:
  2069. return emptyVal, nil
  2070. case CommandProfilerEnable:
  2071. return emptyVal, nil
  2072. case CommandProfilerGetBestEffortCoverage:
  2073. v = new(profiler.GetBestEffortCoverageReturns)
  2074. case CommandProfilerSetSamplingInterval:
  2075. return emptyVal, nil
  2076. case CommandProfilerStart:
  2077. return emptyVal, nil
  2078. case CommandProfilerStartPreciseCoverage:
  2079. v = new(profiler.StartPreciseCoverageReturns)
  2080. case CommandProfilerStop:
  2081. v = new(profiler.StopReturns)
  2082. case CommandProfilerStopPreciseCoverage:
  2083. return emptyVal, nil
  2084. case CommandProfilerTakePreciseCoverage:
  2085. v = new(profiler.TakePreciseCoverageReturns)
  2086. case EventProfilerConsoleProfileFinished:
  2087. v = new(profiler.EventConsoleProfileFinished)
  2088. case EventProfilerConsoleProfileStarted:
  2089. v = new(profiler.EventConsoleProfileStarted)
  2090. case EventProfilerPreciseCoverageDeltaUpdate:
  2091. v = new(profiler.EventPreciseCoverageDeltaUpdate)
  2092. case CommandRuntimeAwaitPromise:
  2093. v = new(runtime.AwaitPromiseReturns)
  2094. case CommandRuntimeCallFunctionOn:
  2095. v = new(runtime.CallFunctionOnReturns)
  2096. case CommandRuntimeCompileScript:
  2097. v = new(runtime.CompileScriptReturns)
  2098. case CommandRuntimeDisable:
  2099. return emptyVal, nil
  2100. case CommandRuntimeDiscardConsoleEntries:
  2101. return emptyVal, nil
  2102. case CommandRuntimeEnable:
  2103. return emptyVal, nil
  2104. case CommandRuntimeEvaluate:
  2105. v = new(runtime.EvaluateReturns)
  2106. case CommandRuntimeGetIsolateID:
  2107. v = new(runtime.GetIsolateIDReturns)
  2108. case CommandRuntimeGetHeapUsage:
  2109. v = new(runtime.GetHeapUsageReturns)
  2110. case CommandRuntimeGetProperties:
  2111. v = new(runtime.GetPropertiesReturns)
  2112. case CommandRuntimeGlobalLexicalScopeNames:
  2113. v = new(runtime.GlobalLexicalScopeNamesReturns)
  2114. case CommandRuntimeQueryObjects:
  2115. v = new(runtime.QueryObjectsReturns)
  2116. case CommandRuntimeReleaseObject:
  2117. return emptyVal, nil
  2118. case CommandRuntimeReleaseObjectGroup:
  2119. return emptyVal, nil
  2120. case CommandRuntimeRunIfWaitingForDebugger:
  2121. return emptyVal, nil
  2122. case CommandRuntimeRunScript:
  2123. v = new(runtime.RunScriptReturns)
  2124. case CommandRuntimeSetCustomObjectFormatterEnabled:
  2125. return emptyVal, nil
  2126. case CommandRuntimeSetMaxCallStackSizeToCapture:
  2127. return emptyVal, nil
  2128. case CommandRuntimeTerminateExecution:
  2129. return emptyVal, nil
  2130. case CommandRuntimeAddBinding:
  2131. return emptyVal, nil
  2132. case CommandRuntimeRemoveBinding:
  2133. return emptyVal, nil
  2134. case CommandRuntimeGetExceptionDetails:
  2135. v = new(runtime.GetExceptionDetailsReturns)
  2136. case EventRuntimeBindingCalled:
  2137. v = new(runtime.EventBindingCalled)
  2138. case EventRuntimeConsoleAPICalled:
  2139. v = new(runtime.EventConsoleAPICalled)
  2140. case EventRuntimeExceptionRevoked:
  2141. v = new(runtime.EventExceptionRevoked)
  2142. case EventRuntimeExceptionThrown:
  2143. v = new(runtime.EventExceptionThrown)
  2144. case EventRuntimeExecutionContextCreated:
  2145. v = new(runtime.EventExecutionContextCreated)
  2146. case EventRuntimeExecutionContextDestroyed:
  2147. v = new(runtime.EventExecutionContextDestroyed)
  2148. case EventRuntimeExecutionContextsCleared:
  2149. v = new(runtime.EventExecutionContextsCleared)
  2150. case EventRuntimeInspectRequested:
  2151. v = new(runtime.EventInspectRequested)
  2152. case CommandSecurityDisable:
  2153. return emptyVal, nil
  2154. case CommandSecurityEnable:
  2155. return emptyVal, nil
  2156. case CommandSecuritySetIgnoreCertificateErrors:
  2157. return emptyVal, nil
  2158. case EventSecurityVisibleSecurityStateChanged:
  2159. v = new(security.EventVisibleSecurityStateChanged)
  2160. case CommandServiceWorkerDeliverPushMessage:
  2161. return emptyVal, nil
  2162. case CommandServiceWorkerDisable:
  2163. return emptyVal, nil
  2164. case CommandServiceWorkerDispatchSyncEvent:
  2165. return emptyVal, nil
  2166. case CommandServiceWorkerDispatchPeriodicSyncEvent:
  2167. return emptyVal, nil
  2168. case CommandServiceWorkerEnable:
  2169. return emptyVal, nil
  2170. case CommandServiceWorkerInspectWorker:
  2171. return emptyVal, nil
  2172. case CommandServiceWorkerSetForceUpdateOnPageLoad:
  2173. return emptyVal, nil
  2174. case CommandServiceWorkerSkipWaiting:
  2175. return emptyVal, nil
  2176. case CommandServiceWorkerStartWorker:
  2177. return emptyVal, nil
  2178. case CommandServiceWorkerStopAllWorkers:
  2179. return emptyVal, nil
  2180. case CommandServiceWorkerStopWorker:
  2181. return emptyVal, nil
  2182. case CommandServiceWorkerUnregister:
  2183. return emptyVal, nil
  2184. case CommandServiceWorkerUpdateRegistration:
  2185. return emptyVal, nil
  2186. case EventServiceWorkerWorkerErrorReported:
  2187. v = new(serviceworker.EventWorkerErrorReported)
  2188. case EventServiceWorkerWorkerRegistrationUpdated:
  2189. v = new(serviceworker.EventWorkerRegistrationUpdated)
  2190. case EventServiceWorkerWorkerVersionUpdated:
  2191. v = new(serviceworker.EventWorkerVersionUpdated)
  2192. case CommandStorageGetStorageKeyForFrame:
  2193. v = new(storage.GetStorageKeyForFrameReturns)
  2194. case CommandStorageClearDataForOrigin:
  2195. return emptyVal, nil
  2196. case CommandStorageClearDataForStorageKey:
  2197. return emptyVal, nil
  2198. case CommandStorageGetCookies:
  2199. v = new(storage.GetCookiesReturns)
  2200. case CommandStorageSetCookies:
  2201. return emptyVal, nil
  2202. case CommandStorageClearCookies:
  2203. return emptyVal, nil
  2204. case CommandStorageGetUsageAndQuota:
  2205. v = new(storage.GetUsageAndQuotaReturns)
  2206. case CommandStorageOverrideQuotaForOrigin:
  2207. return emptyVal, nil
  2208. case CommandStorageTrackCacheStorageForOrigin:
  2209. return emptyVal, nil
  2210. case CommandStorageTrackCacheStorageForStorageKey:
  2211. return emptyVal, nil
  2212. case CommandStorageTrackIndexedDBForOrigin:
  2213. return emptyVal, nil
  2214. case CommandStorageTrackIndexedDBForStorageKey:
  2215. return emptyVal, nil
  2216. case CommandStorageUntrackCacheStorageForOrigin:
  2217. return emptyVal, nil
  2218. case CommandStorageUntrackCacheStorageForStorageKey:
  2219. return emptyVal, nil
  2220. case CommandStorageUntrackIndexedDBForOrigin:
  2221. return emptyVal, nil
  2222. case CommandStorageUntrackIndexedDBForStorageKey:
  2223. return emptyVal, nil
  2224. case CommandStorageGetTrustTokens:
  2225. v = new(storage.GetTrustTokensReturns)
  2226. case CommandStorageClearTrustTokens:
  2227. v = new(storage.ClearTrustTokensReturns)
  2228. case CommandStorageGetInterestGroupDetails:
  2229. v = new(storage.GetInterestGroupDetailsReturns)
  2230. case CommandStorageSetInterestGroupTracking:
  2231. return emptyVal, nil
  2232. case CommandStorageSetInterestGroupAuctionTracking:
  2233. return emptyVal, nil
  2234. case CommandStorageGetSharedStorageMetadata:
  2235. v = new(storage.GetSharedStorageMetadataReturns)
  2236. case CommandStorageGetSharedStorageEntries:
  2237. v = new(storage.GetSharedStorageEntriesReturns)
  2238. case CommandStorageSetSharedStorageEntry:
  2239. return emptyVal, nil
  2240. case CommandStorageDeleteSharedStorageEntry:
  2241. return emptyVal, nil
  2242. case CommandStorageClearSharedStorageEntries:
  2243. return emptyVal, nil
  2244. case CommandStorageResetSharedStorageBudget:
  2245. return emptyVal, nil
  2246. case CommandStorageSetSharedStorageTracking:
  2247. return emptyVal, nil
  2248. case CommandStorageSetStorageBucketTracking:
  2249. return emptyVal, nil
  2250. case CommandStorageDeleteStorageBucket:
  2251. return emptyVal, nil
  2252. case CommandStorageRunBounceTrackingMitigations:
  2253. v = new(storage.RunBounceTrackingMitigationsReturns)
  2254. case CommandStorageSetAttributionReportingLocalTestingMode:
  2255. return emptyVal, nil
  2256. case CommandStorageSetAttributionReportingTracking:
  2257. return emptyVal, nil
  2258. case CommandStorageSendPendingAttributionReports:
  2259. v = new(storage.SendPendingAttributionReportsReturns)
  2260. case CommandStorageGetRelatedWebsiteSets:
  2261. v = new(storage.GetRelatedWebsiteSetsReturns)
  2262. case CommandStorageGetAffectedURLsForThirdPartyCookieMetadata:
  2263. v = new(storage.GetAffectedURLsForThirdPartyCookieMetadataReturns)
  2264. case EventStorageCacheStorageContentUpdated:
  2265. v = new(storage.EventCacheStorageContentUpdated)
  2266. case EventStorageCacheStorageListUpdated:
  2267. v = new(storage.EventCacheStorageListUpdated)
  2268. case EventStorageIndexedDBContentUpdated:
  2269. v = new(storage.EventIndexedDBContentUpdated)
  2270. case EventStorageIndexedDBListUpdated:
  2271. v = new(storage.EventIndexedDBListUpdated)
  2272. case EventStorageInterestGroupAccessed:
  2273. v = new(storage.EventInterestGroupAccessed)
  2274. case EventStorageInterestGroupAuctionEventOccurred:
  2275. v = new(storage.EventInterestGroupAuctionEventOccurred)
  2276. case EventStorageInterestGroupAuctionNetworkRequestCreated:
  2277. v = new(storage.EventInterestGroupAuctionNetworkRequestCreated)
  2278. case EventStorageSharedStorageAccessed:
  2279. v = new(storage.EventSharedStorageAccessed)
  2280. case EventStorageStorageBucketCreatedOrUpdated:
  2281. v = new(storage.EventStorageBucketCreatedOrUpdated)
  2282. case EventStorageStorageBucketDeleted:
  2283. v = new(storage.EventStorageBucketDeleted)
  2284. case EventStorageAttributionReportingSourceRegistered:
  2285. v = new(storage.EventAttributionReportingSourceRegistered)
  2286. case EventStorageAttributionReportingTriggerRegistered:
  2287. v = new(storage.EventAttributionReportingTriggerRegistered)
  2288. case CommandSystemInfoGetInfo:
  2289. v = new(systeminfo.GetInfoReturns)
  2290. case CommandSystemInfoGetFeatureState:
  2291. v = new(systeminfo.GetFeatureStateReturns)
  2292. case CommandSystemInfoGetProcessInfo:
  2293. v = new(systeminfo.GetProcessInfoReturns)
  2294. case CommandTargetActivateTarget:
  2295. return emptyVal, nil
  2296. case CommandTargetAttachToTarget:
  2297. v = new(target.AttachToTargetReturns)
  2298. case CommandTargetAttachToBrowserTarget:
  2299. v = new(target.AttachToBrowserTargetReturns)
  2300. case CommandTargetCloseTarget:
  2301. return emptyVal, nil
  2302. case CommandTargetExposeDevToolsProtocol:
  2303. return emptyVal, nil
  2304. case CommandTargetCreateBrowserContext:
  2305. v = new(target.CreateBrowserContextReturns)
  2306. case CommandTargetGetBrowserContexts:
  2307. v = new(target.GetBrowserContextsReturns)
  2308. case CommandTargetCreateTarget:
  2309. v = new(target.CreateTargetReturns)
  2310. case CommandTargetDetachFromTarget:
  2311. return emptyVal, nil
  2312. case CommandTargetDisposeBrowserContext:
  2313. return emptyVal, nil
  2314. case CommandTargetGetTargetInfo:
  2315. v = new(target.GetTargetInfoReturns)
  2316. case CommandTargetGetTargets:
  2317. v = new(target.GetTargetsReturns)
  2318. case CommandTargetSetAutoAttach:
  2319. return emptyVal, nil
  2320. case CommandTargetAutoAttachRelated:
  2321. return emptyVal, nil
  2322. case CommandTargetSetDiscoverTargets:
  2323. return emptyVal, nil
  2324. case CommandTargetSetRemoteLocations:
  2325. return emptyVal, nil
  2326. case EventTargetAttachedToTarget:
  2327. v = new(target.EventAttachedToTarget)
  2328. case EventTargetDetachedFromTarget:
  2329. v = new(target.EventDetachedFromTarget)
  2330. case EventTargetReceivedMessageFromTarget:
  2331. v = new(target.EventReceivedMessageFromTarget)
  2332. case EventTargetTargetCreated:
  2333. v = new(target.EventTargetCreated)
  2334. case EventTargetTargetDestroyed:
  2335. v = new(target.EventTargetDestroyed)
  2336. case EventTargetTargetCrashed:
  2337. v = new(target.EventTargetCrashed)
  2338. case EventTargetTargetInfoChanged:
  2339. v = new(target.EventTargetInfoChanged)
  2340. case CommandTetheringBind:
  2341. return emptyVal, nil
  2342. case CommandTetheringUnbind:
  2343. return emptyVal, nil
  2344. case EventTetheringAccepted:
  2345. v = new(tethering.EventAccepted)
  2346. case CommandTracingEnd:
  2347. return emptyVal, nil
  2348. case CommandTracingGetCategories:
  2349. v = new(tracing.GetCategoriesReturns)
  2350. case CommandTracingRecordClockSyncMarker:
  2351. return emptyVal, nil
  2352. case CommandTracingRequestMemoryDump:
  2353. v = new(tracing.RequestMemoryDumpReturns)
  2354. case CommandTracingStart:
  2355. return emptyVal, nil
  2356. case EventTracingBufferUsage:
  2357. v = new(tracing.EventBufferUsage)
  2358. case EventTracingDataCollected:
  2359. v = new(tracing.EventDataCollected)
  2360. case EventTracingTracingComplete:
  2361. v = new(tracing.EventTracingComplete)
  2362. case CommandWebAudioEnable:
  2363. return emptyVal, nil
  2364. case CommandWebAudioDisable:
  2365. return emptyVal, nil
  2366. case CommandWebAudioGetRealtimeData:
  2367. v = new(webaudio.GetRealtimeDataReturns)
  2368. case EventWebAudioContextCreated:
  2369. v = new(webaudio.EventContextCreated)
  2370. case EventWebAudioContextWillBeDestroyed:
  2371. v = new(webaudio.EventContextWillBeDestroyed)
  2372. case EventWebAudioContextChanged:
  2373. v = new(webaudio.EventContextChanged)
  2374. case EventWebAudioAudioListenerCreated:
  2375. v = new(webaudio.EventAudioListenerCreated)
  2376. case EventWebAudioAudioListenerWillBeDestroyed:
  2377. v = new(webaudio.EventAudioListenerWillBeDestroyed)
  2378. case EventWebAudioAudioNodeCreated:
  2379. v = new(webaudio.EventAudioNodeCreated)
  2380. case EventWebAudioAudioNodeWillBeDestroyed:
  2381. v = new(webaudio.EventAudioNodeWillBeDestroyed)
  2382. case EventWebAudioAudioParamCreated:
  2383. v = new(webaudio.EventAudioParamCreated)
  2384. case EventWebAudioAudioParamWillBeDestroyed:
  2385. v = new(webaudio.EventAudioParamWillBeDestroyed)
  2386. case EventWebAudioNodesConnected:
  2387. v = new(webaudio.EventNodesConnected)
  2388. case EventWebAudioNodesDisconnected:
  2389. v = new(webaudio.EventNodesDisconnected)
  2390. case EventWebAudioNodeParamConnected:
  2391. v = new(webaudio.EventNodeParamConnected)
  2392. case EventWebAudioNodeParamDisconnected:
  2393. v = new(webaudio.EventNodeParamDisconnected)
  2394. case CommandWebAuthnEnable:
  2395. return emptyVal, nil
  2396. case CommandWebAuthnDisable:
  2397. return emptyVal, nil
  2398. case CommandWebAuthnAddVirtualAuthenticator:
  2399. v = new(webauthn.AddVirtualAuthenticatorReturns)
  2400. case CommandWebAuthnSetResponseOverrideBits:
  2401. return emptyVal, nil
  2402. case CommandWebAuthnRemoveVirtualAuthenticator:
  2403. return emptyVal, nil
  2404. case CommandWebAuthnAddCredential:
  2405. return emptyVal, nil
  2406. case CommandWebAuthnGetCredential:
  2407. v = new(webauthn.GetCredentialReturns)
  2408. case CommandWebAuthnGetCredentials:
  2409. v = new(webauthn.GetCredentialsReturns)
  2410. case CommandWebAuthnRemoveCredential:
  2411. return emptyVal, nil
  2412. case CommandWebAuthnClearCredentials:
  2413. return emptyVal, nil
  2414. case CommandWebAuthnSetUserVerified:
  2415. return emptyVal, nil
  2416. case CommandWebAuthnSetAutomaticPresenceSimulation:
  2417. return emptyVal, nil
  2418. case CommandWebAuthnSetCredentialProperties:
  2419. return emptyVal, nil
  2420. case EventWebAuthnCredentialAdded:
  2421. v = new(webauthn.EventCredentialAdded)
  2422. case EventWebAuthnCredentialDeleted:
  2423. v = new(webauthn.EventCredentialDeleted)
  2424. case EventWebAuthnCredentialUpdated:
  2425. v = new(webauthn.EventCredentialUpdated)
  2426. case EventWebAuthnCredentialAsserted:
  2427. v = new(webauthn.EventCredentialAsserted)
  2428. default:
  2429. return nil, cdp.ErrUnknownCommandOrEvent(msg.Method)
  2430. }
  2431. var buf jsontext.Value
  2432. switch {
  2433. case msg.Params != nil:
  2434. buf = msg.Params
  2435. case msg.Result != nil:
  2436. buf = msg.Result
  2437. default:
  2438. return nil, cdp.ErrMsgMissingParamsOrResult
  2439. }
  2440. if err := jsonv2.Unmarshal(buf, v, opts...); err != nil {
  2441. return nil, err
  2442. }
  2443. return v, nil
  2444. }