Updating to latest protocol.json

This commit is contained in:
Kenneth Shaw 2017-11-22 12:01:27 +07:00
parent 289f0eeb04
commit 88d4832728
55 changed files with 18596 additions and 13061 deletions

View File

@ -82,14 +82,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility(out *jwriter.Wri
first := true first := true
_ = first _ = first
if len(in.Nodes) != 0 { if len(in.Nodes) != 0 {
if !first { const prefix string = ",\"nodes\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"nodes\":") out.RawString(prefix[1:])
if in.Nodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v2, v3 := range in.Nodes { for v2, v3 := range in.Nodes {
if v2 > 0 { if v2 > 0 {
@ -167,18 +167,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility1(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"nodeId\":"
} if first {
first = false first = false
out.RawString("\"nodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.NodeID)) out.Int64(int64(in.NodeID))
if in.FetchRelatives {
if !first {
out.RawByte(',')
} }
if in.FetchRelatives {
const prefix string = ",\"fetchRelatives\":"
if first {
first = false first = false
out.RawString("\"fetchRelatives\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.FetchRelatives)) out.Bool(bool(in.FetchRelatives))
} }
out.RawByte('}') out.RawByte('}')
@ -282,86 +288,94 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility2(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"type\":"
} if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
(in.Type).MarshalEasyJSON(out)
if in.Value != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"value\":")
if in.Value == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out)
}
if in.Value != nil {
const prefix string = ",\"value\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(*in.Value).MarshalEasyJSON(out) (*in.Value).MarshalEasyJSON(out)
} }
}
if in.Attribute != "" { if in.Attribute != "" {
if !first { const prefix string = ",\"attribute\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"attribute\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Attribute)) out.String(string(in.Attribute))
} }
if in.AttributeValue != nil { if in.AttributeValue != nil {
if !first { const prefix string = ",\"attributeValue\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"attributeValue\":") out.RawString(prefix[1:])
if in.AttributeValue == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.AttributeValue).MarshalEasyJSON(out) (*in.AttributeValue).MarshalEasyJSON(out)
} }
}
if in.Superseded { if in.Superseded {
if !first { const prefix string = ",\"superseded\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"superseded\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Superseded)) out.Bool(bool(in.Superseded))
} }
if in.NativeSource != "" { if in.NativeSource != "" {
if !first { const prefix string = ",\"nativeSource\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"nativeSource\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.NativeSource).MarshalEasyJSON(out) (in.NativeSource).MarshalEasyJSON(out)
} }
if in.NativeSourceValue != nil { if in.NativeSourceValue != nil {
if !first { const prefix string = ",\"nativeSourceValue\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"nativeSourceValue\":") out.RawString(prefix[1:])
if in.NativeSourceValue == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.NativeSourceValue).MarshalEasyJSON(out) (*in.NativeSourceValue).MarshalEasyJSON(out)
} }
}
if in.Invalid { if in.Invalid {
if !first { const prefix string = ",\"invalid\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"invalid\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Invalid)) out.Bool(bool(in.Invalid))
} }
if in.InvalidReason != "" { if in.InvalidReason != "" {
if !first { const prefix string = ",\"invalidReason\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"invalidReason\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.InvalidReason)) out.String(string(in.InvalidReason))
} }
out.RawByte('}') out.RawByte('}')
@ -489,29 +503,35 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility3(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"type\":"
} if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out) (in.Type).MarshalEasyJSON(out)
if (in.Value).IsDefined() {
if !first {
out.RawByte(',')
} }
if (in.Value).IsDefined() {
const prefix string = ",\"value\":"
if first {
first = false first = false
out.RawString("\"value\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Value).MarshalEasyJSON(out) (in.Value).MarshalEasyJSON(out)
} }
if len(in.RelatedNodes) != 0 { if len(in.RelatedNodes) != 0 {
if !first { const prefix string = ",\"relatedNodes\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"relatedNodes\":") out.RawString(prefix[1:])
if in.RelatedNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v6, v7 := range in.RelatedNodes { for v6, v7 := range in.RelatedNodes {
if v6 > 0 { if v6 > 0 {
@ -527,14 +547,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility3(out *jwriter.Wr
} }
} }
if len(in.Sources) != 0 { if len(in.Sources) != 0 {
if !first { const prefix string = ",\"sources\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"sources\":") out.RawString(prefix[1:])
if in.Sources == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v8, v9 := range in.Sources { for v8, v9 := range in.Sources {
if v8 > 0 { if v8 > 0 {
@ -614,26 +634,34 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility4(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"backendDOMNodeId\":"
} if first {
first = false first = false
out.RawString("\"backendDOMNodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.BackendDOMNodeID)) out.Int64(int64(in.BackendDOMNodeID))
if in.Idref != "" {
if !first {
out.RawByte(',')
} }
if in.Idref != "" {
const prefix string = ",\"idref\":"
if first {
first = false first = false
out.RawString("\"idref\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Idref)) out.String(string(in.Idref))
} }
if in.Text != "" { if in.Text != "" {
if !first { const prefix string = ",\"text\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"text\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Text)) out.String(string(in.Text))
} }
out.RawByte('}') out.RawByte('}')
@ -682,7 +710,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility5(in *jlexer.Lexe
} }
switch key { switch key {
case "name": case "name":
out.Name = string(in.String()) (out.Name).UnmarshalEasyJSON(in)
case "value": case "value":
if in.IsNull() { if in.IsNull() {
in.Skip() in.Skip()
@ -707,22 +735,30 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility5(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"name\":"
} if first {
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
out.String(string(in.Name)) } else {
if !first { out.RawString(prefix)
out.RawByte(',')
} }
(in.Name).MarshalEasyJSON(out)
}
{
const prefix string = ",\"value\":"
if first {
first = false first = false
out.RawString("\"value\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Value == nil { if in.Value == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Value).MarshalEasyJSON(out) (*in.Value).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -913,27 +949,35 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"nodeId\":"
} if first {
first = false first = false
out.RawString("\"nodeId\":") out.RawString(prefix[1:])
out.String(string(in.NodeID))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"ignored\":")
out.Bool(bool(in.Ignored))
if len(in.IgnoredReasons) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"ignoredReasons\":")
if in.IgnoredReasons == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
out.String(string(in.NodeID))
}
{
const prefix string = ",\"ignored\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Ignored))
}
if len(in.IgnoredReasons) != 0 {
const prefix string = ",\"ignoredReasons\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v13, v14 := range in.IgnoredReasons { for v13, v14 := range in.IgnoredReasons {
if v13 > 0 { if v13 > 0 {
@ -949,62 +993,54 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(out *jwriter.Wr
} }
} }
if in.Role != nil { if in.Role != nil {
if !first { const prefix string = ",\"role\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"role\":") out.RawString(prefix[1:])
if in.Role == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.Role).MarshalEasyJSON(out) (*in.Role).MarshalEasyJSON(out)
} }
}
if in.Name != nil { if in.Name != nil {
if !first { const prefix string = ",\"name\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
if in.Name == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.Name).MarshalEasyJSON(out) (*in.Name).MarshalEasyJSON(out)
} }
}
if in.Description != nil { if in.Description != nil {
if !first { const prefix string = ",\"description\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"description\":") out.RawString(prefix[1:])
if in.Description == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.Description).MarshalEasyJSON(out) (*in.Description).MarshalEasyJSON(out)
} }
}
if in.Value != nil { if in.Value != nil {
if !first { const prefix string = ",\"value\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"value\":") out.RawString(prefix[1:])
if in.Value == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.Value).MarshalEasyJSON(out) (*in.Value).MarshalEasyJSON(out)
} }
}
if len(in.Properties) != 0 { if len(in.Properties) != 0 {
if !first { const prefix string = ",\"properties\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"properties\":") out.RawString(prefix[1:])
if in.Properties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v15, v16 := range in.Properties { for v15, v16 := range in.Properties {
if v15 > 0 { if v15 > 0 {
@ -1020,14 +1056,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(out *jwriter.Wr
} }
} }
if len(in.ChildIds) != 0 { if len(in.ChildIds) != 0 {
if !first { const prefix string = ",\"childIds\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"childIds\":") out.RawString(prefix[1:])
if in.ChildIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v17, v18 := range in.ChildIds { for v17, v18 := range in.ChildIds {
if v17 > 0 { if v17 > 0 {
@ -1039,11 +1075,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(out *jwriter.Wr
} }
} }
if in.BackendDOMNodeID != 0 { if in.BackendDOMNodeID != 0 {
if !first { const prefix string = ",\"backendDOMNodeId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"backendDOMNodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.BackendDOMNodeID)) out.Int64(int64(in.BackendDOMNodeID))
} }
out.RawByte('}') out.RawByte('}')

View File

@ -243,7 +243,7 @@ type AXRelatedNode struct {
// AXProperty [no description]. // AXProperty [no description].
type AXProperty struct { type AXProperty struct {
Name string `json:"name"` // The name of this property. Name AXPropertyName `json:"name"` // The name of this property.
Value *AXValue `json:"value"` // The value of this property. Value *AXValue `json:"value"` // The value of this property.
} }
@ -255,289 +255,149 @@ type AXValue struct {
Sources []*AXValueSource `json:"sources,omitempty"` // The sources which contributed to the computation of this property. Sources []*AXValueSource `json:"sources,omitempty"` // The sources which contributed to the computation of this property.
} }
// AXGlobalStates states which apply to every AX node. // AXPropertyName values of AXProperty name: from 'busy' to 'roledescription'
type AXGlobalStates string // - states which apply to every AX node, from 'live' to 'root' - attributes
// which apply to nodes in live regions, from 'autocomplete' to 'valuetext' -
// attributes which apply to widgets, from 'checked' to 'selected' - states
// which apply to widgets, from 'activedescendant' to 'owns' - relationships
// between elements other than parent/child/sibling.
type AXPropertyName string
// String returns the AXGlobalStates as string value. // String returns the AXPropertyName as string value.
func (t AXGlobalStates) String() string { func (t AXPropertyName) String() string {
return string(t) return string(t)
} }
// AXGlobalStates values. // AXPropertyName values.
const ( const (
AXGlobalStatesBusy AXGlobalStates = "busy" AXPropertyNameBusy AXPropertyName = "busy"
AXGlobalStatesDisabled AXGlobalStates = "disabled" AXPropertyNameDisabled AXPropertyName = "disabled"
AXGlobalStatesHidden AXGlobalStates = "hidden" AXPropertyNameHidden AXPropertyName = "hidden"
AXGlobalStatesHiddenRoot AXGlobalStates = "hiddenRoot" AXPropertyNameHiddenRoot AXPropertyName = "hiddenRoot"
AXGlobalStatesInvalid AXGlobalStates = "invalid" AXPropertyNameInvalid AXPropertyName = "invalid"
AXGlobalStatesKeyshortcuts AXGlobalStates = "keyshortcuts" AXPropertyNameKeyshortcuts AXPropertyName = "keyshortcuts"
AXGlobalStatesRoledescription AXGlobalStates = "roledescription" AXPropertyNameRoledescription AXPropertyName = "roledescription"
AXPropertyNameLive AXPropertyName = "live"
AXPropertyNameAtomic AXPropertyName = "atomic"
AXPropertyNameRelevant AXPropertyName = "relevant"
AXPropertyNameRoot AXPropertyName = "root"
AXPropertyNameAutocomplete AXPropertyName = "autocomplete"
AXPropertyNameHaspopup AXPropertyName = "haspopup"
AXPropertyNameLevel AXPropertyName = "level"
AXPropertyNameMultiselectable AXPropertyName = "multiselectable"
AXPropertyNameOrientation AXPropertyName = "orientation"
AXPropertyNameMultiline AXPropertyName = "multiline"
AXPropertyNameReadonly AXPropertyName = "readonly"
AXPropertyNameRequired AXPropertyName = "required"
AXPropertyNameValuemin AXPropertyName = "valuemin"
AXPropertyNameValuemax AXPropertyName = "valuemax"
AXPropertyNameValuetext AXPropertyName = "valuetext"
AXPropertyNameChecked AXPropertyName = "checked"
AXPropertyNameExpanded AXPropertyName = "expanded"
AXPropertyNameModal AXPropertyName = "modal"
AXPropertyNamePressed AXPropertyName = "pressed"
AXPropertyNameSelected AXPropertyName = "selected"
AXPropertyNameActivedescendant AXPropertyName = "activedescendant"
AXPropertyNameControls AXPropertyName = "controls"
AXPropertyNameDescribedby AXPropertyName = "describedby"
AXPropertyNameDetails AXPropertyName = "details"
AXPropertyNameErrormessage AXPropertyName = "errormessage"
AXPropertyNameFlowto AXPropertyName = "flowto"
AXPropertyNameLabelledby AXPropertyName = "labelledby"
AXPropertyNameOwns AXPropertyName = "owns"
) )
// MarshalEasyJSON satisfies easyjson.Marshaler. // MarshalEasyJSON satisfies easyjson.Marshaler.
func (t AXGlobalStates) MarshalEasyJSON(out *jwriter.Writer) { func (t AXPropertyName) MarshalEasyJSON(out *jwriter.Writer) {
out.String(string(t)) out.String(string(t))
} }
// MarshalJSON satisfies json.Marshaler. // MarshalJSON satisfies json.Marshaler.
func (t AXGlobalStates) MarshalJSON() ([]byte, error) { func (t AXPropertyName) MarshalJSON() ([]byte, error) {
return easyjson.Marshal(t) return easyjson.Marshal(t)
} }
// UnmarshalEasyJSON satisfies easyjson.Unmarshaler. // UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (t *AXGlobalStates) UnmarshalEasyJSON(in *jlexer.Lexer) { func (t *AXPropertyName) UnmarshalEasyJSON(in *jlexer.Lexer) {
switch AXGlobalStates(in.String()) { switch AXPropertyName(in.String()) {
case AXGlobalStatesBusy: case AXPropertyNameBusy:
*t = AXGlobalStatesBusy *t = AXPropertyNameBusy
case AXGlobalStatesDisabled: case AXPropertyNameDisabled:
*t = AXGlobalStatesDisabled *t = AXPropertyNameDisabled
case AXGlobalStatesHidden: case AXPropertyNameHidden:
*t = AXGlobalStatesHidden *t = AXPropertyNameHidden
case AXGlobalStatesHiddenRoot: case AXPropertyNameHiddenRoot:
*t = AXGlobalStatesHiddenRoot *t = AXPropertyNameHiddenRoot
case AXGlobalStatesInvalid: case AXPropertyNameInvalid:
*t = AXGlobalStatesInvalid *t = AXPropertyNameInvalid
case AXGlobalStatesKeyshortcuts: case AXPropertyNameKeyshortcuts:
*t = AXGlobalStatesKeyshortcuts *t = AXPropertyNameKeyshortcuts
case AXGlobalStatesRoledescription: case AXPropertyNameRoledescription:
*t = AXGlobalStatesRoledescription *t = AXPropertyNameRoledescription
case AXPropertyNameLive:
*t = AXPropertyNameLive
case AXPropertyNameAtomic:
*t = AXPropertyNameAtomic
case AXPropertyNameRelevant:
*t = AXPropertyNameRelevant
case AXPropertyNameRoot:
*t = AXPropertyNameRoot
case AXPropertyNameAutocomplete:
*t = AXPropertyNameAutocomplete
case AXPropertyNameHaspopup:
*t = AXPropertyNameHaspopup
case AXPropertyNameLevel:
*t = AXPropertyNameLevel
case AXPropertyNameMultiselectable:
*t = AXPropertyNameMultiselectable
case AXPropertyNameOrientation:
*t = AXPropertyNameOrientation
case AXPropertyNameMultiline:
*t = AXPropertyNameMultiline
case AXPropertyNameReadonly:
*t = AXPropertyNameReadonly
case AXPropertyNameRequired:
*t = AXPropertyNameRequired
case AXPropertyNameValuemin:
*t = AXPropertyNameValuemin
case AXPropertyNameValuemax:
*t = AXPropertyNameValuemax
case AXPropertyNameValuetext:
*t = AXPropertyNameValuetext
case AXPropertyNameChecked:
*t = AXPropertyNameChecked
case AXPropertyNameExpanded:
*t = AXPropertyNameExpanded
case AXPropertyNameModal:
*t = AXPropertyNameModal
case AXPropertyNamePressed:
*t = AXPropertyNamePressed
case AXPropertyNameSelected:
*t = AXPropertyNameSelected
case AXPropertyNameActivedescendant:
*t = AXPropertyNameActivedescendant
case AXPropertyNameControls:
*t = AXPropertyNameControls
case AXPropertyNameDescribedby:
*t = AXPropertyNameDescribedby
case AXPropertyNameDetails:
*t = AXPropertyNameDetails
case AXPropertyNameErrormessage:
*t = AXPropertyNameErrormessage
case AXPropertyNameFlowto:
*t = AXPropertyNameFlowto
case AXPropertyNameLabelledby:
*t = AXPropertyNameLabelledby
case AXPropertyNameOwns:
*t = AXPropertyNameOwns
default: default:
in.AddError(errors.New("unknown AXGlobalStates value")) in.AddError(errors.New("unknown AXPropertyName value"))
} }
} }
// UnmarshalJSON satisfies json.Unmarshaler. // UnmarshalJSON satisfies json.Unmarshaler.
func (t *AXGlobalStates) UnmarshalJSON(buf []byte) error { func (t *AXPropertyName) UnmarshalJSON(buf []byte) error {
return easyjson.Unmarshal(buf, t)
}
// AXLiveRegionAttributes attributes which apply to nodes in live regions.
type AXLiveRegionAttributes string
// String returns the AXLiveRegionAttributes as string value.
func (t AXLiveRegionAttributes) String() string {
return string(t)
}
// AXLiveRegionAttributes values.
const (
AXLiveRegionAttributesLive AXLiveRegionAttributes = "live"
AXLiveRegionAttributesAtomic AXLiveRegionAttributes = "atomic"
AXLiveRegionAttributesRelevant AXLiveRegionAttributes = "relevant"
AXLiveRegionAttributesRoot AXLiveRegionAttributes = "root"
)
// MarshalEasyJSON satisfies easyjson.Marshaler.
func (t AXLiveRegionAttributes) MarshalEasyJSON(out *jwriter.Writer) {
out.String(string(t))
}
// MarshalJSON satisfies json.Marshaler.
func (t AXLiveRegionAttributes) MarshalJSON() ([]byte, error) {
return easyjson.Marshal(t)
}
// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (t *AXLiveRegionAttributes) UnmarshalEasyJSON(in *jlexer.Lexer) {
switch AXLiveRegionAttributes(in.String()) {
case AXLiveRegionAttributesLive:
*t = AXLiveRegionAttributesLive
case AXLiveRegionAttributesAtomic:
*t = AXLiveRegionAttributesAtomic
case AXLiveRegionAttributesRelevant:
*t = AXLiveRegionAttributesRelevant
case AXLiveRegionAttributesRoot:
*t = AXLiveRegionAttributesRoot
default:
in.AddError(errors.New("unknown AXLiveRegionAttributes value"))
}
}
// UnmarshalJSON satisfies json.Unmarshaler.
func (t *AXLiveRegionAttributes) UnmarshalJSON(buf []byte) error {
return easyjson.Unmarshal(buf, t)
}
// AXWidgetAttributes attributes which apply to widgets.
type AXWidgetAttributes string
// String returns the AXWidgetAttributes as string value.
func (t AXWidgetAttributes) String() string {
return string(t)
}
// AXWidgetAttributes values.
const (
AXWidgetAttributesAutocomplete AXWidgetAttributes = "autocomplete"
AXWidgetAttributesHaspopup AXWidgetAttributes = "haspopup"
AXWidgetAttributesLevel AXWidgetAttributes = "level"
AXWidgetAttributesMultiselectable AXWidgetAttributes = "multiselectable"
AXWidgetAttributesOrientation AXWidgetAttributes = "orientation"
AXWidgetAttributesMultiline AXWidgetAttributes = "multiline"
AXWidgetAttributesReadonly AXWidgetAttributes = "readonly"
AXWidgetAttributesRequired AXWidgetAttributes = "required"
AXWidgetAttributesValuemin AXWidgetAttributes = "valuemin"
AXWidgetAttributesValuemax AXWidgetAttributes = "valuemax"
AXWidgetAttributesValuetext AXWidgetAttributes = "valuetext"
)
// MarshalEasyJSON satisfies easyjson.Marshaler.
func (t AXWidgetAttributes) MarshalEasyJSON(out *jwriter.Writer) {
out.String(string(t))
}
// MarshalJSON satisfies json.Marshaler.
func (t AXWidgetAttributes) MarshalJSON() ([]byte, error) {
return easyjson.Marshal(t)
}
// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (t *AXWidgetAttributes) UnmarshalEasyJSON(in *jlexer.Lexer) {
switch AXWidgetAttributes(in.String()) {
case AXWidgetAttributesAutocomplete:
*t = AXWidgetAttributesAutocomplete
case AXWidgetAttributesHaspopup:
*t = AXWidgetAttributesHaspopup
case AXWidgetAttributesLevel:
*t = AXWidgetAttributesLevel
case AXWidgetAttributesMultiselectable:
*t = AXWidgetAttributesMultiselectable
case AXWidgetAttributesOrientation:
*t = AXWidgetAttributesOrientation
case AXWidgetAttributesMultiline:
*t = AXWidgetAttributesMultiline
case AXWidgetAttributesReadonly:
*t = AXWidgetAttributesReadonly
case AXWidgetAttributesRequired:
*t = AXWidgetAttributesRequired
case AXWidgetAttributesValuemin:
*t = AXWidgetAttributesValuemin
case AXWidgetAttributesValuemax:
*t = AXWidgetAttributesValuemax
case AXWidgetAttributesValuetext:
*t = AXWidgetAttributesValuetext
default:
in.AddError(errors.New("unknown AXWidgetAttributes value"))
}
}
// UnmarshalJSON satisfies json.Unmarshaler.
func (t *AXWidgetAttributes) UnmarshalJSON(buf []byte) error {
return easyjson.Unmarshal(buf, t)
}
// AXWidgetStates states which apply to widgets.
type AXWidgetStates string
// String returns the AXWidgetStates as string value.
func (t AXWidgetStates) String() string {
return string(t)
}
// AXWidgetStates values.
const (
AXWidgetStatesChecked AXWidgetStates = "checked"
AXWidgetStatesExpanded AXWidgetStates = "expanded"
AXWidgetStatesModal AXWidgetStates = "modal"
AXWidgetStatesPressed AXWidgetStates = "pressed"
AXWidgetStatesSelected AXWidgetStates = "selected"
)
// MarshalEasyJSON satisfies easyjson.Marshaler.
func (t AXWidgetStates) MarshalEasyJSON(out *jwriter.Writer) {
out.String(string(t))
}
// MarshalJSON satisfies json.Marshaler.
func (t AXWidgetStates) MarshalJSON() ([]byte, error) {
return easyjson.Marshal(t)
}
// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (t *AXWidgetStates) UnmarshalEasyJSON(in *jlexer.Lexer) {
switch AXWidgetStates(in.String()) {
case AXWidgetStatesChecked:
*t = AXWidgetStatesChecked
case AXWidgetStatesExpanded:
*t = AXWidgetStatesExpanded
case AXWidgetStatesModal:
*t = AXWidgetStatesModal
case AXWidgetStatesPressed:
*t = AXWidgetStatesPressed
case AXWidgetStatesSelected:
*t = AXWidgetStatesSelected
default:
in.AddError(errors.New("unknown AXWidgetStates value"))
}
}
// UnmarshalJSON satisfies json.Unmarshaler.
func (t *AXWidgetStates) UnmarshalJSON(buf []byte) error {
return easyjson.Unmarshal(buf, t)
}
// AXRelationshipAttributes relationships between elements other than
// parent/child/sibling.
type AXRelationshipAttributes string
// String returns the AXRelationshipAttributes as string value.
func (t AXRelationshipAttributes) String() string {
return string(t)
}
// AXRelationshipAttributes values.
const (
AXRelationshipAttributesActivedescendant AXRelationshipAttributes = "activedescendant"
AXRelationshipAttributesControls AXRelationshipAttributes = "controls"
AXRelationshipAttributesDescribedby AXRelationshipAttributes = "describedby"
AXRelationshipAttributesDetails AXRelationshipAttributes = "details"
AXRelationshipAttributesErrormessage AXRelationshipAttributes = "errormessage"
AXRelationshipAttributesFlowto AXRelationshipAttributes = "flowto"
AXRelationshipAttributesLabelledby AXRelationshipAttributes = "labelledby"
AXRelationshipAttributesOwns AXRelationshipAttributes = "owns"
)
// MarshalEasyJSON satisfies easyjson.Marshaler.
func (t AXRelationshipAttributes) MarshalEasyJSON(out *jwriter.Writer) {
out.String(string(t))
}
// MarshalJSON satisfies json.Marshaler.
func (t AXRelationshipAttributes) MarshalJSON() ([]byte, error) {
return easyjson.Marshal(t)
}
// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (t *AXRelationshipAttributes) UnmarshalEasyJSON(in *jlexer.Lexer) {
switch AXRelationshipAttributes(in.String()) {
case AXRelationshipAttributesActivedescendant:
*t = AXRelationshipAttributesActivedescendant
case AXRelationshipAttributesControls:
*t = AXRelationshipAttributesControls
case AXRelationshipAttributesDescribedby:
*t = AXRelationshipAttributesDescribedby
case AXRelationshipAttributesDetails:
*t = AXRelationshipAttributesDetails
case AXRelationshipAttributesErrormessage:
*t = AXRelationshipAttributesErrormessage
case AXRelationshipAttributesFlowto:
*t = AXRelationshipAttributesFlowto
case AXRelationshipAttributesLabelledby:
*t = AXRelationshipAttributesLabelledby
case AXRelationshipAttributesOwns:
*t = AXRelationshipAttributesOwns
default:
in.AddError(errors.New("unknown AXRelationshipAttributes value"))
}
}
// UnmarshalJSON satisfies json.Unmarshaler.
func (t *AXRelationshipAttributes) UnmarshalJSON(buf []byte) error {
return easyjson.Unmarshal(buf, t) return easyjson.Unmarshal(buf, t)
} }

View File

@ -57,24 +57,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"animationId\":"
} if first {
first = false first = false
out.RawString("\"animationId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.AnimationID)) out.String(string(in.AnimationID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"duration\":"
if first {
first = false first = false
out.RawString("\"duration\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Duration)) out.Float64(float64(in.Duration))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"delay\":"
if first {
first = false first = false
out.RawString("\"delay\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Delay)) out.Float64(float64(in.Delay))
}
out.RawByte('}') out.RawByte('}')
} }
@ -136,12 +148,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation1(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"playbackRate\":"
} if first {
first = false first = false
out.RawString("\"playbackRate\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.PlaybackRate)) out.Float64(float64(in.PlaybackRate))
}
out.RawByte('}') out.RawByte('}')
} }
@ -226,11 +242,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation2(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"animations\":"
} if first {
first = false first = false
out.RawString("\"animations\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -243,12 +262,17 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation2(out *jwriter.Writer
} }
out.RawByte(']') out.RawByte(']')
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"paused\":"
if first {
first = false first = false
out.RawString("\"paused\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Paused)) out.Bool(bool(in.Paused))
}
out.RawByte('}') out.RawByte('}')
} }
@ -333,11 +357,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation3(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"animations\":"
} if first {
first = false first = false
out.RawString("\"animations\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -350,12 +377,17 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation3(out *jwriter.Writer
} }
out.RawByte(']') out.RawByte(']')
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"currentTime\":"
if first {
first = false first = false
out.RawString("\"currentTime\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.CurrentTime)) out.Float64(float64(in.CurrentTime))
}
out.RawByte('}') out.RawByte('}')
} }
@ -426,16 +458,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation4(out *jwriter.Writer
first := true first := true
_ = first _ = first
if in.RemoteObject != nil { if in.RemoteObject != nil {
if !first { const prefix string = ",\"remoteObject\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"remoteObject\":") out.RawString(prefix[1:])
if in.RemoteObject == nil {
out.RawString("null")
} else { } else {
(*in.RemoteObject).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.RemoteObject).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -498,12 +528,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation5(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"animationId\":"
} if first {
first = false first = false
out.RawString("\"animationId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.AnimationID)) out.String(string(in.AnimationID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -586,11 +620,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation6(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"animations\":"
} if first {
first = false first = false
out.RawString("\"animations\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -603,6 +640,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation6(out *jwriter.Writer
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -696,18 +734,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation7(out *jwriter.Writer
first := true first := true
_ = first _ = first
if in.Name != "" { if in.Name != "" {
if !first { const prefix string = ",\"name\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name)) out.String(string(in.Name))
} }
if !first { {
out.RawByte(',') const prefix string = ",\"keyframes\":"
} if first {
first = false first = false
out.RawString("\"keyframes\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -724,6 +767,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation7(out *jwriter.Writer
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -787,18 +831,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation8(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"offset\":"
} if first {
first = false first = false
out.RawString("\"offset\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Offset)) out.String(string(in.Offset))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"easing\":"
if first {
first = false first = false
out.RawString("\"easing\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Easing)) out.String(string(in.Easing))
}
out.RawByte('}') out.RawByte('}')
} }
@ -861,11 +913,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation9(out *jwriter.Writer
first := true first := true
_ = first _ = first
if in.PlaybackRate != 0 { if in.PlaybackRate != 0 {
if !first { const prefix string = ",\"playbackRate\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"playbackRate\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.PlaybackRate)) out.Float64(float64(in.PlaybackRate))
} }
out.RawByte('}') out.RawByte('}')
@ -989,11 +1043,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation11(out *jwriter.Write
first := true first := true
_ = first _ = first
if in.CurrentTime != 0 { if in.CurrentTime != 0 {
if !first { const prefix string = ",\"currentTime\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"currentTime\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.CurrentTime)) out.Float64(float64(in.CurrentTime))
} }
out.RawByte('}') out.RawByte('}')
@ -1057,12 +1113,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation12(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"id\":"
} if first {
first = false first = false
out.RawString("\"id\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ID)) out.String(string(in.ID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1132,16 +1192,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation13(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"animation\":"
} if first {
first = false first = false
out.RawString("\"animation\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Animation == nil { if in.Animation == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Animation).MarshalEasyJSON(out) (*in.Animation).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -1203,12 +1267,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation14(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"id\":"
} if first {
first = false first = false
out.RawString("\"id\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ID)) out.String(string(in.ID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1270,12 +1338,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation15(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"id\":"
} if first {
first = false first = false
out.RawString("\"id\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ID)) out.String(string(in.ID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1422,74 +1494,106 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation17(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"delay\":"
} if first {
first = false first = false
out.RawString("\"delay\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Delay)) out.Float64(float64(in.Delay))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"endDelay\":"
if first {
first = false first = false
out.RawString("\"endDelay\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.EndDelay)) out.Float64(float64(in.EndDelay))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"iterationStart\":"
if first {
first = false first = false
out.RawString("\"iterationStart\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.IterationStart)) out.Float64(float64(in.IterationStart))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"iterations\":"
if first {
first = false first = false
out.RawString("\"iterations\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Iterations)) out.Float64(float64(in.Iterations))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"duration\":"
if first {
first = false first = false
out.RawString("\"duration\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Duration)) out.Float64(float64(in.Duration))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"direction\":"
if first {
first = false first = false
out.RawString("\"direction\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Direction)) out.String(string(in.Direction))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"fill\":"
if first {
first = false first = false
out.RawString("\"fill\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Fill)) out.String(string(in.Fill))
if in.BackendNodeID != 0 {
if !first {
out.RawByte(',')
} }
if in.BackendNodeID != 0 {
const prefix string = ",\"backendNodeId\":"
if first {
first = false first = false
out.RawString("\"backendNodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.BackendNodeID)) out.Int64(int64(in.BackendNodeID))
} }
if in.KeyframesRule != nil { if in.KeyframesRule != nil {
if !first { const prefix string = ",\"keyframesRule\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"keyframesRule\":") out.RawString(prefix[1:])
if in.KeyframesRule == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.KeyframesRule).MarshalEasyJSON(out) (*in.KeyframesRule).MarshalEasyJSON(out)
} }
} {
if !first { const prefix string = ",\"easing\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"easing\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Easing)) out.String(string(in.Easing))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1636,72 +1740,104 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation19(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"id\":"
} if first {
first = false first = false
out.RawString("\"id\":") out.RawString(prefix[1:])
out.String(string(in.ID))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"name\":")
out.String(string(in.Name))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"pausedState\":")
out.Bool(bool(in.PausedState))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"playState\":")
out.String(string(in.PlayState))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"playbackRate\":")
out.Float64(float64(in.PlaybackRate))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"startTime\":")
out.Float64(float64(in.StartTime))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"currentTime\":")
out.Float64(float64(in.CurrentTime))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"type\":")
(in.Type).MarshalEasyJSON(out)
if in.Source != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"source\":")
if in.Source == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
out.String(string(in.ID))
}
{
const prefix string = ",\"name\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name))
}
{
const prefix string = ",\"pausedState\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.PausedState))
}
{
const prefix string = ",\"playState\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.PlayState))
}
{
const prefix string = ",\"playbackRate\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.PlaybackRate))
}
{
const prefix string = ",\"startTime\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.StartTime))
}
{
const prefix string = ",\"currentTime\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.CurrentTime))
}
{
const prefix string = ",\"type\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out)
}
if in.Source != nil {
const prefix string = ",\"source\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(*in.Source).MarshalEasyJSON(out) (*in.Source).MarshalEasyJSON(out)
} }
}
if in.CSSID != "" { if in.CSSID != "" {
if !first { const prefix string = ",\"cssId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"cssId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.CSSID)) out.String(string(in.CSSID))
} }
out.RawByte('}') out.RawByte('}')

View File

@ -56,24 +56,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache(out *jwriter.
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"url\":"
} if first {
first = false first = false
out.RawString("\"url\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.URL)) out.String(string(in.URL))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"size\":"
if first {
first = false first = false
out.RawString("\"size\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Size)) out.Int64(int64(in.Size))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"type\":"
if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Type)) out.String(string(in.Type))
}
out.RawByte('}') out.RawByte('}')
} }
@ -136,11 +148,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache1(out *jwriter
first := true first := true
_ = first _ = first
if in.ManifestURL != "" { if in.ManifestURL != "" {
if !first { const prefix string = ",\"manifestURL\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"manifestURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ManifestURL)) out.String(string(in.ManifestURL))
} }
out.RawByte('}') out.RawByte('}')
@ -204,12 +218,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache2(out *jwriter
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"frameId\":"
} if first {
first = false first = false
out.RawString("\"frameId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.FrameID)) out.String(string(in.FrameID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -301,14 +319,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache3(out *jwriter
first := true first := true
_ = first _ = first
if len(in.FrameIds) != 0 { if len(in.FrameIds) != 0 {
if !first { const prefix string = ",\"frameIds\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"frameIds\":") out.RawString(prefix[1:])
if in.FrameIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v2, v3 := range in.FrameIds { for v2, v3 := range in.FrameIds {
if v2 > 0 { if v2 > 0 {
@ -452,16 +470,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache5(out *jwriter
first := true first := true
_ = first _ = first
if in.ApplicationCache != nil { if in.ApplicationCache != nil {
if !first { const prefix string = ",\"applicationCache\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"applicationCache\":") out.RawString(prefix[1:])
if in.ApplicationCache == nil {
out.RawString("null")
} else { } else {
(*in.ApplicationCache).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.ApplicationCache).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -524,12 +540,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache6(out *jwriter
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"frameId\":"
} if first {
first = false first = false
out.RawString("\"frameId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.FrameID)) out.String(string(in.FrameID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -595,24 +615,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache7(out *jwriter
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"frameId\":"
} if first {
first = false first = false
out.RawString("\"frameId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.FrameID)) out.String(string(in.FrameID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"manifestURL\":"
if first {
first = false first = false
out.RawString("\"manifestURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ManifestURL)) out.String(string(in.ManifestURL))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"status\":"
if first {
first = false first = false
out.RawString("\"status\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Status)) out.Int64(int64(in.Status))
}
out.RawByte('}') out.RawByte('}')
} }
@ -674,12 +706,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache8(out *jwriter
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"isNowOnline\":"
} if first {
first = false first = false
out.RawString("\"isNowOnline\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.IsNowOnline)) out.Bool(bool(in.IsNowOnline))
}
out.RawByte('}') out.RawByte('}')
} }
@ -745,24 +781,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache9(out *jwriter
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"frameId\":"
} if first {
first = false first = false
out.RawString("\"frameId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.FrameID)) out.String(string(in.FrameID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"manifestURL\":"
if first {
first = false first = false
out.RawString("\"manifestURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ManifestURL)) out.String(string(in.ManifestURL))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"status\":"
if first {
first = false first = false
out.RawString("\"status\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Status)) out.Int64(int64(in.Status))
}
out.RawByte('}') out.RawByte('}')
} }
@ -920,35 +968,54 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache11(out *jwrite
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"manifestURL\":"
} if first {
first = false first = false
out.RawString("\"manifestURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ManifestURL)) out.String(string(in.ManifestURL))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"size\":"
if first {
first = false first = false
out.RawString("\"size\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Size)) out.Float64(float64(in.Size))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"creationTime\":"
if first {
first = false first = false
out.RawString("\"creationTime\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.CreationTime)) out.Float64(float64(in.CreationTime))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"updateTime\":"
if first {
first = false first = false
out.RawString("\"updateTime\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.UpdateTime)) out.Float64(float64(in.UpdateTime))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"resources\":"
if first {
first = false first = false
out.RawString("\"resources\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Resources == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Resources == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -965,6 +1032,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache11(out *jwrite
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -58,27 +58,33 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits(out *jwriter.Writer, in
first := true first := true
_ = first _ = first
if in.Body != "" { if in.Body != "" {
if !first { const prefix string = ",\"body\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"body\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Body)) out.String(string(in.Body))
} }
if in.OriginalSize != 0 { if in.OriginalSize != 0 {
if !first { const prefix string = ",\"originalSize\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"originalSize\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.OriginalSize)) out.Int64(int64(in.OriginalSize))
} }
if in.EncodedSize != 0 { if in.EncodedSize != 0 {
if !first { const prefix string = ",\"encodedSize\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"encodedSize\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.EncodedSize)) out.Int64(int64(in.EncodedSize))
} }
out.RawByte('}') out.RawByte('}')
@ -148,32 +154,44 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits1(out *jwriter.Writer, i
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"requestId\":"
} if first {
first = false first = false
out.RawString("\"requestId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.RequestID)) out.String(string(in.RequestID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"encoding\":"
if first {
first = false first = false
out.RawString("\"encoding\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Encoding).MarshalEasyJSON(out) (in.Encoding).MarshalEasyJSON(out)
if in.Quality != 0 {
if !first {
out.RawByte(',')
} }
if in.Quality != 0 {
const prefix string = ",\"quality\":"
if first {
first = false first = false
out.RawString("\"quality\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Quality)) out.Float64(float64(in.Quality))
} }
if in.SizeOnly { if in.SizeOnly {
if !first { const prefix string = ",\"sizeOnly\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"sizeOnly\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.SizeOnly)) out.Bool(bool(in.SizeOnly))
} }
out.RawByte('}') out.RawByte('}')

View File

@ -63,22 +63,30 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser(out *jwriter.Writer, i
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"windowId\":"
} if first {
first = false first = false
out.RawString("\"windowId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.WindowID)) out.Int64(int64(in.WindowID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"bounds\":"
if first {
first = false first = false
out.RawString("\"bounds\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Bounds == nil { if in.Bounds == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Bounds).MarshalEasyJSON(out) (*in.Bounds).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -151,24 +159,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser1(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.WindowID != 0 { if in.WindowID != 0 {
if !first { const prefix string = ",\"windowId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"windowId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.WindowID)) out.Int64(int64(in.WindowID))
} }
if in.Bounds != nil { if in.Bounds != nil {
if !first { const prefix string = ",\"bounds\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"bounds\":") out.RawString(prefix[1:])
if in.Bounds == nil {
out.RawString("null")
} else { } else {
(*in.Bounds).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.Bounds).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -231,12 +239,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser2(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"targetId\":"
} if first {
first = false first = false
out.RawString("\"targetId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.TargetID)) out.String(string(in.TargetID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -307,16 +319,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser3(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.Bounds != nil { if in.Bounds != nil {
if !first { const prefix string = ",\"bounds\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"bounds\":") out.RawString(prefix[1:])
if in.Bounds == nil {
out.RawString("null")
} else { } else {
(*in.Bounds).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.Bounds).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -379,12 +389,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser4(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"windowId\":"
} if first {
first = false first = false
out.RawString("\"windowId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.WindowID)) out.Int64(int64(in.WindowID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -455,43 +469,53 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser5(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.ProtocolVersion != "" { if in.ProtocolVersion != "" {
if !first { const prefix string = ",\"protocolVersion\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"protocolVersion\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ProtocolVersion)) out.String(string(in.ProtocolVersion))
} }
if in.Product != "" { if in.Product != "" {
if !first { const prefix string = ",\"product\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"product\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Product)) out.String(string(in.Product))
} }
if in.Revision != "" { if in.Revision != "" {
if !first { const prefix string = ",\"revision\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"revision\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Revision)) out.String(string(in.Revision))
} }
if in.UserAgent != "" { if in.UserAgent != "" {
if !first { const prefix string = ",\"userAgent\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"userAgent\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.UserAgent)) out.String(string(in.UserAgent))
} }
if in.JsVersion != "" { if in.JsVersion != "" {
if !first { const prefix string = ",\"jsVersion\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"jsVersion\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.JsVersion)) out.String(string(in.JsVersion))
} }
out.RawByte('}') out.RawByte('}')
@ -682,43 +706,53 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser8(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.Left != 0 { if in.Left != 0 {
if !first { const prefix string = ",\"left\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"left\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Left)) out.Int64(int64(in.Left))
} }
if in.Top != 0 { if in.Top != 0 {
if !first { const prefix string = ",\"top\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"top\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Top)) out.Int64(int64(in.Top))
} }
if in.Width != 0 { if in.Width != 0 {
if !first { const prefix string = ",\"width\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"width\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Width)) out.Int64(int64(in.Width))
} }
if in.Height != 0 { if in.Height != 0 {
if !first { const prefix string = ",\"height\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"height\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Height)) out.Int64(int64(in.Height))
} }
if in.WindowState != "" { if in.WindowState != "" {
if !first { const prefix string = ",\"windowState\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"windowState\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.WindowState).MarshalEasyJSON(out) (in.WindowState).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')

View File

@ -84,14 +84,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage(out *jwriter.Writ
first := true first := true
_ = first _ = first
if len(in.CacheDataEntries) != 0 { if len(in.CacheDataEntries) != 0 {
if !first { const prefix string = ",\"cacheDataEntries\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"cacheDataEntries\":") out.RawString(prefix[1:])
if in.CacheDataEntries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v2, v3 := range in.CacheDataEntries { for v2, v3 := range in.CacheDataEntries {
if v2 > 0 { if v2 > 0 {
@ -107,11 +107,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage(out *jwriter.Writ
} }
} }
if in.HasMore { if in.HasMore {
if !first { const prefix string = ",\"hasMore\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"hasMore\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.HasMore)) out.Bool(bool(in.HasMore))
} }
out.RawByte('}') out.RawByte('}')
@ -179,24 +181,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage1(out *jwriter.Wri
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"cacheId\":"
} if first {
first = false first = false
out.RawString("\"cacheId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.CacheID)) out.String(string(in.CacheID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"skipCount\":"
if first {
first = false first = false
out.RawString("\"skipCount\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.SkipCount)) out.Int64(int64(in.SkipCount))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"pageSize\":"
if first {
first = false first = false
out.RawString("\"pageSize\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.PageSize)) out.Int64(int64(in.PageSize))
}
out.RawByte('}') out.RawByte('}')
} }
@ -267,16 +281,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage2(out *jwriter.Wri
first := true first := true
_ = first _ = first
if in.Response != nil { if in.Response != nil {
if !first { const prefix string = ",\"response\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"response\":") out.RawString(prefix[1:])
if in.Response == nil {
out.RawString("null")
} else { } else {
(*in.Response).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.Response).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -341,18 +353,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage3(out *jwriter.Wri
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"cacheId\":"
} if first {
first = false first = false
out.RawString("\"cacheId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.CacheID)) out.String(string(in.CacheID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"requestURL\":"
if first {
first = false first = false
out.RawString("\"requestURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.RequestURL)) out.String(string(in.RequestURL))
}
out.RawByte('}') out.RawByte('}')
} }
@ -444,14 +464,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage4(out *jwriter.Wri
first := true first := true
_ = first _ = first
if len(in.Caches) != 0 { if len(in.Caches) != 0 {
if !first { const prefix string = ",\"caches\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"caches\":") out.RawString(prefix[1:])
if in.Caches == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v5, v6 := range in.Caches { for v5, v6 := range in.Caches {
if v5 > 0 { if v5 > 0 {
@ -527,12 +547,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage5(out *jwriter.Wri
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"securityOrigin\":"
} if first {
first = false first = false
out.RawString("\"securityOrigin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SecurityOrigin)) out.String(string(in.SecurityOrigin))
}
out.RawByte('}') out.RawByte('}')
} }
@ -596,18 +620,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage6(out *jwriter.Wri
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"name\":"
} if first {
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name)) out.String(string(in.Name))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"value\":"
if first {
first = false first = false
out.RawString("\"value\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Value)) out.String(string(in.Value))
}
out.RawByte('}') out.RawByte('}')
} }
@ -671,18 +703,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage7(out *jwriter.Wri
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"cacheId\":"
} if first {
first = false first = false
out.RawString("\"cacheId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.CacheID)) out.String(string(in.CacheID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"request\":"
if first {
first = false first = false
out.RawString("\"request\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Request)) out.String(string(in.Request))
}
out.RawByte('}') out.RawByte('}')
} }
@ -744,12 +784,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage8(out *jwriter.Wri
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"cacheId\":"
} if first {
first = false first = false
out.RawString("\"cacheId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.CacheID)) out.String(string(in.CacheID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -881,23 +925,34 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage9(out *jwriter.Wri
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"requestURL\":"
} if first {
first = false first = false
out.RawString("\"requestURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.RequestURL)) out.String(string(in.RequestURL))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"requestMethod\":"
if first {
first = false first = false
out.RawString("\"requestMethod\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.RequestMethod)) out.String(string(in.RequestMethod))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"requestHeaders\":"
if first {
first = false first = false
out.RawString("\"requestHeaders\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.RequestHeaders == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.RequestHeaders == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -914,29 +969,45 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage9(out *jwriter.Wri
} }
out.RawByte(']') out.RawByte(']')
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"responseTime\":"
if first {
first = false first = false
out.RawString("\"responseTime\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.ResponseTime)) out.Float64(float64(in.ResponseTime))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"responseStatus\":"
if first {
first = false first = false
out.RawString("\"responseStatus\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.ResponseStatus)) out.Int64(int64(in.ResponseStatus))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"responseStatusText\":"
if first {
first = false first = false
out.RawString("\"responseStatusText\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ResponseStatusText)) out.String(string(in.ResponseStatusText))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"responseHeaders\":"
if first {
first = false first = false
out.RawString("\"responseHeaders\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.ResponseHeaders == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.ResponseHeaders == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -953,6 +1024,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage9(out *jwriter.Wri
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -1014,12 +1086,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage10(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"body\":"
} if first {
first = false first = false
out.RawString("\"body\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Body)) out.String(string(in.Body))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1085,24 +1161,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage11(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"cacheId\":"
} if first {
first = false first = false
out.RawString("\"cacheId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.CacheID)) out.String(string(in.CacheID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"securityOrigin\":"
if first {
first = false first = false
out.RawString("\"securityOrigin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SecurityOrigin)) out.String(string(in.SecurityOrigin))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"cacheName\":"
if first {
first = false first = false
out.RawString("\"cacheName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.CacheName)) out.String(string(in.CacheName))
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -84,6 +84,7 @@ const (
CommandPageAddScriptToEvaluateOnNewDocument MethodType = "Page.addScriptToEvaluateOnNewDocument" CommandPageAddScriptToEvaluateOnNewDocument MethodType = "Page.addScriptToEvaluateOnNewDocument"
CommandPageRemoveScriptToEvaluateOnNewDocument MethodType = "Page.removeScriptToEvaluateOnNewDocument" CommandPageRemoveScriptToEvaluateOnNewDocument MethodType = "Page.removeScriptToEvaluateOnNewDocument"
CommandPageSetAutoAttachToCreatedPages MethodType = "Page.setAutoAttachToCreatedPages" CommandPageSetAutoAttachToCreatedPages MethodType = "Page.setAutoAttachToCreatedPages"
CommandPageSetLifecycleEventsEnabled MethodType = "Page.setLifecycleEventsEnabled"
CommandPageReload MethodType = "Page.reload" CommandPageReload MethodType = "Page.reload"
CommandPageSetAdBlockingEnabled MethodType = "Page.setAdBlockingEnabled" CommandPageSetAdBlockingEnabled MethodType = "Page.setAdBlockingEnabled"
CommandPageNavigate MethodType = "Page.navigate" CommandPageNavigate MethodType = "Page.navigate"
@ -170,20 +171,18 @@ const (
CommandNetworkEnable MethodType = "Network.enable" CommandNetworkEnable MethodType = "Network.enable"
CommandNetworkDisable MethodType = "Network.disable" CommandNetworkDisable MethodType = "Network.disable"
CommandNetworkSetUserAgentOverride MethodType = "Network.setUserAgentOverride" CommandNetworkSetUserAgentOverride MethodType = "Network.setUserAgentOverride"
CommandNetworkSearchInResponseBody MethodType = "Network.searchInResponseBody"
CommandNetworkSetExtraHTTPHeaders MethodType = "Network.setExtraHTTPHeaders" CommandNetworkSetExtraHTTPHeaders MethodType = "Network.setExtraHTTPHeaders"
CommandNetworkGetResponseBody MethodType = "Network.getResponseBody" CommandNetworkGetResponseBody MethodType = "Network.getResponseBody"
CommandNetworkSetBlockedURLS MethodType = "Network.setBlockedURLs" CommandNetworkSetBlockedURLS MethodType = "Network.setBlockedURLs"
CommandNetworkReplayXHR MethodType = "Network.replayXHR" CommandNetworkReplayXHR MethodType = "Network.replayXHR"
CommandNetworkCanClearBrowserCache MethodType = "Network.canClearBrowserCache"
CommandNetworkClearBrowserCache MethodType = "Network.clearBrowserCache" CommandNetworkClearBrowserCache MethodType = "Network.clearBrowserCache"
CommandNetworkCanClearBrowserCookies MethodType = "Network.canClearBrowserCookies"
CommandNetworkClearBrowserCookies MethodType = "Network.clearBrowserCookies" CommandNetworkClearBrowserCookies MethodType = "Network.clearBrowserCookies"
CommandNetworkGetCookies MethodType = "Network.getCookies" CommandNetworkGetCookies MethodType = "Network.getCookies"
CommandNetworkGetAllCookies MethodType = "Network.getAllCookies" CommandNetworkGetAllCookies MethodType = "Network.getAllCookies"
CommandNetworkDeleteCookies MethodType = "Network.deleteCookies" CommandNetworkDeleteCookies MethodType = "Network.deleteCookies"
CommandNetworkSetCookie MethodType = "Network.setCookie" CommandNetworkSetCookie MethodType = "Network.setCookie"
CommandNetworkSetCookies MethodType = "Network.setCookies" CommandNetworkSetCookies MethodType = "Network.setCookies"
CommandNetworkCanEmulateNetworkConditions MethodType = "Network.canEmulateNetworkConditions"
CommandNetworkEmulateNetworkConditions MethodType = "Network.emulateNetworkConditions" CommandNetworkEmulateNetworkConditions MethodType = "Network.emulateNetworkConditions"
CommandNetworkSetCacheDisabled MethodType = "Network.setCacheDisabled" CommandNetworkSetCacheDisabled MethodType = "Network.setCacheDisabled"
CommandNetworkSetBypassServiceWorker MethodType = "Network.setBypassServiceWorker" CommandNetworkSetBypassServiceWorker MethodType = "Network.setBypassServiceWorker"
@ -191,6 +190,7 @@ const (
CommandNetworkGetCertificate MethodType = "Network.getCertificate" CommandNetworkGetCertificate MethodType = "Network.getCertificate"
CommandNetworkSetRequestInterception MethodType = "Network.setRequestInterception" CommandNetworkSetRequestInterception MethodType = "Network.setRequestInterception"
CommandNetworkContinueInterceptedRequest MethodType = "Network.continueInterceptedRequest" CommandNetworkContinueInterceptedRequest MethodType = "Network.continueInterceptedRequest"
CommandNetworkGetResponseBodyForInterception MethodType = "Network.getResponseBodyForInterception"
EventDatabaseAddDatabase MethodType = "Database.addDatabase" EventDatabaseAddDatabase MethodType = "Database.addDatabase"
CommandDatabaseEnable MethodType = "Database.enable" CommandDatabaseEnable MethodType = "Database.enable"
CommandDatabaseDisable MethodType = "Database.disable" CommandDatabaseDisable MethodType = "Database.disable"
@ -459,6 +459,7 @@ const (
CommandDebuggerRemoveBreakpoint MethodType = "Debugger.removeBreakpoint" CommandDebuggerRemoveBreakpoint MethodType = "Debugger.removeBreakpoint"
CommandDebuggerGetPossibleBreakpoints MethodType = "Debugger.getPossibleBreakpoints" CommandDebuggerGetPossibleBreakpoints MethodType = "Debugger.getPossibleBreakpoints"
CommandDebuggerContinueToLocation MethodType = "Debugger.continueToLocation" CommandDebuggerContinueToLocation MethodType = "Debugger.continueToLocation"
CommandDebuggerPauseOnAsyncTask MethodType = "Debugger.pauseOnAsyncTask"
CommandDebuggerStepOver MethodType = "Debugger.stepOver" CommandDebuggerStepOver MethodType = "Debugger.stepOver"
CommandDebuggerStepInto MethodType = "Debugger.stepInto" CommandDebuggerStepInto MethodType = "Debugger.stepInto"
CommandDebuggerStepOut MethodType = "Debugger.stepOut" CommandDebuggerStepOut MethodType = "Debugger.stepOut"
@ -472,6 +473,7 @@ const (
CommandDebuggerSetPauseOnExceptions MethodType = "Debugger.setPauseOnExceptions" CommandDebuggerSetPauseOnExceptions MethodType = "Debugger.setPauseOnExceptions"
CommandDebuggerEvaluateOnCallFrame MethodType = "Debugger.evaluateOnCallFrame" CommandDebuggerEvaluateOnCallFrame MethodType = "Debugger.evaluateOnCallFrame"
CommandDebuggerSetVariableValue MethodType = "Debugger.setVariableValue" CommandDebuggerSetVariableValue MethodType = "Debugger.setVariableValue"
CommandDebuggerSetReturnValue MethodType = "Debugger.setReturnValue"
CommandDebuggerSetAsyncCallStackDepth MethodType = "Debugger.setAsyncCallStackDepth" CommandDebuggerSetAsyncCallStackDepth MethodType = "Debugger.setAsyncCallStackDepth"
CommandDebuggerSetBlackboxPatterns MethodType = "Debugger.setBlackboxPatterns" CommandDebuggerSetBlackboxPatterns MethodType = "Debugger.setBlackboxPatterns"
CommandDebuggerSetBlackboxedRanges MethodType = "Debugger.setBlackboxedRanges" CommandDebuggerSetBlackboxedRanges MethodType = "Debugger.setBlackboxedRanges"
@ -505,6 +507,7 @@ const (
CommandHeapProfilerGetHeapObjectID MethodType = "HeapProfiler.getHeapObjectId" CommandHeapProfilerGetHeapObjectID MethodType = "HeapProfiler.getHeapObjectId"
CommandHeapProfilerStartSampling MethodType = "HeapProfiler.startSampling" CommandHeapProfilerStartSampling MethodType = "HeapProfiler.startSampling"
CommandHeapProfilerStopSampling MethodType = "HeapProfiler.stopSampling" CommandHeapProfilerStopSampling MethodType = "HeapProfiler.stopSampling"
CommandHeapProfilerGetSamplingProfile MethodType = "HeapProfiler.getSamplingProfile"
) )
// MarshalEasyJSON satisfies easyjson.Marshaler. // MarshalEasyJSON satisfies easyjson.Marshaler.
@ -590,6 +593,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
*t = CommandPageRemoveScriptToEvaluateOnNewDocument *t = CommandPageRemoveScriptToEvaluateOnNewDocument
case CommandPageSetAutoAttachToCreatedPages: case CommandPageSetAutoAttachToCreatedPages:
*t = CommandPageSetAutoAttachToCreatedPages *t = CommandPageSetAutoAttachToCreatedPages
case CommandPageSetLifecycleEventsEnabled:
*t = CommandPageSetLifecycleEventsEnabled
case CommandPageReload: case CommandPageReload:
*t = CommandPageReload *t = CommandPageReload
case CommandPageSetAdBlockingEnabled: case CommandPageSetAdBlockingEnabled:
@ -762,6 +767,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
*t = CommandNetworkDisable *t = CommandNetworkDisable
case CommandNetworkSetUserAgentOverride: case CommandNetworkSetUserAgentOverride:
*t = CommandNetworkSetUserAgentOverride *t = CommandNetworkSetUserAgentOverride
case CommandNetworkSearchInResponseBody:
*t = CommandNetworkSearchInResponseBody
case CommandNetworkSetExtraHTTPHeaders: case CommandNetworkSetExtraHTTPHeaders:
*t = CommandNetworkSetExtraHTTPHeaders *t = CommandNetworkSetExtraHTTPHeaders
case CommandNetworkGetResponseBody: case CommandNetworkGetResponseBody:
@ -770,12 +777,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
*t = CommandNetworkSetBlockedURLS *t = CommandNetworkSetBlockedURLS
case CommandNetworkReplayXHR: case CommandNetworkReplayXHR:
*t = CommandNetworkReplayXHR *t = CommandNetworkReplayXHR
case CommandNetworkCanClearBrowserCache:
*t = CommandNetworkCanClearBrowserCache
case CommandNetworkClearBrowserCache: case CommandNetworkClearBrowserCache:
*t = CommandNetworkClearBrowserCache *t = CommandNetworkClearBrowserCache
case CommandNetworkCanClearBrowserCookies:
*t = CommandNetworkCanClearBrowserCookies
case CommandNetworkClearBrowserCookies: case CommandNetworkClearBrowserCookies:
*t = CommandNetworkClearBrowserCookies *t = CommandNetworkClearBrowserCookies
case CommandNetworkGetCookies: case CommandNetworkGetCookies:
@ -788,8 +791,6 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
*t = CommandNetworkSetCookie *t = CommandNetworkSetCookie
case CommandNetworkSetCookies: case CommandNetworkSetCookies:
*t = CommandNetworkSetCookies *t = CommandNetworkSetCookies
case CommandNetworkCanEmulateNetworkConditions:
*t = CommandNetworkCanEmulateNetworkConditions
case CommandNetworkEmulateNetworkConditions: case CommandNetworkEmulateNetworkConditions:
*t = CommandNetworkEmulateNetworkConditions *t = CommandNetworkEmulateNetworkConditions
case CommandNetworkSetCacheDisabled: case CommandNetworkSetCacheDisabled:
@ -804,6 +805,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
*t = CommandNetworkSetRequestInterception *t = CommandNetworkSetRequestInterception
case CommandNetworkContinueInterceptedRequest: case CommandNetworkContinueInterceptedRequest:
*t = CommandNetworkContinueInterceptedRequest *t = CommandNetworkContinueInterceptedRequest
case CommandNetworkGetResponseBodyForInterception:
*t = CommandNetworkGetResponseBodyForInterception
case EventDatabaseAddDatabase: case EventDatabaseAddDatabase:
*t = EventDatabaseAddDatabase *t = EventDatabaseAddDatabase
case CommandDatabaseEnable: case CommandDatabaseEnable:
@ -1340,6 +1343,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
*t = CommandDebuggerGetPossibleBreakpoints *t = CommandDebuggerGetPossibleBreakpoints
case CommandDebuggerContinueToLocation: case CommandDebuggerContinueToLocation:
*t = CommandDebuggerContinueToLocation *t = CommandDebuggerContinueToLocation
case CommandDebuggerPauseOnAsyncTask:
*t = CommandDebuggerPauseOnAsyncTask
case CommandDebuggerStepOver: case CommandDebuggerStepOver:
*t = CommandDebuggerStepOver *t = CommandDebuggerStepOver
case CommandDebuggerStepInto: case CommandDebuggerStepInto:
@ -1366,6 +1371,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
*t = CommandDebuggerEvaluateOnCallFrame *t = CommandDebuggerEvaluateOnCallFrame
case CommandDebuggerSetVariableValue: case CommandDebuggerSetVariableValue:
*t = CommandDebuggerSetVariableValue *t = CommandDebuggerSetVariableValue
case CommandDebuggerSetReturnValue:
*t = CommandDebuggerSetReturnValue
case CommandDebuggerSetAsyncCallStackDepth: case CommandDebuggerSetAsyncCallStackDepth:
*t = CommandDebuggerSetAsyncCallStackDepth *t = CommandDebuggerSetAsyncCallStackDepth
case CommandDebuggerSetBlackboxPatterns: case CommandDebuggerSetBlackboxPatterns:
@ -1432,6 +1439,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
*t = CommandHeapProfilerStartSampling *t = CommandHeapProfilerStartSampling
case CommandHeapProfilerStopSampling: case CommandHeapProfilerStopSampling:
*t = CommandHeapProfilerStopSampling *t = CommandHeapProfilerStopSampling
case CommandHeapProfilerGetSamplingProfile:
*t = CommandHeapProfilerGetSamplingProfile
default: default:
in.AddError(errors.New("unknown MethodType value")) in.AddError(errors.New("unknown MethodType value"))

View File

@ -104,6 +104,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandPageSetAutoAttachToCreatedPages: case cdp.CommandPageSetAutoAttachToCreatedPages:
return emptyVal, nil return emptyVal, nil
case cdp.CommandPageSetLifecycleEventsEnabled:
return emptyVal, nil
case cdp.CommandPageReload: case cdp.CommandPageReload:
return emptyVal, nil return emptyVal, nil
@ -321,7 +324,7 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
v = new(emulation.CanEmulateReturns) v = new(emulation.CanEmulateReturns)
case cdp.CommandEmulationSetVirtualTimePolicy: case cdp.CommandEmulationSetVirtualTimePolicy:
return emptyVal, nil v = new(emulation.SetVirtualTimePolicyReturns)
case cdp.CommandEmulationSetNavigatorOverrides: case cdp.CommandEmulationSetNavigatorOverrides:
return emptyVal, nil return emptyVal, nil
@ -368,6 +371,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandNetworkSetUserAgentOverride: case cdp.CommandNetworkSetUserAgentOverride:
return emptyVal, nil return emptyVal, nil
case cdp.CommandNetworkSearchInResponseBody:
v = new(network.SearchInResponseBodyReturns)
case cdp.CommandNetworkSetExtraHTTPHeaders: case cdp.CommandNetworkSetExtraHTTPHeaders:
return emptyVal, nil return emptyVal, nil
@ -380,15 +386,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandNetworkReplayXHR: case cdp.CommandNetworkReplayXHR:
return emptyVal, nil return emptyVal, nil
case cdp.CommandNetworkCanClearBrowserCache:
v = new(network.CanClearBrowserCacheReturns)
case cdp.CommandNetworkClearBrowserCache: case cdp.CommandNetworkClearBrowserCache:
return emptyVal, nil return emptyVal, nil
case cdp.CommandNetworkCanClearBrowserCookies:
v = new(network.CanClearBrowserCookiesReturns)
case cdp.CommandNetworkClearBrowserCookies: case cdp.CommandNetworkClearBrowserCookies:
return emptyVal, nil return emptyVal, nil
@ -407,9 +407,6 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandNetworkSetCookies: case cdp.CommandNetworkSetCookies:
return emptyVal, nil return emptyVal, nil
case cdp.CommandNetworkCanEmulateNetworkConditions:
v = new(network.CanEmulateNetworkConditionsReturns)
case cdp.CommandNetworkEmulateNetworkConditions: case cdp.CommandNetworkEmulateNetworkConditions:
return emptyVal, nil return emptyVal, nil
@ -431,6 +428,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandNetworkContinueInterceptedRequest: case cdp.CommandNetworkContinueInterceptedRequest:
return emptyVal, nil return emptyVal, nil
case cdp.CommandNetworkGetResponseBodyForInterception:
v = new(network.GetResponseBodyForInterceptionReturns)
case cdp.EventNetworkResourceChangedPriority: case cdp.EventNetworkResourceChangedPriority:
v = new(network.EventResourceChangedPriority) v = new(network.EventResourceChangedPriority)
@ -1268,6 +1268,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandDebuggerContinueToLocation: case cdp.CommandDebuggerContinueToLocation:
return emptyVal, nil return emptyVal, nil
case cdp.CommandDebuggerPauseOnAsyncTask:
return emptyVal, nil
case cdp.CommandDebuggerStepOver: case cdp.CommandDebuggerStepOver:
return emptyVal, nil return emptyVal, nil
@ -1307,6 +1310,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandDebuggerSetVariableValue: case cdp.CommandDebuggerSetVariableValue:
return emptyVal, nil return emptyVal, nil
case cdp.CommandDebuggerSetReturnValue:
return emptyVal, nil
case cdp.CommandDebuggerSetAsyncCallStackDepth: case cdp.CommandDebuggerSetAsyncCallStackDepth:
return emptyVal, nil return emptyVal, nil
@ -1406,6 +1412,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandHeapProfilerStopSampling: case cdp.CommandHeapProfilerStopSampling:
v = new(heapprofiler.StopSamplingReturns) v = new(heapprofiler.StopSamplingReturns)
case cdp.CommandHeapProfilerGetSamplingProfile:
v = new(heapprofiler.GetSamplingProfileReturns)
case cdp.EventHeapProfilerAddHeapSnapshotChunk: case cdp.EventHeapProfilerAddHeapSnapshotChunk:
v = new(heapprofiler.EventAddHeapSnapshotChunk) v = new(heapprofiler.EventAddHeapSnapshotChunk)

File diff suppressed because it is too large Load Diff

View File

@ -74,14 +74,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if len(in.TableNames) != 0 { if len(in.TableNames) != 0 {
if !first { const prefix string = ",\"tableNames\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"tableNames\":") out.RawString(prefix[1:])
if in.TableNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v2, v3 := range in.TableNames { for v2, v3 := range in.TableNames {
if v2 > 0 { if v2 > 0 {
@ -153,12 +153,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase1(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"databaseId\":"
} if first {
first = false first = false
out.RawString("\"databaseId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DatabaseID)) out.String(string(in.DatabaseID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -275,14 +279,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase2(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if len(in.ColumnNames) != 0 { if len(in.ColumnNames) != 0 {
if !first { const prefix string = ",\"columnNames\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"columnNames\":") out.RawString(prefix[1:])
if in.ColumnNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v6, v7 := range in.ColumnNames { for v6, v7 := range in.ColumnNames {
if v6 > 0 { if v6 > 0 {
@ -294,14 +298,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase2(out *jwriter.Writer,
} }
} }
if len(in.Values) != 0 { if len(in.Values) != 0 {
if !first { const prefix string = ",\"values\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"values\":") out.RawString(prefix[1:])
if in.Values == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v8, v9 := range in.Values { for v8, v9 := range in.Values {
if v8 > 0 { if v8 > 0 {
@ -313,16 +317,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase2(out *jwriter.Writer,
} }
} }
if in.SQLError != nil { if in.SQLError != nil {
if !first { const prefix string = ",\"sqlError\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"sqlError\":") out.RawString(prefix[1:])
if in.SQLError == nil {
out.RawString("null")
} else { } else {
(*in.SQLError).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.SQLError).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -387,18 +389,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase3(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"databaseId\":"
} if first {
first = false first = false
out.RawString("\"databaseId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DatabaseID)) out.String(string(in.DatabaseID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"query\":"
if first {
first = false first = false
out.RawString("\"query\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Query)) out.String(string(in.Query))
}
out.RawByte('}') out.RawByte('}')
} }
@ -468,16 +478,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase4(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"database\":"
} if first {
first = false first = false
out.RawString("\"database\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Database == nil { if in.Database == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Database).MarshalEasyJSON(out) (*in.Database).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -541,18 +555,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase5(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"message\":"
} if first {
first = false first = false
out.RawString("\"message\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Message)) out.String(string(in.Message))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"code\":"
if first {
first = false first = false
out.RawString("\"code\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Code)) out.Int64(int64(in.Code))
}
out.RawByte('}') out.RawByte('}')
} }
@ -738,30 +760,46 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase8(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"id\":"
} if first {
first = false first = false
out.RawString("\"id\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ID)) out.String(string(in.ID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"domain\":"
if first {
first = false first = false
out.RawString("\"domain\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Domain)) out.String(string(in.Domain))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"name\":"
if first {
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name)) out.String(string(in.Name))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"version\":"
if first {
first = false first = false
out.RawString("\"version\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Version)) out.String(string(in.Version))
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -329,6 +329,27 @@ func (p *ContinueToLocationParams) Do(ctxt context.Context, h cdp.Handler) (err
return h.Execute(ctxt, cdp.CommandDebuggerContinueToLocation, p, nil) return h.Execute(ctxt, cdp.CommandDebuggerContinueToLocation, p, nil)
} }
// PauseOnAsyncTaskParams [no description].
type PauseOnAsyncTaskParams struct {
AsyncTaskID runtime.AsyncTaskID `json:"asyncTaskId"` // Debugger will pause when given async task is started.
}
// PauseOnAsyncTask [no description].
//
// parameters:
// asyncTaskID - Debugger will pause when given async task is started.
func PauseOnAsyncTask(asyncTaskID runtime.AsyncTaskID) *PauseOnAsyncTaskParams {
return &PauseOnAsyncTaskParams{
AsyncTaskID: asyncTaskID,
}
}
// Do executes Debugger.pauseOnAsyncTask against the provided context and
// target handler.
func (p *PauseOnAsyncTaskParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandDebuggerPauseOnAsyncTask, p, nil)
}
// StepOverParams steps over the statement. // StepOverParams steps over the statement.
type StepOverParams struct{} type StepOverParams struct{}
@ -344,17 +365,28 @@ func (p *StepOverParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
} }
// StepIntoParams steps into the function call. // StepIntoParams steps into the function call.
type StepIntoParams struct{} type StepIntoParams struct {
BreakOnAsyncCall bool `json:"breakOnAsyncCall,omitempty"` // Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause.
}
// StepInto steps into the function call. // StepInto steps into the function call.
//
// parameters:
func StepInto() *StepIntoParams { func StepInto() *StepIntoParams {
return &StepIntoParams{} return &StepIntoParams{}
} }
// WithBreakOnAsyncCall debugger will issue additional Debugger.paused
// notification if any async task is scheduled before next pause.
func (p StepIntoParams) WithBreakOnAsyncCall(breakOnAsyncCall bool) *StepIntoParams {
p.BreakOnAsyncCall = breakOnAsyncCall
return &p
}
// Do executes Debugger.stepInto against the provided context and // Do executes Debugger.stepInto against the provided context and
// target handler. // target handler.
func (p *StepIntoParams) Do(ctxt context.Context, h cdp.Handler) (err error) { func (p *StepIntoParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandDebuggerStepInto, nil, nil) return h.Execute(ctxt, cdp.CommandDebuggerStepInto, p, nil)
} }
// StepOutParams steps out of the function call. // StepOutParams steps out of the function call.
@ -385,16 +417,18 @@ func (p *PauseParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandDebuggerPause, nil, nil) return h.Execute(ctxt, cdp.CommandDebuggerPause, nil, nil)
} }
// ScheduleStepIntoAsyncParams steps into next scheduled async task if any is // ScheduleStepIntoAsyncParams this method is deprecated - use
// scheduled before next pause. Returns success when async task is actually // Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask
// scheduled, returns error if no task were scheduled or another // instead. Steps into next scheduled async task if any is scheduled before next
// scheduleStepIntoAsync was called. // pause. Returns success when async task is actually scheduled, returns error
// if no task were scheduled or another scheduleStepIntoAsync was called.
type ScheduleStepIntoAsyncParams struct{} type ScheduleStepIntoAsyncParams struct{}
// ScheduleStepIntoAsync steps into next scheduled async task if any is // ScheduleStepIntoAsync this method is deprecated - use Debugger.stepInto
// scheduled before next pause. Returns success when async task is actually // with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next
// scheduled, returns error if no task were scheduled or another // scheduled async task if any is scheduled before next pause. Returns success
// scheduleStepIntoAsync was called. // when async task is actually scheduled, returns error if no task were
// scheduled or another scheduleStepIntoAsync was called.
func ScheduleStepIntoAsync() *ScheduleStepIntoAsyncParams { func ScheduleStepIntoAsync() *ScheduleStepIntoAsyncParams {
return &ScheduleStepIntoAsyncParams{} return &ScheduleStepIntoAsyncParams{}
} }
@ -744,6 +778,29 @@ func (p *SetVariableValueParams) Do(ctxt context.Context, h cdp.Handler) (err er
return h.Execute(ctxt, cdp.CommandDebuggerSetVariableValue, p, nil) return h.Execute(ctxt, cdp.CommandDebuggerSetVariableValue, p, nil)
} }
// SetReturnValueParams changes return value in top frame. Available only at
// return break position.
type SetReturnValueParams struct {
NewValue *runtime.CallArgument `json:"newValue"` // New return value.
}
// SetReturnValue changes return value in top frame. Available only at return
// break position.
//
// parameters:
// newValue - New return value.
func SetReturnValue(newValue *runtime.CallArgument) *SetReturnValueParams {
return &SetReturnValueParams{
NewValue: newValue,
}
}
// Do executes Debugger.setReturnValue against the provided context and
// target handler.
func (p *SetReturnValueParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandDebuggerSetReturnValue, p, nil)
}
// SetAsyncCallStackDepthParams enables or disables async call stacks // SetAsyncCallStackDepthParams enables or disables async call stacks
// tracking. // tracking.
type SetAsyncCallStackDepthParams struct { type SetAsyncCallStackDepthParams struct {

File diff suppressed because it is too large Load Diff

View File

@ -62,6 +62,7 @@ type EventPaused struct {
Data easyjson.RawMessage `json:"data,omitempty"` Data easyjson.RawMessage `json:"data,omitempty"`
HitBreakpoints []string `json:"hitBreakpoints,omitempty"` // Hit breakpoints IDs HitBreakpoints []string `json:"hitBreakpoints,omitempty"` // Hit breakpoints IDs
AsyncStackTrace *runtime.StackTrace `json:"asyncStackTrace,omitempty"` // Async stack trace, if any. AsyncStackTrace *runtime.StackTrace `json:"asyncStackTrace,omitempty"` // Async stack trace, if any.
ScheduledAsyncTaskID runtime.AsyncTaskID `json:"scheduledAsyncTaskId,omitempty"` // Scheduled async task id.
} }
// EventResumed fired when the virtual machine resumed execution. // EventResumed fired when the virtual machine resumed execution.

View File

@ -56,24 +56,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation(out *jwriter
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"alpha\":"
} if first {
first = false first = false
out.RawString("\"alpha\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Alpha)) out.Float64(float64(in.Alpha))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"beta\":"
if first {
first = false first = false
out.RawString("\"beta\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Beta)) out.Float64(float64(in.Beta))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"gamma\":"
if first {
first = false first = false
out.RawString("\"gamma\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Gamma)) out.Float64(float64(in.Gamma))
}
out.RawByte('}') out.RawByte('}')
} }

File diff suppressed because it is too large Load Diff

View File

@ -53,12 +53,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"url\":"
} if first {
first = false first = false
out.RawString("\"url\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.URL)) out.String(string(in.URL))
}
out.RawByte('}') out.RawByte('}')
} }
@ -120,12 +124,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger1(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"eventName\":"
} if first {
first = false first = false
out.RawString("\"eventName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.EventName)) out.String(string(in.EventName))
}
out.RawByte('}') out.RawByte('}')
} }
@ -189,18 +197,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger2(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"eventName\":"
} if first {
first = false first = false
out.RawString("\"eventName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.EventName)) out.String(string(in.EventName))
if in.TargetName != "" {
if !first {
out.RawByte(',')
} }
if in.TargetName != "" {
const prefix string = ",\"targetName\":"
if first {
first = false first = false
out.RawString("\"targetName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.TargetName)) out.String(string(in.TargetName))
} }
out.RawByte('}') out.RawByte('}')
@ -266,18 +280,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger3(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"nodeId\":"
} if first {
first = false first = false
out.RawString("\"nodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.NodeID)) out.Int64(int64(in.NodeID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"type\":"
if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out) (in.Type).MarshalEasyJSON(out)
}
out.RawByte('}') out.RawByte('}')
} }
@ -339,12 +361,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger4(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"url\":"
} if first {
first = false first = false
out.RawString("\"url\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.URL)) out.String(string(in.URL))
}
out.RawByte('}') out.RawByte('}')
} }
@ -406,12 +432,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger5(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"eventName\":"
} if first {
first = false first = false
out.RawString("\"eventName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.EventName)) out.String(string(in.EventName))
}
out.RawByte('}') out.RawByte('}')
} }
@ -475,18 +505,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger6(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"eventName\":"
} if first {
first = false first = false
out.RawString("\"eventName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.EventName)) out.String(string(in.EventName))
if in.TargetName != "" {
if !first {
out.RawByte(',')
} }
if in.TargetName != "" {
const prefix string = ",\"targetName\":"
if first {
first = false first = false
out.RawString("\"targetName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.TargetName)) out.String(string(in.TargetName))
} }
out.RawByte('}') out.RawByte('}')
@ -552,18 +588,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger7(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"nodeId\":"
} if first {
first = false first = false
out.RawString("\"nodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.NodeID)) out.Int64(int64(in.NodeID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"type\":"
if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out) (in.Type).MarshalEasyJSON(out)
}
out.RawByte('}') out.RawByte('}')
} }
@ -655,14 +699,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger8(out *jwriter.Writ
first := true first := true
_ = first _ = first
if len(in.Listeners) != 0 { if len(in.Listeners) != 0 {
if !first { const prefix string = ",\"listeners\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"listeners\":") out.RawString(prefix[1:])
if in.Listeners == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v2, v3 := range in.Listeners { for v2, v3 := range in.Listeners {
if v2 > 0 { if v2 > 0 {
@ -742,26 +786,34 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger9(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"objectId\":"
} if first {
first = false first = false
out.RawString("\"objectId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ObjectID)) out.String(string(in.ObjectID))
if in.Depth != 0 {
if !first {
out.RawByte(',')
} }
if in.Depth != 0 {
const prefix string = ",\"depth\":"
if first {
first = false first = false
out.RawString("\"depth\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Depth)) out.Int64(int64(in.Depth))
} }
if in.Pierce { if in.Pierce {
if !first { const prefix string = ",\"pierce\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"pierce\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Pierce)) out.Bool(bool(in.Pierce))
} }
out.RawByte('}') out.RawByte('}')
@ -859,78 +911,104 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger10(out *jwriter.Wri
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"type\":"
} if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
out.String(string(in.Type))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"useCapture\":")
out.Bool(bool(in.UseCapture))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"passive\":")
out.Bool(bool(in.Passive))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"once\":")
out.Bool(bool(in.Once))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"scriptId\":")
out.String(string(in.ScriptID))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"lineNumber\":")
out.Int64(int64(in.LineNumber))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"columnNumber\":")
out.Int64(int64(in.ColumnNumber))
if in.Handler != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"handler\":")
if in.Handler == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
out.String(string(in.Type))
}
{
const prefix string = ",\"useCapture\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.UseCapture))
}
{
const prefix string = ",\"passive\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Passive))
}
{
const prefix string = ",\"once\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Once))
}
{
const prefix string = ",\"scriptId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ScriptID))
}
{
const prefix string = ",\"lineNumber\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.LineNumber))
}
{
const prefix string = ",\"columnNumber\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.ColumnNumber))
}
if in.Handler != nil {
const prefix string = ",\"handler\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(*in.Handler).MarshalEasyJSON(out) (*in.Handler).MarshalEasyJSON(out)
} }
}
if in.OriginalHandler != nil { if in.OriginalHandler != nil {
if !first { const prefix string = ",\"originalHandler\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"originalHandler\":") out.RawString(prefix[1:])
if in.OriginalHandler == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.OriginalHandler).MarshalEasyJSON(out) (*in.OriginalHandler).MarshalEasyJSON(out)
} }
}
if in.BackendNodeID != 0 { if in.BackendNodeID != 0 {
if !first { const prefix string = ",\"backendNodeId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"backendNodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.BackendNodeID)) out.Int64(int64(in.BackendNodeID))
} }
out.RawByte('}') out.RawByte('}')

View File

@ -55,18 +55,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"name\":"
} if first {
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name)) out.String(string(in.Name))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"value\":"
if first {
first = false first = false
out.RawString("\"value\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Value)) out.String(string(in.Value))
}
out.RawByte('}') out.RawByte('}')
} }
@ -173,39 +181,49 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot1(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"domNodeIndex\":"
} if first {
first = false first = false
out.RawString("\"domNodeIndex\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.DomNodeIndex)) out.Int64(int64(in.DomNodeIndex))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"boundingBox\":"
if first {
first = false first = false
out.RawString("\"boundingBox\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.BoundingBox == nil { if in.BoundingBox == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.BoundingBox).MarshalEasyJSON(out) (*in.BoundingBox).MarshalEasyJSON(out)
} }
if in.LayoutText != "" {
if !first {
out.RawByte(',')
} }
if in.LayoutText != "" {
const prefix string = ",\"layoutText\":"
if first {
first = false first = false
out.RawString("\"layoutText\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.LayoutText)) out.String(string(in.LayoutText))
} }
if len(in.InlineTextNodes) != 0 { if len(in.InlineTextNodes) != 0 {
if !first { const prefix string = ",\"inlineTextNodes\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"inlineTextNodes\":") out.RawString(prefix[1:])
if in.InlineTextNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v2, v3 := range in.InlineTextNodes { for v2, v3 := range in.InlineTextNodes {
if v2 > 0 { if v2 > 0 {
@ -221,11 +239,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot1(out *jwriter.Writ
} }
} }
if in.StyleIndex != 0 { if in.StyleIndex != 0 {
if !first { const prefix string = ",\"styleIndex\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"styleIndex\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.StyleIndex)) out.Int64(int64(in.StyleIndex))
} }
out.RawByte('}') out.RawByte('}')
@ -301,28 +321,40 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot2(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"boundingBox\":"
} if first {
first = false first = false
out.RawString("\"boundingBox\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.BoundingBox == nil { if in.BoundingBox == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.BoundingBox).MarshalEasyJSON(out) (*in.BoundingBox).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"startCharacterIndex\":"
if first {
first = false first = false
out.RawString("\"startCharacterIndex\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.StartCharacterIndex)) out.Int64(int64(in.StartCharacterIndex))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"numCharacters\":"
if first {
first = false first = false
out.RawString("\"numCharacters\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.NumCharacters)) out.Int64(int64(in.NumCharacters))
}
out.RawByte('}') out.RawByte('}')
} }
@ -476,14 +508,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot3(out *jwriter.Writ
first := true first := true
_ = first _ = first
if len(in.DomNodes) != 0 { if len(in.DomNodes) != 0 {
if !first { const prefix string = ",\"domNodes\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"domNodes\":") out.RawString(prefix[1:])
if in.DomNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v7, v8 := range in.DomNodes { for v7, v8 := range in.DomNodes {
if v7 > 0 { if v7 > 0 {
@ -499,14 +531,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot3(out *jwriter.Writ
} }
} }
if len(in.LayoutTreeNodes) != 0 { if len(in.LayoutTreeNodes) != 0 {
if !first { const prefix string = ",\"layoutTreeNodes\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"layoutTreeNodes\":") out.RawString(prefix[1:])
if in.LayoutTreeNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v9, v10 := range in.LayoutTreeNodes { for v9, v10 := range in.LayoutTreeNodes {
if v9 > 0 { if v9 > 0 {
@ -522,14 +554,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot3(out *jwriter.Writ
} }
} }
if len(in.ComputedStyles) != 0 { if len(in.ComputedStyles) != 0 {
if !first { const prefix string = ",\"computedStyles\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"computedStyles\":") out.RawString(prefix[1:])
if in.ComputedStyles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v11, v12 := range in.ComputedStyles { for v11, v12 := range in.ComputedStyles {
if v11 > 0 { if v11 > 0 {
@ -626,11 +658,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot4(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"computedStyleWhitelist\":"
} if first {
first = false first = false
out.RawString("\"computedStyleWhitelist\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.ComputedStyleWhitelist == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.ComputedStyleWhitelist == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -643,6 +678,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot4(out *jwriter.Writ
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -821,71 +857,95 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot5(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"nodeType\":"
} if first {
first = false first = false
out.RawString("\"nodeType\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.NodeType).MarshalEasyJSON(out) (in.NodeType).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"nodeName\":"
if first {
first = false first = false
out.RawString("\"nodeName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.NodeName)) out.String(string(in.NodeName))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"nodeValue\":"
if first {
first = false first = false
out.RawString("\"nodeValue\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.NodeValue)) out.String(string(in.NodeValue))
if in.TextValue != "" {
if !first {
out.RawByte(',')
} }
if in.TextValue != "" {
const prefix string = ",\"textValue\":"
if first {
first = false first = false
out.RawString("\"textValue\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.TextValue)) out.String(string(in.TextValue))
} }
if in.InputValue != "" { if in.InputValue != "" {
if !first { const prefix string = ",\"inputValue\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"inputValue\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.InputValue)) out.String(string(in.InputValue))
} }
if in.InputChecked { if in.InputChecked {
if !first { const prefix string = ",\"inputChecked\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"inputChecked\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.InputChecked)) out.Bool(bool(in.InputChecked))
} }
if in.OptionSelected { if in.OptionSelected {
if !first { const prefix string = ",\"optionSelected\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"optionSelected\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.OptionSelected)) out.Bool(bool(in.OptionSelected))
} }
if !first { {
out.RawByte(',') const prefix string = ",\"backendNodeId\":"
} if first {
first = false first = false
out.RawString("\"backendNodeId\":") out.RawString(prefix[1:])
out.Int64(int64(in.BackendNodeID))
if len(in.ChildNodeIndexes) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"childNodeIndexes\":")
if in.ChildNodeIndexes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
out.Int64(int64(in.BackendNodeID))
}
if len(in.ChildNodeIndexes) != 0 {
const prefix string = ",\"childNodeIndexes\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v19, v20 := range in.ChildNodeIndexes { for v19, v20 := range in.ChildNodeIndexes {
if v19 > 0 { if v19 > 0 {
@ -897,14 +957,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot5(out *jwriter.Writ
} }
} }
if len(in.Attributes) != 0 { if len(in.Attributes) != 0 {
if !first { const prefix string = ",\"attributes\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"attributes\":") out.RawString(prefix[1:])
if in.Attributes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v21, v22 := range in.Attributes { for v21, v22 := range in.Attributes {
if v21 > 0 { if v21 > 0 {
@ -920,14 +980,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot5(out *jwriter.Writ
} }
} }
if len(in.PseudoElementIndexes) != 0 { if len(in.PseudoElementIndexes) != 0 {
if !first { const prefix string = ",\"pseudoElementIndexes\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"pseudoElementIndexes\":") out.RawString(prefix[1:])
if in.PseudoElementIndexes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v23, v24 := range in.PseudoElementIndexes { for v23, v24 := range in.PseudoElementIndexes {
if v23 > 0 { if v23 > 0 {
@ -939,107 +999,133 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot5(out *jwriter.Writ
} }
} }
if in.LayoutNodeIndex != 0 { if in.LayoutNodeIndex != 0 {
if !first { const prefix string = ",\"layoutNodeIndex\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"layoutNodeIndex\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.LayoutNodeIndex)) out.Int64(int64(in.LayoutNodeIndex))
} }
if in.DocumentURL != "" { if in.DocumentURL != "" {
if !first { const prefix string = ",\"documentURL\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"documentURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DocumentURL)) out.String(string(in.DocumentURL))
} }
if in.BaseURL != "" { if in.BaseURL != "" {
if !first { const prefix string = ",\"baseURL\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"baseURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.BaseURL)) out.String(string(in.BaseURL))
} }
if in.ContentLanguage != "" { if in.ContentLanguage != "" {
if !first { const prefix string = ",\"contentLanguage\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"contentLanguage\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ContentLanguage)) out.String(string(in.ContentLanguage))
} }
if in.DocumentEncoding != "" { if in.DocumentEncoding != "" {
if !first { const prefix string = ",\"documentEncoding\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"documentEncoding\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DocumentEncoding)) out.String(string(in.DocumentEncoding))
} }
if in.PublicID != "" { if in.PublicID != "" {
if !first { const prefix string = ",\"publicId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"publicId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.PublicID)) out.String(string(in.PublicID))
} }
if in.SystemID != "" { if in.SystemID != "" {
if !first { const prefix string = ",\"systemId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"systemId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SystemID)) out.String(string(in.SystemID))
} }
if in.FrameID != "" { if in.FrameID != "" {
if !first { const prefix string = ",\"frameId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"frameId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.FrameID)) out.String(string(in.FrameID))
} }
if in.ContentDocumentIndex != 0 { if in.ContentDocumentIndex != 0 {
if !first { const prefix string = ",\"contentDocumentIndex\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"contentDocumentIndex\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.ContentDocumentIndex)) out.Int64(int64(in.ContentDocumentIndex))
} }
if in.ImportedDocumentIndex != 0 { if in.ImportedDocumentIndex != 0 {
if !first { const prefix string = ",\"importedDocumentIndex\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"importedDocumentIndex\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.ImportedDocumentIndex)) out.Int64(int64(in.ImportedDocumentIndex))
} }
if in.TemplateContentIndex != 0 { if in.TemplateContentIndex != 0 {
if !first { const prefix string = ",\"templateContentIndex\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"templateContentIndex\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.TemplateContentIndex)) out.Int64(int64(in.TemplateContentIndex))
} }
if in.PseudoType != "" { if in.PseudoType != "" {
if !first { const prefix string = ",\"pseudoType\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"pseudoType\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.PseudoType).MarshalEasyJSON(out) (in.PseudoType).MarshalEasyJSON(out)
} }
if in.IsClickable { if in.IsClickable {
if !first { const prefix string = ",\"isClickable\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"isClickable\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.IsClickable)) out.Bool(bool(in.IsClickable))
} }
out.RawByte('}') out.RawByte('}')
@ -1132,11 +1218,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot6(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"properties\":"
} if first {
first = false first = false
out.RawString("\"properties\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Properties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Properties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -1153,6 +1242,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot6(out *jwriter.Writ
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -54,18 +54,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"securityOrigin\":"
} if first {
first = false first = false
out.RawString("\"securityOrigin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SecurityOrigin)) out.String(string(in.SecurityOrigin))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"isLocalStorage\":"
if first {
first = false first = false
out.RawString("\"isLocalStorage\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.IsLocalStorage)) out.Bool(bool(in.IsLocalStorage))
}
out.RawByte('}') out.RawByte('}')
} }
@ -139,28 +147,40 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage1(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"storageId\":"
} if first {
first = false first = false
out.RawString("\"storageId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.StorageID == nil { if in.StorageID == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.StorageID).MarshalEasyJSON(out) (*in.StorageID).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"key\":"
if first {
first = false first = false
out.RawString("\"key\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Key)) out.String(string(in.Key))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"value\":"
if first {
first = false first = false
out.RawString("\"value\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Value)) out.String(string(in.Value))
}
out.RawByte('}') out.RawByte('}')
} }
@ -232,22 +252,30 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage2(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"storageId\":"
} if first {
first = false first = false
out.RawString("\"storageId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.StorageID == nil { if in.StorageID == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.StorageID).MarshalEasyJSON(out) (*in.StorageID).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"key\":"
if first {
first = false first = false
out.RawString("\"key\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Key)) out.String(string(in.Key))
}
out.RawByte('}') out.RawByte('}')
} }
@ -352,14 +380,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage3(out *jwriter.Write
first := true first := true
_ = first _ = first
if len(in.Entries) != 0 { if len(in.Entries) != 0 {
if !first { const prefix string = ",\"entries\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"entries\":") out.RawString(prefix[1:])
if in.Entries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v3, v4 := range in.Entries { for v3, v4 := range in.Entries {
if v3 > 0 { if v3 > 0 {
@ -450,16 +478,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage4(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"storageId\":"
} if first {
first = false first = false
out.RawString("\"storageId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.StorageID == nil { if in.StorageID == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.StorageID).MarshalEasyJSON(out) (*in.StorageID).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -529,16 +561,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage5(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"storageId\":"
} if first {
first = false first = false
out.RawString("\"storageId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.StorageID == nil { if in.StorageID == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.StorageID).MarshalEasyJSON(out) (*in.StorageID).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -614,34 +650,50 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage6(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"storageId\":"
} if first {
first = false first = false
out.RawString("\"storageId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.StorageID == nil { if in.StorageID == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.StorageID).MarshalEasyJSON(out) (*in.StorageID).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"key\":"
if first {
first = false first = false
out.RawString("\"key\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Key)) out.String(string(in.Key))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"oldValue\":"
if first {
first = false first = false
out.RawString("\"oldValue\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.OldValue)) out.String(string(in.OldValue))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"newValue\":"
if first {
first = false first = false
out.RawString("\"newValue\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.NewValue)) out.String(string(in.NewValue))
}
out.RawByte('}') out.RawByte('}')
} }
@ -713,22 +765,30 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage7(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"storageId\":"
} if first {
first = false first = false
out.RawString("\"storageId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.StorageID == nil { if in.StorageID == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.StorageID).MarshalEasyJSON(out) (*in.StorageID).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"key\":"
if first {
first = false first = false
out.RawString("\"key\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Key)) out.String(string(in.Key))
}
out.RawByte('}') out.RawByte('}')
} }
@ -802,28 +862,40 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage8(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"storageId\":"
} if first {
first = false first = false
out.RawString("\"storageId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.StorageID == nil { if in.StorageID == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.StorageID).MarshalEasyJSON(out) (*in.StorageID).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"key\":"
if first {
first = false first = false
out.RawString("\"key\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Key)) out.String(string(in.Key))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"newValue\":"
if first {
first = false first = false
out.RawString("\"newValue\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.NewValue)) out.String(string(in.NewValue))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1011,16 +1083,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage11(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"storageId\":"
} if first {
first = false first = false
out.RawString("\"storageId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.StorageID == nil { if in.StorageID == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.StorageID).MarshalEasyJSON(out) (*in.StorageID).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -58,30 +58,44 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp(out *jwriter.Writer, in RGBA)
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"r\":"
} if first {
first = false first = false
out.RawString("\"r\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.R)) out.Int64(int64(in.R))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"g\":"
if first {
first = false first = false
out.RawString("\"g\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.G)) out.Int64(int64(in.G))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"b\":"
if first {
first = false first = false
out.RawString("\"b\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.B)) out.Int64(int64(in.B))
if in.A != 0 {
if !first {
out.RawByte(',')
} }
if in.A != 0 {
const prefix string = ",\"a\":"
if first {
first = false first = false
out.RawString("\"a\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.A)) out.Float64(float64(in.A))
} }
out.RawByte('}') out.RawByte('}')
@ -360,67 +374,95 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp1(out *jwriter.Writer, in Node
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"nodeId\":"
} if first {
first = false first = false
out.RawString("\"nodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.NodeID)) out.Int64(int64(in.NodeID))
if in.ParentID != 0 {
if !first {
out.RawByte(',')
} }
if in.ParentID != 0 {
const prefix string = ",\"parentId\":"
if first {
first = false first = false
out.RawString("\"parentId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.ParentID)) out.Int64(int64(in.ParentID))
} }
if !first { {
out.RawByte(',') const prefix string = ",\"backendNodeId\":"
} if first {
first = false first = false
out.RawString("\"backendNodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.BackendNodeID)) out.Int64(int64(in.BackendNodeID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"nodeType\":"
if first {
first = false first = false
out.RawString("\"nodeType\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.NodeType).MarshalEasyJSON(out) (in.NodeType).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"nodeName\":"
if first {
first = false first = false
out.RawString("\"nodeName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.NodeName)) out.String(string(in.NodeName))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"localName\":"
if first {
first = false first = false
out.RawString("\"localName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.LocalName)) out.String(string(in.LocalName))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"nodeValue\":"
if first {
first = false first = false
out.RawString("\"nodeValue\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.NodeValue)) out.String(string(in.NodeValue))
if in.ChildNodeCount != 0 {
if !first {
out.RawByte(',')
} }
if in.ChildNodeCount != 0 {
const prefix string = ",\"childNodeCount\":"
if first {
first = false first = false
out.RawString("\"childNodeCount\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.ChildNodeCount)) out.Int64(int64(in.ChildNodeCount))
} }
if len(in.Children) != 0 { if len(in.Children) != 0 {
if !first { const prefix string = ",\"children\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"children\":") out.RawString(prefix[1:])
if in.Children == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v6, v7 := range in.Children { for v6, v7 := range in.Children {
if v6 > 0 { if v6 > 0 {
@ -436,14 +478,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp1(out *jwriter.Writer, in Node
} }
} }
if len(in.Attributes) != 0 { if len(in.Attributes) != 0 {
if !first { const prefix string = ",\"attributes\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"attributes\":") out.RawString(prefix[1:])
if in.Attributes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v8, v9 := range in.Attributes { for v8, v9 := range in.Attributes {
if v8 > 0 { if v8 > 0 {
@ -455,114 +497,134 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp1(out *jwriter.Writer, in Node
} }
} }
if in.DocumentURL != "" { if in.DocumentURL != "" {
if !first { const prefix string = ",\"documentURL\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"documentURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DocumentURL)) out.String(string(in.DocumentURL))
} }
if in.BaseURL != "" { if in.BaseURL != "" {
if !first { const prefix string = ",\"baseURL\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"baseURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.BaseURL)) out.String(string(in.BaseURL))
} }
if in.PublicID != "" { if in.PublicID != "" {
if !first { const prefix string = ",\"publicId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"publicId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.PublicID)) out.String(string(in.PublicID))
} }
if in.SystemID != "" { if in.SystemID != "" {
if !first { const prefix string = ",\"systemId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"systemId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SystemID)) out.String(string(in.SystemID))
} }
if in.InternalSubset != "" { if in.InternalSubset != "" {
if !first { const prefix string = ",\"internalSubset\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"internalSubset\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.InternalSubset)) out.String(string(in.InternalSubset))
} }
if in.XMLVersion != "" { if in.XMLVersion != "" {
if !first { const prefix string = ",\"xmlVersion\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"xmlVersion\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.XMLVersion)) out.String(string(in.XMLVersion))
} }
if in.Name != "" { if in.Name != "" {
if !first { const prefix string = ",\"name\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name)) out.String(string(in.Name))
} }
if in.Value != "" { if in.Value != "" {
if !first { const prefix string = ",\"value\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"value\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Value)) out.String(string(in.Value))
} }
if in.PseudoType != "" { if in.PseudoType != "" {
if !first { const prefix string = ",\"pseudoType\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"pseudoType\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.PseudoType).MarshalEasyJSON(out) (in.PseudoType).MarshalEasyJSON(out)
} }
if in.ShadowRootType != "" { if in.ShadowRootType != "" {
if !first { const prefix string = ",\"shadowRootType\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"shadowRootType\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.ShadowRootType).MarshalEasyJSON(out) (in.ShadowRootType).MarshalEasyJSON(out)
} }
if in.FrameID != "" { if in.FrameID != "" {
if !first { const prefix string = ",\"frameId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"frameId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.FrameID)) out.String(string(in.FrameID))
} }
if in.ContentDocument != nil { if in.ContentDocument != nil {
if !first { const prefix string = ",\"contentDocument\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"contentDocument\":") out.RawString(prefix[1:])
if in.ContentDocument == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.ContentDocument).MarshalEasyJSON(out) (*in.ContentDocument).MarshalEasyJSON(out)
} }
}
if len(in.ShadowRoots) != 0 { if len(in.ShadowRoots) != 0 {
if !first { const prefix string = ",\"shadowRoots\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"shadowRoots\":") out.RawString(prefix[1:])
if in.ShadowRoots == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v10, v11 := range in.ShadowRoots { for v10, v11 := range in.ShadowRoots {
if v10 > 0 { if v10 > 0 {
@ -578,26 +640,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp1(out *jwriter.Writer, in Node
} }
} }
if in.TemplateContent != nil { if in.TemplateContent != nil {
if !first { const prefix string = ",\"templateContent\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"templateContent\":") out.RawString(prefix[1:])
if in.TemplateContent == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.TemplateContent).MarshalEasyJSON(out) (*in.TemplateContent).MarshalEasyJSON(out)
} }
}
if len(in.PseudoElements) != 0 { if len(in.PseudoElements) != 0 {
if !first { const prefix string = ",\"pseudoElements\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"pseudoElements\":") out.RawString(prefix[1:])
if in.PseudoElements == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v12, v13 := range in.PseudoElements { for v12, v13 := range in.PseudoElements {
if v12 > 0 { if v12 > 0 {
@ -613,26 +673,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp1(out *jwriter.Writer, in Node
} }
} }
if in.ImportedDocument != nil { if in.ImportedDocument != nil {
if !first { const prefix string = ",\"importedDocument\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"importedDocument\":") out.RawString(prefix[1:])
if in.ImportedDocument == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.ImportedDocument).MarshalEasyJSON(out) (*in.ImportedDocument).MarshalEasyJSON(out)
} }
}
if len(in.DistributedNodes) != 0 { if len(in.DistributedNodes) != 0 {
if !first { const prefix string = ",\"distributedNodes\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"distributedNodes\":") out.RawString(prefix[1:])
if in.DistributedNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v14, v15 := range in.DistributedNodes { for v14, v15 := range in.DistributedNodes {
if v14 > 0 { if v14 > 0 {
@ -648,11 +706,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp1(out *jwriter.Writer, in Node
} }
} }
if in.IsSVG { if in.IsSVG {
if !first { const prefix string = ",\"isSVG\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"isSVG\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.IsSVG)) out.Bool(bool(in.IsSVG))
} }
out.RawByte('}') out.RawByte('}')
@ -718,18 +778,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp2(out *jwriter.Writer, in Mess
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"code\":"
} if first {
first = false first = false
out.RawString("\"code\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Code)) out.Int64(int64(in.Code))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"message\":"
if first {
first = false first = false
out.RawString("\"message\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Message)) out.String(string(in.Message))
}
out.RawByte('}') out.RawByte('}')
} }
@ -808,48 +876,54 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp3(out *jwriter.Writer, in Mess
first := true first := true
_ = first _ = first
if in.ID != 0 { if in.ID != 0 {
if !first { const prefix string = ",\"id\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"id\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.ID)) out.Int64(int64(in.ID))
} }
if in.Method != "" { if in.Method != "" {
if !first { const prefix string = ",\"method\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"method\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Method).MarshalEasyJSON(out) (in.Method).MarshalEasyJSON(out)
} }
if (in.Params).IsDefined() { if (in.Params).IsDefined() {
if !first { const prefix string = ",\"params\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"params\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Params).MarshalEasyJSON(out) (in.Params).MarshalEasyJSON(out)
} }
if (in.Result).IsDefined() { if (in.Result).IsDefined() {
if !first { const prefix string = ",\"result\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"result\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Result).MarshalEasyJSON(out) (in.Result).MarshalEasyJSON(out)
} }
if in.Error != nil { if in.Error != nil {
if !first { const prefix string = ",\"error\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"error\":") out.RawString(prefix[1:])
if in.Error == nil {
out.RawString("null")
} else { } else {
(*in.Error).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.Error).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -926,58 +1000,84 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp4(out *jwriter.Writer, in Fram
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"id\":"
} if first {
first = false first = false
out.RawString("\"id\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ID)) out.String(string(in.ID))
if in.ParentID != "" {
if !first {
out.RawByte(',')
} }
if in.ParentID != "" {
const prefix string = ",\"parentId\":"
if first {
first = false first = false
out.RawString("\"parentId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ParentID)) out.String(string(in.ParentID))
} }
if !first { {
out.RawByte(',') const prefix string = ",\"loaderId\":"
} if first {
first = false first = false
out.RawString("\"loaderId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.LoaderID)) out.String(string(in.LoaderID))
if in.Name != "" {
if !first {
out.RawByte(',')
} }
if in.Name != "" {
const prefix string = ",\"name\":"
if first {
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name)) out.String(string(in.Name))
} }
if !first { {
out.RawByte(',') const prefix string = ",\"url\":"
} if first {
first = false first = false
out.RawString("\"url\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.URL)) out.String(string(in.URL))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"securityOrigin\":"
if first {
first = false first = false
out.RawString("\"securityOrigin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SecurityOrigin)) out.String(string(in.SecurityOrigin))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"mimeType\":"
if first {
first = false first = false
out.RawString("\"mimeType\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.MimeType)) out.String(string(in.MimeType))
if in.UnreachableURL != "" {
if !first {
out.RawByte(',')
} }
if in.UnreachableURL != "" {
const prefix string = ",\"unreachableUrl\":"
if first {
first = false first = false
out.RawString("\"unreachableUrl\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.UnreachableURL)) out.String(string(in.UnreachableURL))
} }
out.RawByte('}') out.RawByte('}')
@ -1045,24 +1145,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp5(out *jwriter.Writer, in Back
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"nodeType\":"
} if first {
first = false first = false
out.RawString("\"nodeType\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.NodeType).MarshalEasyJSON(out) (in.NodeType).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"nodeName\":"
if first {
first = false first = false
out.RawString("\"nodeName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.NodeName)) out.String(string(in.NodeName))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"backendNodeId\":"
if first {
first = false first = false
out.RawString("\"backendNodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.BackendNodeID)) out.Int64(int64(in.BackendNodeID))
}
out.RawByte('}') out.RawByte('}')
} }

File diff suppressed because it is too large Load Diff

View File

@ -13,6 +13,7 @@ import (
cdp "github.com/knq/chromedp/cdp" cdp "github.com/knq/chromedp/cdp"
"github.com/knq/chromedp/cdp/page" "github.com/knq/chromedp/cdp/page"
"github.com/knq/chromedp/cdp/runtime"
) )
// SetDeviceMetricsOverrideParams overrides the values of device screen // SetDeviceMetricsOverrideParams overrides the values of device screen
@ -377,7 +378,7 @@ func (p *CanEmulateParams) Do(ctxt context.Context, h cdp.Handler) (result bool,
// policy. Note this supersedes any previous time budget. // policy. Note this supersedes any previous time budget.
type SetVirtualTimePolicyParams struct { type SetVirtualTimePolicyParams struct {
Policy VirtualTimePolicy `json:"policy"` Policy VirtualTimePolicy `json:"policy"`
Budget int64 `json:"budget,omitempty"` // If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent. Budget float64 `json:"budget,omitempty"` // If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent.
MaxVirtualTimeTaskStarvationCount int64 `json:"maxVirtualTimeTaskStarvationCount,omitempty"` // If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock. MaxVirtualTimeTaskStarvationCount int64 `json:"maxVirtualTimeTaskStarvationCount,omitempty"` // If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock.
} }
@ -395,7 +396,7 @@ func SetVirtualTimePolicy(policy VirtualTimePolicy) *SetVirtualTimePolicyParams
// WithBudget if set, after this many virtual milliseconds have elapsed // WithBudget if set, after this many virtual milliseconds have elapsed
// virtual time will be paused and a virtualTimeBudgetExpired event is sent. // virtual time will be paused and a virtualTimeBudgetExpired event is sent.
func (p SetVirtualTimePolicyParams) WithBudget(budget int64) *SetVirtualTimePolicyParams { func (p SetVirtualTimePolicyParams) WithBudget(budget float64) *SetVirtualTimePolicyParams {
p.Budget = budget p.Budget = budget
return &p return &p
} }
@ -408,10 +409,25 @@ func (p SetVirtualTimePolicyParams) WithMaxVirtualTimeTaskStarvationCount(maxVir
return &p return &p
} }
// SetVirtualTimePolicyReturns return values.
type SetVirtualTimePolicyReturns struct {
VirtualTimeBase *runtime.Timestamp `json:"virtualTimeBase,omitempty"` // Absolute timestamp at which virtual time was first enabled (milliseconds since epoch).
}
// Do executes Emulation.setVirtualTimePolicy against the provided context and // Do executes Emulation.setVirtualTimePolicy against the provided context and
// target handler. // target handler.
func (p *SetVirtualTimePolicyParams) Do(ctxt context.Context, h cdp.Handler) (err error) { //
return h.Execute(ctxt, cdp.CommandEmulationSetVirtualTimePolicy, p, nil) // returns:
// virtualTimeBase - Absolute timestamp at which virtual time was first enabled (milliseconds since epoch).
func (p *SetVirtualTimePolicyParams) Do(ctxt context.Context, h cdp.Handler) (virtualTimeBase *runtime.Timestamp, err error) {
// execute
var res SetVirtualTimePolicyReturns
err = h.Execute(ctxt, cdp.CommandEmulationSetVirtualTimePolicy, p, &res)
if err != nil {
return nil, err
}
return res.VirtualTimeBase, nil
} }
// SetNavigatorOverridesParams overrides value returned by the javascript // SetNavigatorOverridesParams overrides value returned by the javascript

View File

@ -13,13 +13,13 @@ type EventVirtualTimeBudgetExpired struct{}
// EventVirtualTimeAdvanced notification sent after the virtual time has // EventVirtualTimeAdvanced notification sent after the virtual time has
// advanced. // advanced.
type EventVirtualTimeAdvanced struct { type EventVirtualTimeAdvanced struct {
VirtualTimeElapsed int64 `json:"virtualTimeElapsed"` // The amount of virtual time that has elapsed in milliseconds since virtual time was first enabled. VirtualTimeElapsed float64 `json:"virtualTimeElapsed"` // The amount of virtual time that has elapsed in milliseconds since virtual time was first enabled.
} }
// EventVirtualTimePaused notification sent after the virtual time has // EventVirtualTimePaused notification sent after the virtual time has
// paused. // paused.
type EventVirtualTimePaused struct { type EventVirtualTimePaused struct {
VirtualTimeElapsed int64 `json:"virtualTimeElapsed"` // The amount of virtual time that has elapsed in milliseconds since virtual time was first enabled. VirtualTimeElapsed float64 `json:"virtualTimeElapsed"` // The amount of virtual time that has elapsed in milliseconds since virtual time was first enabled.
} }
// EventTypes all event types in the domain. // EventTypes all event types in the domain.

File diff suppressed because it is too large Load Diff

View File

@ -56,19 +56,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeadlessexperimental(out *jwri
first := true first := true
_ = first _ = first
if in.Format != "" { if in.Format != "" {
if !first { const prefix string = ",\"format\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"format\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Format).MarshalEasyJSON(out) (in.Format).MarshalEasyJSON(out)
} }
if in.Quality != 0 { if in.Quality != 0 {
if !first { const prefix string = ",\"quality\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"quality\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Quality)) out.Int64(int64(in.Quality))
} }
out.RawByte('}') out.RawByte('}')
@ -132,12 +136,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeadlessexperimental1(out *jwr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"needsBeginFrames\":"
} if first {
first = false first = false
out.RawString("\"needsBeginFrames\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.NeedsBeginFrames)) out.Bool(bool(in.NeedsBeginFrames))
}
out.RawByte('}') out.RawByte('}')
} }
@ -381,27 +389,33 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeadlessexperimental5(out *jwr
first := true first := true
_ = first _ = first
if in.HasDamage { if in.HasDamage {
if !first { const prefix string = ",\"hasDamage\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"hasDamage\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.HasDamage)) out.Bool(bool(in.HasDamage))
} }
if in.MainFrameContentUpdated { if in.MainFrameContentUpdated {
if !first { const prefix string = ",\"mainFrameContentUpdated\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"mainFrameContentUpdated\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.MainFrameContentUpdated)) out.Bool(bool(in.MainFrameContentUpdated))
} }
if in.ScreenshotData != "" { if in.ScreenshotData != "" {
if !first { const prefix string = ",\"screenshotData\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"screenshotData\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ScreenshotData)) out.String(string(in.ScreenshotData))
} }
out.RawByte('}') out.RawByte('}')
@ -496,48 +510,44 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeadlessexperimental6(out *jwr
first := true first := true
_ = first _ = first
if in.FrameTime != nil { if in.FrameTime != nil {
if !first { const prefix string = ",\"frameTime\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"frameTime\":") out.RawString(prefix[1:])
if in.FrameTime == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.FrameTime).MarshalEasyJSON(out) (*in.FrameTime).MarshalEasyJSON(out)
} }
}
if in.Deadline != nil { if in.Deadline != nil {
if !first { const prefix string = ",\"deadline\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"deadline\":") out.RawString(prefix[1:])
if in.Deadline == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.Deadline).MarshalEasyJSON(out) (*in.Deadline).MarshalEasyJSON(out)
} }
}
if in.Interval != 0 { if in.Interval != 0 {
if !first { const prefix string = ",\"interval\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"interval\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Interval)) out.Float64(float64(in.Interval))
} }
if in.Screenshot != nil { if in.Screenshot != nil {
if !first { const prefix string = ",\"screenshot\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"screenshot\":") out.RawString(prefix[1:])
if in.Screenshot == nil {
out.RawString("null")
} else { } else {
(*in.Screenshot).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.Screenshot).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }

File diff suppressed because it is too large Load Diff

View File

@ -285,3 +285,32 @@ func (p *StopSamplingParams) Do(ctxt context.Context, h cdp.Handler) (profile *S
return res.Profile, nil return res.Profile, nil
} }
// GetSamplingProfileParams [no description].
type GetSamplingProfileParams struct{}
// GetSamplingProfile [no description].
func GetSamplingProfile() *GetSamplingProfileParams {
return &GetSamplingProfileParams{}
}
// GetSamplingProfileReturns return values.
type GetSamplingProfileReturns struct {
Profile *SamplingHeapProfile `json:"profile,omitempty"` // Return the sampling profile being collected.
}
// Do executes HeapProfiler.getSamplingProfile against the provided context and
// target handler.
//
// returns:
// profile - Return the sampling profile being collected.
func (p *GetSamplingProfileParams) Do(ctxt context.Context, h cdp.Handler) (profile *SamplingHeapProfile, err error) {
// execute
var res GetSamplingProfileReturns
err = h.Execute(ctxt, cdp.CommandHeapProfilerGetSamplingProfile, nil, &res)
if err != nil {
return nil, err
}
return res.Profile, nil
}

View File

@ -62,16 +62,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.DatabaseWithObjectStores != nil { if in.DatabaseWithObjectStores != nil {
if !first { const prefix string = ",\"databaseWithObjectStores\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"databaseWithObjectStores\":") out.RawString(prefix[1:])
if in.DatabaseWithObjectStores == nil {
out.RawString("null")
} else { } else {
(*in.DatabaseWithObjectStores).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.DatabaseWithObjectStores).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -136,18 +134,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb1(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"securityOrigin\":"
} if first {
first = false first = false
out.RawString("\"securityOrigin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SecurityOrigin)) out.String(string(in.SecurityOrigin))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"databaseName\":"
if first {
first = false first = false
out.RawString("\"databaseName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DatabaseName)) out.String(string(in.DatabaseName))
}
out.RawByte('}') out.RawByte('}')
} }
@ -231,14 +237,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb2(out *jwriter.Writer
first := true first := true
_ = first _ = first
if len(in.DatabaseNames) != 0 { if len(in.DatabaseNames) != 0 {
if !first { const prefix string = ",\"databaseNames\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"databaseNames\":") out.RawString(prefix[1:])
if in.DatabaseNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v2, v3 := range in.DatabaseNames { for v2, v3 := range in.DatabaseNames {
if v2 > 0 { if v2 > 0 {
@ -310,12 +316,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb3(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"securityOrigin\":"
} if first {
first = false first = false
out.RawString("\"securityOrigin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SecurityOrigin)) out.String(string(in.SecurityOrigin))
}
out.RawByte('}') out.RawByte('}')
} }
@ -409,14 +419,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb4(out *jwriter.Writer
first := true first := true
_ = first _ = first
if len(in.ObjectStoreDataEntries) != 0 { if len(in.ObjectStoreDataEntries) != 0 {
if !first { const prefix string = ",\"objectStoreDataEntries\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"objectStoreDataEntries\":") out.RawString(prefix[1:])
if in.ObjectStoreDataEntries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v5, v6 := range in.ObjectStoreDataEntries { for v5, v6 := range in.ObjectStoreDataEntries {
if v5 > 0 { if v5 > 0 {
@ -432,11 +442,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb4(out *jwriter.Writer
} }
} }
if in.HasMore { if in.HasMore {
if !first { const prefix string = ",\"hasMore\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"hasMore\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.HasMore)) out.Bool(bool(in.HasMore))
} }
out.RawByte('}') out.RawByte('}')
@ -520,53 +532,75 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb5(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"securityOrigin\":"
} if first {
first = false first = false
out.RawString("\"securityOrigin\":") out.RawString(prefix[1:])
out.String(string(in.SecurityOrigin))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"databaseName\":")
out.String(string(in.DatabaseName))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"objectStoreName\":")
out.String(string(in.ObjectStoreName))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"indexName\":")
out.String(string(in.IndexName))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"skipCount\":")
out.Int64(int64(in.SkipCount))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"pageSize\":")
out.Int64(int64(in.PageSize))
if in.KeyRange != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"keyRange\":")
if in.KeyRange == nil {
out.RawString("null")
} else { } else {
(*in.KeyRange).MarshalEasyJSON(out) out.RawString(prefix)
} }
out.String(string(in.SecurityOrigin))
}
{
const prefix string = ",\"databaseName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DatabaseName))
}
{
const prefix string = ",\"objectStoreName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ObjectStoreName))
}
{
const prefix string = ",\"indexName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.IndexName))
}
{
const prefix string = ",\"skipCount\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.SkipCount))
}
{
const prefix string = ",\"pageSize\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.PageSize))
}
if in.KeyRange != nil {
const prefix string = ",\"keyRange\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(*in.KeyRange).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -643,34 +677,50 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb6(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"name\":"
} if first {
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name)) out.String(string(in.Name))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"keyPath\":"
if first {
first = false first = false
out.RawString("\"keyPath\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.KeyPath == nil { if in.KeyPath == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.KeyPath).MarshalEasyJSON(out) (*in.KeyPath).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"unique\":"
if first {
first = false first = false
out.RawString("\"unique\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Unique)) out.Bool(bool(in.Unique))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"multiEntry\":"
if first {
first = false first = false
out.RawString("\"multiEntry\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.MultiEntry)) out.Bool(bool(in.MultiEntry))
}
out.RawByte('}') out.RawByte('}')
} }
@ -775,33 +825,48 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb7(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"name\":"
} if first {
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name)) out.String(string(in.Name))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"keyPath\":"
if first {
first = false first = false
out.RawString("\"keyPath\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.KeyPath == nil { if in.KeyPath == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.KeyPath).MarshalEasyJSON(out) (*in.KeyPath).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"autoIncrement\":"
if first {
first = false first = false
out.RawString("\"autoIncrement\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.AutoIncrement)) out.Bool(bool(in.AutoIncrement))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"indexes\":"
if first {
first = false first = false
out.RawString("\"indexes\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Indexes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Indexes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -818,6 +883,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb7(out *jwriter.Writer
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -902,41 +968,45 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb8(out *jwriter.Writer
first := true first := true
_ = first _ = first
if in.Lower != nil { if in.Lower != nil {
if !first { const prefix string = ",\"lower\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"lower\":") out.RawString(prefix[1:])
if in.Lower == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.Lower).MarshalEasyJSON(out) (*in.Lower).MarshalEasyJSON(out)
} }
}
if in.Upper != nil { if in.Upper != nil {
if !first { const prefix string = ",\"upper\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"upper\":") out.RawString(prefix[1:])
if in.Upper == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.Upper).MarshalEasyJSON(out) (*in.Upper).MarshalEasyJSON(out)
} }
} {
if !first { const prefix string = ",\"lowerOpen\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"lowerOpen\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.LowerOpen)) out.Bool(bool(in.LowerOpen))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"upperOpen\":"
if first {
first = false first = false
out.RawString("\"upperOpen\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.UpperOpen)) out.Bool(bool(in.UpperOpen))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1023,29 +1093,35 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb9(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"type\":"
} if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out) (in.Type).MarshalEasyJSON(out)
if in.String != "" {
if !first {
out.RawByte(',')
} }
if in.String != "" {
const prefix string = ",\"string\":"
if first {
first = false first = false
out.RawString("\"string\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.String)) out.String(string(in.String))
} }
if len(in.Array) != 0 { if len(in.Array) != 0 {
if !first { const prefix string = ",\"array\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"array\":") out.RawString(prefix[1:])
if in.Array == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v11, v12 := range in.Array { for v11, v12 := range in.Array {
if v11 > 0 { if v11 > 0 {
@ -1154,45 +1230,55 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb10(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"type\":"
} if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out) (in.Type).MarshalEasyJSON(out)
if in.Number != 0 {
if !first {
out.RawByte(',')
} }
if in.Number != 0 {
const prefix string = ",\"number\":"
if first {
first = false first = false
out.RawString("\"number\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Number)) out.Float64(float64(in.Number))
} }
if in.String != "" { if in.String != "" {
if !first { const prefix string = ",\"string\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"string\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.String)) out.String(string(in.String))
} }
if in.Date != 0 { if in.Date != 0 {
if !first { const prefix string = ",\"date\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"date\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Date)) out.Float64(float64(in.Date))
} }
if len(in.Array) != 0 { if len(in.Array) != 0 {
if !first { const prefix string = ",\"array\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"array\":") out.RawString(prefix[1:])
if in.Array == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v14, v15 := range in.Array { for v14, v15 := range in.Array {
if v14 > 0 { if v14 > 0 {
@ -1388,18 +1474,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb13(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"securityOrigin\":"
} if first {
first = false first = false
out.RawString("\"securityOrigin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SecurityOrigin)) out.String(string(in.SecurityOrigin))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"databaseName\":"
if first {
first = false first = false
out.RawString("\"databaseName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DatabaseName)) out.String(string(in.DatabaseName))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1494,23 +1588,34 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb14(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"name\":"
} if first {
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name)) out.String(string(in.Name))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"version\":"
if first {
first = false first = false
out.RawString("\"version\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Version)) out.Int64(int64(in.Version))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"objectStores\":"
if first {
first = false first = false
out.RawString("\"objectStores\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.ObjectStores == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.ObjectStores == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -1527,6 +1632,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb14(out *jwriter.Write
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -1616,36 +1722,48 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb15(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"key\":"
} if first {
first = false first = false
out.RawString("\"key\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Key == nil { if in.Key == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Key).MarshalEasyJSON(out) (*in.Key).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"primaryKey\":"
if first {
first = false first = false
out.RawString("\"primaryKey\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.PrimaryKey == nil { if in.PrimaryKey == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.PrimaryKey).MarshalEasyJSON(out) (*in.PrimaryKey).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"value\":"
if first {
first = false first = false
out.RawString("\"value\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Value == nil { if in.Value == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Value).MarshalEasyJSON(out) (*in.Value).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -1711,24 +1829,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb16(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"securityOrigin\":"
} if first {
first = false first = false
out.RawString("\"securityOrigin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SecurityOrigin)) out.String(string(in.SecurityOrigin))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"databaseName\":"
if first {
first = false first = false
out.RawString("\"databaseName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DatabaseName)) out.String(string(in.DatabaseName))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"objectStoreName\":"
if first {
first = false first = false
out.RawString("\"objectStoreName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ObjectStoreName)) out.String(string(in.ObjectStoreName))
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -64,56 +64,74 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput(out *jwriter.Writer, in
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"x\":"
} if first {
first = false first = false
out.RawString("\"x\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.X)) out.Float64(float64(in.X))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"y\":"
if first {
first = false first = false
out.RawString("\"y\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Y)) out.Float64(float64(in.Y))
if in.RadiusX != 0 {
if !first {
out.RawByte(',')
} }
if in.RadiusX != 0 {
const prefix string = ",\"radiusX\":"
if first {
first = false first = false
out.RawString("\"radiusX\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.RadiusX)) out.Float64(float64(in.RadiusX))
} }
if in.RadiusY != 0 { if in.RadiusY != 0 {
if !first { const prefix string = ",\"radiusY\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"radiusY\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.RadiusY)) out.Float64(float64(in.RadiusY))
} }
if in.RotationAngle != 0 { if in.RotationAngle != 0 {
if !first { const prefix string = ",\"rotationAngle\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"rotationAngle\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.RotationAngle)) out.Float64(float64(in.RotationAngle))
} }
if in.Force != 0 { if in.Force != 0 {
if !first { const prefix string = ",\"force\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"force\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Force)) out.Float64(float64(in.Force))
} }
if in.ID != 0 { if in.ID != 0 {
if !first { const prefix string = ",\"id\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"id\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.ID)) out.Float64(float64(in.ID))
} }
out.RawByte('}') out.RawByte('}')
@ -185,40 +203,54 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput1(out *jwriter.Writer, in
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"x\":"
} if first {
first = false first = false
out.RawString("\"x\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.X)) out.Float64(float64(in.X))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"y\":"
if first {
first = false first = false
out.RawString("\"y\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Y)) out.Float64(float64(in.Y))
if in.Duration != 0 {
if !first {
out.RawByte(',')
} }
if in.Duration != 0 {
const prefix string = ",\"duration\":"
if first {
first = false first = false
out.RawString("\"duration\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Duration)) out.Int64(int64(in.Duration))
} }
if in.TapCount != 0 { if in.TapCount != 0 {
if !first { const prefix string = ",\"tapCount\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"tapCount\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.TapCount)) out.Int64(int64(in.TapCount))
} }
if in.GestureSourceType != "" { if in.GestureSourceType != "" {
if !first { const prefix string = ",\"gestureSourceType\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"gestureSourceType\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.GestureSourceType).MarshalEasyJSON(out) (in.GestureSourceType).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
@ -304,96 +336,124 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput2(out *jwriter.Writer, in
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"x\":"
} if first {
first = false first = false
out.RawString("\"x\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.X)) out.Float64(float64(in.X))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"y\":"
if first {
first = false first = false
out.RawString("\"y\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Y)) out.Float64(float64(in.Y))
if in.XDistance != 0 {
if !first {
out.RawByte(',')
} }
if in.XDistance != 0 {
const prefix string = ",\"xDistance\":"
if first {
first = false first = false
out.RawString("\"xDistance\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.XDistance)) out.Float64(float64(in.XDistance))
} }
if in.YDistance != 0 { if in.YDistance != 0 {
if !first { const prefix string = ",\"yDistance\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"yDistance\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.YDistance)) out.Float64(float64(in.YDistance))
} }
if in.XOverscroll != 0 { if in.XOverscroll != 0 {
if !first { const prefix string = ",\"xOverscroll\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"xOverscroll\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.XOverscroll)) out.Float64(float64(in.XOverscroll))
} }
if in.YOverscroll != 0 { if in.YOverscroll != 0 {
if !first { const prefix string = ",\"yOverscroll\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"yOverscroll\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.YOverscroll)) out.Float64(float64(in.YOverscroll))
} }
if in.PreventFling { if in.PreventFling {
if !first { const prefix string = ",\"preventFling\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"preventFling\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.PreventFling)) out.Bool(bool(in.PreventFling))
} }
if in.Speed != 0 { if in.Speed != 0 {
if !first { const prefix string = ",\"speed\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"speed\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Speed)) out.Int64(int64(in.Speed))
} }
if in.GestureSourceType != "" { if in.GestureSourceType != "" {
if !first { const prefix string = ",\"gestureSourceType\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"gestureSourceType\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.GestureSourceType).MarshalEasyJSON(out) (in.GestureSourceType).MarshalEasyJSON(out)
} }
if in.RepeatCount != 0 { if in.RepeatCount != 0 {
if !first { const prefix string = ",\"repeatCount\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"repeatCount\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.RepeatCount)) out.Int64(int64(in.RepeatCount))
} }
if in.RepeatDelayMs != 0 { if in.RepeatDelayMs != 0 {
if !first { const prefix string = ",\"repeatDelayMs\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"repeatDelayMs\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.RepeatDelayMs)) out.Int64(int64(in.RepeatDelayMs))
} }
if in.InteractionMarkerName != "" { if in.InteractionMarkerName != "" {
if !first { const prefix string = ",\"interactionMarkerName\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"interactionMarkerName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.InteractionMarkerName)) out.String(string(in.InteractionMarkerName))
} }
out.RawByte('}') out.RawByte('}')
@ -465,38 +525,54 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput3(out *jwriter.Writer, in
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"x\":"
} if first {
first = false first = false
out.RawString("\"x\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.X)) out.Float64(float64(in.X))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"y\":"
if first {
first = false first = false
out.RawString("\"y\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Y)) out.Float64(float64(in.Y))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"scaleFactor\":"
if first {
first = false first = false
out.RawString("\"scaleFactor\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.ScaleFactor)) out.Float64(float64(in.ScaleFactor))
if in.RelativeSpeed != 0 {
if !first {
out.RawByte(',')
} }
if in.RelativeSpeed != 0 {
const prefix string = ",\"relativeSpeed\":"
if first {
first = false first = false
out.RawString("\"relativeSpeed\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.RelativeSpeed)) out.Int64(int64(in.RelativeSpeed))
} }
if in.GestureSourceType != "" { if in.GestureSourceType != "" {
if !first { const prefix string = ",\"gestureSourceType\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"gestureSourceType\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.GestureSourceType).MarshalEasyJSON(out) (in.GestureSourceType).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
@ -560,12 +636,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput4(out *jwriter.Writer, in
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"ignore\":"
} if first {
first = false first = false
out.RawString("\"ignore\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Ignore)) out.Bool(bool(in.Ignore))
}
out.RawByte('}') out.RawByte('}')
} }
@ -651,70 +731,98 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput5(out *jwriter.Writer, in
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"type\":"
} if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out) (in.Type).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"x\":"
if first {
first = false first = false
out.RawString("\"x\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.X)) out.Int64(int64(in.X))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"y\":"
if first {
first = false first = false
out.RawString("\"y\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Y)) out.Int64(int64(in.Y))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"timestamp\":"
if first {
first = false first = false
out.RawString("\"timestamp\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Timestamp == nil { if in.Timestamp == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Timestamp).MarshalEasyJSON(out) (*in.Timestamp).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"button\":"
if first {
first = false first = false
out.RawString("\"button\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Button).MarshalEasyJSON(out) (in.Button).MarshalEasyJSON(out)
if in.DeltaX != 0 {
if !first {
out.RawByte(',')
} }
if in.DeltaX != 0 {
const prefix string = ",\"deltaX\":"
if first {
first = false first = false
out.RawString("\"deltaX\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.DeltaX)) out.Float64(float64(in.DeltaX))
} }
if in.DeltaY != 0 { if in.DeltaY != 0 {
if !first { const prefix string = ",\"deltaY\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"deltaY\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.DeltaY)) out.Float64(float64(in.DeltaY))
} }
if in.Modifiers != 0 { if in.Modifiers != 0 {
if !first { const prefix string = ",\"modifiers\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"modifiers\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Modifiers).MarshalEasyJSON(out) (in.Modifiers).MarshalEasyJSON(out)
} }
if in.ClickCount != 0 { if in.ClickCount != 0 {
if !first { const prefix string = ",\"clickCount\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"clickCount\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.ClickCount)) out.Int64(int64(in.ClickCount))
} }
out.RawByte('}') out.RawByte('}')
@ -821,17 +929,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput6(out *jwriter.Writer, in
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"type\":"
} if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out) (in.Type).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"touchPoints\":"
if first {
first = false first = false
out.RawString("\"touchPoints\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.TouchPoints == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.TouchPoints == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -848,25 +963,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput6(out *jwriter.Writer, in
} }
out.RawByte(']') out.RawByte(']')
} }
if in.Modifiers != 0 {
if !first {
out.RawByte(',')
} }
if in.Modifiers != 0 {
const prefix string = ",\"modifiers\":"
if first {
first = false first = false
out.RawString("\"modifiers\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Modifiers).MarshalEasyJSON(out) (in.Modifiers).MarshalEasyJSON(out)
} }
if in.Timestamp != nil { if in.Timestamp != nil {
if !first { const prefix string = ",\"timestamp\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"timestamp\":") out.RawString(prefix[1:])
if in.Timestamp == nil {
out.RawString("null")
} else { } else {
(*in.Timestamp).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.Timestamp).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -953,74 +1069,94 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput7(out *jwriter.Writer, in
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"type\":"
} if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out) (in.Type).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"x\":"
if first {
first = false first = false
out.RawString("\"x\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.X)) out.Float64(float64(in.X))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"y\":"
if first {
first = false first = false
out.RawString("\"y\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Y)) out.Float64(float64(in.Y))
if in.Modifiers != 0 {
if !first {
out.RawByte(',')
} }
if in.Modifiers != 0 {
const prefix string = ",\"modifiers\":"
if first {
first = false first = false
out.RawString("\"modifiers\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Modifiers).MarshalEasyJSON(out) (in.Modifiers).MarshalEasyJSON(out)
} }
if in.Timestamp != nil { if in.Timestamp != nil {
if !first { const prefix string = ",\"timestamp\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"timestamp\":") out.RawString(prefix[1:])
if in.Timestamp == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.Timestamp).MarshalEasyJSON(out) (*in.Timestamp).MarshalEasyJSON(out)
} }
}
if in.Button != "" { if in.Button != "" {
if !first { const prefix string = ",\"button\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"button\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Button).MarshalEasyJSON(out) (in.Button).MarshalEasyJSON(out)
} }
if in.ClickCount != 0 { if in.ClickCount != 0 {
if !first { const prefix string = ",\"clickCount\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"clickCount\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.ClickCount)) out.Int64(int64(in.ClickCount))
} }
if in.DeltaX != 0 { if in.DeltaX != 0 {
if !first { const prefix string = ",\"deltaX\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"deltaX\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.DeltaX)) out.Float64(float64(in.DeltaX))
} }
if in.DeltaY != 0 { if in.DeltaY != 0 {
if !first { const prefix string = ",\"deltaY\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"deltaY\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.DeltaY)) out.Float64(float64(in.DeltaY))
} }
out.RawByte('}') out.RawByte('}')
@ -1118,118 +1254,144 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput8(out *jwriter.Writer, in
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"type\":"
} if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out) (in.Type).MarshalEasyJSON(out)
if in.Modifiers != 0 {
if !first {
out.RawByte(',')
} }
if in.Modifiers != 0 {
const prefix string = ",\"modifiers\":"
if first {
first = false first = false
out.RawString("\"modifiers\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Modifiers).MarshalEasyJSON(out) (in.Modifiers).MarshalEasyJSON(out)
} }
if in.Timestamp != nil { if in.Timestamp != nil {
if !first { const prefix string = ",\"timestamp\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"timestamp\":") out.RawString(prefix[1:])
if in.Timestamp == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.Timestamp).MarshalEasyJSON(out) (*in.Timestamp).MarshalEasyJSON(out)
} }
}
if in.Text != "" { if in.Text != "" {
if !first { const prefix string = ",\"text\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"text\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Text)) out.String(string(in.Text))
} }
if in.UnmodifiedText != "" { if in.UnmodifiedText != "" {
if !first { const prefix string = ",\"unmodifiedText\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"unmodifiedText\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.UnmodifiedText)) out.String(string(in.UnmodifiedText))
} }
if in.KeyIdentifier != "" { if in.KeyIdentifier != "" {
if !first { const prefix string = ",\"keyIdentifier\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"keyIdentifier\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.KeyIdentifier)) out.String(string(in.KeyIdentifier))
} }
if in.Code != "" { if in.Code != "" {
if !first { const prefix string = ",\"code\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"code\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Code)) out.String(string(in.Code))
} }
if in.Key != "" { if in.Key != "" {
if !first { const prefix string = ",\"key\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"key\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Key)) out.String(string(in.Key))
} }
if in.WindowsVirtualKeyCode != 0 { if in.WindowsVirtualKeyCode != 0 {
if !first { const prefix string = ",\"windowsVirtualKeyCode\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"windowsVirtualKeyCode\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.WindowsVirtualKeyCode)) out.Int64(int64(in.WindowsVirtualKeyCode))
} }
if in.NativeVirtualKeyCode != 0 { if in.NativeVirtualKeyCode != 0 {
if !first { const prefix string = ",\"nativeVirtualKeyCode\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"nativeVirtualKeyCode\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.NativeVirtualKeyCode)) out.Int64(int64(in.NativeVirtualKeyCode))
} }
if in.AutoRepeat { if in.AutoRepeat {
if !first { const prefix string = ",\"autoRepeat\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"autoRepeat\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.AutoRepeat)) out.Bool(bool(in.AutoRepeat))
} }
if in.IsKeypad { if in.IsKeypad {
if !first { const prefix string = ",\"isKeypad\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"isKeypad\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.IsKeypad)) out.Bool(bool(in.IsKeypad))
} }
if in.IsSystemKey { if in.IsSystemKey {
if !first { const prefix string = ",\"isSystemKey\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"isSystemKey\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.IsSystemKey)) out.Bool(bool(in.IsSystemKey))
} }
if in.Location != 0 { if in.Location != 0 {
if !first { const prefix string = ",\"location\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"location\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Location)) out.Int64(int64(in.Location))
} }
out.RawByte('}') out.RawByte('}')

View File

@ -111,12 +111,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector1(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"reason\":"
} if first {
first = false first = false
out.RawString("\"reason\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Reason).MarshalEasyJSON(out) (in.Reason).MarshalEasyJSON(out)
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -54,11 +54,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo(out *jwriter.Writer, in Res
first := true first := true
_ = first _ = first
if in.UUID != "" { if in.UUID != "" {
if !first { const prefix string = ",\"uuid\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"uuid\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.UUID)) out.String(string(in.UUID))
} }
out.RawByte('}') out.RawByte('}')
@ -122,12 +124,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo1(out *jwriter.Writer, in Re
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"objectId\":"
} if first {
first = false first = false
out.RawString("\"objectId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ObjectID)) out.String(string(in.ObjectID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -194,27 +200,33 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo2(out *jwriter.Writer, in Re
first := true first := true
_ = first _ = first
if in.Base64encoded { if in.Base64encoded {
if !first { const prefix string = ",\"base64Encoded\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"base64Encoded\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Base64encoded)) out.Bool(bool(in.Base64encoded))
} }
if in.Data != "" { if in.Data != "" {
if !first { const prefix string = ",\"data\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"data\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Data)) out.String(string(in.Data))
} }
if in.EOF { if in.EOF {
if !first { const prefix string = ",\"eof\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"eof\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.EOF)) out.Bool(bool(in.EOF))
} }
out.RawByte('}') out.RawByte('}')
@ -282,26 +294,34 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo3(out *jwriter.Writer, in Re
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"handle\":"
} if first {
first = false first = false
out.RawString("\"handle\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Handle)) out.String(string(in.Handle))
if in.Offset != 0 {
if !first {
out.RawByte(',')
} }
if in.Offset != 0 {
const prefix string = ",\"offset\":"
if first {
first = false first = false
out.RawString("\"offset\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Offset)) out.Int64(int64(in.Offset))
} }
if in.Size != 0 { if in.Size != 0 {
if !first { const prefix string = ",\"size\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"size\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Size)) out.Int64(int64(in.Size))
} }
out.RawByte('}') out.RawByte('}')
@ -365,12 +385,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo4(out *jwriter.Writer, in Cl
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"handle\":"
} if first {
first = false first = false
out.RawString("\"handle\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Handle)) out.String(string(in.Handle))
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -75,40 +75,52 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"stickyBoxRect\":"
} if first {
first = false first = false
out.RawString("\"stickyBoxRect\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.StickyBoxRect == nil { if in.StickyBoxRect == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.StickyBoxRect).MarshalEasyJSON(out) (*in.StickyBoxRect).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"containingBlockRect\":"
if first {
first = false first = false
out.RawString("\"containingBlockRect\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.ContainingBlockRect == nil { if in.ContainingBlockRect == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.ContainingBlockRect).MarshalEasyJSON(out) (*in.ContainingBlockRect).MarshalEasyJSON(out)
} }
if in.NearestLayerShiftingStickyBox != "" {
if !first {
out.RawByte(',')
} }
if in.NearestLayerShiftingStickyBox != "" {
const prefix string = ",\"nearestLayerShiftingStickyBox\":"
if first {
first = false first = false
out.RawString("\"nearestLayerShiftingStickyBox\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.NearestLayerShiftingStickyBox)) out.String(string(in.NearestLayerShiftingStickyBox))
} }
if in.NearestLayerShiftingContainingBlock != "" { if in.NearestLayerShiftingContainingBlock != "" {
if !first { const prefix string = ",\"nearestLayerShiftingContainingBlock\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"nearestLayerShiftingContainingBlock\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.NearestLayerShiftingContainingBlock)) out.String(string(in.NearestLayerShiftingContainingBlock))
} }
out.RawByte('}') out.RawByte('}')
@ -194,14 +206,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree1(out *jwriter.Writer
first := true first := true
_ = first _ = first
if len(in.CommandLog) != 0 { if len(in.CommandLog) != 0 {
if !first { const prefix string = ",\"commandLog\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"commandLog\":") out.RawString(prefix[1:])
if in.CommandLog == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v2, v3 := range in.CommandLog { for v2, v3 := range in.CommandLog {
if v2 > 0 { if v2 > 0 {
@ -273,12 +285,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"snapshotId\":"
} if first {
first = false first = false
out.RawString("\"snapshotId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SnapshotID)) out.String(string(in.SnapshotID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -350,22 +366,30 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"rect\":"
} if first {
first = false first = false
out.RawString("\"rect\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Rect == nil { if in.Rect == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Rect).MarshalEasyJSON(out) (*in.Rect).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"type\":"
if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out) (in.Type).MarshalEasyJSON(out)
}
out.RawByte('}') out.RawByte('}')
} }
@ -428,11 +452,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(out *jwriter.Writer
first := true first := true
_ = first _ = first
if in.DataURL != "" { if in.DataURL != "" {
if !first { const prefix string = ",\"dataURL\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"dataURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DataURL)) out.String(string(in.DataURL))
} }
out.RawByte('}') out.RawByte('}')
@ -502,34 +528,44 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"snapshotId\":"
} if first {
first = false first = false
out.RawString("\"snapshotId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SnapshotID)) out.String(string(in.SnapshotID))
if in.FromStep != 0 {
if !first {
out.RawByte(',')
} }
if in.FromStep != 0 {
const prefix string = ",\"fromStep\":"
if first {
first = false first = false
out.RawString("\"fromStep\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.FromStep)) out.Int64(int64(in.FromStep))
} }
if in.ToStep != 0 { if in.ToStep != 0 {
if !first { const prefix string = ",\"toStep\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"toStep\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.ToStep)) out.Int64(int64(in.ToStep))
} }
if in.Scale != 0 { if in.Scale != 0 {
if !first { const prefix string = ",\"scale\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"scale\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Scale)) out.Float64(float64(in.Scale))
} }
out.RawByte('}') out.RawByte('}')
@ -593,12 +629,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"snapshotId\":"
} if first {
first = false first = false
out.RawString("\"snapshotId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SnapshotID)) out.String(string(in.SnapshotID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -703,14 +743,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree7(out *jwriter.Writer
first := true first := true
_ = first _ = first
if len(in.Timings) != 0 { if len(in.Timings) != 0 {
if !first { const prefix string = ",\"timings\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"timings\":") out.RawString(prefix[1:])
if in.Timings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v6, v7 := range in.Timings { for v6, v7 := range in.Timings {
if v6 > 0 { if v6 > 0 {
@ -807,39 +847,45 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree8(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"snapshotId\":"
} if first {
first = false first = false
out.RawString("\"snapshotId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SnapshotID)) out.String(string(in.SnapshotID))
if in.MinRepeatCount != 0 {
if !first {
out.RawByte(',')
} }
if in.MinRepeatCount != 0 {
const prefix string = ",\"minRepeatCount\":"
if first {
first = false first = false
out.RawString("\"minRepeatCount\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.MinRepeatCount)) out.Int64(int64(in.MinRepeatCount))
} }
if in.MinDuration != 0 { if in.MinDuration != 0 {
if !first { const prefix string = ",\"minDuration\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"minDuration\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.MinDuration)) out.Float64(float64(in.MinDuration))
} }
if in.ClipRect != nil { if in.ClipRect != nil {
if !first { const prefix string = ",\"clipRect\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"clipRect\":") out.RawString(prefix[1:])
if in.ClipRect == nil {
out.RawString("null")
} else { } else {
(*in.ClipRect).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.ClipRect).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -906,24 +952,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree9(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"x\":"
} if first {
first = false first = false
out.RawString("\"x\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.X)) out.Float64(float64(in.X))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"y\":"
if first {
first = false first = false
out.RawString("\"y\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Y)) out.Float64(float64(in.Y))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"picture\":"
if first {
first = false first = false
out.RawString("\"picture\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Picture)) out.String(string(in.Picture))
}
out.RawByte('}') out.RawByte('}')
} }
@ -986,11 +1044,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree10(out *jwriter.Write
first := true first := true
_ = first _ = first
if in.SnapshotID != "" { if in.SnapshotID != "" {
if !first { const prefix string = ",\"snapshotId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"snapshotId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SnapshotID)) out.String(string(in.SnapshotID))
} }
out.RawByte('}') out.RawByte('}')
@ -1054,12 +1114,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"layerId\":"
} if first {
first = false first = false
out.RawString("\"layerId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.LayerID)) out.String(string(in.LayerID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1122,11 +1186,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(out *jwriter.Write
first := true first := true
_ = first _ = first
if in.SnapshotID != "" { if in.SnapshotID != "" {
if !first { const prefix string = ",\"snapshotId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"snapshotId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SnapshotID)) out.String(string(in.SnapshotID))
} }
out.RawByte('}') out.RawByte('}')
@ -1219,11 +1285,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree13(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"tiles\":"
} if first {
first = false first = false
out.RawString("\"tiles\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Tiles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Tiles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -1240,6 +1309,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree13(out *jwriter.Write
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -1389,61 +1459,85 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"layerId\":"
} if first {
first = false first = false
out.RawString("\"layerId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.LayerID)) out.String(string(in.LayerID))
if in.ParentLayerID != "" {
if !first {
out.RawByte(',')
} }
if in.ParentLayerID != "" {
const prefix string = ",\"parentLayerId\":"
if first {
first = false first = false
out.RawString("\"parentLayerId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ParentLayerID)) out.String(string(in.ParentLayerID))
} }
if in.BackendNodeID != 0 { if in.BackendNodeID != 0 {
if !first { const prefix string = ",\"backendNodeId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"backendNodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.BackendNodeID)) out.Int64(int64(in.BackendNodeID))
} }
if !first { {
out.RawByte(',') const prefix string = ",\"offsetX\":"
} if first {
first = false first = false
out.RawString("\"offsetX\":") out.RawString(prefix[1:])
out.Float64(float64(in.OffsetX))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"offsetY\":")
out.Float64(float64(in.OffsetY))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"width\":")
out.Float64(float64(in.Width))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"height\":")
out.Float64(float64(in.Height))
if len(in.Transform) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"transform\":")
if in.Transform == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
out.Float64(float64(in.OffsetX))
}
{
const prefix string = ",\"offsetY\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.OffsetY))
}
{
const prefix string = ",\"width\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Width))
}
{
const prefix string = ",\"height\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Height))
}
if len(in.Transform) != 0 {
const prefix string = ",\"transform\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v15, v16 := range in.Transform { for v15, v16 := range in.Transform {
if v15 > 0 { if v15 > 0 {
@ -1455,58 +1549,74 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(out *jwriter.Write
} }
} }
if in.AnchorX != 0 { if in.AnchorX != 0 {
if !first { const prefix string = ",\"anchorX\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"anchorX\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.AnchorX)) out.Float64(float64(in.AnchorX))
} }
if in.AnchorY != 0 { if in.AnchorY != 0 {
if !first { const prefix string = ",\"anchorY\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"anchorY\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.AnchorY)) out.Float64(float64(in.AnchorY))
} }
if in.AnchorZ != 0 { if in.AnchorZ != 0 {
if !first { const prefix string = ",\"anchorZ\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"anchorZ\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.AnchorZ)) out.Float64(float64(in.AnchorZ))
} }
if !first { {
out.RawByte(',') const prefix string = ",\"paintCount\":"
} if first {
first = false first = false
out.RawString("\"paintCount\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.PaintCount)) out.Int64(int64(in.PaintCount))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"drawsContent\":"
if first {
first = false first = false
out.RawString("\"drawsContent\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.DrawsContent)) out.Bool(bool(in.DrawsContent))
if in.Invisible {
if !first {
out.RawByte(',')
} }
if in.Invisible {
const prefix string = ",\"invisible\":"
if first {
first = false first = false
out.RawString("\"invisible\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Invisible)) out.Bool(bool(in.Invisible))
} }
if len(in.ScrollRects) != 0 { if len(in.ScrollRects) != 0 {
if !first { const prefix string = ",\"scrollRects\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"scrollRects\":") out.RawString(prefix[1:])
if in.ScrollRects == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v17, v18 := range in.ScrollRects { for v17, v18 := range in.ScrollRects {
if v17 > 0 { if v17 > 0 {
@ -1522,16 +1632,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(out *jwriter.Write
} }
} }
if in.StickyPositionConstraint != nil { if in.StickyPositionConstraint != nil {
if !first { const prefix string = ",\"stickyPositionConstraint\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"stickyPositionConstraint\":") out.RawString(prefix[1:])
if in.StickyPositionConstraint == nil {
out.RawString("null")
} else { } else {
(*in.StickyPositionConstraint).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.StickyPositionConstraint).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -1624,14 +1732,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree15(out *jwriter.Write
first := true first := true
_ = first _ = first
if len(in.Layers) != 0 { if len(in.Layers) != 0 {
if !first { const prefix string = ",\"layers\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"layers\":") out.RawString(prefix[1:])
if in.Layers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v20, v21 := range in.Layers { for v20, v21 := range in.Layers {
if v20 > 0 { if v20 > 0 {
@ -1717,22 +1825,30 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"layerId\":"
} if first {
first = false first = false
out.RawString("\"layerId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.LayerID)) out.String(string(in.LayerID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"clip\":"
if first {
first = false first = false
out.RawString("\"clip\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Clip == nil { if in.Clip == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Clip).MarshalEasyJSON(out) (*in.Clip).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -1934,14 +2050,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree19(out *jwriter.Write
first := true first := true
_ = first _ = first
if len(in.CompositingReasons) != 0 { if len(in.CompositingReasons) != 0 {
if !first { const prefix string = ",\"compositingReasons\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"compositingReasons\":") out.RawString(prefix[1:])
if in.CompositingReasons == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v23, v24 := range in.CompositingReasons { for v23, v24 := range in.CompositingReasons {
if v23 > 0 { if v23 > 0 {
@ -2013,12 +2129,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree20(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"layerId\":"
} if first {
first = false first = false
out.RawString("\"layerId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.LayerID)) out.String(string(in.LayerID))
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -56,18 +56,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(out *jwriter.Writer, in Vi
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"name\":"
} if first {
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Name).MarshalEasyJSON(out) (in.Name).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"threshold\":"
if first {
first = false first = false
out.RawString("\"threshold\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Threshold)) out.Float64(float64(in.Threshold))
}
out.RawByte('}') out.RawByte('}')
} }
@ -217,11 +225,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(out *jwriter.Writer, in S
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"config\":"
} if first {
first = false first = false
out.RawString("\"config\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Config == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Config == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -238,6 +249,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(out *jwriter.Writer, in S
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -307,16 +319,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog3(out *jwriter.Writer, in E
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"entry\":"
} if first {
first = false first = false
out.RawString("\"entry\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Entry == nil { if in.Entry == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Entry).MarshalEasyJSON(out) (*in.Entry).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -441,87 +457,109 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog4(out *jwriter.Writer, in E
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"source\":"
} if first {
first = false first = false
out.RawString("\"source\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Source).MarshalEasyJSON(out) (in.Source).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"level\":"
if first {
first = false first = false
out.RawString("\"level\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Level).MarshalEasyJSON(out) (in.Level).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"text\":"
if first {
first = false first = false
out.RawString("\"text\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Text)) out.String(string(in.Text))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"timestamp\":"
if first {
first = false first = false
out.RawString("\"timestamp\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Timestamp == nil { if in.Timestamp == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Timestamp).MarshalEasyJSON(out) (*in.Timestamp).MarshalEasyJSON(out)
} }
if in.URL != "" {
if !first {
out.RawByte(',')
} }
if in.URL != "" {
const prefix string = ",\"url\":"
if first {
first = false first = false
out.RawString("\"url\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.URL)) out.String(string(in.URL))
} }
if in.LineNumber != 0 { if in.LineNumber != 0 {
if !first { const prefix string = ",\"lineNumber\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"lineNumber\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.LineNumber)) out.Int64(int64(in.LineNumber))
} }
if in.StackTrace != nil { if in.StackTrace != nil {
if !first { const prefix string = ",\"stackTrace\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"stackTrace\":") out.RawString(prefix[1:])
if in.StackTrace == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.StackTrace).MarshalEasyJSON(out) (*in.StackTrace).MarshalEasyJSON(out)
} }
}
if in.NetworkRequestID != "" { if in.NetworkRequestID != "" {
if !first { const prefix string = ",\"networkRequestId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"networkRequestId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.NetworkRequestID)) out.String(string(in.NetworkRequestID))
} }
if in.WorkerID != "" { if in.WorkerID != "" {
if !first { const prefix string = ",\"workerId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"workerId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.WorkerID)) out.String(string(in.WorkerID))
} }
if len(in.Args) != 0 { if len(in.Args) != 0 {
if !first { const prefix string = ",\"args\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"args\":") out.RawString(prefix[1:])
if in.Args == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v5, v6 := range in.Args { for v5, v6 := range in.Args {
if v5 > 0 { if v5 > 0 {

View File

@ -52,12 +52,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpMemory(out *jwriter.Writer, in
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"level\":"
} if first {
first = false first = false
out.RawString("\"level\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Level).MarshalEasyJSON(out) (in.Level).MarshalEasyJSON(out)
}
out.RawByte('}') out.RawByte('}')
} }
@ -119,12 +123,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpMemory1(out *jwriter.Writer, i
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"suppressed\":"
} if first {
first = false first = false
out.RawString("\"suppressed\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Suppressed)) out.Bool(bool(in.Suppressed))
}
out.RawByte('}') out.RawByte('}')
} }
@ -250,27 +258,33 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpMemory3(out *jwriter.Writer, i
first := true first := true
_ = first _ = first
if in.Documents != 0 { if in.Documents != 0 {
if !first { const prefix string = ",\"documents\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"documents\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Documents)) out.Int64(int64(in.Documents))
} }
if in.Nodes != 0 { if in.Nodes != 0 {
if !first { const prefix string = ",\"nodes\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"nodes\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Nodes)) out.Int64(int64(in.Nodes))
} }
if in.JsEventListeners != 0 { if in.JsEventListeners != 0 {
if !first { const prefix string = ",\"jsEventListeners\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"jsEventListeners\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.JsEventListeners)) out.Int64(int64(in.JsEventListeners))
} }
out.RawByte('}') out.RawByte('}')

File diff suppressed because it is too large Load Diff

View File

@ -138,10 +138,11 @@ type EventRequestIntercepted struct {
FrameID cdp.FrameID `json:"frameId"` // The id of the frame that initiated the request. FrameID cdp.FrameID `json:"frameId"` // The id of the frame that initiated the request.
ResourceType page.ResourceType `json:"resourceType"` // How the requested resource will be used. ResourceType page.ResourceType `json:"resourceType"` // How the requested resource will be used.
IsNavigationRequest bool `json:"isNavigationRequest"` // Whether this is a navigation request, which can abort the navigation completely. IsNavigationRequest bool `json:"isNavigationRequest"` // Whether this is a navigation request, which can abort the navigation completely.
RedirectHeaders Headers `json:"redirectHeaders,omitempty"` // HTTP response headers, only sent if a redirect was intercepted.
RedirectStatusCode int64 `json:"redirectStatusCode,omitempty"` // HTTP response code, only sent if a redirect was intercepted.
RedirectURL string `json:"redirectUrl,omitempty"` // Redirect location, only sent if a redirect was intercepted. RedirectURL string `json:"redirectUrl,omitempty"` // Redirect location, only sent if a redirect was intercepted.
AuthChallenge *AuthChallenge `json:"authChallenge,omitempty"` // Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse. AuthChallenge *AuthChallenge `json:"authChallenge,omitempty"` // Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.
ResponseErrorReason ErrorReason `json:"responseErrorReason,omitempty"` // Response error if intercepted at response stage or if redirect occurred while intercepting request.
ResponseStatusCode int64 `json:"responseStatusCode,omitempty"` // Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.
ResponseHeaders Headers `json:"responseHeaders,omitempty"` // Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.
} }
// EventTypes all event types in the domain. // EventTypes all event types in the domain.

View File

@ -15,6 +15,7 @@ import (
"encoding/base64" "encoding/base64"
cdp "github.com/knq/chromedp/cdp" cdp "github.com/knq/chromedp/cdp"
"github.com/knq/chromedp/cdp/debugger"
) )
// EnableParams enables network tracking, network events will now be // EnableParams enables network tracking, network events will now be
@ -90,6 +91,59 @@ func (p *SetUserAgentOverrideParams) Do(ctxt context.Context, h cdp.Handler) (er
return h.Execute(ctxt, cdp.CommandNetworkSetUserAgentOverride, p, nil) return h.Execute(ctxt, cdp.CommandNetworkSetUserAgentOverride, p, nil)
} }
// SearchInResponseBodyParams searches for given string in response content.
type SearchInResponseBodyParams struct {
RequestID RequestID `json:"requestId"` // Identifier of the network response to search.
Query string `json:"query"` // String to search for.
CaseSensitive bool `json:"caseSensitive,omitempty"` // If true, search is case sensitive.
IsRegex bool `json:"isRegex,omitempty"` // If true, treats string parameter as regex.
}
// SearchInResponseBody searches for given string in response content.
//
// parameters:
// requestID - Identifier of the network response to search.
// query - String to search for.
func SearchInResponseBody(requestID RequestID, query string) *SearchInResponseBodyParams {
return &SearchInResponseBodyParams{
RequestID: requestID,
Query: query,
}
}
// WithCaseSensitive if true, search is case sensitive.
func (p SearchInResponseBodyParams) WithCaseSensitive(caseSensitive bool) *SearchInResponseBodyParams {
p.CaseSensitive = caseSensitive
return &p
}
// WithIsRegex if true, treats string parameter as regex.
func (p SearchInResponseBodyParams) WithIsRegex(isRegex bool) *SearchInResponseBodyParams {
p.IsRegex = isRegex
return &p
}
// SearchInResponseBodyReturns return values.
type SearchInResponseBodyReturns struct {
Result []*debugger.SearchMatch `json:"result,omitempty"` // List of search matches.
}
// Do executes Network.searchInResponseBody against the provided context and
// target handler.
//
// returns:
// result - List of search matches.
func (p *SearchInResponseBodyParams) Do(ctxt context.Context, h cdp.Handler) (result []*debugger.SearchMatch, err error) {
// execute
var res SearchInResponseBodyReturns
err = h.Execute(ctxt, cdp.CommandNetworkSearchInResponseBody, p, &res)
if err != nil {
return nil, err
}
return res.Result, nil
}
// SetExtraHTTPHeadersParams specifies whether to always send extra HTTP // SetExtraHTTPHeadersParams specifies whether to always send extra HTTP
// headers with the requests from this page. // headers with the requests from this page.
type SetExtraHTTPHeadersParams struct { type SetExtraHTTPHeadersParams struct {
@ -208,36 +262,6 @@ func (p *ReplayXHRParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandNetworkReplayXHR, p, nil) return h.Execute(ctxt, cdp.CommandNetworkReplayXHR, p, nil)
} }
// CanClearBrowserCacheParams tells whether clearing browser cache is
// supported.
type CanClearBrowserCacheParams struct{}
// CanClearBrowserCache tells whether clearing browser cache is supported.
func CanClearBrowserCache() *CanClearBrowserCacheParams {
return &CanClearBrowserCacheParams{}
}
// CanClearBrowserCacheReturns return values.
type CanClearBrowserCacheReturns struct {
Result bool `json:"result,omitempty"` // True if browser cache can be cleared.
}
// Do executes Network.canClearBrowserCache against the provided context and
// target handler.
//
// returns:
// result - True if browser cache can be cleared.
func (p *CanClearBrowserCacheParams) Do(ctxt context.Context, h cdp.Handler) (result bool, err error) {
// execute
var res CanClearBrowserCacheReturns
err = h.Execute(ctxt, cdp.CommandNetworkCanClearBrowserCache, nil, &res)
if err != nil {
return false, err
}
return res.Result, nil
}
// ClearBrowserCacheParams clears browser cache. // ClearBrowserCacheParams clears browser cache.
type ClearBrowserCacheParams struct{} type ClearBrowserCacheParams struct{}
@ -252,37 +276,6 @@ func (p *ClearBrowserCacheParams) Do(ctxt context.Context, h cdp.Handler) (err e
return h.Execute(ctxt, cdp.CommandNetworkClearBrowserCache, nil, nil) return h.Execute(ctxt, cdp.CommandNetworkClearBrowserCache, nil, nil)
} }
// CanClearBrowserCookiesParams tells whether clearing browser cookies is
// supported.
type CanClearBrowserCookiesParams struct{}
// CanClearBrowserCookies tells whether clearing browser cookies is
// supported.
func CanClearBrowserCookies() *CanClearBrowserCookiesParams {
return &CanClearBrowserCookiesParams{}
}
// CanClearBrowserCookiesReturns return values.
type CanClearBrowserCookiesReturns struct {
Result bool `json:"result,omitempty"` // True if browser cookies can be cleared.
}
// Do executes Network.canClearBrowserCookies against the provided context and
// target handler.
//
// returns:
// result - True if browser cookies can be cleared.
func (p *CanClearBrowserCookiesParams) Do(ctxt context.Context, h cdp.Handler) (result bool, err error) {
// execute
var res CanClearBrowserCookiesReturns
err = h.Execute(ctxt, cdp.CommandNetworkCanClearBrowserCookies, nil, &res)
if err != nil {
return false, err
}
return res.Result, nil
}
// ClearBrowserCookiesParams clears browser cookies. // ClearBrowserCookiesParams clears browser cookies.
type ClearBrowserCookiesParams struct{} type ClearBrowserCookiesParams struct{}
@ -528,37 +521,6 @@ func (p *SetCookiesParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandNetworkSetCookies, p, nil) return h.Execute(ctxt, cdp.CommandNetworkSetCookies, p, nil)
} }
// CanEmulateNetworkConditionsParams tells whether emulation of network
// conditions is supported.
type CanEmulateNetworkConditionsParams struct{}
// CanEmulateNetworkConditions tells whether emulation of network conditions
// is supported.
func CanEmulateNetworkConditions() *CanEmulateNetworkConditionsParams {
return &CanEmulateNetworkConditionsParams{}
}
// CanEmulateNetworkConditionsReturns return values.
type CanEmulateNetworkConditionsReturns struct {
Result bool `json:"result,omitempty"` // True if emulation of network conditions is supported.
}
// Do executes Network.canEmulateNetworkConditions against the provided context and
// target handler.
//
// returns:
// result - True if emulation of network conditions is supported.
func (p *CanEmulateNetworkConditionsParams) Do(ctxt context.Context, h cdp.Handler) (result bool, err error) {
// execute
var res CanEmulateNetworkConditionsReturns
err = h.Execute(ctxt, cdp.CommandNetworkCanEmulateNetworkConditions, nil, &res)
if err != nil {
return false, err
}
return res.Result, nil
}
// EmulateNetworkConditionsParams activates emulation of network conditions. // EmulateNetworkConditionsParams activates emulation of network conditions.
type EmulateNetworkConditionsParams struct { type EmulateNetworkConditionsParams struct {
Offline bool `json:"offline"` // True to emulate internet disconnection. Offline bool `json:"offline"` // True to emulate internet disconnection.
@ -811,3 +773,52 @@ func (p ContinueInterceptedRequestParams) WithAuthChallengeResponse(authChalleng
func (p *ContinueInterceptedRequestParams) Do(ctxt context.Context, h cdp.Handler) (err error) { func (p *ContinueInterceptedRequestParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandNetworkContinueInterceptedRequest, p, nil) return h.Execute(ctxt, cdp.CommandNetworkContinueInterceptedRequest, p, nil)
} }
// GetResponseBodyForInterceptionParams returns content served for the given
// currently intercepted request.
type GetResponseBodyForInterceptionParams struct {
InterceptionID InterceptionID `json:"interceptionId"` // Identifier for the intercepted request to get body for.
}
// GetResponseBodyForInterception returns content served for the given
// currently intercepted request.
//
// parameters:
// interceptionID - Identifier for the intercepted request to get body for.
func GetResponseBodyForInterception(interceptionID InterceptionID) *GetResponseBodyForInterceptionParams {
return &GetResponseBodyForInterceptionParams{
InterceptionID: interceptionID,
}
}
// GetResponseBodyForInterceptionReturns return values.
type GetResponseBodyForInterceptionReturns struct {
Body string `json:"body,omitempty"` // Response body.
Base64encoded bool `json:"base64Encoded,omitempty"` // True, if content was sent as base64.
}
// Do executes Network.getResponseBodyForInterception against the provided context and
// target handler.
//
// returns:
// body - Response body.
func (p *GetResponseBodyForInterceptionParams) Do(ctxt context.Context, h cdp.Handler) (body []byte, err error) {
// execute
var res GetResponseBodyForInterceptionReturns
err = h.Execute(ctxt, cdp.CommandNetworkGetResponseBodyForInterception, p, &res)
if err != nil {
return nil, err
}
// decode
var dec []byte
if res.Base64encoded {
dec, err = base64.StdEncoding.DecodeString(res.Body)
if err != nil {
return nil, err
}
} else {
dec = []byte(res.Body)
}
return dec, nil
}

View File

@ -481,10 +481,55 @@ type AuthChallengeResponse struct {
Password string `json:"password,omitempty"` // The password to provide, possibly empty. Should only be set if response is ProvideCredentials. Password string `json:"password,omitempty"` // The password to provide, possibly empty. Should only be set if response is ProvideCredentials.
} }
// InterceptionStage stages of the interception to begin intercepting.
// Request will intercept before the request is sent. Response will intercept
// after the response is received.
type InterceptionStage string
// String returns the InterceptionStage as string value.
func (t InterceptionStage) String() string {
return string(t)
}
// InterceptionStage values.
const (
InterceptionStageRequest InterceptionStage = "Request"
InterceptionStageHeadersReceived InterceptionStage = "HeadersReceived"
)
// MarshalEasyJSON satisfies easyjson.Marshaler.
func (t InterceptionStage) MarshalEasyJSON(out *jwriter.Writer) {
out.String(string(t))
}
// MarshalJSON satisfies json.Marshaler.
func (t InterceptionStage) MarshalJSON() ([]byte, error) {
return easyjson.Marshal(t)
}
// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (t *InterceptionStage) UnmarshalEasyJSON(in *jlexer.Lexer) {
switch InterceptionStage(in.String()) {
case InterceptionStageRequest:
*t = InterceptionStageRequest
case InterceptionStageHeadersReceived:
*t = InterceptionStageHeadersReceived
default:
in.AddError(errors.New("unknown InterceptionStage value"))
}
}
// UnmarshalJSON satisfies json.Unmarshaler.
func (t *InterceptionStage) UnmarshalJSON(buf []byte) error {
return easyjson.Unmarshal(buf, t)
}
// RequestPattern request pattern for interception. // RequestPattern request pattern for interception.
type RequestPattern struct { type RequestPattern struct {
URLPattern string `json:"urlPattern,omitempty"` // Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to "*". URLPattern string `json:"urlPattern,omitempty"` // Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to "*".
ResourceType page.ResourceType `json:"resourceType,omitempty"` // If set, only requests for matching resource types will be intercepted. ResourceType page.ResourceType `json:"resourceType,omitempty"` // If set, only requests for matching resource types will be intercepted.
InterceptionStage InterceptionStage `json:"interceptionStage,omitempty"` // Stage at which to begin intercepting requests. Default is Request.
} }
// ReferrerPolicy the referrer policy of the request, as defined in // ReferrerPolicy the referrer policy of the request, as defined in

View File

@ -56,12 +56,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay(out *jwriter.Writer, i
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"suspended\":"
} if first {
first = false first = false
out.RawString("\"suspended\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Suspended)) out.Bool(bool(in.Suspended))
}
out.RawByte('}') out.RawByte('}')
} }
@ -123,12 +127,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay1(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"show\":"
} if first {
first = false first = false
out.RawString("\"show\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Show)) out.Bool(bool(in.Show))
}
out.RawByte('}') out.RawByte('}')
} }
@ -190,12 +198,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay2(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"show\":"
} if first {
first = false first = false
out.RawString("\"show\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Show)) out.Bool(bool(in.Show))
}
out.RawByte('}') out.RawByte('}')
} }
@ -257,12 +269,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay3(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"result\":"
} if first {
first = false first = false
out.RawString("\"result\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Result)) out.Bool(bool(in.Result))
}
out.RawByte('}') out.RawByte('}')
} }
@ -324,12 +340,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay4(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"show\":"
} if first {
first = false first = false
out.RawString("\"show\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Show)) out.Bool(bool(in.Show))
}
out.RawByte('}') out.RawByte('}')
} }
@ -391,12 +411,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay5(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"show\":"
} if first {
first = false first = false
out.RawString("\"show\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Show)) out.Bool(bool(in.Show))
}
out.RawByte('}') out.RawByte('}')
} }
@ -459,11 +483,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay6(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.Message != "" { if in.Message != "" {
if !first { const prefix string = ",\"message\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"message\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Message)) out.String(string(in.Message))
} }
out.RawByte('}') out.RawByte('}')
@ -537,23 +563,25 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay7(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"mode\":"
} if first {
first = false first = false
out.RawString("\"mode\":") out.RawString(prefix[1:])
(in.Mode).MarshalEasyJSON(out)
if in.HighlightConfig != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"highlightConfig\":")
if in.HighlightConfig == nil {
out.RawString("null")
} else { } else {
(*in.HighlightConfig).MarshalEasyJSON(out) out.RawString(prefix)
} }
(in.Mode).MarshalEasyJSON(out)
}
if in.HighlightConfig != nil {
const prefix string = ",\"highlightConfig\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(*in.HighlightConfig).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -642,53 +670,65 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay8(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"x\":"
} if first {
first = false first = false
out.RawString("\"x\":") out.RawString(prefix[1:])
out.Int64(int64(in.X))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"y\":")
out.Int64(int64(in.Y))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"width\":")
out.Int64(int64(in.Width))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"height\":")
out.Int64(int64(in.Height))
if in.Color != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"color\":")
if in.Color == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
out.Int64(int64(in.X))
}
{
const prefix string = ",\"y\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Y))
}
{
const prefix string = ",\"width\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Width))
}
{
const prefix string = ",\"height\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Height))
}
if in.Color != nil {
const prefix string = ",\"color\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(*in.Color).MarshalEasyJSON(out) (*in.Color).MarshalEasyJSON(out)
} }
}
if in.OutlineColor != nil { if in.OutlineColor != nil {
if !first { const prefix string = ",\"outlineColor\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"outlineColor\":") out.RawString(prefix[1:])
if in.OutlineColor == nil {
out.RawString("null")
} else { } else {
(*in.OutlineColor).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.OutlineColor).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -792,11 +832,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay9(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"quad\":"
} if first {
first = false first = false
out.RawString("\"quad\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Quad == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Quad == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -809,29 +852,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay9(out *jwriter.Writer,
} }
out.RawByte(']') out.RawByte(']')
} }
if in.Color != nil {
if !first {
out.RawByte(',')
} }
if in.Color != nil {
const prefix string = ",\"color\":"
if first {
first = false first = false
out.RawString("\"color\":") out.RawString(prefix[1:])
if in.Color == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.Color).MarshalEasyJSON(out) (*in.Color).MarshalEasyJSON(out)
} }
}
if in.OutlineColor != nil { if in.OutlineColor != nil {
if !first { const prefix string = ",\"outlineColor\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"outlineColor\":") out.RawString(prefix[1:])
if in.OutlineColor == nil {
out.RawString("null")
} else { } else {
(*in.OutlineColor).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.OutlineColor).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -908,38 +948,48 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay10(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"highlightConfig\":"
} if first {
first = false first = false
out.RawString("\"highlightConfig\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.HighlightConfig == nil { if in.HighlightConfig == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.HighlightConfig).MarshalEasyJSON(out) (*in.HighlightConfig).MarshalEasyJSON(out)
} }
if in.NodeID != 0 {
if !first {
out.RawByte(',')
} }
if in.NodeID != 0 {
const prefix string = ",\"nodeId\":"
if first {
first = false first = false
out.RawString("\"nodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.NodeID)) out.Int64(int64(in.NodeID))
} }
if in.BackendNodeID != 0 { if in.BackendNodeID != 0 {
if !first { const prefix string = ",\"backendNodeId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"backendNodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.BackendNodeID)) out.Int64(int64(in.BackendNodeID))
} }
if in.ObjectID != "" { if in.ObjectID != "" {
if !first { const prefix string = ",\"objectId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"objectId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ObjectID)) out.String(string(in.ObjectID))
} }
out.RawByte('}') out.RawByte('}')
@ -1023,35 +1073,35 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay11(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"frameId\":"
} if first {
first = false first = false
out.RawString("\"frameId\":") out.RawString(prefix[1:])
out.String(string(in.FrameID))
if in.ContentColor != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"contentColor\":")
if in.ContentColor == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
out.String(string(in.FrameID))
}
if in.ContentColor != nil {
const prefix string = ",\"contentColor\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(*in.ContentColor).MarshalEasyJSON(out) (*in.ContentColor).MarshalEasyJSON(out)
} }
}
if in.ContentOutlineColor != nil { if in.ContentOutlineColor != nil {
if !first { const prefix string = ",\"contentOutlineColor\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"contentOutlineColor\":") out.RawString(prefix[1:])
if in.ContentOutlineColor == nil {
out.RawString("null")
} else { } else {
(*in.ContentOutlineColor).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.ContentOutlineColor).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -1203,140 +1253,134 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay12(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.ShowInfo { if in.ShowInfo {
if !first { const prefix string = ",\"showInfo\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"showInfo\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.ShowInfo)) out.Bool(bool(in.ShowInfo))
} }
if in.ShowRulers { if in.ShowRulers {
if !first { const prefix string = ",\"showRulers\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"showRulers\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.ShowRulers)) out.Bool(bool(in.ShowRulers))
} }
if in.ShowExtensionLines { if in.ShowExtensionLines {
if !first { const prefix string = ",\"showExtensionLines\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"showExtensionLines\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.ShowExtensionLines)) out.Bool(bool(in.ShowExtensionLines))
} }
if in.DisplayAsMaterial { if in.DisplayAsMaterial {
if !first { const prefix string = ",\"displayAsMaterial\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"displayAsMaterial\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.DisplayAsMaterial)) out.Bool(bool(in.DisplayAsMaterial))
} }
if in.ContentColor != nil { if in.ContentColor != nil {
if !first { const prefix string = ",\"contentColor\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"contentColor\":") out.RawString(prefix[1:])
if in.ContentColor == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.ContentColor).MarshalEasyJSON(out) (*in.ContentColor).MarshalEasyJSON(out)
} }
}
if in.PaddingColor != nil { if in.PaddingColor != nil {
if !first { const prefix string = ",\"paddingColor\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"paddingColor\":") out.RawString(prefix[1:])
if in.PaddingColor == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.PaddingColor).MarshalEasyJSON(out) (*in.PaddingColor).MarshalEasyJSON(out)
} }
}
if in.BorderColor != nil { if in.BorderColor != nil {
if !first { const prefix string = ",\"borderColor\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"borderColor\":") out.RawString(prefix[1:])
if in.BorderColor == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.BorderColor).MarshalEasyJSON(out) (*in.BorderColor).MarshalEasyJSON(out)
} }
}
if in.MarginColor != nil { if in.MarginColor != nil {
if !first { const prefix string = ",\"marginColor\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"marginColor\":") out.RawString(prefix[1:])
if in.MarginColor == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.MarginColor).MarshalEasyJSON(out) (*in.MarginColor).MarshalEasyJSON(out)
} }
}
if in.EventTargetColor != nil { if in.EventTargetColor != nil {
if !first { const prefix string = ",\"eventTargetColor\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"eventTargetColor\":") out.RawString(prefix[1:])
if in.EventTargetColor == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.EventTargetColor).MarshalEasyJSON(out) (*in.EventTargetColor).MarshalEasyJSON(out)
} }
}
if in.ShapeColor != nil { if in.ShapeColor != nil {
if !first { const prefix string = ",\"shapeColor\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"shapeColor\":") out.RawString(prefix[1:])
if in.ShapeColor == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.ShapeColor).MarshalEasyJSON(out) (*in.ShapeColor).MarshalEasyJSON(out)
} }
}
if in.ShapeMarginColor != nil { if in.ShapeMarginColor != nil {
if !first { const prefix string = ",\"shapeMarginColor\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"shapeMarginColor\":") out.RawString(prefix[1:])
if in.ShapeMarginColor == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.ShapeMarginColor).MarshalEasyJSON(out) (*in.ShapeMarginColor).MarshalEasyJSON(out)
} }
}
if in.SelectorList != "" { if in.SelectorList != "" {
if !first { const prefix string = ",\"selectorList\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"selectorList\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SelectorList)) out.String(string(in.SelectorList))
} }
if in.CSSGridColor != nil { if in.CSSGridColor != nil {
if !first { const prefix string = ",\"cssGridColor\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"cssGridColor\":") out.RawString(prefix[1:])
if in.CSSGridColor == nil {
out.RawString("null")
} else { } else {
(*in.CSSGridColor).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.CSSGridColor).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -1459,11 +1503,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay14(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if (in.Highlight).IsDefined() { if (in.Highlight).IsDefined() {
if !first { const prefix string = ",\"highlight\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"highlight\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Highlight).MarshalEasyJSON(out) (in.Highlight).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
@ -1527,12 +1573,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay15(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"nodeId\":"
} if first {
first = false first = false
out.RawString("\"nodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.NodeID)) out.Int64(int64(in.NodeID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1602,16 +1652,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay16(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"viewport\":"
} if first {
first = false first = false
out.RawString("\"viewport\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Viewport == nil { if in.Viewport == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Viewport).MarshalEasyJSON(out) (*in.Viewport).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -1673,12 +1727,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay17(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"nodeId\":"
} if first {
first = false first = false
out.RawString("\"nodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.NodeID)) out.Int64(int64(in.NodeID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1740,12 +1798,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay18(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"backendNodeId\":"
} if first {
first = false first = false
out.RawString("\"backendNodeId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.BackendNodeID)) out.Int64(int64(in.BackendNodeID))
}
out.RawByte('}') out.RawByte('}')
} }

File diff suppressed because it is too large Load Diff

View File

@ -108,12 +108,13 @@ type EventInterstitialShown struct{}
// EventInterstitialHidden fired when interstitial page was hidden. // EventInterstitialHidden fired when interstitial page was hidden.
type EventInterstitialHidden struct{} type EventInterstitialHidden struct{}
// EventWindowOpen fired when window.open() was called. // EventWindowOpen fired when a new window is going to be opened, via
// window.open(), link click, form submission, etc.
type EventWindowOpen struct { type EventWindowOpen struct {
URL string `json:"url"` // The URL for the new window. URL string `json:"url"` // The URL for the new window.
WindowName string `json:"windowName"` // Window name passed to window.open(). WindowName string `json:"windowName"` // Window name.
WindowFeatures string `json:"windowFeatures"` // Window features passed to window.open(). WindowFeatures []string `json:"windowFeatures"` // An array of enabled window features.
UserGesture bool `json:"userGesture"` // Whether or not window.open() was triggered by user gesture. UserGesture bool `json:"userGesture"` // Whether or not it was triggered by user gesture.
} }
// EventTypes all event types in the domain. // EventTypes all event types in the domain.

View File

@ -130,6 +130,29 @@ func (p *SetAutoAttachToCreatedPagesParams) Do(ctxt context.Context, h cdp.Handl
return h.Execute(ctxt, cdp.CommandPageSetAutoAttachToCreatedPages, p, nil) return h.Execute(ctxt, cdp.CommandPageSetAutoAttachToCreatedPages, p, nil)
} }
// SetLifecycleEventsEnabledParams controls whether page will emit lifecycle
// events.
type SetLifecycleEventsEnabledParams struct {
Enabled bool `json:"enabled"` // If true, starts emitting lifecycle events.
}
// SetLifecycleEventsEnabled controls whether page will emit lifecycle
// events.
//
// parameters:
// enabled - If true, starts emitting lifecycle events.
func SetLifecycleEventsEnabled(enabled bool) *SetLifecycleEventsEnabledParams {
return &SetLifecycleEventsEnabledParams{
Enabled: enabled,
}
}
// Do executes Page.setLifecycleEventsEnabled against the provided context and
// target handler.
func (p *SetLifecycleEventsEnabledParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandPageSetLifecycleEventsEnabled, p, nil)
}
// ReloadParams reloads given page optionally ignoring the cache. // ReloadParams reloads given page optionally ignoring the cache.
type ReloadParams struct { type ReloadParams struct {
IgnoreCache bool `json:"ignoreCache,omitempty"` // If true, browser cache is ignored (as if the user pressed Shift+refresh). IgnoreCache bool `json:"ignoreCache,omitempty"` // If true, browser cache is ignored (as if the user pressed Shift+refresh).
@ -216,23 +239,27 @@ func (p NavigateParams) WithTransitionType(transitionType TransitionType) *Navig
// NavigateReturns return values. // NavigateReturns return values.
type NavigateReturns struct { type NavigateReturns struct {
FrameID cdp.FrameID `json:"frameId,omitempty"` // Frame id that will be navigated. FrameID cdp.FrameID `json:"frameId,omitempty"` // Frame id that has navigated (or failed to navigate)
LoaderID cdp.LoaderID `json:"loaderId,omitempty"` // Loader identifier.
ErrorText string `json:"errorText,omitempty"` // User friendly error message, present if and only if navigation has failed.
} }
// Do executes Page.navigate against the provided context and // Do executes Page.navigate against the provided context and
// target handler. // target handler.
// //
// returns: // returns:
// frameID - Frame id that will be navigated. // frameID - Frame id that has navigated (or failed to navigate)
func (p *NavigateParams) Do(ctxt context.Context, h cdp.Handler) (frameID cdp.FrameID, err error) { // loaderID - Loader identifier.
// errorText - User friendly error message, present if and only if navigation has failed.
func (p *NavigateParams) Do(ctxt context.Context, h cdp.Handler) (frameID cdp.FrameID, loaderID cdp.LoaderID, errorText string, err error) {
// execute // execute
var res NavigateReturns var res NavigateReturns
err = h.Execute(ctxt, cdp.CommandPageNavigate, p, &res) err = h.Execute(ctxt, cdp.CommandPageNavigate, p, &res)
if err != nil { if err != nil {
return "", err return "", "", "", err
} }
return res.FrameID, nil return res.FrameID, res.LoaderID, res.ErrorText, nil
} }
// StopLoadingParams force the page stop all navigations and pending resource // StopLoadingParams force the page stop all navigations and pending resource

View File

@ -54,18 +54,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"name\":"
} if first {
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name)) out.String(string(in.Name))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"value\":"
if first {
first = false first = false
out.RawString("\"value\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Value)) out.Float64(float64(in.Value))
}
out.RawByte('}') out.RawByte('}')
} }
@ -157,14 +165,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance1(out *jwriter.Writ
first := true first := true
_ = first _ = first
if len(in.Metrics) != 0 { if len(in.Metrics) != 0 {
if !first { const prefix string = ",\"metrics\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"metrics\":") out.RawString(prefix[1:])
if in.Metrics == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v2, v3 := range in.Metrics { for v2, v3 := range in.Metrics {
if v2 > 0 { if v2 > 0 {
@ -330,11 +338,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance3(out *jwriter.Writ
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"metrics\":"
} if first {
first = false first = false
out.RawString("\"metrics\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Metrics == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Metrics == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -351,12 +362,17 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance3(out *jwriter.Writ
} }
out.RawByte(']') out.RawByte(']')
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"title\":"
if first {
first = false first = false
out.RawString("\"title\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Title)) out.String(string(in.Title))
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -85,17 +85,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"offset\":"
} if first {
first = false first = false
out.RawString("\"offset\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Offset)) out.Int64(int64(in.Offset))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"types\":"
if first {
first = false first = false
out.RawString("\"types\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Types == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Types == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -112,6 +119,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(out *jwriter.Writer,
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -173,12 +181,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"name\":"
} if first {
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name)) out.String(string(in.Name))
}
out.RawByte('}') out.RawByte('}')
} }
@ -270,14 +282,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if len(in.Result) != 0 { if len(in.Result) != 0 {
if !first { const prefix string = ",\"result\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"result\":") out.RawString(prefix[1:])
if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v5, v6 := range in.Result { for v5, v6 := range in.Result {
if v5 > 0 { if v5 > 0 {
@ -442,14 +454,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if len(in.Result) != 0 { if len(in.Result) != 0 {
if !first { const prefix string = ",\"result\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"result\":") out.RawString(prefix[1:])
if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v8, v9 := range in.Result { for v8, v9 := range in.Result {
if v8 > 0 { if v8 > 0 {
@ -652,16 +664,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.Profile != nil { if in.Profile != nil {
if !first { const prefix string = ",\"profile\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"profile\":") out.RawString(prefix[1:])
if in.Profile == nil {
out.RawString("null")
} else { } else {
(*in.Profile).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.Profile).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -904,19 +914,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler11(out *jwriter.Writer
first := true first := true
_ = first _ = first
if in.CallCount { if in.CallCount {
if !first { const prefix string = ",\"callCount\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"callCount\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.CallCount)) out.Bool(bool(in.CallCount))
} }
if in.Detailed { if in.Detailed {
if !first { const prefix string = ",\"detailed\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"detailed\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Detailed)) out.Bool(bool(in.Detailed))
} }
out.RawByte('}') out.RawByte('}')
@ -1039,12 +1053,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler13(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"interval\":"
} if first {
first = false first = false
out.RawString("\"interval\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Interval)) out.Int64(int64(in.Interval))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1139,23 +1157,34 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler14(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"scriptId\":"
} if first {
first = false first = false
out.RawString("\"scriptId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ScriptID)) out.String(string(in.ScriptID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"url\":"
if first {
first = false first = false
out.RawString("\"url\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.URL)) out.String(string(in.URL))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"entries\":"
if first {
first = false first = false
out.RawString("\"entries\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Entries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Entries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -1172,6 +1201,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler14(out *jwriter.Writer
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -1266,23 +1296,34 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler15(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"scriptId\":"
} if first {
first = false first = false
out.RawString("\"scriptId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ScriptID)) out.String(string(in.ScriptID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"url\":"
if first {
first = false first = false
out.RawString("\"url\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.URL)) out.String(string(in.URL))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"functions\":"
if first {
first = false first = false
out.RawString("\"functions\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Functions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Functions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -1299,6 +1340,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler15(out *jwriter.Writer
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -1428,39 +1470,49 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler16(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"id\":"
} if first {
first = false first = false
out.RawString("\"id\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.ID)) out.Int64(int64(in.ID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"callFrame\":"
if first {
first = false first = false
out.RawString("\"callFrame\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.CallFrame == nil { if in.CallFrame == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.CallFrame).MarshalEasyJSON(out) (*in.CallFrame).MarshalEasyJSON(out)
} }
if in.HitCount != 0 {
if !first {
out.RawByte(',')
} }
if in.HitCount != 0 {
const prefix string = ",\"hitCount\":"
if first {
first = false first = false
out.RawString("\"hitCount\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.HitCount)) out.Int64(int64(in.HitCount))
} }
if len(in.Children) != 0 { if len(in.Children) != 0 {
if !first { const prefix string = ",\"children\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"children\":") out.RawString(prefix[1:])
if in.Children == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v18, v19 := range in.Children { for v18, v19 := range in.Children {
if v18 > 0 { if v18 > 0 {
@ -1472,22 +1524,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler16(out *jwriter.Writer
} }
} }
if in.DeoptReason != "" { if in.DeoptReason != "" {
if !first { const prefix string = ",\"deoptReason\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"deoptReason\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DeoptReason)) out.String(string(in.DeoptReason))
} }
if len(in.PositionTicks) != 0 { if len(in.PositionTicks) != 0 {
if !first { const prefix string = ",\"positionTicks\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"positionTicks\":") out.RawString(prefix[1:])
if in.PositionTicks == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v20, v21 := range in.PositionTicks { for v20, v21 := range in.PositionTicks {
if v20 > 0 { if v20 > 0 {
@ -1642,11 +1696,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler17(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"nodes\":"
} if first {
first = false first = false
out.RawString("\"nodes\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Nodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Nodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -1663,27 +1720,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler17(out *jwriter.Writer
} }
out.RawByte(']') out.RawByte(']')
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"startTime\":"
if first {
first = false first = false
out.RawString("\"startTime\":") out.RawString(prefix[1:])
out.Float64(float64(in.StartTime))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"endTime\":")
out.Float64(float64(in.EndTime))
if len(in.Samples) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"samples\":")
if in.Samples == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
out.Float64(float64(in.StartTime))
}
{
const prefix string = ",\"endTime\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.EndTime))
}
if len(in.Samples) != 0 {
const prefix string = ",\"samples\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v27, v28 := range in.Samples { for v27, v28 := range in.Samples {
if v27 > 0 { if v27 > 0 {
@ -1695,14 +1761,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler17(out *jwriter.Writer
} }
} }
if len(in.TimeDeltas) != 0 { if len(in.TimeDeltas) != 0 {
if !first { const prefix string = ",\"timeDeltas\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"timeDeltas\":") out.RawString(prefix[1:])
if in.TimeDeltas == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v29, v30 := range in.TimeDeltas { for v29, v30 := range in.TimeDeltas {
if v29 > 0 { if v29 > 0 {
@ -1776,18 +1842,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler18(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"line\":"
} if first {
first = false first = false
out.RawString("\"line\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Line)) out.Int64(int64(in.Line))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"ticks\":"
if first {
first = false first = false
out.RawString("\"ticks\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Ticks)) out.Int64(int64(in.Ticks))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1879,14 +1953,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler19(out *jwriter.Writer
first := true first := true
_ = first _ = first
if len(in.Result) != 0 { if len(in.Result) != 0 {
if !first { const prefix string = ",\"result\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"result\":") out.RawString(prefix[1:])
if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v32, v33 := range in.Result { for v32, v33 := range in.Result {
if v32 > 0 { if v32 > 0 {
@ -2054,17 +2128,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler21(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"functionName\":"
} if first {
first = false first = false
out.RawString("\"functionName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.FunctionName)) out.String(string(in.FunctionName))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"ranges\":"
if first {
first = false first = false
out.RawString("\"ranges\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Ranges == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Ranges == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -2081,12 +2162,17 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler21(out *jwriter.Writer
} }
out.RawByte(']') out.RawByte(']')
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"isBlockCoverage\":"
if first {
first = false first = false
out.RawString("\"isBlockCoverage\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.IsBlockCoverage)) out.Bool(bool(in.IsBlockCoverage))
}
out.RawByte('}') out.RawByte('}')
} }
@ -2160,28 +2246,38 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler22(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"id\":"
} if first {
first = false first = false
out.RawString("\"id\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ID)) out.String(string(in.ID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"location\":"
if first {
first = false first = false
out.RawString("\"location\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Location == nil { if in.Location == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Location).MarshalEasyJSON(out) (*in.Location).MarshalEasyJSON(out)
} }
if in.Title != "" {
if !first {
out.RawByte(',')
} }
if in.Title != "" {
const prefix string = ",\"title\":"
if first {
first = false first = false
out.RawString("\"title\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Title)) out.String(string(in.Title))
} }
out.RawByte('}') out.RawByte('}')
@ -2267,38 +2363,52 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler23(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"id\":"
} if first {
first = false first = false
out.RawString("\"id\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ID)) out.String(string(in.ID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"location\":"
if first {
first = false first = false
out.RawString("\"location\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Location == nil { if in.Location == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Location).MarshalEasyJSON(out) (*in.Location).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"profile\":"
if first {
first = false first = false
out.RawString("\"profile\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Profile == nil { if in.Profile == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.Profile).MarshalEasyJSON(out) (*in.Profile).MarshalEasyJSON(out)
} }
if in.Title != "" {
if !first {
out.RawByte(',')
} }
if in.Title != "" {
const prefix string = ",\"title\":"
if first {
first = false first = false
out.RawString("\"title\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Title)) out.String(string(in.Title))
} }
out.RawByte('}') out.RawByte('}')
@ -2484,24 +2594,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler26(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"startOffset\":"
} if first {
first = false first = false
out.RawString("\"startOffset\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.StartOffset)) out.Int64(int64(in.StartOffset))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"endOffset\":"
if first {
first = false first = false
out.RawString("\"endOffset\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.EndOffset)) out.Int64(int64(in.EndOffset))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"count\":"
if first {
first = false first = false
out.RawString("\"count\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Count)) out.Int64(int64(in.Count))
}
out.RawByte('}') out.RawByte('}')
} }

File diff suppressed because it is too large Load Diff

View File

@ -236,7 +236,14 @@ type StackTrace struct {
Description string `json:"description,omitempty"` // String label of this stack trace. For async traces this may be a name of the function that initiated the async call. Description string `json:"description,omitempty"` // String label of this stack trace. For async traces this may be a name of the function that initiated the async call.
CallFrames []*CallFrame `json:"callFrames"` // JavaScript function name. CallFrames []*CallFrame `json:"callFrames"` // JavaScript function name.
Parent *StackTrace `json:"parent,omitempty"` // Asynchronous JavaScript stack trace that preceded this stack, if available. Parent *StackTrace `json:"parent,omitempty"` // Asynchronous JavaScript stack trace that preceded this stack, if available.
PromiseCreationFrame *CallFrame `json:"promiseCreationFrame,omitempty"` // Creation frame of the Promise which produced the next synchronous trace when resolved, if available. }
// AsyncTaskID [no description].
type AsyncTaskID string
// String returns the AsyncTaskID as string value.
func (t AsyncTaskID) String() string {
return string(t)
} }
// Type object type. // Type object type.

View File

@ -82,14 +82,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSchema(out *jwriter.Writer, in
first := true first := true
_ = first _ = first
if len(in.Domains) != 0 { if len(in.Domains) != 0 {
if !first { const prefix string = ",\"domains\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"domains\":") out.RawString(prefix[1:])
if in.Domains == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v2, v3 := range in.Domains { for v2, v3 := range in.Domains {
if v2 > 0 { if v2 > 0 {
@ -226,18 +226,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSchema2(out *jwriter.Writer, i
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"name\":"
} if first {
first = false first = false
out.RawString("\"name\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name)) out.String(string(in.Name))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"version\":"
if first {
first = false first = false
out.RawString("\"version\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Version)) out.String(string(in.Version))
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -81,35 +81,54 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"securityState\":"
} if first {
first = false first = false
out.RawString("\"securityState\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.SecurityState).MarshalEasyJSON(out) (in.SecurityState).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"summary\":"
if first {
first = false first = false
out.RawString("\"summary\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Summary)) out.String(string(in.Summary))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"description\":"
if first {
first = false first = false
out.RawString("\"description\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Description)) out.String(string(in.Description))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"mixedContentType\":"
if first {
first = false first = false
out.RawString("\"mixedContentType\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.MixedContentType).MarshalEasyJSON(out) (in.MixedContentType).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"certificate\":"
if first {
first = false first = false
out.RawString("\"certificate\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Certificate == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Certificate == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -122,6 +141,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity(out *jwriter.Writer,
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -183,12 +203,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"override\":"
} if first {
first = false first = false
out.RawString("\"override\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Override)) out.Bool(bool(in.Override))
}
out.RawByte('}') out.RawByte('}')
} }
@ -262,48 +286,76 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"ranMixedContent\":"
} if first {
first = false first = false
out.RawString("\"ranMixedContent\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.RanMixedContent)) out.Bool(bool(in.RanMixedContent))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"displayedMixedContent\":"
if first {
first = false first = false
out.RawString("\"displayedMixedContent\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.DisplayedMixedContent)) out.Bool(bool(in.DisplayedMixedContent))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"containedMixedForm\":"
if first {
first = false first = false
out.RawString("\"containedMixedForm\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.ContainedMixedForm)) out.Bool(bool(in.ContainedMixedForm))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"ranContentWithCertErrors\":"
if first {
first = false first = false
out.RawString("\"ranContentWithCertErrors\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.RanContentWithCertErrors)) out.Bool(bool(in.RanContentWithCertErrors))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"displayedContentWithCertErrors\":"
if first {
first = false first = false
out.RawString("\"displayedContentWithCertErrors\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.DisplayedContentWithCertErrors)) out.Bool(bool(in.DisplayedContentWithCertErrors))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"ranInsecureContentStyle\":"
if first {
first = false first = false
out.RawString("\"ranInsecureContentStyle\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.RanInsecureContentStyle).MarshalEasyJSON(out) (in.RanInsecureContentStyle).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"displayedInsecureContentStyle\":"
if first {
first = false first = false
out.RawString("\"displayedInsecureContentStyle\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.DisplayedInsecureContentStyle).MarshalEasyJSON(out) (in.DisplayedInsecureContentStyle).MarshalEasyJSON(out)
}
out.RawByte('}') out.RawByte('}')
} }
@ -367,18 +419,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"eventId\":"
} if first {
first = false first = false
out.RawString("\"eventId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.EventID)) out.Int64(int64(in.EventID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"action\":"
if first {
first = false first = false
out.RawString("\"action\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Action).MarshalEasyJSON(out) (in.Action).MarshalEasyJSON(out)
}
out.RawByte('}') out.RawByte('}')
} }
@ -485,23 +545,34 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"securityState\":"
} if first {
first = false first = false
out.RawString("\"securityState\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.SecurityState).MarshalEasyJSON(out) (in.SecurityState).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"schemeIsCryptographic\":"
if first {
first = false first = false
out.RawString("\"schemeIsCryptographic\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.SchemeIsCryptographic)) out.Bool(bool(in.SchemeIsCryptographic))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"explanations\":"
if first {
first = false first = false
out.RawString("\"explanations\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Explanations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Explanations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -518,22 +589,29 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(out *jwriter.Writer,
} }
out.RawByte(']') out.RawByte(']')
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"insecureContentStatus\":"
if first {
first = false first = false
out.RawString("\"insecureContentStatus\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.InsecureContentStatus == nil { if in.InsecureContentStatus == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.InsecureContentStatus).MarshalEasyJSON(out) (*in.InsecureContentStatus).MarshalEasyJSON(out)
} }
if in.Summary != "" {
if !first {
out.RawByte(',')
} }
if in.Summary != "" {
const prefix string = ",\"summary\":"
if first {
first = false first = false
out.RawString("\"summary\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Summary)) out.String(string(in.Summary))
} }
out.RawByte('}') out.RawByte('}')
@ -601,24 +679,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"eventId\":"
} if first {
first = false first = false
out.RawString("\"eventId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.EventID)) out.Int64(int64(in.EventID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"errorType\":"
if first {
first = false first = false
out.RawString("\"errorType\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ErrorType)) out.String(string(in.ErrorType))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"requestURL\":"
if first {
first = false first = false
out.RawString("\"requestURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.RequestURL)) out.String(string(in.RequestURL))
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -90,61 +90,85 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker(out *jwriter.Wri
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"versionId\":"
} if first {
first = false first = false
out.RawString("\"versionId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.VersionID)) out.String(string(in.VersionID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"registrationId\":"
if first {
first = false first = false
out.RawString("\"registrationId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.RegistrationID)) out.String(string(in.RegistrationID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"scriptURL\":"
if first {
first = false first = false
out.RawString("\"scriptURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ScriptURL)) out.String(string(in.ScriptURL))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"runningStatus\":"
if first {
first = false first = false
out.RawString("\"runningStatus\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.RunningStatus).MarshalEasyJSON(out) (in.RunningStatus).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"status\":"
if first {
first = false first = false
out.RawString("\"status\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Status).MarshalEasyJSON(out) (in.Status).MarshalEasyJSON(out)
if in.ScriptLastModified != 0 {
if !first {
out.RawByte(',')
} }
if in.ScriptLastModified != 0 {
const prefix string = ",\"scriptLastModified\":"
if first {
first = false first = false
out.RawString("\"scriptLastModified\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.ScriptLastModified)) out.Float64(float64(in.ScriptLastModified))
} }
if in.ScriptResponseTime != 0 { if in.ScriptResponseTime != 0 {
if !first { const prefix string = ",\"scriptResponseTime\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"scriptResponseTime\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.ScriptResponseTime)) out.Float64(float64(in.ScriptResponseTime))
} }
if len(in.ControlledClients) != 0 { if len(in.ControlledClients) != 0 {
if !first { const prefix string = ",\"controlledClients\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"controlledClients\":") out.RawString(prefix[1:])
if in.ControlledClients == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v2, v3 := range in.ControlledClients { for v2, v3 := range in.ControlledClients {
if v2 > 0 { if v2 > 0 {
@ -156,11 +180,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker(out *jwriter.Wri
} }
} }
if in.TargetID != "" { if in.TargetID != "" {
if !first { const prefix string = ",\"targetId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"targetId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.TargetID)) out.String(string(in.TargetID))
} }
out.RawByte('}') out.RawByte('}')
@ -224,12 +250,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker1(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"scopeURL\":"
} if first {
first = false first = false
out.RawString("\"scopeURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ScopeURL)) out.String(string(in.ScopeURL))
}
out.RawByte('}') out.RawByte('}')
} }
@ -291,12 +321,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker2(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"scopeURL\":"
} if first {
first = false first = false
out.RawString("\"scopeURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ScopeURL)) out.String(string(in.ScopeURL))
}
out.RawByte('}') out.RawByte('}')
} }
@ -358,12 +392,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker3(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"versionId\":"
} if first {
first = false first = false
out.RawString("\"versionId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.VersionID)) out.String(string(in.VersionID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -484,12 +522,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"scopeURL\":"
} if first {
first = false first = false
out.RawString("\"scopeURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ScopeURL)) out.String(string(in.ScopeURL))
}
out.RawByte('}') out.RawByte('}')
} }
@ -551,12 +593,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"scopeURL\":"
} if first {
first = false first = false
out.RawString("\"scopeURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ScopeURL)) out.String(string(in.ScopeURL))
}
out.RawByte('}') out.RawByte('}')
} }
@ -618,12 +664,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"forceUpdateOnPageLoad\":"
} if first {
first = false first = false
out.RawString("\"forceUpdateOnPageLoad\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.ForceUpdateOnPageLoad)) out.Bool(bool(in.ForceUpdateOnPageLoad))
}
out.RawByte('}') out.RawByte('}')
} }
@ -689,24 +739,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"registrationId\":"
} if first {
first = false first = false
out.RawString("\"registrationId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.RegistrationID)) out.String(string(in.RegistrationID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"scopeURL\":"
if first {
first = false first = false
out.RawString("\"scopeURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ScopeURL)) out.String(string(in.ScopeURL))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"isDeleted\":"
if first {
first = false first = false
out.RawString("\"isDeleted\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.IsDeleted)) out.Bool(bool(in.IsDeleted))
}
out.RawByte('}') out.RawByte('}')
} }
@ -768,12 +830,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(out *jwriter.Wr
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"versionId\":"
} if first {
first = false first = false
out.RawString("\"versionId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.VersionID)) out.String(string(in.VersionID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -864,11 +930,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(out *jwriter.W
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"versions\":"
} if first {
first = false first = false
out.RawString("\"versions\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Versions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Versions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -885,6 +954,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(out *jwriter.W
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -975,11 +1045,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(out *jwriter.W
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"registrations\":"
} if first {
first = false first = false
out.RawString("\"registrations\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Registrations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Registrations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -996,6 +1069,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(out *jwriter.W
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -1065,16 +1139,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(out *jwriter.W
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"errorMessage\":"
} if first {
first = false first = false
out.RawString("\"errorMessage\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.ErrorMessage == nil { if in.ErrorMessage == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.ErrorMessage).MarshalEasyJSON(out) (*in.ErrorMessage).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -1146,42 +1224,66 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(out *jwriter.W
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"errorMessage\":"
} if first {
first = false first = false
out.RawString("\"errorMessage\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ErrorMessage)) out.String(string(in.ErrorMessage))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"registrationId\":"
if first {
first = false first = false
out.RawString("\"registrationId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.RegistrationID)) out.String(string(in.RegistrationID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"versionId\":"
if first {
first = false first = false
out.RawString("\"versionId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.VersionID)) out.String(string(in.VersionID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"sourceURL\":"
if first {
first = false first = false
out.RawString("\"sourceURL\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SourceURL)) out.String(string(in.SourceURL))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"lineNumber\":"
if first {
first = false first = false
out.RawString("\"lineNumber\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.LineNumber)) out.Int64(int64(in.LineNumber))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"columnNumber\":"
if first {
first = false first = false
out.RawString("\"columnNumber\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.ColumnNumber)) out.Int64(int64(in.ColumnNumber))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1308,30 +1410,46 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(out *jwriter.W
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"origin\":"
} if first {
first = false first = false
out.RawString("\"origin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin)) out.String(string(in.Origin))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"registrationId\":"
if first {
first = false first = false
out.RawString("\"registrationId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.RegistrationID)) out.String(string(in.RegistrationID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"tag\":"
if first {
first = false first = false
out.RawString("\"tag\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Tag)) out.String(string(in.Tag))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"lastChance\":"
if first {
first = false first = false
out.RawString("\"lastChance\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.LastChance)) out.Bool(bool(in.LastChance))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1456,24 +1574,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker17(out *jwriter.W
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"origin\":"
} if first {
first = false first = false
out.RawString("\"origin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin)) out.String(string(in.Origin))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"registrationId\":"
if first {
first = false first = false
out.RawString("\"registrationId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.RegistrationID)) out.String(string(in.RegistrationID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"data\":"
if first {
first = false first = false
out.RawString("\"data\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Data)) out.String(string(in.Data))
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -54,18 +54,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage(out *jwriter.Writer, i
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"storageType\":"
} if first {
first = false first = false
out.RawString("\"storageType\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.StorageType).MarshalEasyJSON(out) (in.StorageType).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"usage\":"
if first {
first = false first = false
out.RawString("\"usage\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Usage)) out.Float64(float64(in.Usage))
}
out.RawByte('}') out.RawByte('}')
} }
@ -127,12 +135,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage1(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"origin\":"
} if first {
first = false first = false
out.RawString("\"origin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin)) out.String(string(in.Origin))
}
out.RawByte('}') out.RawByte('}')
} }
@ -194,12 +206,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage2(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"origin\":"
} if first {
first = false first = false
out.RawString("\"origin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin)) out.String(string(in.Origin))
}
out.RawByte('}') out.RawByte('}')
} }
@ -261,12 +277,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage3(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"origin\":"
} if first {
first = false first = false
out.RawString("\"origin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin)) out.String(string(in.Origin))
}
out.RawByte('}') out.RawByte('}')
} }
@ -328,12 +348,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage4(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"origin\":"
} if first {
first = false first = false
out.RawString("\"origin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin)) out.String(string(in.Origin))
}
out.RawByte('}') out.RawByte('}')
} }
@ -429,30 +453,34 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage5(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.Usage != 0 { if in.Usage != 0 {
if !first { const prefix string = ",\"usage\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"usage\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Usage)) out.Float64(float64(in.Usage))
} }
if in.Quota != 0 { if in.Quota != 0 {
if !first { const prefix string = ",\"quota\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"quota\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Quota)) out.Float64(float64(in.Quota))
} }
if len(in.UsageBreakdown) != 0 { if len(in.UsageBreakdown) != 0 {
if !first { const prefix string = ",\"usageBreakdown\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"usageBreakdown\":") out.RawString(prefix[1:])
if in.UsageBreakdown == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v2, v3 := range in.UsageBreakdown { for v2, v3 := range in.UsageBreakdown {
if v2 > 0 { if v2 > 0 {
@ -528,12 +556,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage6(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"origin\":"
} if first {
first = false first = false
out.RawString("\"origin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin)) out.String(string(in.Origin))
}
out.RawByte('}') out.RawByte('}')
} }
@ -595,12 +627,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage7(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"origin\":"
} if first {
first = false first = false
out.RawString("\"origin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin)) out.String(string(in.Origin))
}
out.RawByte('}') out.RawByte('}')
} }
@ -666,24 +702,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage8(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"origin\":"
} if first {
first = false first = false
out.RawString("\"origin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin)) out.String(string(in.Origin))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"databaseName\":"
if first {
first = false first = false
out.RawString("\"databaseName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DatabaseName)) out.String(string(in.DatabaseName))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"objectStoreName\":"
if first {
first = false first = false
out.RawString("\"objectStoreName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ObjectStoreName)) out.String(string(in.ObjectStoreName))
}
out.RawByte('}') out.RawByte('}')
} }
@ -745,12 +793,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage9(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"origin\":"
} if first {
first = false first = false
out.RawString("\"origin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin)) out.String(string(in.Origin))
}
out.RawByte('}') out.RawByte('}')
} }
@ -814,18 +866,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage10(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"origin\":"
} if first {
first = false first = false
out.RawString("\"origin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin)) out.String(string(in.Origin))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"cacheName\":"
if first {
first = false first = false
out.RawString("\"cacheName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.CacheName)) out.String(string(in.CacheName))
}
out.RawByte('}') out.RawByte('}')
} }
@ -889,18 +949,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage11(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"origin\":"
} if first {
first = false first = false
out.RawString("\"origin\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Origin)) out.String(string(in.Origin))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"storageTypes\":"
if first {
first = false first = false
out.RawString("\"storageTypes\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.StorageTypes)) out.String(string(in.StorageTypes))
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -67,39 +67,43 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo(out *jwriter.Writer
first := true first := true
_ = first _ = first
if in.Gpu != nil { if in.Gpu != nil {
if !first { const prefix string = ",\"gpu\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"gpu\":") out.RawString(prefix[1:])
if in.Gpu == nil {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
(*in.Gpu).MarshalEasyJSON(out) (*in.Gpu).MarshalEasyJSON(out)
} }
}
if in.ModelName != "" { if in.ModelName != "" {
if !first { const prefix string = ",\"modelName\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"modelName\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ModelName)) out.String(string(in.ModelName))
} }
if in.ModelVersion != "" { if in.ModelVersion != "" {
if !first { const prefix string = ",\"modelVersion\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"modelVersion\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ModelVersion)) out.String(string(in.ModelVersion))
} }
if in.CommandLine != "" { if in.CommandLine != "" {
if !first { const prefix string = ",\"commandLine\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"commandLine\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.CommandLine)) out.String(string(in.CommandLine))
} }
out.RawByte('}') out.RawByte('}')
@ -278,11 +282,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo2(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"devices\":"
} if first {
first = false first = false
out.RawString("\"devices\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Devices == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Devices == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -299,27 +306,35 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo2(out *jwriter.Write
} }
out.RawByte(']') out.RawByte(']')
} }
if (in.AuxAttributes).IsDefined() {
if !first {
out.RawByte(',')
} }
if (in.AuxAttributes).IsDefined() {
const prefix string = ",\"auxAttributes\":"
if first {
first = false first = false
out.RawString("\"auxAttributes\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.AuxAttributes).MarshalEasyJSON(out) (in.AuxAttributes).MarshalEasyJSON(out)
} }
if (in.FeatureStatus).IsDefined() { if (in.FeatureStatus).IsDefined() {
if !first { const prefix string = ",\"featureStatus\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"featureStatus\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.FeatureStatus).MarshalEasyJSON(out) (in.FeatureStatus).MarshalEasyJSON(out)
} }
if !first { {
out.RawByte(',') const prefix string = ",\"driverBugWorkarounds\":"
} if first {
first = false first = false
out.RawString("\"driverBugWorkarounds\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.DriverBugWorkarounds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.DriverBugWorkarounds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -332,6 +347,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo2(out *jwriter.Write
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -399,30 +415,46 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo3(out *jwriter.Write
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"vendorId\":"
} if first {
first = false first = false
out.RawString("\"vendorId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.VendorID)) out.Float64(float64(in.VendorID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"deviceId\":"
if first {
first = false first = false
out.RawString("\"deviceId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.DeviceID)) out.Float64(float64(in.DeviceID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"vendorString\":"
if first {
first = false first = false
out.RawString("\"vendorString\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.VendorString)) out.String(string(in.VendorString))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"deviceString\":"
if first {
first = false first = false
out.RawString("\"deviceString\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DeviceString)) out.String(string(in.DeviceString))
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -81,11 +81,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget(out *jwriter.Writer, in
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"locations\":"
} if first {
first = false first = false
out.RawString("\"locations\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Locations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Locations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -102,6 +105,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget(out *jwriter.Writer, in
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -163,12 +167,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget1(out *jwriter.Writer, i
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"discover\":"
} if first {
first = false first = false
out.RawString("\"discover\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Discover)) out.Bool(bool(in.Discover))
}
out.RawByte('}') out.RawByte('}')
} }
@ -232,18 +240,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget2(out *jwriter.Writer, i
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"autoAttach\":"
} if first {
first = false first = false
out.RawString("\"autoAttach\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.AutoAttach)) out.Bool(bool(in.AutoAttach))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"waitForDebuggerOnStart\":"
if first {
first = false first = false
out.RawString("\"waitForDebuggerOnStart\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.WaitForDebuggerOnStart)) out.Bool(bool(in.WaitForDebuggerOnStart))
}
out.RawByte('}') out.RawByte('}')
} }
@ -305,12 +321,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget3(out *jwriter.Writer, i
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"value\":"
} if first {
first = false first = false
out.RawString("\"value\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Value)) out.Bool(bool(in.Value))
}
out.RawByte('}') out.RawByte('}')
} }
@ -374,18 +394,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget4(out *jwriter.Writer, i
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"message\":"
} if first {
first = false first = false
out.RawString("\"message\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Message)) out.String(string(in.Message))
if in.SessionID != "" {
if !first {
out.RawByte(',')
} }
if in.SessionID != "" {
const prefix string = ",\"sessionId\":"
if first {
first = false first = false
out.RawString("\"sessionId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SessionID)) out.String(string(in.SessionID))
} }
out.RawByte('}') out.RawByte('}')
@ -451,18 +477,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget5(out *jwriter.Writer, i
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"host\":"
} if first {
first = false first = false
out.RawString("\"host\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Host)) out.String(string(in.Host))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"port\":"
if first {
first = false first = false
out.RawString("\"port\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Port)) out.Int64(int64(in.Port))
}
out.RawByte('}') out.RawByte('}')
} }
@ -534,42 +568,64 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget6(out *jwriter.Writer, i
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"targetId\":"
} if first {
first = false first = false
out.RawString("\"targetId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.TargetID)) out.String(string(in.TargetID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"type\":"
if first {
first = false first = false
out.RawString("\"type\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Type)) out.String(string(in.Type))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"title\":"
if first {
first = false first = false
out.RawString("\"title\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Title)) out.String(string(in.Title))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"url\":"
if first {
first = false first = false
out.RawString("\"url\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.URL)) out.String(string(in.URL))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"attached\":"
if first {
first = false first = false
out.RawString("\"attached\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Attached)) out.Bool(bool(in.Attached))
if in.OpenerID != "" {
if !first {
out.RawByte(',')
} }
if in.OpenerID != "" {
const prefix string = ",\"openerId\":"
if first {
first = false first = false
out.RawString("\"openerId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.OpenerID)) out.String(string(in.OpenerID))
} }
out.RawByte('}') out.RawByte('}')
@ -663,14 +719,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget7(out *jwriter.Writer, i
first := true first := true
_ = first _ = first
if len(in.TargetInfos) != 0 { if len(in.TargetInfos) != 0 {
if !first { const prefix string = ",\"targetInfos\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"targetInfos\":") out.RawString(prefix[1:])
if in.TargetInfos == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v5, v6 := range in.TargetInfos { for v5, v6 := range in.TargetInfos {
if v5 > 0 { if v5 > 0 {
@ -814,16 +870,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget9(out *jwriter.Writer, i
first := true first := true
_ = first _ = first
if in.TargetInfo != nil { if in.TargetInfo != nil {
if !first { const prefix string = ",\"targetInfo\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"targetInfo\":") out.RawString(prefix[1:])
if in.TargetInfo == nil {
out.RawString("null")
} else { } else {
(*in.TargetInfo).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.TargetInfo).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -886,12 +940,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget10(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"targetId\":"
} if first {
first = false first = false
out.RawString("\"targetId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.TargetID)) out.String(string(in.TargetID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -961,16 +1019,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget11(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"targetInfo\":"
} if first {
first = false first = false
out.RawString("\"targetInfo\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.TargetInfo == nil { if in.TargetInfo == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.TargetInfo).MarshalEasyJSON(out) (*in.TargetInfo).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -1032,12 +1094,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget12(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"targetId\":"
} if first {
first = false first = false
out.RawString("\"targetId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.TargetID)) out.String(string(in.TargetID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1107,16 +1173,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget13(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"targetInfo\":"
} if first {
first = false first = false
out.RawString("\"targetInfo\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.TargetInfo == nil { if in.TargetInfo == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.TargetInfo).MarshalEasyJSON(out) (*in.TargetInfo).MarshalEasyJSON(out)
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -1180,18 +1250,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget14(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"sessionId\":"
} if first {
first = false first = false
out.RawString("\"sessionId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SessionID)) out.String(string(in.SessionID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"message\":"
if first {
first = false first = false
out.RawString("\"message\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Message)) out.String(string(in.Message))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1253,12 +1331,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget15(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"sessionId\":"
} if first {
first = false first = false
out.RawString("\"sessionId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SessionID)) out.String(string(in.SessionID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1332,28 +1414,40 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget16(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"sessionId\":"
} if first {
first = false first = false
out.RawString("\"sessionId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SessionID)) out.String(string(in.SessionID))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"targetInfo\":"
if first {
first = false first = false
out.RawString("\"targetInfo\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.TargetInfo == nil { if in.TargetInfo == nil {
out.RawString("null") out.RawString("null")
} else { } else {
(*in.TargetInfo).MarshalEasyJSON(out) (*in.TargetInfo).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"waitingForDebugger\":"
if first {
first = false first = false
out.RawString("\"waitingForDebugger\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.WaitingForDebugger)) out.Bool(bool(in.WaitingForDebugger))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1416,11 +1510,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget17(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.Success { if in.Success {
if !first { const prefix string = ",\"success\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"success\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Success)) out.Bool(bool(in.Success))
} }
out.RawByte('}') out.RawByte('}')
@ -1484,12 +1580,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget18(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"browserContextId\":"
} if first {
first = false first = false
out.RawString("\"browserContextId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.BrowserContextID)) out.String(string(in.BrowserContextID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -1552,11 +1652,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget19(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.SessionID != "" { if in.SessionID != "" {
if !first { const prefix string = ",\"sessionId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"sessionId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SessionID)) out.String(string(in.SessionID))
} }
out.RawByte('}') out.RawByte('}')
@ -1621,11 +1723,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget20(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.TargetID != "" { if in.TargetID != "" {
if !first { const prefix string = ",\"targetId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"targetId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.TargetID)) out.String(string(in.TargetID))
} }
out.RawByte('}') out.RawByte('}')
@ -1697,42 +1801,54 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget21(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"url\":"
} if first {
first = false first = false
out.RawString("\"url\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.URL)) out.String(string(in.URL))
if in.Width != 0 {
if !first {
out.RawByte(',')
} }
if in.Width != 0 {
const prefix string = ",\"width\":"
if first {
first = false first = false
out.RawString("\"width\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Width)) out.Int64(int64(in.Width))
} }
if in.Height != 0 { if in.Height != 0 {
if !first { const prefix string = ",\"height\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"height\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Height)) out.Int64(int64(in.Height))
} }
if in.BrowserContextID != "" { if in.BrowserContextID != "" {
if !first { const prefix string = ",\"browserContextId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"browserContextId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.BrowserContextID)) out.String(string(in.BrowserContextID))
} }
if in.EnableBeginFrameControl { if in.EnableBeginFrameControl {
if !first { const prefix string = ",\"enableBeginFrameControl\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"enableBeginFrameControl\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.EnableBeginFrameControl)) out.Bool(bool(in.EnableBeginFrameControl))
} }
out.RawByte('}') out.RawByte('}')
@ -1797,11 +1913,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget22(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.BrowserContextID != "" { if in.BrowserContextID != "" {
if !first { const prefix string = ",\"browserContextId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"browserContextId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.BrowserContextID)) out.String(string(in.BrowserContextID))
} }
out.RawByte('}') out.RawByte('}')
@ -1925,11 +2043,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget24(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.Success { if in.Success {
if !first { const prefix string = ",\"success\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"success\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Success)) out.Bool(bool(in.Success))
} }
out.RawByte('}') out.RawByte('}')
@ -1993,12 +2113,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget25(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"targetId\":"
} if first {
first = false first = false
out.RawString("\"targetId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.TargetID)) out.String(string(in.TargetID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -2061,11 +2185,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget26(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.SessionID != "" { if in.SessionID != "" {
if !first { const prefix string = ",\"sessionId\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"sessionId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SessionID)) out.String(string(in.SessionID))
} }
out.RawByte('}') out.RawByte('}')
@ -2129,12 +2255,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget27(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"targetId\":"
} if first {
first = false first = false
out.RawString("\"targetId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.TargetID)) out.String(string(in.TargetID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -2196,12 +2326,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget28(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"targetId\":"
} if first {
first = false first = false
out.RawString("\"targetId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.TargetID)) out.String(string(in.TargetID))
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -52,12 +52,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"port\":"
} if first {
first = false first = false
out.RawString("\"port\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Port)) out.Int64(int64(in.Port))
}
out.RawByte('}') out.RawByte('}')
} }
@ -121,18 +125,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering1(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"port\":"
} if first {
first = false first = false
out.RawString("\"port\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Port)) out.Int64(int64(in.Port))
if !first {
out.RawByte(',')
} }
{
const prefix string = ",\"connectionId\":"
if first {
first = false first = false
out.RawString("\"connectionId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ConnectionID)) out.String(string(in.ConnectionID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -194,12 +206,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering2(out *jwriter.Writer
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"port\":"
} if first {
first = false first = false
out.RawString("\"port\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Port)) out.Int64(int64(in.Port))
}
out.RawByte('}') out.RawByte('}')
} }

View File

@ -139,46 +139,54 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing(out *jwriter.Writer, i
first := true first := true
_ = first _ = first
if in.RecordMode != "" { if in.RecordMode != "" {
if !first { const prefix string = ",\"recordMode\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"recordMode\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.RecordMode).MarshalEasyJSON(out) (in.RecordMode).MarshalEasyJSON(out)
} }
if in.EnableSampling { if in.EnableSampling {
if !first { const prefix string = ",\"enableSampling\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"enableSampling\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.EnableSampling)) out.Bool(bool(in.EnableSampling))
} }
if in.EnableSystrace { if in.EnableSystrace {
if !first { const prefix string = ",\"enableSystrace\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"enableSystrace\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.EnableSystrace)) out.Bool(bool(in.EnableSystrace))
} }
if in.EnableArgumentFilter { if in.EnableArgumentFilter {
if !first { const prefix string = ",\"enableArgumentFilter\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"enableArgumentFilter\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.EnableArgumentFilter)) out.Bool(bool(in.EnableArgumentFilter))
} }
if len(in.IncludedCategories) != 0 { if len(in.IncludedCategories) != 0 {
if !first { const prefix string = ",\"includedCategories\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"includedCategories\":") out.RawString(prefix[1:])
if in.IncludedCategories == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v4, v5 := range in.IncludedCategories { for v4, v5 := range in.IncludedCategories {
if v4 > 0 { if v4 > 0 {
@ -190,14 +198,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing(out *jwriter.Writer, i
} }
} }
if len(in.ExcludedCategories) != 0 { if len(in.ExcludedCategories) != 0 {
if !first { const prefix string = ",\"excludedCategories\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"excludedCategories\":") out.RawString(prefix[1:])
if in.ExcludedCategories == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v6, v7 := range in.ExcludedCategories { for v6, v7 := range in.ExcludedCategories {
if v6 > 0 { if v6 > 0 {
@ -209,14 +217,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing(out *jwriter.Writer, i
} }
} }
if len(in.SyntheticDelays) != 0 { if len(in.SyntheticDelays) != 0 {
if !first { const prefix string = ",\"syntheticDelays\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"syntheticDelays\":") out.RawString(prefix[1:])
if in.SyntheticDelays == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v8, v9 := range in.SyntheticDelays { for v8, v9 := range in.SyntheticDelays {
if v8 > 0 { if v8 > 0 {
@ -228,16 +236,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing(out *jwriter.Writer, i
} }
} }
if in.MemoryDumpConfig != nil { if in.MemoryDumpConfig != nil {
if !first { const prefix string = ",\"memoryDumpConfig\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"memoryDumpConfig\":") out.RawString(prefix[1:])
if in.MemoryDumpConfig == nil {
out.RawString("null")
} else { } else {
(*in.MemoryDumpConfig).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.MemoryDumpConfig).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -313,32 +319,34 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing1(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.BufferUsageReportingInterval != 0 { if in.BufferUsageReportingInterval != 0 {
if !first { const prefix string = ",\"bufferUsageReportingInterval\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"bufferUsageReportingInterval\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.BufferUsageReportingInterval)) out.Float64(float64(in.BufferUsageReportingInterval))
} }
if in.TransferMode != "" { if in.TransferMode != "" {
if !first { const prefix string = ",\"transferMode\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"transferMode\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.TransferMode).MarshalEasyJSON(out) (in.TransferMode).MarshalEasyJSON(out)
} }
if in.TraceConfig != nil { if in.TraceConfig != nil {
if !first { const prefix string = ",\"traceConfig\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"traceConfig\":") out.RawString(prefix[1:])
if in.TraceConfig == nil {
out.RawString("null")
} else { } else {
(*in.TraceConfig).MarshalEasyJSON(out) out.RawString(prefix)
} }
(*in.TraceConfig).MarshalEasyJSON(out)
} }
out.RawByte('}') out.RawByte('}')
} }
@ -404,19 +412,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing2(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.DumpGUID != "" { if in.DumpGUID != "" {
if !first { const prefix string = ",\"dumpGuid\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"dumpGuid\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DumpGUID)) out.String(string(in.DumpGUID))
} }
if in.Success { if in.Success {
if !first { const prefix string = ",\"success\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"success\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Success)) out.Bool(bool(in.Success))
} }
out.RawByte('}') out.RawByte('}')
@ -539,12 +551,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing4(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"syncId\":"
} if first {
first = false first = false
out.RawString("\"syncId\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SyncID)) out.String(string(in.SyncID))
}
out.RawByte('}') out.RawByte('}')
} }
@ -687,14 +703,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing6(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if len(in.Categories) != 0 { if len(in.Categories) != 0 {
if !first { const prefix string = ",\"categories\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"categories\":") out.RawString(prefix[1:])
if in.Categories == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else { } else {
out.RawString(prefix)
}
{
out.RawByte('[') out.RawByte('[')
for v11, v12 := range in.Categories { for v11, v12 := range in.Categories {
if v11 > 0 { if v11 > 0 {
@ -826,11 +842,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing8(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.Stream != "" { if in.Stream != "" {
if !first { const prefix string = ",\"stream\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"stream\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Stream)) out.String(string(in.Stream))
} }
out.RawByte('}') out.RawByte('}')
@ -915,11 +933,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing9(out *jwriter.Writer,
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
if !first { {
out.RawByte(',') const prefix string = ",\"value\":"
} if first {
first = false first = false
out.RawString("\"value\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { if in.Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null") out.RawString("null")
} else { } else {
@ -932,6 +953,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing9(out *jwriter.Writer,
} }
out.RawByte(']') out.RawByte(']')
} }
}
out.RawByte('}') out.RawByte('}')
} }
@ -998,27 +1020,33 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing10(out *jwriter.Writer,
first := true first := true
_ = first _ = first
if in.PercentFull != 0 { if in.PercentFull != 0 {
if !first { const prefix string = ",\"percentFull\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"percentFull\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.PercentFull)) out.Float64(float64(in.PercentFull))
} }
if in.EventCount != 0 { if in.EventCount != 0 {
if !first { const prefix string = ",\"eventCount\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"eventCount\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.EventCount)) out.Float64(float64(in.EventCount))
} }
if in.Value != 0 { if in.Value != 0 {
if !first { const prefix string = ",\"value\":"
out.RawByte(',') if first {
}
first = false first = false
out.RawString("\"value\":") out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Value)) out.Float64(float64(in.Value))
} }
out.RawByte('}') out.RawByte('}')

View File

@ -409,44 +409,37 @@
{ {
"name": "offsetTop", "name": "offsetTop",
"type": "number", "type": "number",
"experimental": true,
"description": "Top offset in DIP." "description": "Top offset in DIP."
}, },
{ {
"name": "pageScaleFactor", "name": "pageScaleFactor",
"type": "number", "type": "number",
"experimental": true,
"description": "Page scale factor." "description": "Page scale factor."
}, },
{ {
"name": "deviceWidth", "name": "deviceWidth",
"type": "number", "type": "number",
"experimental": true,
"description": "Device screen width in DIP." "description": "Device screen width in DIP."
}, },
{ {
"name": "deviceHeight", "name": "deviceHeight",
"type": "number", "type": "number",
"experimental": true,
"description": "Device screen height in DIP." "description": "Device screen height in DIP."
}, },
{ {
"name": "scrollOffsetX", "name": "scrollOffsetX",
"type": "number", "type": "number",
"experimental": true,
"description": "Position of horizontal scroll in CSS pixels." "description": "Position of horizontal scroll in CSS pixels."
}, },
{ {
"name": "scrollOffsetY", "name": "scrollOffsetY",
"type": "number", "type": "number",
"experimental": true,
"description": "Position of vertical scroll in CSS pixels." "description": "Position of vertical scroll in CSS pixels."
}, },
{ {
"name": "timestamp", "name": "timestamp",
"$ref": "Network.TimeSinceEpoch", "$ref": "Network.TimeSinceEpoch",
"optional": true, "optional": true,
"experimental": true,
"description": "Frame swap timestamp." "description": "Frame swap timestamp."
} }
], ],
@ -671,6 +664,18 @@
"description": "Controls whether browser will open a new inspector window for connected pages.", "description": "Controls whether browser will open a new inspector window for connected pages.",
"experimental": true "experimental": true
}, },
{
"name": "setLifecycleEventsEnabled",
"parameters": [
{
"name": "enabled",
"type": "boolean",
"description": "If true, starts emitting lifecycle events."
}
],
"description": "Controls whether page will emit lifecycle events.",
"experimental": true
},
{ {
"name": "reload", "name": "reload",
"parameters": [ "parameters": [
@ -726,7 +731,19 @@
{ {
"name": "frameId", "name": "frameId",
"$ref": "FrameId", "$ref": "FrameId",
"description": "Frame id that will be navigated." "description": "Frame id that has navigated (or failed to navigate)"
},
{
"name": "loaderId",
"$ref": "Network.LoaderId",
"optional": true,
"description": "Loader identifier."
},
{
"name": "errorText",
"type": "string",
"optional": true,
"description": "User friendly error message, present if and only if navigation has failed."
} }
], ],
"description": "Navigates current page to the given URL." "description": "Navigates current page to the given URL."
@ -911,8 +928,7 @@
"type": "string", "type": "string",
"description": "HTML content to set." "description": "HTML content to set."
} }
], ]
"experimental": true
}, },
{ {
"name": "setDeviceMetricsOverride", "name": "setDeviceMetricsOverride",
@ -1643,7 +1659,7 @@
}, },
{ {
"name": "windowOpen", "name": "windowOpen",
"description": "Fired when window.open() was called", "description": "Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.",
"parameters": [ "parameters": [
{ {
"name": "url", "name": "url",
@ -1653,17 +1669,20 @@
{ {
"name": "windowName", "name": "windowName",
"type": "string", "type": "string",
"description": "Window name passed to window.open()." "description": "Window name."
}, },
{ {
"name": "windowFeatures", "name": "windowFeatures",
"type": "string", "type": "array",
"description": "Window features passed to window.open()." "items": {
"type": "string"
},
"description": "An array of enabled window features."
}, },
{ {
"name": "userGesture", "name": "userGesture",
"type": "boolean", "type": "boolean",
"description": "Whether or not window.open() was triggered by user gesture." "description": "Whether or not it was triggered by user gesture."
} }
] ]
} }
@ -2051,7 +2070,8 @@
"description": "This domain emulates different environments for the page.", "description": "This domain emulates different environments for the page.",
"dependencies": [ "dependencies": [
"DOM", "DOM",
"Page" "Page",
"Runtime"
], ],
"types": [ "types": [
{ {
@ -2118,7 +2138,8 @@
"name": "scale", "name": "scale",
"type": "number", "type": "number",
"optional": true, "optional": true,
"description": "Scale to apply to resulting view image." "description": "Scale to apply to resulting view image.",
"experimental": true
}, },
{ {
"name": "screenWidth", "name": "screenWidth",
@ -2330,7 +2351,7 @@
}, },
{ {
"name": "budget", "name": "budget",
"type": "integer", "type": "number",
"optional": true, "optional": true,
"description": "If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent." "description": "If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent."
}, },
@ -2341,6 +2362,13 @@
"description": "If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock." "description": "If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock."
} }
], ],
"returns": [
{
"name": "virtualTimeBase",
"$ref": "Runtime.Timestamp",
"description": "Absolute timestamp at which virtual time was first enabled (milliseconds since epoch)."
}
],
"experimental": true "experimental": true
}, },
{ {
@ -2380,7 +2408,7 @@
"parameters": [ "parameters": [
{ {
"name": "virtualTimeElapsed", "name": "virtualTimeElapsed",
"type": "integer", "type": "number",
"description": "The amount of virtual time that has elapsed in milliseconds since virtual time was first enabled." "description": "The amount of virtual time that has elapsed in milliseconds since virtual time was first enabled."
} }
], ],
@ -2392,7 +2420,7 @@
"parameters": [ "parameters": [
{ {
"name": "virtualTimeElapsed", "name": "virtualTimeElapsed",
"type": "integer", "type": "number",
"description": "The amount of virtual time that has elapsed in milliseconds since virtual time was first enabled." "description": "The amount of virtual time that has elapsed in milliseconds since virtual time was first enabled."
} }
], ],
@ -2679,6 +2707,7 @@
"domain": "Network", "domain": "Network",
"description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.", "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
"dependencies": [ "dependencies": [
"Debugger",
"Runtime", "Runtime",
"Security" "Security"
], ],
@ -3486,6 +3515,16 @@
], ],
"experimental": true "experimental": true
}, },
{
"id": "InterceptionStage",
"type": "string",
"description": "Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.",
"enum": [
"Request",
"HeadersReceived"
],
"experimental": true
},
{ {
"id": "RequestPattern", "id": "RequestPattern",
"type": "object", "type": "object",
@ -3502,6 +3541,12 @@
"$ref": "Page.ResourceType", "$ref": "Page.ResourceType",
"optional": true, "optional": true,
"description": "If set, only requests for matching resource types will be intercepted." "description": "If set, only requests for matching resource types will be intercepted."
},
{
"name": "interceptionStage",
"$ref": "InterceptionStage",
"optional": true,
"description": "Stage at wich to begin intercepting requests. Default is Request."
} }
], ],
"experimental": true "experimental": true
@ -3543,6 +3588,45 @@
} }
] ]
}, },
{
"name": "searchInResponseBody",
"description": "Searches for given string in response content.",
"parameters": [
{
"name": "requestId",
"$ref": "RequestId",
"description": "Identifier of the network response to search."
},
{
"name": "query",
"type": "string",
"description": "String to search for."
},
{
"name": "caseSensitive",
"type": "boolean",
"optional": true,
"description": "If true, search is case sensitive."
},
{
"name": "isRegex",
"type": "boolean",
"optional": true,
"description": "If true, treats string parameter as regex."
}
],
"returns": [
{
"name": "result",
"type": "array",
"items": {
"$ref": "Debugger.SearchMatch"
},
"description": "List of search matches."
}
],
"experimental": true
},
{ {
"name": "setExtraHTTPHeaders", "name": "setExtraHTTPHeaders",
"description": "Specifies whether to always send extra HTTP headers with the requests from this page.", "description": "Specifies whether to always send extra HTTP headers with the requests from this page.",
@ -3613,7 +3697,8 @@
"type": "boolean", "type": "boolean",
"description": "True if browser cache can be cleared." "description": "True if browser cache can be cleared."
} }
] ],
"deprecated": true
}, },
{ {
"name": "clearBrowserCache", "name": "clearBrowserCache",
@ -3628,7 +3713,8 @@
"type": "boolean", "type": "boolean",
"description": "True if browser cookies can be cleared." "description": "True if browser cookies can be cleared."
} }
] ],
"deprecated": true
}, },
{ {
"name": "clearBrowserCookies", "name": "clearBrowserCookies",
@ -3790,7 +3876,8 @@
"type": "boolean", "type": "boolean",
"description": "True if emulation of network conditions is supported." "description": "True if emulation of network conditions is supported."
} }
] ],
"deprecated": true
}, },
{ {
"name": "emulateNetworkConditions", "name": "emulateNetworkConditions",
@ -3952,6 +4039,30 @@
} }
], ],
"experimental": true "experimental": true
},
{
"name": "getResponseBodyForInterception",
"description": "Returns content served for the given currently intercepted request.",
"parameters": [
{
"name": "interceptionId",
"$ref": "InterceptionId",
"description": "Identifier for the intercepted request to get body for."
}
],
"returns": [
{
"name": "body",
"type": "string",
"description": "Response body."
},
{
"name": "base64Encoded",
"type": "boolean",
"description": "True, if content was sent as base64."
}
],
"experimental": true
} }
], ],
"events": [ "events": [
@ -4376,18 +4487,6 @@
"type": "boolean", "type": "boolean",
"description": "Whether this is a navigation request, which can abort the navigation completely." "description": "Whether this is a navigation request, which can abort the navigation completely."
}, },
{
"name": "redirectHeaders",
"$ref": "Headers",
"optional": true,
"description": "HTTP response headers, only sent if a redirect was intercepted."
},
{
"name": "redirectStatusCode",
"type": "integer",
"optional": true,
"description": "HTTP response code, only sent if a redirect was intercepted."
},
{ {
"name": "redirectUrl", "name": "redirectUrl",
"optional": true, "optional": true,
@ -4399,6 +4498,24 @@
"$ref": "AuthChallenge", "$ref": "AuthChallenge",
"optional": true, "optional": true,
"description": "Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse." "description": "Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse."
},
{
"name": "responseErrorReason",
"$ref": "ErrorReason",
"optional": true,
"description": "Response error if intercepted at response stage or if redirect occurred while intercepting request."
},
{
"name": "responseStatusCode",
"type": "integer",
"optional": true,
"description": "Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred."
},
{
"name": "responseHeaders",
"$ref": "Headers",
"optional": true,
"description": "Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred."
} }
], ],
"experimental": true "experimental": true
@ -4412,14 +4529,12 @@
{ {
"id": "DatabaseId", "id": "DatabaseId",
"type": "string", "type": "string",
"description": "Unique identifier of Database object.", "description": "Unique identifier of Database object."
"experimental": true
}, },
{ {
"id": "Database", "id": "Database",
"type": "object", "type": "object",
"description": "Database object.", "description": "Database object.",
"experimental": true,
"properties": [ "properties": [
{ {
"name": "id", "name": "id",
@ -5131,7 +5246,6 @@
"id": "StorageId", "id": "StorageId",
"type": "object", "type": "object",
"description": "DOM Storage identifier.", "description": "DOM Storage identifier.",
"experimental": true,
"properties": [ "properties": [
{ {
"name": "securityOrigin", "name": "securityOrigin",
@ -5149,7 +5263,6 @@
"id": "Item", "id": "Item",
"type": "array", "type": "array",
"description": "DOM Storage item.", "description": "DOM Storage item.",
"experimental": true,
"items": { "items": {
"type": "string" "type": "string"
} }
@ -8694,7 +8807,8 @@
"type": "boolean", "type": "boolean",
"description": "Whether to pause new targets when attaching to them. Use <code>Runtime.runIfWaitingForDebugger</code> to run paused targets." "description": "Whether to pause new targets when attaching to them. Use <code>Runtime.runIfWaitingForDebugger</code> to run paused targets."
} }
] ],
"experimental": true
}, },
{ {
"name": "setAttachToFrames", "name": "setAttachToFrames",
@ -8759,7 +8873,8 @@
"name": "targetInfo", "name": "targetInfo",
"$ref": "TargetInfo" "$ref": "TargetInfo"
} }
] ],
"experimental": true
}, },
{ {
"name": "activateTarget", "name": "activateTarget",
@ -8958,7 +9073,8 @@
"name": "waitingForDebugger", "name": "waitingForDebugger",
"type": "boolean" "type": "boolean"
} }
] ],
"experimental": true
}, },
{ {
"name": "detachedFromTarget", "name": "detachedFromTarget",
@ -8976,7 +9092,8 @@
"deprecated": true, "deprecated": true,
"description": "Deprecated." "description": "Deprecated."
} }
] ],
"experimental": true
}, },
{ {
"name": "receivedMessageFromTarget", "name": "receivedMessageFromTarget",
@ -10560,7 +10677,6 @@
{ {
"id": "Animation", "id": "Animation",
"type": "object", "type": "object",
"experimental": true,
"properties": [ "properties": [
{ {
"name": "id", "name": "id",
@ -10575,7 +10691,6 @@
{ {
"name": "pausedState", "name": "pausedState",
"type": "boolean", "type": "boolean",
"experimental": true,
"description": "<code>Animation</code>'s internal paused state." "description": "<code>Animation</code>'s internal paused state."
}, },
{ {
@ -10626,7 +10741,6 @@
{ {
"id": "AnimationEffect", "id": "AnimationEffect",
"type": "object", "type": "object",
"experimental": true,
"properties": [ "properties": [
{ {
"name": "delay", "name": "delay",
@ -11052,7 +11166,7 @@
"properties": [ "properties": [
{ {
"name": "name", "name": "name",
"type": "string", "$ref": "AXPropertyName",
"description": "The name of this property." "description": "The name of this property."
}, },
{ {
@ -11099,7 +11213,7 @@
"description": "A single computed AX property." "description": "A single computed AX property."
}, },
{ {
"id": "AXGlobalStates", "id": "AXPropertyName",
"type": "string", "type": "string",
"enum": [ "enum": [
"busy", "busy",
@ -11108,25 +11222,11 @@
"hiddenRoot", "hiddenRoot",
"invalid", "invalid",
"keyshortcuts", "keyshortcuts",
"roledescription" "roledescription",
],
"description": "States which apply to every AX node."
},
{
"id": "AXLiveRegionAttributes",
"type": "string",
"enum": [
"live", "live",
"atomic", "atomic",
"relevant", "relevant",
"root" "root",
],
"description": "Attributes which apply to nodes in live regions."
},
{
"id": "AXWidgetAttributes",
"type": "string",
"enum": [
"autocomplete", "autocomplete",
"haspopup", "haspopup",
"level", "level",
@ -11137,26 +11237,12 @@
"required", "required",
"valuemin", "valuemin",
"valuemax", "valuemax",
"valuetext" "valuetext",
],
"description": "Attributes which apply to widgets."
},
{
"id": "AXWidgetStates",
"type": "string",
"enum": [
"checked", "checked",
"expanded", "expanded",
"modal", "modal",
"pressed", "pressed",
"selected" "selected",
],
"description": "States which apply to widgets."
},
{
"id": "AXRelationshipAttributes",
"type": "string",
"enum": [
"activedescendant", "activedescendant",
"controls", "controls",
"describedby", "describedby",
@ -11166,7 +11252,7 @@
"labelledby", "labelledby",
"owns" "owns"
], ],
"description": "Relationships between elements other than parent/child/sibling." "description": "Values of AXProperty name: from 'busy' to 'roledescription' - states which apply to every AX node, from 'live' to 'root' - attributes which apply to nodes in live regions, from 'autocomplete' to 'valuetext' - attributes which apply to widgets, from 'checked' to 'selected' - states which apply to widgets, from 'activedescendant' to 'owns' - relationships between elements other than parent/child/sibling."
}, },
{ {
"id": "AXNode", "id": "AXNode",
@ -12527,15 +12613,13 @@
"$ref": "StackTrace", "$ref": "StackTrace",
"optional": true, "optional": true,
"description": "Asynchronous JavaScript stack trace that preceded this stack, if available." "description": "Asynchronous JavaScript stack trace that preceded this stack, if available."
},
{
"name": "promiseCreationFrame",
"$ref": "CallFrame",
"optional": true,
"experimental": true,
"description": "Creation frame of the Promise which produced the next synchronous trace when resolved, if available."
} }
] ]
},
{
"id": "AsyncTaskId",
"type": "string",
"experimental": true
} }
], ],
"commands": [ "commands": [
@ -13509,12 +13593,32 @@
], ],
"description": "Continues execution until specific location is reached." "description": "Continues execution until specific location is reached."
}, },
{
"name": "pauseOnAsyncTask",
"parameters": [
{
"name": "asyncTaskId",
"$ref": "Runtime.AsyncTaskId",
"description": "Debugger will pause when given async task is started."
}
],
"experimental": true
},
{ {
"name": "stepOver", "name": "stepOver",
"description": "Steps over the statement." "description": "Steps over the statement."
}, },
{ {
"name": "stepInto", "name": "stepInto",
"parameters": [
{
"name": "breakOnAsyncCall",
"type": "boolean",
"optional": true,
"experimental": true,
"description": "Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause."
}
],
"description": "Steps into the function call." "description": "Steps into the function call."
}, },
{ {
@ -13527,7 +13631,7 @@
}, },
{ {
"name": "scheduleStepIntoAsync", "name": "scheduleStepIntoAsync",
"description": "Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.", "description": "This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.",
"experimental": true "experimental": true
}, },
{ {
@ -13778,6 +13882,18 @@
], ],
"description": "Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually." "description": "Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually."
}, },
{
"name": "setReturnValue",
"parameters": [
{
"name": "newValue",
"$ref": "Runtime.CallArgument",
"description": "New return value."
}
],
"experimental": true,
"description": "Changes return value in top frame. Available only at return break position."
},
{ {
"name": "setAsyncCallStackDepth", "name": "setAsyncCallStackDepth",
"parameters": [ "parameters": [
@ -14068,6 +14184,13 @@
"$ref": "Runtime.StackTrace", "$ref": "Runtime.StackTrace",
"optional": true, "optional": true,
"description": "Async stack trace, if any." "description": "Async stack trace, if any."
},
{
"name": "scheduledAsyncTaskId",
"$ref": "Runtime.AsyncTaskId",
"optional": true,
"experimental": true,
"description": "Scheduled async task id."
} }
], ],
"description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria." "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria."
@ -14748,6 +14871,16 @@
"description": "Recorded sampling heap profile." "description": "Recorded sampling heap profile."
} }
] ]
},
{
"name": "getSamplingProfile",
"returns": [
{
"name": "profile",
"$ref": "SamplingHeapProfile",
"description": "Return the sampling profile being collected."
}
]
} }
], ],
"events": [ "events": [