forked from chromedp/cdproto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcdproto.go
2139 lines (1618 loc) · 82.8 KB
/
cdproto.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Package cdproto provides the Chrome DevTools Protocol
// commands, types, and events for the cdproto domain.
//
// Chrome DevTools Protocol types.
//
// Generated by the cdproto-gen command.
package cdproto
// Code generated by cdproto-gen. DO NOT EDIT.
import (
"errors"
"fmt"
"strings"
"github.com/chromedp/cdproto/accessibility"
"github.com/chromedp/cdproto/animation"
"github.com/chromedp/cdproto/applicationcache"
"github.com/chromedp/cdproto/audits"
"github.com/chromedp/cdproto/browser"
"github.com/chromedp/cdproto/cachestorage"
"github.com/chromedp/cdproto/css"
"github.com/chromedp/cdproto/database"
"github.com/chromedp/cdproto/debugger"
"github.com/chromedp/cdproto/deviceorientation"
"github.com/chromedp/cdproto/dom"
"github.com/chromedp/cdproto/domdebugger"
"github.com/chromedp/cdproto/domsnapshot"
"github.com/chromedp/cdproto/domstorage"
"github.com/chromedp/cdproto/emulation"
"github.com/chromedp/cdproto/headlessexperimental"
"github.com/chromedp/cdproto/heapprofiler"
"github.com/chromedp/cdproto/indexeddb"
"github.com/chromedp/cdproto/input"
"github.com/chromedp/cdproto/inspector"
"github.com/chromedp/cdproto/io"
"github.com/chromedp/cdproto/layertree"
"github.com/chromedp/cdproto/log"
"github.com/chromedp/cdproto/memory"
"github.com/chromedp/cdproto/network"
"github.com/chromedp/cdproto/overlay"
"github.com/chromedp/cdproto/page"
"github.com/chromedp/cdproto/performance"
"github.com/chromedp/cdproto/profiler"
"github.com/chromedp/cdproto/runtime"
"github.com/chromedp/cdproto/security"
"github.com/chromedp/cdproto/serviceworker"
"github.com/chromedp/cdproto/storage"
"github.com/chromedp/cdproto/systeminfo"
"github.com/chromedp/cdproto/target"
"github.com/chromedp/cdproto/testing"
"github.com/chromedp/cdproto/tethering"
"github.com/chromedp/cdproto/tracing"
"github.com/mailru/easyjson"
)
// MethodType chrome DevTools Protocol method type (ie, event and command
// names).
type MethodType string
// String returns the MethodType as string value.
func (t MethodType) String() string {
return string(t)
}
// Domain returns the Chrome DevTools Protocol domain of the event or command.
func (t MethodType) Domain() string {
return string(t[:strings.IndexByte(string(t), '.')])
}
// MethodType values.
const (
CommandAccessibilityGetPartialAXTree = accessibility.CommandGetPartialAXTree
CommandAccessibilityGetFullAXTree = accessibility.CommandGetFullAXTree
CommandAnimationDisable = animation.CommandDisable
CommandAnimationEnable = animation.CommandEnable
CommandAnimationGetCurrentTime = animation.CommandGetCurrentTime
CommandAnimationGetPlaybackRate = animation.CommandGetPlaybackRate
CommandAnimationReleaseAnimations = animation.CommandReleaseAnimations
CommandAnimationResolveAnimation = animation.CommandResolveAnimation
CommandAnimationSeekAnimations = animation.CommandSeekAnimations
CommandAnimationSetPaused = animation.CommandSetPaused
CommandAnimationSetPlaybackRate = animation.CommandSetPlaybackRate
CommandAnimationSetTiming = animation.CommandSetTiming
EventAnimationAnimationCanceled = "Animation.animationCanceled"
EventAnimationAnimationCreated = "Animation.animationCreated"
EventAnimationAnimationStarted = "Animation.animationStarted"
CommandApplicationCacheEnable = applicationcache.CommandEnable
CommandApplicationCacheGetApplicationCacheForFrame = applicationcache.CommandGetApplicationCacheForFrame
CommandApplicationCacheGetFramesWithManifests = applicationcache.CommandGetFramesWithManifests
CommandApplicationCacheGetManifestForFrame = applicationcache.CommandGetManifestForFrame
EventApplicationCacheApplicationCacheStatusUpdated = "ApplicationCache.applicationCacheStatusUpdated"
EventApplicationCacheNetworkStateUpdated = "ApplicationCache.networkStateUpdated"
CommandAuditsGetEncodedResponse = audits.CommandGetEncodedResponse
CommandBrowserGrantPermissions = browser.CommandGrantPermissions
CommandBrowserResetPermissions = browser.CommandResetPermissions
CommandBrowserClose = browser.CommandClose
CommandBrowserCrash = browser.CommandCrash
CommandBrowserGetVersion = browser.CommandGetVersion
CommandBrowserGetBrowserCommandLine = browser.CommandGetBrowserCommandLine
CommandBrowserGetHistograms = browser.CommandGetHistograms
CommandBrowserGetHistogram = browser.CommandGetHistogram
CommandBrowserGetWindowBounds = browser.CommandGetWindowBounds
CommandBrowserGetWindowForTarget = browser.CommandGetWindowForTarget
CommandBrowserSetWindowBounds = browser.CommandSetWindowBounds
CommandCSSAddRule = css.CommandAddRule
CommandCSSCollectClassNames = css.CommandCollectClassNames
CommandCSSCreateStyleSheet = css.CommandCreateStyleSheet
CommandCSSDisable = css.CommandDisable
CommandCSSEnable = css.CommandEnable
CommandCSSForcePseudoState = css.CommandForcePseudoState
CommandCSSGetBackgroundColors = css.CommandGetBackgroundColors
CommandCSSGetComputedStyleForNode = css.CommandGetComputedStyleForNode
CommandCSSGetInlineStylesForNode = css.CommandGetInlineStylesForNode
CommandCSSGetMatchedStylesForNode = css.CommandGetMatchedStylesForNode
CommandCSSGetMediaQueries = css.CommandGetMediaQueries
CommandCSSGetPlatformFontsForNode = css.CommandGetPlatformFontsForNode
CommandCSSGetStyleSheetText = css.CommandGetStyleSheetText
CommandCSSSetEffectivePropertyValueForNode = css.CommandSetEffectivePropertyValueForNode
CommandCSSSetKeyframeKey = css.CommandSetKeyframeKey
CommandCSSSetMediaText = css.CommandSetMediaText
CommandCSSSetRuleSelector = css.CommandSetRuleSelector
CommandCSSSetStyleSheetText = css.CommandSetStyleSheetText
CommandCSSSetStyleTexts = css.CommandSetStyleTexts
CommandCSSStartRuleUsageTracking = css.CommandStartRuleUsageTracking
CommandCSSStopRuleUsageTracking = css.CommandStopRuleUsageTracking
CommandCSSTakeCoverageDelta = css.CommandTakeCoverageDelta
EventCSSFontsUpdated = "CSS.fontsUpdated"
EventCSSMediaQueryResultChanged = "CSS.mediaQueryResultChanged"
EventCSSStyleSheetAdded = "CSS.styleSheetAdded"
EventCSSStyleSheetChanged = "CSS.styleSheetChanged"
EventCSSStyleSheetRemoved = "CSS.styleSheetRemoved"
CommandCacheStorageDeleteCache = cachestorage.CommandDeleteCache
CommandCacheStorageDeleteEntry = cachestorage.CommandDeleteEntry
CommandCacheStorageRequestCacheNames = cachestorage.CommandRequestCacheNames
CommandCacheStorageRequestCachedResponse = cachestorage.CommandRequestCachedResponse
CommandCacheStorageRequestEntries = cachestorage.CommandRequestEntries
CommandDOMCollectClassNamesFromSubtree = dom.CommandCollectClassNamesFromSubtree
CommandDOMCopyTo = dom.CommandCopyTo
CommandDOMDescribeNode = dom.CommandDescribeNode
CommandDOMDisable = dom.CommandDisable
CommandDOMDiscardSearchResults = dom.CommandDiscardSearchResults
CommandDOMEnable = dom.CommandEnable
CommandDOMFocus = dom.CommandFocus
CommandDOMGetAttributes = dom.CommandGetAttributes
CommandDOMGetBoxModel = dom.CommandGetBoxModel
CommandDOMGetContentQuads = dom.CommandGetContentQuads
CommandDOMGetDocument = dom.CommandGetDocument
CommandDOMGetFlattenedDocument = dom.CommandGetFlattenedDocument
CommandDOMGetNodeForLocation = dom.CommandGetNodeForLocation
CommandDOMGetOuterHTML = dom.CommandGetOuterHTML
CommandDOMGetRelayoutBoundary = dom.CommandGetRelayoutBoundary
CommandDOMGetSearchResults = dom.CommandGetSearchResults
CommandDOMMarkUndoableState = dom.CommandMarkUndoableState
CommandDOMMoveTo = dom.CommandMoveTo
CommandDOMPerformSearch = dom.CommandPerformSearch
CommandDOMPushNodeByPathToFrontend = dom.CommandPushNodeByPathToFrontend
CommandDOMPushNodesByBackendIdsToFrontend = dom.CommandPushNodesByBackendIdsToFrontend
CommandDOMQuerySelector = dom.CommandQuerySelector
CommandDOMQuerySelectorAll = dom.CommandQuerySelectorAll
CommandDOMRedo = dom.CommandRedo
CommandDOMRemoveAttribute = dom.CommandRemoveAttribute
CommandDOMRemoveNode = dom.CommandRemoveNode
CommandDOMRequestChildNodes = dom.CommandRequestChildNodes
CommandDOMRequestNode = dom.CommandRequestNode
CommandDOMResolveNode = dom.CommandResolveNode
CommandDOMSetAttributeValue = dom.CommandSetAttributeValue
CommandDOMSetAttributesAsText = dom.CommandSetAttributesAsText
CommandDOMSetFileInputFiles = dom.CommandSetFileInputFiles
CommandDOMSetInspectedNode = dom.CommandSetInspectedNode
CommandDOMSetNodeName = dom.CommandSetNodeName
CommandDOMSetNodeValue = dom.CommandSetNodeValue
CommandDOMSetOuterHTML = dom.CommandSetOuterHTML
CommandDOMUndo = dom.CommandUndo
CommandDOMGetFrameOwner = dom.CommandGetFrameOwner
EventDOMAttributeModified = "DOM.attributeModified"
EventDOMAttributeRemoved = "DOM.attributeRemoved"
EventDOMCharacterDataModified = "DOM.characterDataModified"
EventDOMChildNodeCountUpdated = "DOM.childNodeCountUpdated"
EventDOMChildNodeInserted = "DOM.childNodeInserted"
EventDOMChildNodeRemoved = "DOM.childNodeRemoved"
EventDOMDistributedNodesUpdated = "DOM.distributedNodesUpdated"
EventDOMDocumentUpdated = "DOM.documentUpdated"
EventDOMInlineStyleInvalidated = "DOM.inlineStyleInvalidated"
EventDOMPseudoElementAdded = "DOM.pseudoElementAdded"
EventDOMPseudoElementRemoved = "DOM.pseudoElementRemoved"
EventDOMSetChildNodes = "DOM.setChildNodes"
EventDOMShadowRootPopped = "DOM.shadowRootPopped"
EventDOMShadowRootPushed = "DOM.shadowRootPushed"
CommandDOMDebuggerGetEventListeners = domdebugger.CommandGetEventListeners
CommandDOMDebuggerRemoveDOMBreakpoint = domdebugger.CommandRemoveDOMBreakpoint
CommandDOMDebuggerRemoveEventListenerBreakpoint = domdebugger.CommandRemoveEventListenerBreakpoint
CommandDOMDebuggerRemoveInstrumentationBreakpoint = domdebugger.CommandRemoveInstrumentationBreakpoint
CommandDOMDebuggerRemoveXHRBreakpoint = domdebugger.CommandRemoveXHRBreakpoint
CommandDOMDebuggerSetDOMBreakpoint = domdebugger.CommandSetDOMBreakpoint
CommandDOMDebuggerSetEventListenerBreakpoint = domdebugger.CommandSetEventListenerBreakpoint
CommandDOMDebuggerSetInstrumentationBreakpoint = domdebugger.CommandSetInstrumentationBreakpoint
CommandDOMDebuggerSetXHRBreakpoint = domdebugger.CommandSetXHRBreakpoint
CommandDOMSnapshotDisable = domsnapshot.CommandDisable
CommandDOMSnapshotEnable = domsnapshot.CommandEnable
CommandDOMSnapshotCaptureSnapshot = domsnapshot.CommandCaptureSnapshot
CommandDOMStorageClear = domstorage.CommandClear
CommandDOMStorageDisable = domstorage.CommandDisable
CommandDOMStorageEnable = domstorage.CommandEnable
CommandDOMStorageGetDOMStorageItems = domstorage.CommandGetDOMStorageItems
CommandDOMStorageRemoveDOMStorageItem = domstorage.CommandRemoveDOMStorageItem
CommandDOMStorageSetDOMStorageItem = domstorage.CommandSetDOMStorageItem
EventDOMStorageDomStorageItemAdded = "DOMStorage.domStorageItemAdded"
EventDOMStorageDomStorageItemRemoved = "DOMStorage.domStorageItemRemoved"
EventDOMStorageDomStorageItemUpdated = "DOMStorage.domStorageItemUpdated"
EventDOMStorageDomStorageItemsCleared = "DOMStorage.domStorageItemsCleared"
CommandDatabaseDisable = database.CommandDisable
CommandDatabaseEnable = database.CommandEnable
CommandDatabaseExecuteSQL = database.CommandExecuteSQL
CommandDatabaseGetDatabaseTableNames = database.CommandGetDatabaseTableNames
EventDatabaseAddDatabase = "Database.addDatabase"
CommandDebuggerContinueToLocation = debugger.CommandContinueToLocation
CommandDebuggerDisable = debugger.CommandDisable
CommandDebuggerEnable = debugger.CommandEnable
CommandDebuggerEvaluateOnCallFrame = debugger.CommandEvaluateOnCallFrame
CommandDebuggerGetPossibleBreakpoints = debugger.CommandGetPossibleBreakpoints
CommandDebuggerGetScriptSource = debugger.CommandGetScriptSource
CommandDebuggerGetStackTrace = debugger.CommandGetStackTrace
CommandDebuggerPause = debugger.CommandPause
CommandDebuggerPauseOnAsyncCall = debugger.CommandPauseOnAsyncCall
CommandDebuggerRemoveBreakpoint = debugger.CommandRemoveBreakpoint
CommandDebuggerRestartFrame = debugger.CommandRestartFrame
CommandDebuggerResume = debugger.CommandResume
CommandDebuggerScheduleStepIntoAsync = debugger.CommandScheduleStepIntoAsync
CommandDebuggerSearchInContent = debugger.CommandSearchInContent
CommandDebuggerSetAsyncCallStackDepth = debugger.CommandSetAsyncCallStackDepth
CommandDebuggerSetBlackboxPatterns = debugger.CommandSetBlackboxPatterns
CommandDebuggerSetBlackboxedRanges = debugger.CommandSetBlackboxedRanges
CommandDebuggerSetBreakpoint = debugger.CommandSetBreakpoint
CommandDebuggerSetBreakpointByURL = debugger.CommandSetBreakpointByURL
CommandDebuggerSetBreakpointOnFunctionCall = debugger.CommandSetBreakpointOnFunctionCall
CommandDebuggerSetBreakpointsActive = debugger.CommandSetBreakpointsActive
CommandDebuggerSetPauseOnExceptions = debugger.CommandSetPauseOnExceptions
CommandDebuggerSetReturnValue = debugger.CommandSetReturnValue
CommandDebuggerSetScriptSource = debugger.CommandSetScriptSource
CommandDebuggerSetSkipAllPauses = debugger.CommandSetSkipAllPauses
CommandDebuggerSetVariableValue = debugger.CommandSetVariableValue
CommandDebuggerStepInto = debugger.CommandStepInto
CommandDebuggerStepOut = debugger.CommandStepOut
CommandDebuggerStepOver = debugger.CommandStepOver
EventDebuggerBreakpointResolved = "Debugger.breakpointResolved"
EventDebuggerPaused = "Debugger.paused"
EventDebuggerResumed = "Debugger.resumed"
EventDebuggerScriptFailedToParse = "Debugger.scriptFailedToParse"
EventDebuggerScriptParsed = "Debugger.scriptParsed"
CommandDeviceOrientationClearDeviceOrientationOverride = deviceorientation.CommandClearDeviceOrientationOverride
CommandDeviceOrientationSetDeviceOrientationOverride = deviceorientation.CommandSetDeviceOrientationOverride
CommandEmulationCanEmulate = emulation.CommandCanEmulate
CommandEmulationClearDeviceMetricsOverride = emulation.CommandClearDeviceMetricsOverride
CommandEmulationClearGeolocationOverride = emulation.CommandClearGeolocationOverride
CommandEmulationResetPageScaleFactor = emulation.CommandResetPageScaleFactor
CommandEmulationSetFocusEmulationEnabled = emulation.CommandSetFocusEmulationEnabled
CommandEmulationSetCPUThrottlingRate = emulation.CommandSetCPUThrottlingRate
CommandEmulationSetDefaultBackgroundColorOverride = emulation.CommandSetDefaultBackgroundColorOverride
CommandEmulationSetDeviceMetricsOverride = emulation.CommandSetDeviceMetricsOverride
CommandEmulationSetScrollbarsHidden = emulation.CommandSetScrollbarsHidden
CommandEmulationSetDocumentCookieDisabled = emulation.CommandSetDocumentCookieDisabled
CommandEmulationSetEmitTouchEventsForMouse = emulation.CommandSetEmitTouchEventsForMouse
CommandEmulationSetEmulatedMedia = emulation.CommandSetEmulatedMedia
CommandEmulationSetGeolocationOverride = emulation.CommandSetGeolocationOverride
CommandEmulationSetPageScaleFactor = emulation.CommandSetPageScaleFactor
CommandEmulationSetScriptExecutionDisabled = emulation.CommandSetScriptExecutionDisabled
CommandEmulationSetTouchEmulationEnabled = emulation.CommandSetTouchEmulationEnabled
CommandEmulationSetVirtualTimePolicy = emulation.CommandSetVirtualTimePolicy
CommandEmulationSetUserAgentOverride = emulation.CommandSetUserAgentOverride
EventEmulationVirtualTimeAdvanced = "Emulation.virtualTimeAdvanced"
EventEmulationVirtualTimeBudgetExpired = "Emulation.virtualTimeBudgetExpired"
EventEmulationVirtualTimePaused = "Emulation.virtualTimePaused"
CommandHeadlessExperimentalBeginFrame = headlessexperimental.CommandBeginFrame
CommandHeadlessExperimentalDisable = headlessexperimental.CommandDisable
CommandHeadlessExperimentalEnable = headlessexperimental.CommandEnable
EventHeadlessExperimentalNeedsBeginFramesChanged = "HeadlessExperimental.needsBeginFramesChanged"
CommandHeapProfilerAddInspectedHeapObject = heapprofiler.CommandAddInspectedHeapObject
CommandHeapProfilerCollectGarbage = heapprofiler.CommandCollectGarbage
CommandHeapProfilerDisable = heapprofiler.CommandDisable
CommandHeapProfilerEnable = heapprofiler.CommandEnable
CommandHeapProfilerGetHeapObjectID = heapprofiler.CommandGetHeapObjectID
CommandHeapProfilerGetObjectByHeapObjectID = heapprofiler.CommandGetObjectByHeapObjectID
CommandHeapProfilerGetSamplingProfile = heapprofiler.CommandGetSamplingProfile
CommandHeapProfilerStartSampling = heapprofiler.CommandStartSampling
CommandHeapProfilerStartTrackingHeapObjects = heapprofiler.CommandStartTrackingHeapObjects
CommandHeapProfilerStopSampling = heapprofiler.CommandStopSampling
CommandHeapProfilerStopTrackingHeapObjects = heapprofiler.CommandStopTrackingHeapObjects
CommandHeapProfilerTakeHeapSnapshot = heapprofiler.CommandTakeHeapSnapshot
EventHeapProfilerAddHeapSnapshotChunk = "HeapProfiler.addHeapSnapshotChunk"
EventHeapProfilerHeapStatsUpdate = "HeapProfiler.heapStatsUpdate"
EventHeapProfilerLastSeenObjectID = "HeapProfiler.lastSeenObjectId"
EventHeapProfilerReportHeapSnapshotProgress = "HeapProfiler.reportHeapSnapshotProgress"
EventHeapProfilerResetProfiles = "HeapProfiler.resetProfiles"
CommandIOClose = io.CommandClose
CommandIORead = io.CommandRead
CommandIOResolveBlob = io.CommandResolveBlob
CommandIndexedDBClearObjectStore = indexeddb.CommandClearObjectStore
CommandIndexedDBDeleteDatabase = indexeddb.CommandDeleteDatabase
CommandIndexedDBDeleteObjectStoreEntries = indexeddb.CommandDeleteObjectStoreEntries
CommandIndexedDBDisable = indexeddb.CommandDisable
CommandIndexedDBEnable = indexeddb.CommandEnable
CommandIndexedDBRequestData = indexeddb.CommandRequestData
CommandIndexedDBRequestDatabase = indexeddb.CommandRequestDatabase
CommandIndexedDBRequestDatabaseNames = indexeddb.CommandRequestDatabaseNames
CommandInputDispatchKeyEvent = input.CommandDispatchKeyEvent
CommandInputInsertText = input.CommandInsertText
CommandInputDispatchMouseEvent = input.CommandDispatchMouseEvent
CommandInputDispatchTouchEvent = input.CommandDispatchTouchEvent
CommandInputEmulateTouchFromMouseEvent = input.CommandEmulateTouchFromMouseEvent
CommandInputSetIgnoreInputEvents = input.CommandSetIgnoreInputEvents
CommandInputSynthesizePinchGesture = input.CommandSynthesizePinchGesture
CommandInputSynthesizeScrollGesture = input.CommandSynthesizeScrollGesture
CommandInputSynthesizeTapGesture = input.CommandSynthesizeTapGesture
CommandInspectorDisable = inspector.CommandDisable
CommandInspectorEnable = inspector.CommandEnable
EventInspectorDetached = "Inspector.detached"
EventInspectorTargetCrashed = "Inspector.targetCrashed"
EventInspectorTargetReloadedAfterCrash = "Inspector.targetReloadedAfterCrash"
CommandLayerTreeCompositingReasons = layertree.CommandCompositingReasons
CommandLayerTreeDisable = layertree.CommandDisable
CommandLayerTreeEnable = layertree.CommandEnable
CommandLayerTreeLoadSnapshot = layertree.CommandLoadSnapshot
CommandLayerTreeMakeSnapshot = layertree.CommandMakeSnapshot
CommandLayerTreeProfileSnapshot = layertree.CommandProfileSnapshot
CommandLayerTreeReleaseSnapshot = layertree.CommandReleaseSnapshot
CommandLayerTreeReplaySnapshot = layertree.CommandReplaySnapshot
CommandLayerTreeSnapshotCommandLog = layertree.CommandSnapshotCommandLog
EventLayerTreeLayerPainted = "LayerTree.layerPainted"
EventLayerTreeLayerTreeDidChange = "LayerTree.layerTreeDidChange"
CommandLogClear = log.CommandClear
CommandLogDisable = log.CommandDisable
CommandLogEnable = log.CommandEnable
CommandLogStartViolationsReport = log.CommandStartViolationsReport
CommandLogStopViolationsReport = log.CommandStopViolationsReport
EventLogEntryAdded = "Log.entryAdded"
CommandMemoryGetDOMCounters = memory.CommandGetDOMCounters
CommandMemoryPrepareForLeakDetection = memory.CommandPrepareForLeakDetection
CommandMemorySetPressureNotificationsSuppressed = memory.CommandSetPressureNotificationsSuppressed
CommandMemorySimulatePressureNotification = memory.CommandSimulatePressureNotification
CommandMemoryStartSampling = memory.CommandStartSampling
CommandMemoryStopSampling = memory.CommandStopSampling
CommandMemoryGetAllTimeSamplingProfile = memory.CommandGetAllTimeSamplingProfile
CommandMemoryGetBrowserSamplingProfile = memory.CommandGetBrowserSamplingProfile
CommandMemoryGetSamplingProfile = memory.CommandGetSamplingProfile
CommandNetworkClearBrowserCache = network.CommandClearBrowserCache
CommandNetworkClearBrowserCookies = network.CommandClearBrowserCookies
CommandNetworkContinueInterceptedRequest = network.CommandContinueInterceptedRequest
CommandNetworkDeleteCookies = network.CommandDeleteCookies
CommandNetworkDisable = network.CommandDisable
CommandNetworkEmulateNetworkConditions = network.CommandEmulateNetworkConditions
CommandNetworkEnable = network.CommandEnable
CommandNetworkGetAllCookies = network.CommandGetAllCookies
CommandNetworkGetCertificate = network.CommandGetCertificate
CommandNetworkGetCookies = network.CommandGetCookies
CommandNetworkGetResponseBody = network.CommandGetResponseBody
CommandNetworkGetRequestPostData = network.CommandGetRequestPostData
CommandNetworkGetResponseBodyForInterception = network.CommandGetResponseBodyForInterception
CommandNetworkTakeResponseBodyForInterceptionAsStream = network.CommandTakeResponseBodyForInterceptionAsStream
CommandNetworkReplayXHR = network.CommandReplayXHR
CommandNetworkSearchInResponseBody = network.CommandSearchInResponseBody
CommandNetworkSetBlockedURLS = network.CommandSetBlockedURLS
CommandNetworkSetBypassServiceWorker = network.CommandSetBypassServiceWorker
CommandNetworkSetCacheDisabled = network.CommandSetCacheDisabled
CommandNetworkSetCookie = network.CommandSetCookie
CommandNetworkSetCookies = network.CommandSetCookies
CommandNetworkSetDataSizeLimitsForTest = network.CommandSetDataSizeLimitsForTest
CommandNetworkSetExtraHTTPHeaders = network.CommandSetExtraHTTPHeaders
CommandNetworkSetRequestInterception = network.CommandSetRequestInterception
EventNetworkDataReceived = "Network.dataReceived"
EventNetworkEventSourceMessageReceived = "Network.eventSourceMessageReceived"
EventNetworkLoadingFailed = "Network.loadingFailed"
EventNetworkLoadingFinished = "Network.loadingFinished"
EventNetworkRequestIntercepted = "Network.requestIntercepted"
EventNetworkRequestServedFromCache = "Network.requestServedFromCache"
EventNetworkRequestWillBeSent = "Network.requestWillBeSent"
EventNetworkResourceChangedPriority = "Network.resourceChangedPriority"
EventNetworkSignedExchangeReceived = "Network.signedExchangeReceived"
EventNetworkResponseReceived = "Network.responseReceived"
EventNetworkWebSocketClosed = "Network.webSocketClosed"
EventNetworkWebSocketCreated = "Network.webSocketCreated"
EventNetworkWebSocketFrameError = "Network.webSocketFrameError"
EventNetworkWebSocketFrameReceived = "Network.webSocketFrameReceived"
EventNetworkWebSocketFrameSent = "Network.webSocketFrameSent"
EventNetworkWebSocketHandshakeResponseReceived = "Network.webSocketHandshakeResponseReceived"
EventNetworkWebSocketWillSendHandshakeRequest = "Network.webSocketWillSendHandshakeRequest"
CommandOverlayDisable = overlay.CommandDisable
CommandOverlayEnable = overlay.CommandEnable
CommandOverlayGetHighlightObjectForTest = overlay.CommandGetHighlightObjectForTest
CommandOverlayHideHighlight = overlay.CommandHideHighlight
CommandOverlayHighlightFrame = overlay.CommandHighlightFrame
CommandOverlayHighlightNode = overlay.CommandHighlightNode
CommandOverlayHighlightQuad = overlay.CommandHighlightQuad
CommandOverlayHighlightRect = overlay.CommandHighlightRect
CommandOverlaySetInspectMode = overlay.CommandSetInspectMode
CommandOverlaySetPausedInDebuggerMessage = overlay.CommandSetPausedInDebuggerMessage
CommandOverlaySetShowDebugBorders = overlay.CommandSetShowDebugBorders
CommandOverlaySetShowFPSCounter = overlay.CommandSetShowFPSCounter
CommandOverlaySetShowPaintRects = overlay.CommandSetShowPaintRects
CommandOverlaySetShowScrollBottleneckRects = overlay.CommandSetShowScrollBottleneckRects
CommandOverlaySetShowViewportSizeOnResize = overlay.CommandSetShowViewportSizeOnResize
CommandOverlaySetSuspended = overlay.CommandSetSuspended
EventOverlayInspectNodeRequested = "Overlay.inspectNodeRequested"
EventOverlayNodeHighlightRequested = "Overlay.nodeHighlightRequested"
EventOverlayScreenshotRequested = "Overlay.screenshotRequested"
CommandPageAddScriptToEvaluateOnNewDocument = page.CommandAddScriptToEvaluateOnNewDocument
CommandPageBringToFront = page.CommandBringToFront
CommandPageCaptureScreenshot = page.CommandCaptureScreenshot
CommandPageCreateIsolatedWorld = page.CommandCreateIsolatedWorld
CommandPageDisable = page.CommandDisable
CommandPageEnable = page.CommandEnable
CommandPageGetAppManifest = page.CommandGetAppManifest
CommandPageGetFrameTree = page.CommandGetFrameTree
CommandPageGetLayoutMetrics = page.CommandGetLayoutMetrics
CommandPageGetNavigationHistory = page.CommandGetNavigationHistory
CommandPageGetResourceContent = page.CommandGetResourceContent
CommandPageGetResourceTree = page.CommandGetResourceTree
CommandPageHandleJavaScriptDialog = page.CommandHandleJavaScriptDialog
CommandPageNavigate = page.CommandNavigate
CommandPageNavigateToHistoryEntry = page.CommandNavigateToHistoryEntry
CommandPagePrintToPDF = page.CommandPrintToPDF
CommandPageReload = page.CommandReload
CommandPageRemoveScriptToEvaluateOnNewDocument = page.CommandRemoveScriptToEvaluateOnNewDocument
CommandPageRequestAppBanner = page.CommandRequestAppBanner
CommandPageScreencastFrameAck = page.CommandScreencastFrameAck
CommandPageSearchInResource = page.CommandSearchInResource
CommandPageSetAdBlockingEnabled = page.CommandSetAdBlockingEnabled
CommandPageSetBypassCSP = page.CommandSetBypassCSP
CommandPageSetFontFamilies = page.CommandSetFontFamilies
CommandPageSetFontSizes = page.CommandSetFontSizes
CommandPageSetDocumentContent = page.CommandSetDocumentContent
CommandPageSetDownloadBehavior = page.CommandSetDownloadBehavior
CommandPageSetLifecycleEventsEnabled = page.CommandSetLifecycleEventsEnabled
CommandPageStartScreencast = page.CommandStartScreencast
CommandPageStopLoading = page.CommandStopLoading
CommandPageCrash = page.CommandCrash
CommandPageClose = page.CommandClose
CommandPageSetWebLifecycleState = page.CommandSetWebLifecycleState
CommandPageStopScreencast = page.CommandStopScreencast
CommandPageSetProduceCompilationCache = page.CommandSetProduceCompilationCache
CommandPageAddCompilationCache = page.CommandAddCompilationCache
CommandPageClearCompilationCache = page.CommandClearCompilationCache
CommandPageGenerateTestReport = page.CommandGenerateTestReport
EventPageDomContentEventFired = "Page.domContentEventFired"
EventPageFrameAttached = "Page.frameAttached"
EventPageFrameClearedScheduledNavigation = "Page.frameClearedScheduledNavigation"
EventPageFrameDetached = "Page.frameDetached"
EventPageFrameNavigated = "Page.frameNavigated"
EventPageFrameResized = "Page.frameResized"
EventPageFrameScheduledNavigation = "Page.frameScheduledNavigation"
EventPageFrameStartedLoading = "Page.frameStartedLoading"
EventPageFrameStoppedLoading = "Page.frameStoppedLoading"
EventPageInterstitialHidden = "Page.interstitialHidden"
EventPageInterstitialShown = "Page.interstitialShown"
EventPageJavascriptDialogClosed = "Page.javascriptDialogClosed"
EventPageJavascriptDialogOpening = "Page.javascriptDialogOpening"
EventPageLifecycleEvent = "Page.lifecycleEvent"
EventPageLoadEventFired = "Page.loadEventFired"
EventPageNavigatedWithinDocument = "Page.navigatedWithinDocument"
EventPageScreencastFrame = "Page.screencastFrame"
EventPageScreencastVisibilityChanged = "Page.screencastVisibilityChanged"
EventPageWindowOpen = "Page.windowOpen"
EventPageCompilationCacheProduced = "Page.compilationCacheProduced"
CommandPerformanceDisable = performance.CommandDisable
CommandPerformanceEnable = performance.CommandEnable
CommandPerformanceSetTimeDomain = performance.CommandSetTimeDomain
CommandPerformanceGetMetrics = performance.CommandGetMetrics
EventPerformanceMetrics = "Performance.metrics"
CommandProfilerDisable = profiler.CommandDisable
CommandProfilerEnable = profiler.CommandEnable
CommandProfilerGetBestEffortCoverage = profiler.CommandGetBestEffortCoverage
CommandProfilerSetSamplingInterval = profiler.CommandSetSamplingInterval
CommandProfilerStart = profiler.CommandStart
CommandProfilerStartPreciseCoverage = profiler.CommandStartPreciseCoverage
CommandProfilerStartTypeProfile = profiler.CommandStartTypeProfile
CommandProfilerStop = profiler.CommandStop
CommandProfilerStopPreciseCoverage = profiler.CommandStopPreciseCoverage
CommandProfilerStopTypeProfile = profiler.CommandStopTypeProfile
CommandProfilerTakePreciseCoverage = profiler.CommandTakePreciseCoverage
CommandProfilerTakeTypeProfile = profiler.CommandTakeTypeProfile
EventProfilerConsoleProfileFinished = "Profiler.consoleProfileFinished"
EventProfilerConsoleProfileStarted = "Profiler.consoleProfileStarted"
CommandRuntimeAwaitPromise = runtime.CommandAwaitPromise
CommandRuntimeCallFunctionOn = runtime.CommandCallFunctionOn
CommandRuntimeCompileScript = runtime.CommandCompileScript
CommandRuntimeDisable = runtime.CommandDisable
CommandRuntimeDiscardConsoleEntries = runtime.CommandDiscardConsoleEntries
CommandRuntimeEnable = runtime.CommandEnable
CommandRuntimeEvaluate = runtime.CommandEvaluate
CommandRuntimeGetIsolateID = runtime.CommandGetIsolateID
CommandRuntimeGetHeapUsage = runtime.CommandGetHeapUsage
CommandRuntimeGetProperties = runtime.CommandGetProperties
CommandRuntimeGlobalLexicalScopeNames = runtime.CommandGlobalLexicalScopeNames
CommandRuntimeQueryObjects = runtime.CommandQueryObjects
CommandRuntimeReleaseObject = runtime.CommandReleaseObject
CommandRuntimeReleaseObjectGroup = runtime.CommandReleaseObjectGroup
CommandRuntimeRunIfWaitingForDebugger = runtime.CommandRunIfWaitingForDebugger
CommandRuntimeRunScript = runtime.CommandRunScript
CommandRuntimeSetCustomObjectFormatterEnabled = runtime.CommandSetCustomObjectFormatterEnabled
CommandRuntimeSetMaxCallStackSizeToCapture = runtime.CommandSetMaxCallStackSizeToCapture
CommandRuntimeTerminateExecution = runtime.CommandTerminateExecution
CommandRuntimeAddBinding = runtime.CommandAddBinding
CommandRuntimeRemoveBinding = runtime.CommandRemoveBinding
EventRuntimeBindingCalled = "Runtime.bindingCalled"
EventRuntimeConsoleAPICalled = "Runtime.consoleAPICalled"
EventRuntimeExceptionRevoked = "Runtime.exceptionRevoked"
EventRuntimeExceptionThrown = "Runtime.exceptionThrown"
EventRuntimeExecutionContextCreated = "Runtime.executionContextCreated"
EventRuntimeExecutionContextDestroyed = "Runtime.executionContextDestroyed"
EventRuntimeExecutionContextsCleared = "Runtime.executionContextsCleared"
EventRuntimeInspectRequested = "Runtime.inspectRequested"
CommandSecurityDisable = security.CommandDisable
CommandSecurityEnable = security.CommandEnable
CommandSecuritySetIgnoreCertificateErrors = security.CommandSetIgnoreCertificateErrors
EventSecuritySecurityStateChanged = "Security.securityStateChanged"
CommandServiceWorkerDeliverPushMessage = serviceworker.CommandDeliverPushMessage
CommandServiceWorkerDisable = serviceworker.CommandDisable
CommandServiceWorkerDispatchSyncEvent = serviceworker.CommandDispatchSyncEvent
CommandServiceWorkerEnable = serviceworker.CommandEnable
CommandServiceWorkerInspectWorker = serviceworker.CommandInspectWorker
CommandServiceWorkerSetForceUpdateOnPageLoad = serviceworker.CommandSetForceUpdateOnPageLoad
CommandServiceWorkerSkipWaiting = serviceworker.CommandSkipWaiting
CommandServiceWorkerStartWorker = serviceworker.CommandStartWorker
CommandServiceWorkerStopAllWorkers = serviceworker.CommandStopAllWorkers
CommandServiceWorkerStopWorker = serviceworker.CommandStopWorker
CommandServiceWorkerUnregister = serviceworker.CommandUnregister
CommandServiceWorkerUpdateRegistration = serviceworker.CommandUpdateRegistration
EventServiceWorkerWorkerErrorReported = "ServiceWorker.workerErrorReported"
EventServiceWorkerWorkerRegistrationUpdated = "ServiceWorker.workerRegistrationUpdated"
EventServiceWorkerWorkerVersionUpdated = "ServiceWorker.workerVersionUpdated"
CommandStorageClearDataForOrigin = storage.CommandClearDataForOrigin
CommandStorageGetUsageAndQuota = storage.CommandGetUsageAndQuota
CommandStorageTrackCacheStorageForOrigin = storage.CommandTrackCacheStorageForOrigin
CommandStorageTrackIndexedDBForOrigin = storage.CommandTrackIndexedDBForOrigin
CommandStorageUntrackCacheStorageForOrigin = storage.CommandUntrackCacheStorageForOrigin
CommandStorageUntrackIndexedDBForOrigin = storage.CommandUntrackIndexedDBForOrigin
EventStorageCacheStorageContentUpdated = "Storage.cacheStorageContentUpdated"
EventStorageCacheStorageListUpdated = "Storage.cacheStorageListUpdated"
EventStorageIndexedDBContentUpdated = "Storage.indexedDBContentUpdated"
EventStorageIndexedDBListUpdated = "Storage.indexedDBListUpdated"
CommandSystemInfoGetInfo = systeminfo.CommandGetInfo
CommandTargetActivateTarget = target.CommandActivateTarget
CommandTargetAttachToTarget = target.CommandAttachToTarget
CommandTargetAttachToBrowserTarget = target.CommandAttachToBrowserTarget
CommandTargetCloseTarget = target.CommandCloseTarget
CommandTargetExposeDevToolsProtocol = target.CommandExposeDevToolsProtocol
CommandTargetCreateBrowserContext = target.CommandCreateBrowserContext
CommandTargetGetBrowserContexts = target.CommandGetBrowserContexts
CommandTargetCreateTarget = target.CommandCreateTarget
CommandTargetDetachFromTarget = target.CommandDetachFromTarget
CommandTargetDisposeBrowserContext = target.CommandDisposeBrowserContext
CommandTargetGetTargetInfo = target.CommandGetTargetInfo
CommandTargetGetTargets = target.CommandGetTargets
CommandTargetSendMessageToTarget = target.CommandSendMessageToTarget
CommandTargetSetAutoAttach = target.CommandSetAutoAttach
CommandTargetSetDiscoverTargets = target.CommandSetDiscoverTargets
CommandTargetSetRemoteLocations = target.CommandSetRemoteLocations
EventTargetAttachedToTarget = "Target.attachedToTarget"
EventTargetDetachedFromTarget = "Target.detachedFromTarget"
EventTargetReceivedMessageFromTarget = "Target.receivedMessageFromTarget"
EventTargetTargetCreated = "Target.targetCreated"
EventTargetTargetDestroyed = "Target.targetDestroyed"
EventTargetTargetCrashed = "Target.targetCrashed"
EventTargetTargetInfoChanged = "Target.targetInfoChanged"
CommandTestingGenerateTestReport = testing.CommandGenerateTestReport
CommandTetheringBind = tethering.CommandBind
CommandTetheringUnbind = tethering.CommandUnbind
EventTetheringAccepted = "Tethering.accepted"
CommandTracingEnd = tracing.CommandEnd
CommandTracingGetCategories = tracing.CommandGetCategories
CommandTracingRecordClockSyncMarker = tracing.CommandRecordClockSyncMarker
CommandTracingRequestMemoryDump = tracing.CommandRequestMemoryDump
CommandTracingStart = tracing.CommandStart
EventTracingBufferUsage = "Tracing.bufferUsage"
EventTracingDataCollected = "Tracing.dataCollected"
EventTracingTracingComplete = "Tracing.tracingComplete"
)
// Error error type.
type Error struct {
Code int64 `json:"code"` // Error code.
Message string `json:"message"` // Error message.
}
// Error satisfies the error interface.
func (e *Error) Error() string {
return fmt.Sprintf("%s (%d)", e.Message, e.Code)
}
// Message chrome DevTools Protocol message sent/read over websocket
// connection.
type Message struct {
ID int64 `json:"id,omitempty"` // Unique message identifier.
Method MethodType `json:"method,omitempty"` // Event or command type.
Params easyjson.RawMessage `json:"params,omitempty"` // Event or command parameters.
Result easyjson.RawMessage `json:"result,omitempty"` // Command return values.
Error *Error `json:"error,omitempty"` // Error message.
}
type empty struct{}
var emptyVal = &empty{}
// UnmarshalMessage unmarshals the message result or params.
func UnmarshalMessage(msg *Message) (interface{}, error) {
var v easyjson.Unmarshaler
switch msg.Method {
case CommandAccessibilityGetPartialAXTree:
v = new(accessibility.GetPartialAXTreeReturns)
case CommandAccessibilityGetFullAXTree:
v = new(accessibility.GetFullAXTreeReturns)
case CommandAnimationDisable:
return emptyVal, nil
case CommandAnimationEnable:
return emptyVal, nil
case CommandAnimationGetCurrentTime:
v = new(animation.GetCurrentTimeReturns)
case CommandAnimationGetPlaybackRate:
v = new(animation.GetPlaybackRateReturns)
case CommandAnimationReleaseAnimations:
return emptyVal, nil
case CommandAnimationResolveAnimation:
v = new(animation.ResolveAnimationReturns)
case CommandAnimationSeekAnimations:
return emptyVal, nil
case CommandAnimationSetPaused:
return emptyVal, nil
case CommandAnimationSetPlaybackRate:
return emptyVal, nil
case CommandAnimationSetTiming:
return emptyVal, nil
case EventAnimationAnimationCanceled:
v = new(animation.EventAnimationCanceled)
case EventAnimationAnimationCreated:
v = new(animation.EventAnimationCreated)
case EventAnimationAnimationStarted:
v = new(animation.EventAnimationStarted)
case CommandApplicationCacheEnable:
return emptyVal, nil
case CommandApplicationCacheGetApplicationCacheForFrame:
v = new(applicationcache.GetApplicationCacheForFrameReturns)
case CommandApplicationCacheGetFramesWithManifests:
v = new(applicationcache.GetFramesWithManifestsReturns)
case CommandApplicationCacheGetManifestForFrame:
v = new(applicationcache.GetManifestForFrameReturns)
case EventApplicationCacheApplicationCacheStatusUpdated:
v = new(applicationcache.EventApplicationCacheStatusUpdated)
case EventApplicationCacheNetworkStateUpdated:
v = new(applicationcache.EventNetworkStateUpdated)
case CommandAuditsGetEncodedResponse:
v = new(audits.GetEncodedResponseReturns)
case CommandBrowserGrantPermissions:
return emptyVal, nil
case CommandBrowserResetPermissions:
return emptyVal, nil
case CommandBrowserClose:
return emptyVal, nil
case CommandBrowserCrash:
return emptyVal, nil
case CommandBrowserGetVersion:
v = new(browser.GetVersionReturns)
case CommandBrowserGetBrowserCommandLine:
v = new(browser.GetBrowserCommandLineReturns)
case CommandBrowserGetHistograms:
v = new(browser.GetHistogramsReturns)
case CommandBrowserGetHistogram:
v = new(browser.GetHistogramReturns)
case CommandBrowserGetWindowBounds:
v = new(browser.GetWindowBoundsReturns)
case CommandBrowserGetWindowForTarget:
v = new(browser.GetWindowForTargetReturns)
case CommandBrowserSetWindowBounds:
return emptyVal, nil
case CommandCSSAddRule:
v = new(css.AddRuleReturns)
case CommandCSSCollectClassNames:
v = new(css.CollectClassNamesReturns)
case CommandCSSCreateStyleSheet:
v = new(css.CreateStyleSheetReturns)
case CommandCSSDisable:
return emptyVal, nil
case CommandCSSEnable:
return emptyVal, nil
case CommandCSSForcePseudoState:
return emptyVal, nil
case CommandCSSGetBackgroundColors:
v = new(css.GetBackgroundColorsReturns)
case CommandCSSGetComputedStyleForNode:
v = new(css.GetComputedStyleForNodeReturns)
case CommandCSSGetInlineStylesForNode:
v = new(css.GetInlineStylesForNodeReturns)
case CommandCSSGetMatchedStylesForNode:
v = new(css.GetMatchedStylesForNodeReturns)
case CommandCSSGetMediaQueries:
v = new(css.GetMediaQueriesReturns)
case CommandCSSGetPlatformFontsForNode:
v = new(css.GetPlatformFontsForNodeReturns)
case CommandCSSGetStyleSheetText:
v = new(css.GetStyleSheetTextReturns)
case CommandCSSSetEffectivePropertyValueForNode:
return emptyVal, nil
case CommandCSSSetKeyframeKey:
v = new(css.SetKeyframeKeyReturns)
case CommandCSSSetMediaText:
v = new(css.SetMediaTextReturns)
case CommandCSSSetRuleSelector:
v = new(css.SetRuleSelectorReturns)
case CommandCSSSetStyleSheetText:
v = new(css.SetStyleSheetTextReturns)
case CommandCSSSetStyleTexts:
v = new(css.SetStyleTextsReturns)
case CommandCSSStartRuleUsageTracking:
return emptyVal, nil
case CommandCSSStopRuleUsageTracking:
v = new(css.StopRuleUsageTrackingReturns)
case CommandCSSTakeCoverageDelta:
v = new(css.TakeCoverageDeltaReturns)
case EventCSSFontsUpdated:
v = new(css.EventFontsUpdated)
case EventCSSMediaQueryResultChanged:
v = new(css.EventMediaQueryResultChanged)
case EventCSSStyleSheetAdded:
v = new(css.EventStyleSheetAdded)
case EventCSSStyleSheetChanged:
v = new(css.EventStyleSheetChanged)
case EventCSSStyleSheetRemoved:
v = new(css.EventStyleSheetRemoved)
case CommandCacheStorageDeleteCache:
return emptyVal, nil
case CommandCacheStorageDeleteEntry:
return emptyVal, nil
case CommandCacheStorageRequestCacheNames:
v = new(cachestorage.RequestCacheNamesReturns)
case CommandCacheStorageRequestCachedResponse:
v = new(cachestorage.RequestCachedResponseReturns)
case CommandCacheStorageRequestEntries:
v = new(cachestorage.RequestEntriesReturns)
case CommandDOMCollectClassNamesFromSubtree:
v = new(dom.CollectClassNamesFromSubtreeReturns)
case CommandDOMCopyTo:
v = new(dom.CopyToReturns)
case CommandDOMDescribeNode:
v = new(dom.DescribeNodeReturns)
case CommandDOMDisable:
return emptyVal, nil
case CommandDOMDiscardSearchResults:
return emptyVal, nil
case CommandDOMEnable:
return emptyVal, nil
case CommandDOMFocus:
return emptyVal, nil
case CommandDOMGetAttributes:
v = new(dom.GetAttributesReturns)
case CommandDOMGetBoxModel:
v = new(dom.GetBoxModelReturns)
case CommandDOMGetContentQuads:
v = new(dom.GetContentQuadsReturns)
case CommandDOMGetDocument:
v = new(dom.GetDocumentReturns)
case CommandDOMGetFlattenedDocument:
v = new(dom.GetFlattenedDocumentReturns)
case CommandDOMGetNodeForLocation:
v = new(dom.GetNodeForLocationReturns)
case CommandDOMGetOuterHTML:
v = new(dom.GetOuterHTMLReturns)
case CommandDOMGetRelayoutBoundary:
v = new(dom.GetRelayoutBoundaryReturns)
case CommandDOMGetSearchResults:
v = new(dom.GetSearchResultsReturns)
case CommandDOMMarkUndoableState:
return emptyVal, nil
case CommandDOMMoveTo:
v = new(dom.MoveToReturns)
case CommandDOMPerformSearch:
v = new(dom.PerformSearchReturns)
case CommandDOMPushNodeByPathToFrontend:
v = new(dom.PushNodeByPathToFrontendReturns)
case CommandDOMPushNodesByBackendIdsToFrontend:
v = new(dom.PushNodesByBackendIdsToFrontendReturns)
case CommandDOMQuerySelector:
v = new(dom.QuerySelectorReturns)
case CommandDOMQuerySelectorAll:
v = new(dom.QuerySelectorAllReturns)
case CommandDOMRedo:
return emptyVal, nil
case CommandDOMRemoveAttribute:
return emptyVal, nil
case CommandDOMRemoveNode:
return emptyVal, nil
case CommandDOMRequestChildNodes:
return emptyVal, nil
case CommandDOMRequestNode:
v = new(dom.RequestNodeReturns)
case CommandDOMResolveNode:
v = new(dom.ResolveNodeReturns)
case CommandDOMSetAttributeValue:
return emptyVal, nil
case CommandDOMSetAttributesAsText:
return emptyVal, nil
case CommandDOMSetFileInputFiles:
return emptyVal, nil
case CommandDOMSetInspectedNode:
return emptyVal, nil
case CommandDOMSetNodeName:
v = new(dom.SetNodeNameReturns)
case CommandDOMSetNodeValue:
return emptyVal, nil
case CommandDOMSetOuterHTML:
return emptyVal, nil
case CommandDOMUndo:
return emptyVal, nil
case CommandDOMGetFrameOwner:
v = new(dom.GetFrameOwnerReturns)
case EventDOMAttributeModified:
v = new(dom.EventAttributeModified)
case EventDOMAttributeRemoved:
v = new(dom.EventAttributeRemoved)
case EventDOMCharacterDataModified:
v = new(dom.EventCharacterDataModified)
case EventDOMChildNodeCountUpdated:
v = new(dom.EventChildNodeCountUpdated)
case EventDOMChildNodeInserted:
v = new(dom.EventChildNodeInserted)
case EventDOMChildNodeRemoved:
v = new(dom.EventChildNodeRemoved)
case EventDOMDistributedNodesUpdated:
v = new(dom.EventDistributedNodesUpdated)
case EventDOMDocumentUpdated:
v = new(dom.EventDocumentUpdated)
case EventDOMInlineStyleInvalidated:
v = new(dom.EventInlineStyleInvalidated)
case EventDOMPseudoElementAdded:
v = new(dom.EventPseudoElementAdded)
case EventDOMPseudoElementRemoved:
v = new(dom.EventPseudoElementRemoved)
case EventDOMSetChildNodes:
v = new(dom.EventSetChildNodes)
case EventDOMShadowRootPopped:
v = new(dom.EventShadowRootPopped)
case EventDOMShadowRootPushed:
v = new(dom.EventShadowRootPushed)
case CommandDOMDebuggerGetEventListeners:
v = new(domdebugger.GetEventListenersReturns)
case CommandDOMDebuggerRemoveDOMBreakpoint:
return emptyVal, nil
case CommandDOMDebuggerRemoveEventListenerBreakpoint:
return emptyVal, nil
case CommandDOMDebuggerRemoveInstrumentationBreakpoint:
return emptyVal, nil
case CommandDOMDebuggerRemoveXHRBreakpoint:
return emptyVal, nil
case CommandDOMDebuggerSetDOMBreakpoint:
return emptyVal, nil
case CommandDOMDebuggerSetEventListenerBreakpoint:
return emptyVal, nil
case CommandDOMDebuggerSetInstrumentationBreakpoint:
return emptyVal, nil
case CommandDOMDebuggerSetXHRBreakpoint:
return emptyVal, nil
case CommandDOMSnapshotDisable:
return emptyVal, nil
case CommandDOMSnapshotEnable:
return emptyVal, nil
case CommandDOMSnapshotCaptureSnapshot:
v = new(domsnapshot.CaptureSnapshotReturns)
case CommandDOMStorageClear:
return emptyVal, nil
case CommandDOMStorageDisable:
return emptyVal, nil