cdproto.go 120 KB

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