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

View File

@ -243,8 +243,8 @@ type AXRelatedNode struct {
// AXProperty [no description].
type AXProperty struct {
Name string `json:"name"` // The name of this property.
Value *AXValue `json:"value"` // The value of this property.
Name AXPropertyName `json:"name"` // The name of this property.
Value *AXValue `json:"value"` // The value of this property.
}
// AXValue a single computed AX property.
@ -255,289 +255,149 @@ type AXValue struct {
Sources []*AXValueSource `json:"sources,omitempty"` // The sources which contributed to the computation of this property.
}
// AXGlobalStates states which apply to every AX node.
type AXGlobalStates string
// AXPropertyName 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.
type AXPropertyName string
// String returns the AXGlobalStates as string value.
func (t AXGlobalStates) String() string {
// String returns the AXPropertyName as string value.
func (t AXPropertyName) String() string {
return string(t)
}
// AXGlobalStates values.
// AXPropertyName values.
const (
AXGlobalStatesBusy AXGlobalStates = "busy"
AXGlobalStatesDisabled AXGlobalStates = "disabled"
AXGlobalStatesHidden AXGlobalStates = "hidden"
AXGlobalStatesHiddenRoot AXGlobalStates = "hiddenRoot"
AXGlobalStatesInvalid AXGlobalStates = "invalid"
AXGlobalStatesKeyshortcuts AXGlobalStates = "keyshortcuts"
AXGlobalStatesRoledescription AXGlobalStates = "roledescription"
AXPropertyNameBusy AXPropertyName = "busy"
AXPropertyNameDisabled AXPropertyName = "disabled"
AXPropertyNameHidden AXPropertyName = "hidden"
AXPropertyNameHiddenRoot AXPropertyName = "hiddenRoot"
AXPropertyNameInvalid AXPropertyName = "invalid"
AXPropertyNameKeyshortcuts AXPropertyName = "keyshortcuts"
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.
func (t AXGlobalStates) MarshalEasyJSON(out *jwriter.Writer) {
func (t AXPropertyName) MarshalEasyJSON(out *jwriter.Writer) {
out.String(string(t))
}
// MarshalJSON satisfies json.Marshaler.
func (t AXGlobalStates) MarshalJSON() ([]byte, error) {
func (t AXPropertyName) MarshalJSON() ([]byte, error) {
return easyjson.Marshal(t)
}
// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (t *AXGlobalStates) UnmarshalEasyJSON(in *jlexer.Lexer) {
switch AXGlobalStates(in.String()) {
case AXGlobalStatesBusy:
*t = AXGlobalStatesBusy
case AXGlobalStatesDisabled:
*t = AXGlobalStatesDisabled
case AXGlobalStatesHidden:
*t = AXGlobalStatesHidden
case AXGlobalStatesHiddenRoot:
*t = AXGlobalStatesHiddenRoot
case AXGlobalStatesInvalid:
*t = AXGlobalStatesInvalid
case AXGlobalStatesKeyshortcuts:
*t = AXGlobalStatesKeyshortcuts
case AXGlobalStatesRoledescription:
*t = AXGlobalStatesRoledescription
func (t *AXPropertyName) UnmarshalEasyJSON(in *jlexer.Lexer) {
switch AXPropertyName(in.String()) {
case AXPropertyNameBusy:
*t = AXPropertyNameBusy
case AXPropertyNameDisabled:
*t = AXPropertyNameDisabled
case AXPropertyNameHidden:
*t = AXPropertyNameHidden
case AXPropertyNameHiddenRoot:
*t = AXPropertyNameHiddenRoot
case AXPropertyNameInvalid:
*t = AXPropertyNameInvalid
case AXPropertyNameKeyshortcuts:
*t = AXPropertyNameKeyshortcuts
case AXPropertyNameRoledescription:
*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:
in.AddError(errors.New("unknown AXGlobalStates value"))
in.AddError(errors.New("unknown AXPropertyName value"))
}
}
// UnmarshalJSON satisfies json.Unmarshaler.
func (t *AXGlobalStates) 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 {
func (t *AXPropertyName) UnmarshalJSON(buf []byte) error {
return easyjson.Unmarshal(buf, t)
}

View File

@ -57,24 +57,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"animationId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.AnimationID))
}
first = false
out.RawString("\"animationId\":")
out.String(string(in.AnimationID))
if !first {
out.RawByte(',')
{
const prefix string = ",\"duration\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Duration))
}
first = false
out.RawString("\"duration\":")
out.Float64(float64(in.Duration))
if !first {
out.RawByte(',')
{
const prefix string = ",\"delay\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Delay))
}
first = false
out.RawString("\"delay\":")
out.Float64(float64(in.Delay))
out.RawByte('}')
}
@ -136,12 +148,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation1(out *jwriter.Writer
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"playbackRate\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.PlaybackRate))
}
first = false
out.RawString("\"playbackRate\":")
out.Float64(float64(in.PlaybackRate))
out.RawByte('}')
}
@ -226,29 +242,37 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation2(out *jwriter.Writer
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"animations\":")
if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v2, v3 := range in.Animations {
if v2 > 0 {
out.RawByte(',')
}
out.String(string(v3))
{
const prefix string = ",\"animations\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v2, v3 := range in.Animations {
if v2 > 0 {
out.RawByte(',')
}
out.String(string(v3))
}
out.RawByte(']')
}
out.RawByte(']')
}
if !first {
out.RawByte(',')
{
const prefix string = ",\"paused\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Paused))
}
first = false
out.RawString("\"paused\":")
out.Bool(bool(in.Paused))
out.RawByte('}')
}
@ -333,29 +357,37 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation3(out *jwriter.Writer
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"animations\":")
if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v5, v6 := range in.Animations {
if v5 > 0 {
out.RawByte(',')
}
out.String(string(v6))
{
const prefix string = ",\"animations\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v5, v6 := range in.Animations {
if v5 > 0 {
out.RawByte(',')
}
out.String(string(v6))
}
out.RawByte(']')
}
out.RawByte(']')
}
if !first {
out.RawByte(',')
{
const prefix string = ",\"currentTime\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.CurrentTime))
}
first = false
out.RawString("\"currentTime\":")
out.Float64(float64(in.CurrentTime))
out.RawByte('}')
}
@ -426,16 +458,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation4(out *jwriter.Writer
first := true
_ = first
if in.RemoteObject != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"remoteObject\":")
if in.RemoteObject == nil {
out.RawString("null")
const prefix string = ",\"remoteObject\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.RemoteObject).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.RemoteObject).MarshalEasyJSON(out)
}
out.RawByte('}')
}
@ -498,12 +528,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation5(out *jwriter.Writer
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"animationId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.AnimationID))
}
first = false
out.RawString("\"animationId\":")
out.String(string(in.AnimationID))
out.RawByte('}')
}
@ -586,22 +620,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation6(out *jwriter.Writer
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"animations\":")
if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v8, v9 := range in.Animations {
if v8 > 0 {
out.RawByte(',')
}
out.String(string(v9))
{
const prefix string = ",\"animations\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v8, v9 := range in.Animations {
if v8 > 0 {
out.RawByte(',')
}
out.String(string(v9))
}
out.RawByte(']')
}
out.RawByte(']')
}
out.RawByte('}')
}
@ -696,33 +734,39 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation7(out *jwriter.Writer
first := true
_ = first
if in.Name != "" {
if !first {
out.RawByte(',')
const prefix string = ",\"name\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"name\":")
out.String(string(in.Name))
}
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"keyframes\":")
if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v11, v12 := range in.Keyframes {
if v11 > 0 {
out.RawByte(',')
}
if v12 == nil {
out.RawString("null")
} else {
(*v12).MarshalEasyJSON(out)
}
{
const prefix string = ",\"keyframes\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v11, v12 := range in.Keyframes {
if v11 > 0 {
out.RawByte(',')
}
if v12 == nil {
out.RawString("null")
} else {
(*v12).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
out.RawByte(']')
}
out.RawByte('}')
}
@ -787,18 +831,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation8(out *jwriter.Writer
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"offset\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Offset))
}
first = false
out.RawString("\"offset\":")
out.String(string(in.Offset))
if !first {
out.RawByte(',')
{
const prefix string = ",\"easing\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Easing))
}
first = false
out.RawString("\"easing\":")
out.String(string(in.Easing))
out.RawByte('}')
}
@ -861,11 +913,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation9(out *jwriter.Writer
first := true
_ = first
if in.PlaybackRate != 0 {
if !first {
out.RawByte(',')
const prefix string = ",\"playbackRate\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"playbackRate\":")
out.Float64(float64(in.PlaybackRate))
}
out.RawByte('}')
@ -989,11 +1043,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation11(out *jwriter.Write
first := true
_ = first
if in.CurrentTime != 0 {
if !first {
out.RawByte(',')
const prefix string = ",\"currentTime\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"currentTime\":")
out.Float64(float64(in.CurrentTime))
}
out.RawByte('}')
@ -1057,12 +1113,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation12(out *jwriter.Write
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"id\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ID))
}
first = false
out.RawString("\"id\":")
out.String(string(in.ID))
out.RawByte('}')
}
@ -1132,15 +1192,19 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation13(out *jwriter.Write
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"animation\":")
if in.Animation == nil {
out.RawString("null")
} else {
(*in.Animation).MarshalEasyJSON(out)
{
const prefix string = ",\"animation\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Animation == nil {
out.RawString("null")
} else {
(*in.Animation).MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -1203,12 +1267,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation14(out *jwriter.Write
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"id\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ID))
}
first = false
out.RawString("\"id\":")
out.String(string(in.ID))
out.RawByte('}')
}
@ -1270,12 +1338,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation15(out *jwriter.Write
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"id\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ID))
}
first = false
out.RawString("\"id\":")
out.String(string(in.ID))
out.RawByte('}')
}
@ -1422,74 +1494,106 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation17(out *jwriter.Write
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"delay\":")
out.Float64(float64(in.Delay))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"endDelay\":")
out.Float64(float64(in.EndDelay))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"iterationStart\":")
out.Float64(float64(in.IterationStart))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"iterations\":")
out.Float64(float64(in.Iterations))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"duration\":")
out.Float64(float64(in.Duration))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"direction\":")
out.String(string(in.Direction))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"fill\":")
out.String(string(in.Fill))
if in.BackendNodeID != 0 {
if !first {
out.RawByte(',')
{
const prefix string = ",\"delay\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Delay))
}
{
const prefix string = ",\"endDelay\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.EndDelay))
}
{
const prefix string = ",\"iterationStart\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.IterationStart))
}
{
const prefix string = ",\"iterations\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Iterations))
}
{
const prefix string = ",\"duration\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Duration))
}
{
const prefix string = ",\"direction\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Direction))
}
{
const prefix string = ",\"fill\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Fill))
}
if in.BackendNodeID != 0 {
const prefix string = ",\"backendNodeId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"backendNodeId\":")
out.Int64(int64(in.BackendNodeID))
}
if in.KeyframesRule != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"keyframesRule\":")
if in.KeyframesRule == nil {
out.RawString("null")
const prefix string = ",\"keyframesRule\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.KeyframesRule).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.KeyframesRule).MarshalEasyJSON(out)
}
if !first {
out.RawByte(',')
{
const prefix string = ",\"easing\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Easing))
}
first = false
out.RawString("\"easing\":")
out.String(string(in.Easing))
out.RawByte('}')
}
@ -1636,72 +1740,104 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation19(out *jwriter.Write
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"id\":")
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")
{
const prefix string = ",\"id\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.Source).MarshalEasyJSON(out)
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)
}
if in.CSSID != "" {
if !first {
out.RawByte(',')
const prefix string = ",\"cssId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"cssId\":")
out.String(string(in.CSSID))
}
out.RawByte('}')

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -104,6 +104,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandPageSetAutoAttachToCreatedPages:
return emptyVal, nil
case cdp.CommandPageSetLifecycleEventsEnabled:
return emptyVal, nil
case cdp.CommandPageReload:
return emptyVal, nil
@ -321,7 +324,7 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
v = new(emulation.CanEmulateReturns)
case cdp.CommandEmulationSetVirtualTimePolicy:
return emptyVal, nil
v = new(emulation.SetVirtualTimePolicyReturns)
case cdp.CommandEmulationSetNavigatorOverrides:
return emptyVal, nil
@ -368,6 +371,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandNetworkSetUserAgentOverride:
return emptyVal, nil
case cdp.CommandNetworkSearchInResponseBody:
v = new(network.SearchInResponseBodyReturns)
case cdp.CommandNetworkSetExtraHTTPHeaders:
return emptyVal, nil
@ -380,15 +386,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandNetworkReplayXHR:
return emptyVal, nil
case cdp.CommandNetworkCanClearBrowserCache:
v = new(network.CanClearBrowserCacheReturns)
case cdp.CommandNetworkClearBrowserCache:
return emptyVal, nil
case cdp.CommandNetworkCanClearBrowserCookies:
v = new(network.CanClearBrowserCookiesReturns)
case cdp.CommandNetworkClearBrowserCookies:
return emptyVal, nil
@ -407,9 +407,6 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandNetworkSetCookies:
return emptyVal, nil
case cdp.CommandNetworkCanEmulateNetworkConditions:
v = new(network.CanEmulateNetworkConditionsReturns)
case cdp.CommandNetworkEmulateNetworkConditions:
return emptyVal, nil
@ -431,6 +428,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandNetworkContinueInterceptedRequest:
return emptyVal, nil
case cdp.CommandNetworkGetResponseBodyForInterception:
v = new(network.GetResponseBodyForInterceptionReturns)
case cdp.EventNetworkResourceChangedPriority:
v = new(network.EventResourceChangedPriority)
@ -1268,6 +1268,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandDebuggerContinueToLocation:
return emptyVal, nil
case cdp.CommandDebuggerPauseOnAsyncTask:
return emptyVal, nil
case cdp.CommandDebuggerStepOver:
return emptyVal, nil
@ -1307,6 +1310,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandDebuggerSetVariableValue:
return emptyVal, nil
case cdp.CommandDebuggerSetReturnValue:
return emptyVal, nil
case cdp.CommandDebuggerSetAsyncCallStackDepth:
return emptyVal, nil
@ -1406,6 +1412,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandHeapProfilerStopSampling:
v = new(heapprofiler.StopSamplingReturns)
case cdp.CommandHeapProfilerGetSamplingProfile:
v = new(heapprofiler.GetSamplingProfileReturns)
case cdp.EventHeapProfilerAddHeapSnapshotChunk:
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
if len(in.TableNames) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"tableNames\":")
if in.TableNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
const prefix string = ",\"tableNames\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[')
for v2, v3 := range in.TableNames {
if v2 > 0 {
@ -153,12 +153,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase1(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"databaseId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DatabaseID))
}
first = false
out.RawString("\"databaseId\":")
out.String(string(in.DatabaseID))
out.RawByte('}')
}
@ -275,14 +279,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase2(out *jwriter.Writer,
first := true
_ = first
if len(in.ColumnNames) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"columnNames\":")
if in.ColumnNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
const prefix string = ",\"columnNames\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[')
for v6, v7 := range in.ColumnNames {
if v6 > 0 {
@ -294,14 +298,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase2(out *jwriter.Writer,
}
}
if len(in.Values) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"values\":")
if in.Values == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
const prefix string = ",\"values\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[')
for v8, v9 := range in.Values {
if v8 > 0 {
@ -313,16 +317,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase2(out *jwriter.Writer,
}
}
if in.SQLError != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"sqlError\":")
if in.SQLError == nil {
out.RawString("null")
const prefix string = ",\"sqlError\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.SQLError).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.SQLError).MarshalEasyJSON(out)
}
out.RawByte('}')
}
@ -387,18 +389,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase3(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"databaseId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DatabaseID))
}
first = false
out.RawString("\"databaseId\":")
out.String(string(in.DatabaseID))
if !first {
out.RawByte(',')
{
const prefix string = ",\"query\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Query))
}
first = false
out.RawString("\"query\":")
out.String(string(in.Query))
out.RawByte('}')
}
@ -468,15 +478,19 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase4(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"database\":")
if in.Database == nil {
out.RawString("null")
} else {
(*in.Database).MarshalEasyJSON(out)
{
const prefix string = ",\"database\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Database == nil {
out.RawString("null")
} else {
(*in.Database).MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -541,18 +555,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase5(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"message\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Message))
}
first = false
out.RawString("\"message\":")
out.String(string(in.Message))
if !first {
out.RawByte(',')
{
const prefix string = ",\"code\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Code))
}
first = false
out.RawString("\"code\":")
out.Int64(int64(in.Code))
out.RawByte('}')
}
@ -738,30 +760,46 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase8(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"id\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ID))
}
first = false
out.RawString("\"id\":")
out.String(string(in.ID))
if !first {
out.RawByte(',')
{
const prefix string = ",\"domain\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Domain))
}
first = false
out.RawString("\"domain\":")
out.String(string(in.Domain))
if !first {
out.RawByte(',')
{
const prefix string = ",\"name\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name))
}
first = false
out.RawString("\"name\":")
out.String(string(in.Name))
if !first {
out.RawByte(',')
{
const prefix string = ",\"version\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Version))
}
first = false
out.RawString("\"version\":")
out.String(string(in.Version))
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)
}
// 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.
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.
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.
//
// parameters:
func StepInto() *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
// target handler.
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.
@ -385,16 +417,18 @@ func (p *PauseParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandDebuggerPause, nil, nil)
}
// ScheduleStepIntoAsyncParams 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.
// ScheduleStepIntoAsyncParams 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.
type ScheduleStepIntoAsyncParams struct{}
// ScheduleStepIntoAsync 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.
// ScheduleStepIntoAsync 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.
func ScheduleStepIntoAsync() *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)
}
// 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
// tracking.
type SetAsyncCallStackDepthParams struct {

File diff suppressed because it is too large Load Diff

View File

@ -57,11 +57,12 @@ type EventBreakpointResolved struct {
// EventPaused fired when the virtual machine stopped on breakpoint or
// exception or any other stop criteria.
type EventPaused struct {
CallFrames []*CallFrame `json:"callFrames"` // Call stack the virtual machine stopped on.
Reason PausedReason `json:"reason"` // Pause reason.
Data easyjson.RawMessage `json:"data,omitempty"`
HitBreakpoints []string `json:"hitBreakpoints,omitempty"` // Hit breakpoints IDs
AsyncStackTrace *runtime.StackTrace `json:"asyncStackTrace,omitempty"` // Async stack trace, if any.
CallFrames []*CallFrame `json:"callFrames"` // Call stack the virtual machine stopped on.
Reason PausedReason `json:"reason"` // Pause reason.
Data easyjson.RawMessage `json:"data,omitempty"`
HitBreakpoints []string `json:"hitBreakpoints,omitempty"` // Hit breakpoints IDs
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.

View File

@ -56,24 +56,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation(out *jwriter
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"alpha\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Alpha))
}
first = false
out.RawString("\"alpha\":")
out.Float64(float64(in.Alpha))
if !first {
out.RawByte(',')
{
const prefix string = ",\"beta\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Beta))
}
first = false
out.RawString("\"beta\":")
out.Float64(float64(in.Beta))
if !first {
out.RawByte(',')
{
const prefix string = ",\"gamma\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.Gamma))
}
first = false
out.RawString("\"gamma\":")
out.Float64(float64(in.Gamma))
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('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"url\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.URL))
}
first = false
out.RawString("\"url\":")
out.String(string(in.URL))
out.RawByte('}')
}
@ -120,12 +124,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger1(out *jwriter.Writ
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"eventName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.EventName))
}
first = false
out.RawString("\"eventName\":")
out.String(string(in.EventName))
out.RawByte('}')
}
@ -189,18 +197,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger2(out *jwriter.Writ
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"eventName\":")
out.String(string(in.EventName))
if in.TargetName != "" {
if !first {
out.RawByte(',')
{
const prefix string = ",\"eventName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.EventName))
}
if in.TargetName != "" {
const prefix string = ",\"targetName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"targetName\":")
out.String(string(in.TargetName))
}
out.RawByte('}')
@ -266,18 +280,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger3(out *jwriter.Writ
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"nodeId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.NodeID))
}
first = false
out.RawString("\"nodeId\":")
out.Int64(int64(in.NodeID))
if !first {
out.RawByte(',')
{
const prefix string = ",\"type\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out)
}
first = false
out.RawString("\"type\":")
(in.Type).MarshalEasyJSON(out)
out.RawByte('}')
}
@ -339,12 +361,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger4(out *jwriter.Writ
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"url\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.URL))
}
first = false
out.RawString("\"url\":")
out.String(string(in.URL))
out.RawByte('}')
}
@ -406,12 +432,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger5(out *jwriter.Writ
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"eventName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.EventName))
}
first = false
out.RawString("\"eventName\":")
out.String(string(in.EventName))
out.RawByte('}')
}
@ -475,18 +505,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger6(out *jwriter.Writ
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"eventName\":")
out.String(string(in.EventName))
if in.TargetName != "" {
if !first {
out.RawByte(',')
{
const prefix string = ",\"eventName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.EventName))
}
if in.TargetName != "" {
const prefix string = ",\"targetName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"targetName\":")
out.String(string(in.TargetName))
}
out.RawByte('}')
@ -552,18 +588,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger7(out *jwriter.Writ
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"nodeId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.NodeID))
}
first = false
out.RawString("\"nodeId\":")
out.Int64(int64(in.NodeID))
if !first {
out.RawByte(',')
{
const prefix string = ",\"type\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out)
}
first = false
out.RawString("\"type\":")
(in.Type).MarshalEasyJSON(out)
out.RawByte('}')
}
@ -655,14 +699,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger8(out *jwriter.Writ
first := true
_ = first
if len(in.Listeners) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"listeners\":")
if in.Listeners == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
const prefix string = ",\"listeners\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[')
for v2, v3 := range in.Listeners {
if v2 > 0 {
@ -742,26 +786,34 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger9(out *jwriter.Writ
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"objectId\":")
out.String(string(in.ObjectID))
if in.Depth != 0 {
if !first {
out.RawByte(',')
{
const prefix string = ",\"objectId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ObjectID))
}
if in.Depth != 0 {
const prefix string = ",\"depth\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"depth\":")
out.Int64(int64(in.Depth))
}
if in.Pierce {
if !first {
out.RawByte(',')
const prefix string = ",\"pierce\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"pierce\":")
out.Bool(bool(in.Pierce))
}
out.RawByte('}')
@ -859,78 +911,104 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger10(out *jwriter.Wri
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"type\":")
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")
{
const prefix string = ",\"type\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.Handler).MarshalEasyJSON(out)
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)
}
if in.OriginalHandler != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"originalHandler\":")
if in.OriginalHandler == nil {
out.RawString("null")
const prefix string = ",\"originalHandler\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.OriginalHandler).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.OriginalHandler).MarshalEasyJSON(out)
}
if in.BackendNodeID != 0 {
if !first {
out.RawByte(',')
const prefix string = ",\"backendNodeId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"backendNodeId\":")
out.Int64(int64(in.BackendNodeID))
}
out.RawByte('}')

View File

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

View File

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

View File

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

View File

@ -13,13 +13,13 @@ type EventVirtualTimeBudgetExpired struct{}
// EventVirtualTimeAdvanced notification sent after the virtual time has
// advanced.
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
// paused.
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.

File diff suppressed because it is too large Load Diff

View File

@ -56,19 +56,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeadlessexperimental(out *jwri
first := true
_ = first
if in.Format != "" {
if !first {
out.RawByte(',')
const prefix string = ",\"format\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"format\":")
(in.Format).MarshalEasyJSON(out)
}
if in.Quality != 0 {
if !first {
out.RawByte(',')
const prefix string = ",\"quality\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"quality\":")
out.Int64(int64(in.Quality))
}
out.RawByte('}')
@ -132,12 +136,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeadlessexperimental1(out *jwr
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"needsBeginFrames\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.NeedsBeginFrames))
}
first = false
out.RawString("\"needsBeginFrames\":")
out.Bool(bool(in.NeedsBeginFrames))
out.RawByte('}')
}
@ -381,27 +389,33 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeadlessexperimental5(out *jwr
first := true
_ = first
if in.HasDamage {
if !first {
out.RawByte(',')
const prefix string = ",\"hasDamage\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"hasDamage\":")
out.Bool(bool(in.HasDamage))
}
if in.MainFrameContentUpdated {
if !first {
out.RawByte(',')
const prefix string = ",\"mainFrameContentUpdated\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"mainFrameContentUpdated\":")
out.Bool(bool(in.MainFrameContentUpdated))
}
if in.ScreenshotData != "" {
if !first {
out.RawByte(',')
const prefix string = ",\"screenshotData\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"screenshotData\":")
out.String(string(in.ScreenshotData))
}
out.RawByte('}')
@ -496,48 +510,44 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeadlessexperimental6(out *jwr
first := true
_ = first
if in.FrameTime != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"frameTime\":")
if in.FrameTime == nil {
out.RawString("null")
const prefix string = ",\"frameTime\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.FrameTime).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.FrameTime).MarshalEasyJSON(out)
}
if in.Deadline != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"deadline\":")
if in.Deadline == nil {
out.RawString("null")
const prefix string = ",\"deadline\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.Deadline).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.Deadline).MarshalEasyJSON(out)
}
if in.Interval != 0 {
if !first {
out.RawByte(',')
const prefix string = ",\"interval\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"interval\":")
out.Float64(float64(in.Interval))
}
if in.Screenshot != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"screenshot\":")
if in.Screenshot == nil {
out.RawString("null")
const prefix string = ",\"screenshot\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.Screenshot).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.Screenshot).MarshalEasyJSON(out)
}
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
}
// 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
if in.DatabaseWithObjectStores != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"databaseWithObjectStores\":")
if in.DatabaseWithObjectStores == nil {
out.RawString("null")
const prefix string = ",\"databaseWithObjectStores\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.DatabaseWithObjectStores).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.DatabaseWithObjectStores).MarshalEasyJSON(out)
}
out.RawByte('}')
}
@ -136,18 +134,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb1(out *jwriter.Writer
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"securityOrigin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SecurityOrigin))
}
first = false
out.RawString("\"securityOrigin\":")
out.String(string(in.SecurityOrigin))
if !first {
out.RawByte(',')
{
const prefix string = ",\"databaseName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DatabaseName))
}
first = false
out.RawString("\"databaseName\":")
out.String(string(in.DatabaseName))
out.RawByte('}')
}
@ -231,14 +237,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb2(out *jwriter.Writer
first := true
_ = first
if len(in.DatabaseNames) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"databaseNames\":")
if in.DatabaseNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
const prefix string = ",\"databaseNames\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[')
for v2, v3 := range in.DatabaseNames {
if v2 > 0 {
@ -310,12 +316,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb3(out *jwriter.Writer
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"securityOrigin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SecurityOrigin))
}
first = false
out.RawString("\"securityOrigin\":")
out.String(string(in.SecurityOrigin))
out.RawByte('}')
}
@ -409,14 +419,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb4(out *jwriter.Writer
first := true
_ = first
if len(in.ObjectStoreDataEntries) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"objectStoreDataEntries\":")
if in.ObjectStoreDataEntries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
const prefix string = ",\"objectStoreDataEntries\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[')
for v5, v6 := range in.ObjectStoreDataEntries {
if v5 > 0 {
@ -432,11 +442,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb4(out *jwriter.Writer
}
}
if in.HasMore {
if !first {
out.RawByte(',')
const prefix string = ",\"hasMore\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"hasMore\":")
out.Bool(bool(in.HasMore))
}
out.RawByte('}')
@ -520,53 +532,75 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb5(out *jwriter.Writer
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"securityOrigin\":")
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")
{
const prefix string = ",\"securityOrigin\":"
if first {
first = false
out.RawString(prefix[1:])
} 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('}')
}
@ -643,34 +677,50 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb6(out *jwriter.Writer
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"name\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name))
}
first = false
out.RawString("\"name\":")
out.String(string(in.Name))
if !first {
out.RawByte(',')
{
const prefix string = ",\"keyPath\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.KeyPath == nil {
out.RawString("null")
} else {
(*in.KeyPath).MarshalEasyJSON(out)
}
}
first = false
out.RawString("\"keyPath\":")
if in.KeyPath == nil {
out.RawString("null")
} else {
(*in.KeyPath).MarshalEasyJSON(out)
{
const prefix string = ",\"unique\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Unique))
}
if !first {
out.RawByte(',')
{
const prefix string = ",\"multiEntry\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.MultiEntry))
}
first = false
out.RawString("\"unique\":")
out.Bool(bool(in.Unique))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"multiEntry\":")
out.Bool(bool(in.MultiEntry))
out.RawByte('}')
}
@ -775,48 +825,64 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb7(out *jwriter.Writer
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"name\":")
out.String(string(in.Name))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"keyPath\":")
if in.KeyPath == nil {
out.RawString("null")
} else {
(*in.KeyPath).MarshalEasyJSON(out)
}
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"autoIncrement\":")
out.Bool(bool(in.AutoIncrement))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"indexes\":")
if in.Indexes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v8, v9 := range in.Indexes {
if v8 > 0 {
out.RawByte(',')
}
if v9 == nil {
out.RawString("null")
} else {
(*v9).MarshalEasyJSON(out)
}
{
const prefix string = ",\"name\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name))
}
{
const prefix string = ",\"keyPath\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.KeyPath == nil {
out.RawString("null")
} else {
(*in.KeyPath).MarshalEasyJSON(out)
}
}
{
const prefix string = ",\"autoIncrement\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.AutoIncrement))
}
{
const prefix string = ",\"indexes\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Indexes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v8, v9 := range in.Indexes {
if v8 > 0 {
out.RawByte(',')
}
if v9 == nil {
out.RawString("null")
} else {
(*v9).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
out.RawByte(']')
}
out.RawByte('}')
}
@ -902,41 +968,45 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb8(out *jwriter.Writer
first := true
_ = first
if in.Lower != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"lower\":")
if in.Lower == nil {
out.RawString("null")
const prefix string = ",\"lower\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.Lower).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.Lower).MarshalEasyJSON(out)
}
if in.Upper != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"upper\":")
if in.Upper == nil {
out.RawString("null")
const prefix string = ",\"upper\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.Upper).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.Upper).MarshalEasyJSON(out)
}
if !first {
out.RawByte(',')
{
const prefix string = ",\"lowerOpen\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.LowerOpen))
}
first = false
out.RawString("\"lowerOpen\":")
out.Bool(bool(in.LowerOpen))
if !first {
out.RawByte(',')
{
const prefix string = ",\"upperOpen\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.UpperOpen))
}
first = false
out.RawString("\"upperOpen\":")
out.Bool(bool(in.UpperOpen))
out.RawByte('}')
}
@ -1023,29 +1093,35 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb9(out *jwriter.Writer
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"type\":")
(in.Type).MarshalEasyJSON(out)
if in.String != "" {
if !first {
out.RawByte(',')
{
const prefix string = ",\"type\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out)
}
if in.String != "" {
const prefix string = ",\"string\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"string\":")
out.String(string(in.String))
}
if len(in.Array) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"array\":")
if in.Array == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
const prefix string = ",\"array\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[')
for v11, v12 := range in.Array {
if v11 > 0 {
@ -1154,45 +1230,55 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb10(out *jwriter.Write
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"type\":")
(in.Type).MarshalEasyJSON(out)
if in.Number != 0 {
if !first {
out.RawByte(',')
{
const prefix string = ",\"type\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Type).MarshalEasyJSON(out)
}
if in.Number != 0 {
const prefix string = ",\"number\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"number\":")
out.Float64(float64(in.Number))
}
if in.String != "" {
if !first {
out.RawByte(',')
const prefix string = ",\"string\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"string\":")
out.String(string(in.String))
}
if in.Date != 0 {
if !first {
out.RawByte(',')
const prefix string = ",\"date\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"date\":")
out.Float64(float64(in.Date))
}
if len(in.Array) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"array\":")
if in.Array == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
const prefix string = ",\"array\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[')
for v14, v15 := range in.Array {
if v14 > 0 {
@ -1388,18 +1474,26 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb13(out *jwriter.Write
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"securityOrigin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SecurityOrigin))
}
first = false
out.RawString("\"securityOrigin\":")
out.String(string(in.SecurityOrigin))
if !first {
out.RawByte(',')
{
const prefix string = ",\"databaseName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DatabaseName))
}
first = false
out.RawString("\"databaseName\":")
out.String(string(in.DatabaseName))
out.RawByte('}')
}
@ -1494,38 +1588,50 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb14(out *jwriter.Write
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"name\":")
out.String(string(in.Name))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"version\":")
out.Int64(int64(in.Version))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"objectStores\":")
if in.ObjectStores == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v17, v18 := range in.ObjectStores {
if v17 > 0 {
out.RawByte(',')
}
if v18 == nil {
out.RawString("null")
} else {
(*v18).MarshalEasyJSON(out)
}
{
const prefix string = ",\"name\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name))
}
{
const prefix string = ",\"version\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.Version))
}
{
const prefix string = ",\"objectStores\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.ObjectStores == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v17, v18 := range in.ObjectStores {
if v17 > 0 {
out.RawByte(',')
}
if v18 == nil {
out.RawString("null")
} else {
(*v18).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
out.RawByte(']')
}
out.RawByte('}')
}
@ -1616,35 +1722,47 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb15(out *jwriter.Write
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"key\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Key == nil {
out.RawString("null")
} else {
(*in.Key).MarshalEasyJSON(out)
}
}
first = false
out.RawString("\"key\":")
if in.Key == nil {
out.RawString("null")
} else {
(*in.Key).MarshalEasyJSON(out)
{
const prefix string = ",\"primaryKey\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.PrimaryKey == nil {
out.RawString("null")
} else {
(*in.PrimaryKey).MarshalEasyJSON(out)
}
}
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"primaryKey\":")
if in.PrimaryKey == nil {
out.RawString("null")
} else {
(*in.PrimaryKey).MarshalEasyJSON(out)
}
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"value\":")
if in.Value == nil {
out.RawString("null")
} else {
(*in.Value).MarshalEasyJSON(out)
{
const prefix string = ",\"value\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Value == nil {
out.RawString("null")
} else {
(*in.Value).MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -1711,24 +1829,36 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb16(out *jwriter.Write
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"securityOrigin\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SecurityOrigin))
}
first = false
out.RawString("\"securityOrigin\":")
out.String(string(in.SecurityOrigin))
if !first {
out.RawByte(',')
{
const prefix string = ",\"databaseName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DatabaseName))
}
first = false
out.RawString("\"databaseName\":")
out.String(string(in.DatabaseName))
if !first {
out.RawByte(',')
{
const prefix string = ",\"objectStoreName\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ObjectStoreName))
}
first = false
out.RawString("\"objectStoreName\":")
out.String(string(in.ObjectStoreName))
out.RawByte('}')
}

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

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

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -135,13 +135,14 @@ type EventEventSourceMessageReceived struct {
type EventRequestIntercepted struct {
InterceptionID InterceptionID `json:"interceptionId"` // Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch. Likewise if HTTP authentication is needed then the same fetch id will be used.
Request *Request `json:"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.
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.
AuthChallenge *AuthChallenge `json:"authChallenge,omitempty"` // Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.
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.
IsNavigationRequest bool `json:"isNavigationRequest"` // Whether this is a navigation request, which can abort the navigation completely.
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.
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.

View File

@ -15,6 +15,7 @@ import (
"encoding/base64"
cdp "github.com/knq/chromedp/cdp"
"github.com/knq/chromedp/cdp/debugger"
)
// 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)
}
// 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
// headers with the requests from this page.
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)
}
// 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.
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)
}
// 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.
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)
}
// 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.
type EmulateNetworkConditionsParams struct {
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) {
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.
}
// 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.
type RequestPattern struct {
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.
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.
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

View File

@ -56,12 +56,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay(out *jwriter.Writer, i
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"suspended\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Suspended))
}
first = false
out.RawString("\"suspended\":")
out.Bool(bool(in.Suspended))
out.RawByte('}')
}
@ -123,12 +127,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay1(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"show\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Show))
}
first = false
out.RawString("\"show\":")
out.Bool(bool(in.Show))
out.RawByte('}')
}
@ -190,12 +198,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay2(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"show\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Show))
}
first = false
out.RawString("\"show\":")
out.Bool(bool(in.Show))
out.RawByte('}')
}
@ -257,12 +269,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay3(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"result\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Result))
}
first = false
out.RawString("\"result\":")
out.Bool(bool(in.Result))
out.RawByte('}')
}
@ -324,12 +340,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay4(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"show\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Show))
}
first = false
out.RawString("\"show\":")
out.Bool(bool(in.Show))
out.RawByte('}')
}
@ -391,12 +411,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay5(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"show\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.Show))
}
first = false
out.RawString("\"show\":")
out.Bool(bool(in.Show))
out.RawByte('}')
}
@ -459,11 +483,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay6(out *jwriter.Writer,
first := true
_ = first
if in.Message != "" {
if !first {
out.RawByte(',')
const prefix string = ",\"message\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"message\":")
out.String(string(in.Message))
}
out.RawByte('}')
@ -537,23 +563,25 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay7(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"mode\":")
(in.Mode).MarshalEasyJSON(out)
if in.HighlightConfig != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"highlightConfig\":")
if in.HighlightConfig == nil {
out.RawString("null")
{
const prefix string = ",\"mode\":"
if first {
first = false
out.RawString(prefix[1:])
} 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('}')
}
@ -642,53 +670,65 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay8(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"x\":")
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")
{
const prefix string = ",\"x\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.Color).MarshalEasyJSON(out)
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)
}
if in.OutlineColor != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"outlineColor\":")
if in.OutlineColor == nil {
out.RawString("null")
const prefix string = ",\"outlineColor\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.OutlineColor).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.OutlineColor).MarshalEasyJSON(out)
}
out.RawByte('}')
}
@ -792,46 +832,46 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay9(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"quad\":")
if in.Quad == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v2, v3 := range in.Quad {
if v2 > 0 {
out.RawByte(',')
}
out.Float64(float64(v3))
{
const prefix string = ",\"quad\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Quad == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v2, v3 := range in.Quad {
if v2 > 0 {
out.RawByte(',')
}
out.Float64(float64(v3))
}
out.RawByte(']')
}
out.RawByte(']')
}
if in.Color != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"color\":")
if in.Color == nil {
out.RawString("null")
const prefix string = ",\"color\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.Color).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.Color).MarshalEasyJSON(out)
}
if in.OutlineColor != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"outlineColor\":")
if in.OutlineColor == nil {
out.RawString("null")
const prefix string = ",\"outlineColor\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.OutlineColor).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.OutlineColor).MarshalEasyJSON(out)
}
out.RawByte('}')
}
@ -908,38 +948,48 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay10(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"highlightConfig\":")
if in.HighlightConfig == nil {
out.RawString("null")
} else {
(*in.HighlightConfig).MarshalEasyJSON(out)
{
const prefix string = ",\"highlightConfig\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.HighlightConfig == nil {
out.RawString("null")
} else {
(*in.HighlightConfig).MarshalEasyJSON(out)
}
}
if in.NodeID != 0 {
if !first {
out.RawByte(',')
const prefix string = ",\"nodeId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"nodeId\":")
out.Int64(int64(in.NodeID))
}
if in.BackendNodeID != 0 {
if !first {
out.RawByte(',')
const prefix string = ",\"backendNodeId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"backendNodeId\":")
out.Int64(int64(in.BackendNodeID))
}
if in.ObjectID != "" {
if !first {
out.RawByte(',')
const prefix string = ",\"objectId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"objectId\":")
out.String(string(in.ObjectID))
}
out.RawByte('}')
@ -1023,35 +1073,35 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay11(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"frameId\":")
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")
{
const prefix string = ",\"frameId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.ContentColor).MarshalEasyJSON(out)
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)
}
if in.ContentOutlineColor != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"contentOutlineColor\":")
if in.ContentOutlineColor == nil {
out.RawString("null")
const prefix string = ",\"contentOutlineColor\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.ContentOutlineColor).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.ContentOutlineColor).MarshalEasyJSON(out)
}
out.RawByte('}')
}
@ -1203,140 +1253,134 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay12(out *jwriter.Writer,
first := true
_ = first
if in.ShowInfo {
if !first {
out.RawByte(',')
const prefix string = ",\"showInfo\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"showInfo\":")
out.Bool(bool(in.ShowInfo))
}
if in.ShowRulers {
if !first {
out.RawByte(',')
const prefix string = ",\"showRulers\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"showRulers\":")
out.Bool(bool(in.ShowRulers))
}
if in.ShowExtensionLines {
if !first {
out.RawByte(',')
const prefix string = ",\"showExtensionLines\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"showExtensionLines\":")
out.Bool(bool(in.ShowExtensionLines))
}
if in.DisplayAsMaterial {
if !first {
out.RawByte(',')
const prefix string = ",\"displayAsMaterial\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"displayAsMaterial\":")
out.Bool(bool(in.DisplayAsMaterial))
}
if in.ContentColor != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"contentColor\":")
if in.ContentColor == nil {
out.RawString("null")
const prefix string = ",\"contentColor\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.ContentColor).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.ContentColor).MarshalEasyJSON(out)
}
if in.PaddingColor != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"paddingColor\":")
if in.PaddingColor == nil {
out.RawString("null")
const prefix string = ",\"paddingColor\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.PaddingColor).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.PaddingColor).MarshalEasyJSON(out)
}
if in.BorderColor != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"borderColor\":")
if in.BorderColor == nil {
out.RawString("null")
const prefix string = ",\"borderColor\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.BorderColor).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.BorderColor).MarshalEasyJSON(out)
}
if in.MarginColor != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"marginColor\":")
if in.MarginColor == nil {
out.RawString("null")
const prefix string = ",\"marginColor\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.MarginColor).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.MarginColor).MarshalEasyJSON(out)
}
if in.EventTargetColor != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"eventTargetColor\":")
if in.EventTargetColor == nil {
out.RawString("null")
const prefix string = ",\"eventTargetColor\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.EventTargetColor).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.EventTargetColor).MarshalEasyJSON(out)
}
if in.ShapeColor != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"shapeColor\":")
if in.ShapeColor == nil {
out.RawString("null")
const prefix string = ",\"shapeColor\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.ShapeColor).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.ShapeColor).MarshalEasyJSON(out)
}
if in.ShapeMarginColor != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"shapeMarginColor\":")
if in.ShapeMarginColor == nil {
out.RawString("null")
const prefix string = ",\"shapeMarginColor\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.ShapeMarginColor).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.ShapeMarginColor).MarshalEasyJSON(out)
}
if in.SelectorList != "" {
if !first {
out.RawByte(',')
const prefix string = ",\"selectorList\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"selectorList\":")
out.String(string(in.SelectorList))
}
if in.CSSGridColor != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"cssGridColor\":")
if in.CSSGridColor == nil {
out.RawString("null")
const prefix string = ",\"cssGridColor\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
(*in.CSSGridColor).MarshalEasyJSON(out)
out.RawString(prefix)
}
(*in.CSSGridColor).MarshalEasyJSON(out)
}
out.RawByte('}')
}
@ -1459,11 +1503,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay14(out *jwriter.Writer,
first := true
_ = first
if (in.Highlight).IsDefined() {
if !first {
out.RawByte(',')
const prefix string = ",\"highlight\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
first = false
out.RawString("\"highlight\":")
(in.Highlight).MarshalEasyJSON(out)
}
out.RawByte('}')
@ -1527,12 +1573,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay15(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"nodeId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.NodeID))
}
first = false
out.RawString("\"nodeId\":")
out.Int64(int64(in.NodeID))
out.RawByte('}')
}
@ -1602,15 +1652,19 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay16(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"viewport\":")
if in.Viewport == nil {
out.RawString("null")
} else {
(*in.Viewport).MarshalEasyJSON(out)
{
const prefix string = ",\"viewport\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Viewport == nil {
out.RawString("null")
} else {
(*in.Viewport).MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -1673,12 +1727,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay17(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"nodeId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.NodeID))
}
first = false
out.RawString("\"nodeId\":")
out.Int64(int64(in.NodeID))
out.RawByte('}')
}
@ -1740,12 +1798,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay18(out *jwriter.Writer,
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
{
const prefix string = ",\"backendNodeId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.BackendNodeID))
}
first = false
out.RawString("\"backendNodeId\":")
out.Int64(int64(in.BackendNodeID))
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.
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 {
URL string `json:"url"` // The URL for the new window.
WindowName string `json:"windowName"` // Window name passed to window.open().
WindowFeatures string `json:"windowFeatures"` // Window features passed to window.open().
UserGesture bool `json:"userGesture"` // Whether or not window.open() was triggered by user gesture.
URL string `json:"url"` // The URL for the new window.
WindowName string `json:"windowName"` // Window name.
WindowFeatures []string `json:"windowFeatures"` // An array of enabled window features.
UserGesture bool `json:"userGesture"` // Whether or not it was triggered by user gesture.
}
// 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)
}
// 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.
type ReloadParams struct {
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.
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
// target handler.
//
// returns:
// frameID - Frame id that will be navigated.
func (p *NavigateParams) Do(ctxt context.Context, h cdp.Handler) (frameID cdp.FrameID, err error) {
// frameID - Frame id that has navigated (or failed to navigate)
// 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
var res NavigateReturns
err = h.Execute(ctxt, cdp.CommandPageNavigate, p, &res)
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

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -233,10 +233,17 @@ type CallFrame struct {
// StackTrace call frames for assertions or error messages.
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.
CallFrames []*CallFrame `json:"callFrames"` // JavaScript function name.
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.
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.
Parent *StackTrace `json:"parent,omitempty"` // Asynchronous JavaScript stack trace that preceded this stack, 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.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -409,44 +409,37 @@
{
"name": "offsetTop",
"type": "number",
"experimental": true,
"description": "Top offset in DIP."
},
{
"name": "pageScaleFactor",
"type": "number",
"experimental": true,
"description": "Page scale factor."
},
{
"name": "deviceWidth",
"type": "number",
"experimental": true,
"description": "Device screen width in DIP."
},
{
"name": "deviceHeight",
"type": "number",
"experimental": true,
"description": "Device screen height in DIP."
},
{
"name": "scrollOffsetX",
"type": "number",
"experimental": true,
"description": "Position of horizontal scroll in CSS pixels."
},
{
"name": "scrollOffsetY",
"type": "number",
"experimental": true,
"description": "Position of vertical scroll in CSS pixels."
},
{
"name": "timestamp",
"$ref": "Network.TimeSinceEpoch",
"optional": true,
"experimental": true,
"description": "Frame swap timestamp."
}
],
@ -671,6 +664,18 @@
"description": "Controls whether browser will open a new inspector window for connected pages.",
"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",
"parameters": [
@ -726,7 +731,19 @@
{
"name": "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."
@ -911,8 +928,7 @@
"type": "string",
"description": "HTML content to set."
}
],
"experimental": true
]
},
{
"name": "setDeviceMetricsOverride",
@ -1643,7 +1659,7 @@
},
{
"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": [
{
"name": "url",
@ -1653,17 +1669,20 @@
{
"name": "windowName",
"type": "string",
"description": "Window name passed to window.open()."
"description": "Window name."
},
{
"name": "windowFeatures",
"type": "string",
"description": "Window features passed to window.open()."
"type": "array",
"items": {
"type": "string"
},
"description": "An array of enabled window features."
},
{
"name": "userGesture",
"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.",
"dependencies": [
"DOM",
"Page"
"Page",
"Runtime"
],
"types": [
{
@ -2118,7 +2138,8 @@
"name": "scale",
"type": "number",
"optional": true,
"description": "Scale to apply to resulting view image."
"description": "Scale to apply to resulting view image.",
"experimental": true
},
{
"name": "screenWidth",
@ -2330,7 +2351,7 @@
},
{
"name": "budget",
"type": "integer",
"type": "number",
"optional": true,
"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."
}
],
"returns": [
{
"name": "virtualTimeBase",
"$ref": "Runtime.Timestamp",
"description": "Absolute timestamp at which virtual time was first enabled (milliseconds since epoch)."
}
],
"experimental": true
},
{
@ -2380,7 +2408,7 @@
"parameters": [
{
"name": "virtualTimeElapsed",
"type": "integer",
"type": "number",
"description": "The amount of virtual time that has elapsed in milliseconds since virtual time was first enabled."
}
],
@ -2392,7 +2420,7 @@
"parameters": [
{
"name": "virtualTimeElapsed",
"type": "integer",
"type": "number",
"description": "The amount of virtual time that has elapsed in milliseconds since virtual time was first enabled."
}
],
@ -2679,6 +2707,7 @@
"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.",
"dependencies": [
"Debugger",
"Runtime",
"Security"
],
@ -3486,6 +3515,16 @@
],
"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",
"type": "object",
@ -3502,6 +3541,12 @@
"$ref": "Page.ResourceType",
"optional": true,
"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
@ -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",
"description": "Specifies whether to always send extra HTTP headers with the requests from this page.",
@ -3613,7 +3697,8 @@
"type": "boolean",
"description": "True if browser cache can be cleared."
}
]
],
"deprecated": true
},
{
"name": "clearBrowserCache",
@ -3628,7 +3713,8 @@
"type": "boolean",
"description": "True if browser cookies can be cleared."
}
]
],
"deprecated": true
},
{
"name": "clearBrowserCookies",
@ -3790,7 +3876,8 @@
"type": "boolean",
"description": "True if emulation of network conditions is supported."
}
]
],
"deprecated": true
},
{
"name": "emulateNetworkConditions",
@ -3952,6 +4039,30 @@
}
],
"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": [
@ -4376,18 +4487,6 @@
"type": "boolean",
"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",
"optional": true,
@ -4399,6 +4498,24 @@
"$ref": "AuthChallenge",
"optional": true,
"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
@ -4412,14 +4529,12 @@
{
"id": "DatabaseId",
"type": "string",
"description": "Unique identifier of Database object.",
"experimental": true
"description": "Unique identifier of Database object."
},
{
"id": "Database",
"type": "object",
"description": "Database object.",
"experimental": true,
"properties": [
{
"name": "id",
@ -5131,7 +5246,6 @@
"id": "StorageId",
"type": "object",
"description": "DOM Storage identifier.",
"experimental": true,
"properties": [
{
"name": "securityOrigin",
@ -5149,7 +5263,6 @@
"id": "Item",
"type": "array",
"description": "DOM Storage item.",
"experimental": true,
"items": {
"type": "string"
}
@ -8694,7 +8807,8 @@
"type": "boolean",
"description": "Whether to pause new targets when attaching to them. Use <code>Runtime.runIfWaitingForDebugger</code> to run paused targets."
}
]
],
"experimental": true
},
{
"name": "setAttachToFrames",
@ -8759,7 +8873,8 @@
"name": "targetInfo",
"$ref": "TargetInfo"
}
]
],
"experimental": true
},
{
"name": "activateTarget",
@ -8958,7 +9073,8 @@
"name": "waitingForDebugger",
"type": "boolean"
}
]
],
"experimental": true
},
{
"name": "detachedFromTarget",
@ -8976,7 +9092,8 @@
"deprecated": true,
"description": "Deprecated."
}
]
],
"experimental": true
},
{
"name": "receivedMessageFromTarget",
@ -10560,7 +10677,6 @@
{
"id": "Animation",
"type": "object",
"experimental": true,
"properties": [
{
"name": "id",
@ -10575,7 +10691,6 @@
{
"name": "pausedState",
"type": "boolean",
"experimental": true,
"description": "<code>Animation</code>'s internal paused state."
},
{
@ -10626,7 +10741,6 @@
{
"id": "AnimationEffect",
"type": "object",
"experimental": true,
"properties": [
{
"name": "delay",
@ -11052,7 +11166,7 @@
"properties": [
{
"name": "name",
"type": "string",
"$ref": "AXPropertyName",
"description": "The name of this property."
},
{
@ -11099,7 +11213,7 @@
"description": "A single computed AX property."
},
{
"id": "AXGlobalStates",
"id": "AXPropertyName",
"type": "string",
"enum": [
"busy",
@ -11108,25 +11222,11 @@
"hiddenRoot",
"invalid",
"keyshortcuts",
"roledescription"
],
"description": "States which apply to every AX node."
},
{
"id": "AXLiveRegionAttributes",
"type": "string",
"enum": [
"roledescription",
"live",
"atomic",
"relevant",
"root"
],
"description": "Attributes which apply to nodes in live regions."
},
{
"id": "AXWidgetAttributes",
"type": "string",
"enum": [
"root",
"autocomplete",
"haspopup",
"level",
@ -11137,26 +11237,12 @@
"required",
"valuemin",
"valuemax",
"valuetext"
],
"description": "Attributes which apply to widgets."
},
{
"id": "AXWidgetStates",
"type": "string",
"enum": [
"valuetext",
"checked",
"expanded",
"modal",
"pressed",
"selected"
],
"description": "States which apply to widgets."
},
{
"id": "AXRelationshipAttributes",
"type": "string",
"enum": [
"selected",
"activedescendant",
"controls",
"describedby",
@ -11166,7 +11252,7 @@
"labelledby",
"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",
@ -12527,15 +12613,13 @@
"$ref": "StackTrace",
"optional": true,
"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": [
@ -13509,12 +13593,32 @@
],
"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",
"description": "Steps over the statement."
},
{
"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."
},
{
@ -13527,7 +13631,7 @@
},
{
"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
},
{
@ -13778,6 +13882,18 @@
],
"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",
"parameters": [
@ -14068,6 +14184,13 @@
"$ref": "Runtime.StackTrace",
"optional": true,
"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."
@ -14748,6 +14871,16 @@
"description": "Recorded sampling heap profile."
}
]
},
{
"name": "getSamplingProfile",
"returns": [
{
"name": "profile",
"$ref": "SamplingHeapProfile",
"description": "Return the sampling profile being collected."
}
]
}
],
"events": [