diff --git a/audits/types.go b/audits/types.go index 4cae4de..3089aed 100644 --- a/audits/types.go +++ b/audits/types.go @@ -786,6 +786,11 @@ const ( AttributionReportingIssueTypeWebAndOsHeaders AttributionReportingIssueType = "WebAndOsHeaders" AttributionReportingIssueTypeNoWebOrOsSupport AttributionReportingIssueType = "NoWebOrOsSupport" AttributionReportingIssueTypeNavigationRegistrationWithoutTransientUserActivation AttributionReportingIssueType = "NavigationRegistrationWithoutTransientUserActivation" + AttributionReportingIssueTypeInvalidInfoHeader AttributionReportingIssueType = "InvalidInfoHeader" + AttributionReportingIssueTypeNoRegisterSourceHeader AttributionReportingIssueType = "NoRegisterSourceHeader" + AttributionReportingIssueTypeNoRegisterTriggerHeader AttributionReportingIssueType = "NoRegisterTriggerHeader" + AttributionReportingIssueTypeNoRegisterOsSourceHeader AttributionReportingIssueType = "NoRegisterOsSourceHeader" + AttributionReportingIssueTypeNoRegisterOsTriggerHeader AttributionReportingIssueType = "NoRegisterOsTriggerHeader" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -832,6 +837,16 @@ func (t *AttributionReportingIssueType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = AttributionReportingIssueTypeNoWebOrOsSupport case AttributionReportingIssueTypeNavigationRegistrationWithoutTransientUserActivation: *t = AttributionReportingIssueTypeNavigationRegistrationWithoutTransientUserActivation + case AttributionReportingIssueTypeInvalidInfoHeader: + *t = AttributionReportingIssueTypeInvalidInfoHeader + case AttributionReportingIssueTypeNoRegisterSourceHeader: + *t = AttributionReportingIssueTypeNoRegisterSourceHeader + case AttributionReportingIssueTypeNoRegisterTriggerHeader: + *t = AttributionReportingIssueTypeNoRegisterTriggerHeader + case AttributionReportingIssueTypeNoRegisterOsSourceHeader: + *t = AttributionReportingIssueTypeNoRegisterOsSourceHeader + case AttributionReportingIssueTypeNoRegisterOsTriggerHeader: + *t = AttributionReportingIssueTypeNoRegisterOsTriggerHeader default: in.AddError(fmt.Errorf("unknown AttributionReportingIssueType value: %v", v)) diff --git a/cdproto.go b/cdproto.go index 49afb25..7c8a17c 100644 --- a/cdproto.go +++ b/cdproto.go @@ -154,6 +154,7 @@ const ( CommandCSSGetPlatformFontsForNode = css.CommandGetPlatformFontsForNode CommandCSSGetStyleSheetText = css.CommandGetStyleSheetText CommandCSSGetLayersForNode = css.CommandGetLayersForNode + CommandCSSGetLocationForSelector = css.CommandGetLocationForSelector CommandCSSTrackComputedStyleUpdates = css.CommandTrackComputedStyleUpdates CommandCSSTakeComputedStyleUpdates = css.CommandTakeComputedStyleUpdates CommandCSSSetEffectivePropertyValueForNode = css.CommandSetEffectivePropertyValueForNode @@ -316,7 +317,6 @@ const ( EventDeviceAccessDeviceRequestPrompted = "DeviceAccess.deviceRequestPrompted" CommandDeviceOrientationClearDeviceOrientationOverride = deviceorientation.CommandClearDeviceOrientationOverride CommandDeviceOrientationSetDeviceOrientationOverride = deviceorientation.CommandSetDeviceOrientationOverride - CommandEmulationCanEmulate = emulation.CommandCanEmulate CommandEmulationClearDeviceMetricsOverride = emulation.CommandClearDeviceMetricsOverride CommandEmulationClearGeolocationOverride = emulation.CommandClearGeolocationOverride CommandEmulationResetPageScaleFactor = emulation.CommandResetPageScaleFactor @@ -719,6 +719,8 @@ const ( CommandStorageRunBounceTrackingMitigations = storage.CommandRunBounceTrackingMitigations CommandStorageSetAttributionReportingLocalTestingMode = storage.CommandSetAttributionReportingLocalTestingMode CommandStorageSetAttributionReportingTracking = storage.CommandSetAttributionReportingTracking + CommandStorageSendPendingAttributionReports = storage.CommandSendPendingAttributionReports + CommandStorageGetRelatedWebsiteSets = storage.CommandGetRelatedWebsiteSets EventStorageCacheStorageContentUpdated = "Storage.cacheStorageContentUpdated" EventStorageCacheStorageListUpdated = "Storage.cacheStorageListUpdated" EventStorageIndexedDBContentUpdated = "Storage.indexedDBContentUpdated" @@ -1053,6 +1055,9 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case CommandCSSGetLayersForNode: v = new(css.GetLayersForNodeReturns) + case CommandCSSGetLocationForSelector: + v = new(css.GetLocationForSelectorReturns) + case CommandCSSTrackComputedStyleUpdates: return emptyVal, nil @@ -1539,9 +1544,6 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case CommandDeviceOrientationSetDeviceOrientationOverride: return emptyVal, nil - case CommandEmulationCanEmulate: - v = new(emulation.CanEmulateReturns) - case CommandEmulationClearDeviceMetricsOverride: return emptyVal, nil @@ -2748,6 +2750,12 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case CommandStorageSetAttributionReportingTracking: return emptyVal, nil + case CommandStorageSendPendingAttributionReports: + v = new(storage.SendPendingAttributionReportsReturns) + + case CommandStorageGetRelatedWebsiteSets: + v = new(storage.GetRelatedWebsiteSetsReturns) + case EventStorageCacheStorageContentUpdated: v = new(storage.EventCacheStorageContentUpdated) diff --git a/css/css.go b/css/css.go index 7a35761..546b636 100644 --- a/css/css.go +++ b/css/css.go @@ -379,7 +379,7 @@ type GetMatchedStylesForNodeReturns struct { Inherited []*InheritedStyleEntry `json:"inherited,omitempty"` // A chain of inherited styles (from the immediate node parent up to the DOM tree root). InheritedPseudoElements []*InheritedPseudoElementMatches `json:"inheritedPseudoElements,omitempty"` // A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root). CSSKeyframesRules []*KeyframesRule `json:"cssKeyframesRules,omitempty"` // A list of CSS keyframed animations matching this node. - CSSPositionFallbackRules []*PositionFallbackRule `json:"cssPositionFallbackRules,omitempty"` // A list of CSS position fallbacks matching this node. + CSSPositionTryRules []*PositionTryRule `json:"cssPositionTryRules,omitempty"` // A list of CSS @position-try rules matching this node, based on the position-try-options property. CSSPropertyRules []*PropertyRule `json:"cssPropertyRules,omitempty"` // A list of CSS at-property rules matching this node. CSSPropertyRegistrations []*PropertyRegistration `json:"cssPropertyRegistrations,omitempty"` // A list of CSS property registrations matching this node. CSSFontPaletteValuesRule *FontPaletteValuesRule `json:"cssFontPaletteValuesRule,omitempty"` // A font-palette-values rule matching this node. @@ -397,12 +397,12 @@ type GetMatchedStylesForNodeReturns struct { // inherited - A chain of inherited styles (from the immediate node parent up to the DOM tree root). // inheritedPseudoElements - A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root). // cssKeyframesRules - A list of CSS keyframed animations matching this node. -// cssPositionFallbackRules - A list of CSS position fallbacks matching this node. +// cssPositionTryRules - A list of CSS @position-try rules matching this node, based on the position-try-options property. // cssPropertyRules - A list of CSS at-property rules matching this node. // cssPropertyRegistrations - A list of CSS property registrations matching this node. // cssFontPaletteValuesRule - A font-palette-values rule matching this node. // parentLayoutNodeID - Id of the first parent element that does not have display: contents. -func (p *GetMatchedStylesForNodeParams) Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, inheritedPseudoElements []*InheritedPseudoElementMatches, cssKeyframesRules []*KeyframesRule, cssPositionFallbackRules []*PositionFallbackRule, cssPropertyRules []*PropertyRule, cssPropertyRegistrations []*PropertyRegistration, cssFontPaletteValuesRule *FontPaletteValuesRule, parentLayoutNodeID cdp.NodeID, err error) { +func (p *GetMatchedStylesForNodeParams) Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, inheritedPseudoElements []*InheritedPseudoElementMatches, cssKeyframesRules []*KeyframesRule, cssPositionTryRules []*PositionTryRule, cssPropertyRules []*PropertyRule, cssPropertyRegistrations []*PropertyRegistration, cssFontPaletteValuesRule *FontPaletteValuesRule, parentLayoutNodeID cdp.NodeID, err error) { // execute var res GetMatchedStylesForNodeReturns err = cdp.Execute(ctx, CommandGetMatchedStylesForNode, p, &res) @@ -410,7 +410,7 @@ func (p *GetMatchedStylesForNodeParams) Do(ctx context.Context) (inlineStyle *St return nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 0, err } - return res.InlineStyle, res.AttributesStyle, res.MatchedCSSRules, res.PseudoElements, res.Inherited, res.InheritedPseudoElements, res.CSSKeyframesRules, res.CSSPositionFallbackRules, res.CSSPropertyRules, res.CSSPropertyRegistrations, res.CSSFontPaletteValuesRule, res.ParentLayoutNodeID, nil + return res.InlineStyle, res.AttributesStyle, res.MatchedCSSRules, res.PseudoElements, res.Inherited, res.InheritedPseudoElements, res.CSSKeyframesRules, res.CSSPositionTryRules, res.CSSPropertyRules, res.CSSPropertyRegistrations, res.CSSFontPaletteValuesRule, res.ParentLayoutNodeID, nil } // GetMediaQueriesParams returns all media queries parsed by the rendering @@ -573,6 +573,52 @@ func (p *GetLayersForNodeParams) Do(ctx context.Context) (rootLayer *LayerData, return res.RootLayer, nil } +// GetLocationForSelectorParams given a CSS selector text and a style sheet +// ID, getLocationForSelector returns an array of locations of the CSS selector +// in the style sheet. +type GetLocationForSelectorParams struct { + StyleSheetID StyleSheetID `json:"styleSheetId"` + SelectorText string `json:"selectorText"` +} + +// GetLocationForSelector given a CSS selector text and a style sheet ID, +// getLocationForSelector returns an array of locations of the CSS selector in +// the style sheet. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getLocationForSelector +// +// parameters: +// +// styleSheetID +// selectorText +func GetLocationForSelector(styleSheetID StyleSheetID, selectorText string) *GetLocationForSelectorParams { + return &GetLocationForSelectorParams{ + StyleSheetID: styleSheetID, + SelectorText: selectorText, + } +} + +// GetLocationForSelectorReturns return values. +type GetLocationForSelectorReturns struct { + Ranges []*SourceRange `json:"ranges,omitempty"` +} + +// Do executes CSS.getLocationForSelector against the provided context. +// +// returns: +// +// ranges +func (p *GetLocationForSelectorParams) Do(ctx context.Context) (ranges []*SourceRange, err error) { + // execute + var res GetLocationForSelectorReturns + err = cdp.Execute(ctx, CommandGetLocationForSelector, p, &res) + if err != nil { + return nil, err + } + + return res.Ranges, nil +} + // TrackComputedStyleUpdatesParams starts tracking the given computed styles // for updates. The specified array of properties replaces the one previously // specified. Pass empty array to disable tracking. Use takeComputedStyleUpdates @@ -1209,6 +1255,7 @@ const ( CommandGetPlatformFontsForNode = "CSS.getPlatformFontsForNode" CommandGetStyleSheetText = "CSS.getStyleSheetText" CommandGetLayersForNode = "CSS.getLayersForNode" + CommandGetLocationForSelector = "CSS.getLocationForSelector" CommandTrackComputedStyleUpdates = "CSS.trackComputedStyleUpdates" CommandTakeComputedStyleUpdates = "CSS.takeComputedStyleUpdates" CommandSetEffectivePropertyValueForNode = "CSS.setEffectivePropertyValueForNode" diff --git a/css/easyjson.go b/css/easyjson.go index 74e1c5a..717262c 100644 --- a/css/easyjson.go +++ b/css/easyjson.go @@ -4734,7 +4734,7 @@ func (v *Property) UnmarshalJSON(data []byte) error { func (v *Property) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss45(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss46(in *jlexer.Lexer, out *PositionFallbackRule) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss46(in *jlexer.Lexer, out *PositionTryRule) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4763,36 +4763,19 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss46(in *jlexer.Lexer, out * } (*out.Name).UnmarshalEasyJSON(in) } - case "tryRules": + case "styleSheetId": + out.StyleSheetID = StyleSheetID(in.String()) + case "origin": + (out.Origin).UnmarshalEasyJSON(in) + case "style": if in.IsNull() { in.Skip() - out.TryRules = nil + out.Style = nil } else { - in.Delim('[') - if out.TryRules == nil { - if !in.IsDelim(']') { - out.TryRules = make([]*TryRule, 0, 8) - } else { - out.TryRules = []*TryRule{} - } - } else { - out.TryRules = (out.TryRules)[:0] - } - for !in.IsDelim(']') { - var v58 *TryRule - if in.IsNull() { - in.Skip() - v58 = nil - } else { - if v58 == nil { - v58 = new(TryRule) - } - (*v58).UnmarshalEasyJSON(in) - } - out.TryRules = append(out.TryRules, v58) - in.WantComma() + if out.Style == nil { + out.Style = new(Style) } - in.Delim(']') + (*out.Style).UnmarshalEasyJSON(in) } default: in.SkipRecursive() @@ -4804,7 +4787,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss46(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss46(out *jwriter.Writer, in PositionFallbackRule) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss46(out *jwriter.Writer, in PositionTryRule) { out.RawByte('{') first := true _ = first @@ -4817,50 +4800,49 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss46(out *jwriter.Writer, in (*in.Name).MarshalEasyJSON(out) } } + if in.StyleSheetID != "" { + const prefix string = ",\"styleSheetId\":" + out.RawString(prefix) + out.String(string(in.StyleSheetID)) + } + { + const prefix string = ",\"origin\":" + out.RawString(prefix) + (in.Origin).MarshalEasyJSON(out) + } { - const prefix string = ",\"tryRules\":" + const prefix string = ",\"style\":" out.RawString(prefix) - if in.TryRules == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if in.Style == nil { out.RawString("null") } else { - out.RawByte('[') - for v59, v60 := range in.TryRules { - if v59 > 0 { - out.RawByte(',') - } - if v60 == nil { - out.RawString("null") - } else { - (*v60).MarshalEasyJSON(out) - } - } - out.RawByte(']') + (*in.Style).MarshalEasyJSON(out) } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v PositionFallbackRule) MarshalJSON() ([]byte, error) { +func (v PositionTryRule) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss46(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v PositionFallbackRule) MarshalEasyJSON(w *jwriter.Writer) { +func (v PositionTryRule) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss46(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *PositionFallbackRule) UnmarshalJSON(data []byte) error { +func (v *PositionTryRule) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss46(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PositionFallbackRule) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *PositionTryRule) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss46(l, v) } func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss47(in *jlexer.Lexer, out *PlatformFontUsage) { @@ -5087,17 +5069,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss49(in *jlexer.Lexer, out * out.Expressions = (out.Expressions)[:0] } for !in.IsDelim(']') { - var v61 *MediaQueryExpression + var v58 *MediaQueryExpression if in.IsNull() { in.Skip() - v61 = nil + v58 = nil } else { - if v61 == nil { - v61 = new(MediaQueryExpression) + if v58 == nil { + v58 = new(MediaQueryExpression) } - (*v61).UnmarshalEasyJSON(in) + (*v58).UnmarshalEasyJSON(in) } - out.Expressions = append(out.Expressions, v61) + out.Expressions = append(out.Expressions, v58) in.WantComma() } in.Delim(']') @@ -5125,14 +5107,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss49(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v62, v63 := range in.Expressions { - if v62 > 0 { + for v59, v60 := range in.Expressions { + if v59 > 0 { out.RawByte(',') } - if v63 == nil { + if v60 == nil { out.RawString("null") } else { - (*v63).MarshalEasyJSON(out) + (*v60).MarshalEasyJSON(out) } } out.RawByte(']') @@ -5222,17 +5204,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss50(in *jlexer.Lexer, out * out.MediaList = (out.MediaList)[:0] } for !in.IsDelim(']') { - var v64 *MediaQuery + var v61 *MediaQuery if in.IsNull() { in.Skip() - v64 = nil + v61 = nil } else { - if v64 == nil { - v64 = new(MediaQuery) + if v61 == nil { + v61 = new(MediaQuery) } - (*v64).UnmarshalEasyJSON(in) + (*v61).UnmarshalEasyJSON(in) } - out.MediaList = append(out.MediaList, v64) + out.MediaList = append(out.MediaList, v61) in.WantComma() } in.Delim(']') @@ -5281,14 +5263,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss50(out *jwriter.Writer, in out.RawString(prefix) { out.RawByte('[') - for v65, v66 := range in.MediaList { - if v65 > 0 { + for v62, v63 := range in.MediaList { + if v62 > 0 { out.RawByte(',') } - if v66 == nil { + if v63 == nil { out.RawString("null") } else { - (*v66).MarshalEasyJSON(out) + (*v63).MarshalEasyJSON(out) } } out.RawByte(']') @@ -5357,17 +5339,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss51(in *jlexer.Lexer, out * out.SubLayers = (out.SubLayers)[:0] } for !in.IsDelim(']') { - var v67 *LayerData + var v64 *LayerData if in.IsNull() { in.Skip() - v67 = nil + v64 = nil } else { - if v67 == nil { - v67 = new(LayerData) + if v64 == nil { + v64 = new(LayerData) } - (*v67).UnmarshalEasyJSON(in) + (*v64).UnmarshalEasyJSON(in) } - out.SubLayers = append(out.SubLayers, v67) + out.SubLayers = append(out.SubLayers, v64) in.WantComma() } in.Delim(']') @@ -5398,14 +5380,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss51(out *jwriter.Writer, in out.RawString(prefix) { out.RawByte('[') - for v68, v69 := range in.SubLayers { - if v68 > 0 { + for v65, v66 := range in.SubLayers { + if v65 > 0 { out.RawByte(',') } - if v69 == nil { + if v66 == nil { out.RawString("null") } else { - (*v69).MarshalEasyJSON(out) + (*v66).MarshalEasyJSON(out) } } out.RawByte(']') @@ -5575,17 +5557,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss53(in *jlexer.Lexer, out * out.Keyframes = (out.Keyframes)[:0] } for !in.IsDelim(']') { - var v70 *KeyframeRule + var v67 *KeyframeRule if in.IsNull() { in.Skip() - v70 = nil + v67 = nil } else { - if v70 == nil { - v70 = new(KeyframeRule) + if v67 == nil { + v67 = new(KeyframeRule) } - (*v70).UnmarshalEasyJSON(in) + (*v67).UnmarshalEasyJSON(in) } - out.Keyframes = append(out.Keyframes, v70) + out.Keyframes = append(out.Keyframes, v67) in.WantComma() } in.Delim(']') @@ -5620,14 +5602,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss53(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v71, v72 := range in.Keyframes { - if v71 > 0 { + for v68, v69 := range in.Keyframes { + if v68 > 0 { out.RawByte(',') } - if v72 == nil { + if v69 == nil { out.RawString("null") } else { - (*v72).MarshalEasyJSON(out) + (*v69).MarshalEasyJSON(out) } } out.RawByte(']') @@ -5821,17 +5803,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss55(in *jlexer.Lexer, out * out.MatchedCSSRules = (out.MatchedCSSRules)[:0] } for !in.IsDelim(']') { - var v73 *RuleMatch + var v70 *RuleMatch if in.IsNull() { in.Skip() - v73 = nil + v70 = nil } else { - if v73 == nil { - v73 = new(RuleMatch) + if v70 == nil { + v70 = new(RuleMatch) } - (*v73).UnmarshalEasyJSON(in) + (*v70).UnmarshalEasyJSON(in) } - out.MatchedCSSRules = append(out.MatchedCSSRules, v73) + out.MatchedCSSRules = append(out.MatchedCSSRules, v70) in.WantComma() } in.Delim(']') @@ -5868,14 +5850,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss55(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v74, v75 := range in.MatchedCSSRules { - if v74 > 0 { + for v71, v72 := range in.MatchedCSSRules { + if v71 > 0 { out.RawByte(',') } - if v75 == nil { + if v72 == nil { out.RawString("null") } else { - (*v75).MarshalEasyJSON(out) + (*v72).MarshalEasyJSON(out) } } out.RawByte(']') @@ -5942,17 +5924,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss56(in *jlexer.Lexer, out * out.PseudoElements = (out.PseudoElements)[:0] } for !in.IsDelim(']') { - var v76 *PseudoElementMatches + var v73 *PseudoElementMatches if in.IsNull() { in.Skip() - v76 = nil + v73 = nil } else { - if v76 == nil { - v76 = new(PseudoElementMatches) + if v73 == nil { + v73 = new(PseudoElementMatches) } - (*v76).UnmarshalEasyJSON(in) + (*v73).UnmarshalEasyJSON(in) } - out.PseudoElements = append(out.PseudoElements, v76) + out.PseudoElements = append(out.PseudoElements, v73) in.WantComma() } in.Delim(']') @@ -5978,14 +5960,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss56(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v77, v78 := range in.PseudoElements { - if v77 > 0 { + for v74, v75 := range in.PseudoElements { + if v74 > 0 { out.RawByte(',') } - if v78 == nil { + if v75 == nil { out.RawString("null") } else { - (*v78).MarshalEasyJSON(out) + (*v75).MarshalEasyJSON(out) } } out.RawByte(']') @@ -6185,17 +6167,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss59(in *jlexer.Lexer, out * out.Fonts = (out.Fonts)[:0] } for !in.IsDelim(']') { - var v79 *PlatformFontUsage + var v76 *PlatformFontUsage if in.IsNull() { in.Skip() - v79 = nil + v76 = nil } else { - if v79 == nil { - v79 = new(PlatformFontUsage) + if v76 == nil { + v76 = new(PlatformFontUsage) } - (*v79).UnmarshalEasyJSON(in) + (*v76).UnmarshalEasyJSON(in) } - out.Fonts = append(out.Fonts, v79) + out.Fonts = append(out.Fonts, v76) in.WantComma() } in.Delim(']') @@ -6220,14 +6202,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss59(out *jwriter.Writer, in out.RawString(prefix[1:]) { out.RawByte('[') - for v80, v81 := range in.Fonts { - if v80 > 0 { + for v77, v78 := range in.Fonts { + if v77 > 0 { out.RawByte(',') } - if v81 == nil { + if v78 == nil { out.RawString("null") } else { - (*v81).MarshalEasyJSON(out) + (*v78).MarshalEasyJSON(out) } } out.RawByte(']') @@ -6360,17 +6342,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss61(in *jlexer.Lexer, out * out.Medias = (out.Medias)[:0] } for !in.IsDelim(']') { - var v82 *Media + var v79 *Media if in.IsNull() { in.Skip() - v82 = nil + v79 = nil } else { - if v82 == nil { - v82 = new(Media) + if v79 == nil { + v79 = new(Media) } - (*v82).UnmarshalEasyJSON(in) + (*v79).UnmarshalEasyJSON(in) } - out.Medias = append(out.Medias, v82) + out.Medias = append(out.Medias, v79) in.WantComma() } in.Delim(']') @@ -6395,14 +6377,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss61(out *jwriter.Writer, in out.RawString(prefix[1:]) { out.RawByte('[') - for v83, v84 := range in.Medias { - if v83 > 0 { + for v80, v81 := range in.Medias { + if v80 > 0 { out.RawByte(',') } - if v84 == nil { + if v81 == nil { out.RawString("null") } else { - (*v84).MarshalEasyJSON(out) + (*v81).MarshalEasyJSON(out) } } out.RawByte(']') @@ -6548,17 +6530,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss63(in *jlexer.Lexer, out * out.MatchedCSSRules = (out.MatchedCSSRules)[:0] } for !in.IsDelim(']') { - var v85 *RuleMatch + var v82 *RuleMatch if in.IsNull() { in.Skip() - v85 = nil + v82 = nil } else { - if v85 == nil { - v85 = new(RuleMatch) + if v82 == nil { + v82 = new(RuleMatch) } - (*v85).UnmarshalEasyJSON(in) + (*v82).UnmarshalEasyJSON(in) } - out.MatchedCSSRules = append(out.MatchedCSSRules, v85) + out.MatchedCSSRules = append(out.MatchedCSSRules, v82) in.WantComma() } in.Delim(']') @@ -6579,17 +6561,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss63(in *jlexer.Lexer, out * out.PseudoElements = (out.PseudoElements)[:0] } for !in.IsDelim(']') { - var v86 *PseudoElementMatches + var v83 *PseudoElementMatches if in.IsNull() { in.Skip() - v86 = nil + v83 = nil } else { - if v86 == nil { - v86 = new(PseudoElementMatches) + if v83 == nil { + v83 = new(PseudoElementMatches) } - (*v86).UnmarshalEasyJSON(in) + (*v83).UnmarshalEasyJSON(in) } - out.PseudoElements = append(out.PseudoElements, v86) + out.PseudoElements = append(out.PseudoElements, v83) in.WantComma() } in.Delim(']') @@ -6610,17 +6592,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss63(in *jlexer.Lexer, out * out.Inherited = (out.Inherited)[:0] } for !in.IsDelim(']') { - var v87 *InheritedStyleEntry + var v84 *InheritedStyleEntry if in.IsNull() { in.Skip() - v87 = nil + v84 = nil } else { - if v87 == nil { - v87 = new(InheritedStyleEntry) + if v84 == nil { + v84 = new(InheritedStyleEntry) } - (*v87).UnmarshalEasyJSON(in) + (*v84).UnmarshalEasyJSON(in) } - out.Inherited = append(out.Inherited, v87) + out.Inherited = append(out.Inherited, v84) in.WantComma() } in.Delim(']') @@ -6641,17 +6623,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss63(in *jlexer.Lexer, out * out.InheritedPseudoElements = (out.InheritedPseudoElements)[:0] } for !in.IsDelim(']') { - var v88 *InheritedPseudoElementMatches + var v85 *InheritedPseudoElementMatches if in.IsNull() { in.Skip() - v88 = nil + v85 = nil } else { - if v88 == nil { - v88 = new(InheritedPseudoElementMatches) + if v85 == nil { + v85 = new(InheritedPseudoElementMatches) } - (*v88).UnmarshalEasyJSON(in) + (*v85).UnmarshalEasyJSON(in) } - out.InheritedPseudoElements = append(out.InheritedPseudoElements, v88) + out.InheritedPseudoElements = append(out.InheritedPseudoElements, v85) in.WantComma() } in.Delim(']') @@ -6672,48 +6654,48 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss63(in *jlexer.Lexer, out * out.CSSKeyframesRules = (out.CSSKeyframesRules)[:0] } for !in.IsDelim(']') { - var v89 *KeyframesRule + var v86 *KeyframesRule if in.IsNull() { in.Skip() - v89 = nil + v86 = nil } else { - if v89 == nil { - v89 = new(KeyframesRule) + if v86 == nil { + v86 = new(KeyframesRule) } - (*v89).UnmarshalEasyJSON(in) + (*v86).UnmarshalEasyJSON(in) } - out.CSSKeyframesRules = append(out.CSSKeyframesRules, v89) + out.CSSKeyframesRules = append(out.CSSKeyframesRules, v86) in.WantComma() } in.Delim(']') } - case "cssPositionFallbackRules": + case "cssPositionTryRules": if in.IsNull() { in.Skip() - out.CSSPositionFallbackRules = nil + out.CSSPositionTryRules = nil } else { in.Delim('[') - if out.CSSPositionFallbackRules == nil { + if out.CSSPositionTryRules == nil { if !in.IsDelim(']') { - out.CSSPositionFallbackRules = make([]*PositionFallbackRule, 0, 8) + out.CSSPositionTryRules = make([]*PositionTryRule, 0, 8) } else { - out.CSSPositionFallbackRules = []*PositionFallbackRule{} + out.CSSPositionTryRules = []*PositionTryRule{} } } else { - out.CSSPositionFallbackRules = (out.CSSPositionFallbackRules)[:0] + out.CSSPositionTryRules = (out.CSSPositionTryRules)[:0] } for !in.IsDelim(']') { - var v90 *PositionFallbackRule + var v87 *PositionTryRule if in.IsNull() { in.Skip() - v90 = nil + v87 = nil } else { - if v90 == nil { - v90 = new(PositionFallbackRule) + if v87 == nil { + v87 = new(PositionTryRule) } - (*v90).UnmarshalEasyJSON(in) + (*v87).UnmarshalEasyJSON(in) } - out.CSSPositionFallbackRules = append(out.CSSPositionFallbackRules, v90) + out.CSSPositionTryRules = append(out.CSSPositionTryRules, v87) in.WantComma() } in.Delim(']') @@ -6734,17 +6716,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss63(in *jlexer.Lexer, out * out.CSSPropertyRules = (out.CSSPropertyRules)[:0] } for !in.IsDelim(']') { - var v91 *PropertyRule + var v88 *PropertyRule if in.IsNull() { in.Skip() - v91 = nil + v88 = nil } else { - if v91 == nil { - v91 = new(PropertyRule) + if v88 == nil { + v88 = new(PropertyRule) } - (*v91).UnmarshalEasyJSON(in) + (*v88).UnmarshalEasyJSON(in) } - out.CSSPropertyRules = append(out.CSSPropertyRules, v91) + out.CSSPropertyRules = append(out.CSSPropertyRules, v88) in.WantComma() } in.Delim(']') @@ -6765,17 +6747,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss63(in *jlexer.Lexer, out * out.CSSPropertyRegistrations = (out.CSSPropertyRegistrations)[:0] } for !in.IsDelim(']') { - var v92 *PropertyRegistration + var v89 *PropertyRegistration if in.IsNull() { in.Skip() - v92 = nil + v89 = nil } else { - if v92 == nil { - v92 = new(PropertyRegistration) + if v89 == nil { + v89 = new(PropertyRegistration) } - (*v92).UnmarshalEasyJSON(in) + (*v89).UnmarshalEasyJSON(in) } - out.CSSPropertyRegistrations = append(out.CSSPropertyRegistrations, v92) + out.CSSPropertyRegistrations = append(out.CSSPropertyRegistrations, v89) in.WantComma() } in.Delim(']') @@ -6832,14 +6814,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(out *jwriter.Writer, in } { out.RawByte('[') - for v93, v94 := range in.MatchedCSSRules { - if v93 > 0 { + for v90, v91 := range in.MatchedCSSRules { + if v90 > 0 { out.RawByte(',') } - if v94 == nil { + if v91 == nil { out.RawString("null") } else { - (*v94).MarshalEasyJSON(out) + (*v91).MarshalEasyJSON(out) } } out.RawByte(']') @@ -6855,14 +6837,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(out *jwriter.Writer, in } { out.RawByte('[') - for v95, v96 := range in.PseudoElements { - if v95 > 0 { + for v92, v93 := range in.PseudoElements { + if v92 > 0 { out.RawByte(',') } - if v96 == nil { + if v93 == nil { out.RawString("null") } else { - (*v96).MarshalEasyJSON(out) + (*v93).MarshalEasyJSON(out) } } out.RawByte(']') @@ -6878,14 +6860,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(out *jwriter.Writer, in } { out.RawByte('[') - for v97, v98 := range in.Inherited { - if v97 > 0 { + for v94, v95 := range in.Inherited { + if v94 > 0 { out.RawByte(',') } - if v98 == nil { + if v95 == nil { out.RawString("null") } else { - (*v98).MarshalEasyJSON(out) + (*v95).MarshalEasyJSON(out) } } out.RawByte(']') @@ -6901,14 +6883,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(out *jwriter.Writer, in } { out.RawByte('[') - for v99, v100 := range in.InheritedPseudoElements { - if v99 > 0 { + for v96, v97 := range in.InheritedPseudoElements { + if v96 > 0 { out.RawByte(',') } - if v100 == nil { + if v97 == nil { out.RawString("null") } else { - (*v100).MarshalEasyJSON(out) + (*v97).MarshalEasyJSON(out) } } out.RawByte(']') @@ -6924,21 +6906,21 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(out *jwriter.Writer, in } { out.RawByte('[') - for v101, v102 := range in.CSSKeyframesRules { - if v101 > 0 { + for v98, v99 := range in.CSSKeyframesRules { + if v98 > 0 { out.RawByte(',') } - if v102 == nil { + if v99 == nil { out.RawString("null") } else { - (*v102).MarshalEasyJSON(out) + (*v99).MarshalEasyJSON(out) } } out.RawByte(']') } } - if len(in.CSSPositionFallbackRules) != 0 { - const prefix string = ",\"cssPositionFallbackRules\":" + if len(in.CSSPositionTryRules) != 0 { + const prefix string = ",\"cssPositionTryRules\":" if first { first = false out.RawString(prefix[1:]) @@ -6947,14 +6929,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(out *jwriter.Writer, in } { out.RawByte('[') - for v103, v104 := range in.CSSPositionFallbackRules { - if v103 > 0 { + for v100, v101 := range in.CSSPositionTryRules { + if v100 > 0 { out.RawByte(',') } - if v104 == nil { + if v101 == nil { out.RawString("null") } else { - (*v104).MarshalEasyJSON(out) + (*v101).MarshalEasyJSON(out) } } out.RawByte(']') @@ -6970,14 +6952,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(out *jwriter.Writer, in } { out.RawByte('[') - for v105, v106 := range in.CSSPropertyRules { - if v105 > 0 { + for v102, v103 := range in.CSSPropertyRules { + if v102 > 0 { out.RawByte(',') } - if v106 == nil { + if v103 == nil { out.RawString("null") } else { - (*v106).MarshalEasyJSON(out) + (*v103).MarshalEasyJSON(out) } } out.RawByte(']') @@ -6993,14 +6975,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(out *jwriter.Writer, in } { out.RawByte('[') - for v107, v108 := range in.CSSPropertyRegistrations { - if v107 > 0 { + for v104, v105 := range in.CSSPropertyRegistrations { + if v104 > 0 { out.RawByte(',') } - if v108 == nil { + if v105 == nil { out.RawString("null") } else { - (*v108).MarshalEasyJSON(out) + (*v105).MarshalEasyJSON(out) } } out.RawByte(']') @@ -7118,7 +7100,7 @@ func (v *GetMatchedStylesForNodeParams) UnmarshalJSON(data []byte) error { func (v *GetMatchedStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss64(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss65(in *jlexer.Lexer, out *GetLayersForNodeReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss65(in *jlexer.Lexer, out *GetLocationForSelectorReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -7137,15 +7119,36 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss65(in *jlexer.Lexer, out * continue } switch key { - case "rootLayer": + case "ranges": if in.IsNull() { in.Skip() - out.RootLayer = nil + out.Ranges = nil } else { - if out.RootLayer == nil { - out.RootLayer = new(LayerData) + in.Delim('[') + if out.Ranges == nil { + if !in.IsDelim(']') { + out.Ranges = make([]*SourceRange, 0, 8) + } else { + out.Ranges = []*SourceRange{} + } + } else { + out.Ranges = (out.Ranges)[:0] } - (*out.RootLayer).UnmarshalEasyJSON(in) + for !in.IsDelim(']') { + var v106 *SourceRange + if in.IsNull() { + in.Skip() + v106 = nil + } else { + if v106 == nil { + v106 = new(SourceRange) + } + (*v106).UnmarshalEasyJSON(in) + } + out.Ranges = append(out.Ranges, v106) + in.WantComma() + } + in.Delim(']') } default: in.SkipRecursive() @@ -7157,43 +7160,56 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss65(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss65(out *jwriter.Writer, in GetLayersForNodeReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss65(out *jwriter.Writer, in GetLocationForSelectorReturns) { out.RawByte('{') first := true _ = first - if in.RootLayer != nil { - const prefix string = ",\"rootLayer\":" + if len(in.Ranges) != 0 { + const prefix string = ",\"ranges\":" first = false out.RawString(prefix[1:]) - (*in.RootLayer).MarshalEasyJSON(out) + { + out.RawByte('[') + for v107, v108 := range in.Ranges { + if v107 > 0 { + out.RawByte(',') + } + if v108 == nil { + out.RawString("null") + } else { + (*v108).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetLayersForNodeReturns) MarshalJSON() ([]byte, error) { +func (v GetLocationForSelectorReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss65(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetLayersForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { +func (v GetLocationForSelectorReturns) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss65(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetLayersForNodeReturns) UnmarshalJSON(data []byte) error { +func (v *GetLocationForSelectorReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss65(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetLayersForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetLocationForSelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss65(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss66(in *jlexer.Lexer, out *GetLayersForNodeParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss66(in *jlexer.Lexer, out *GetLocationForSelectorParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -7212,8 +7228,10 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss66(in *jlexer.Lexer, out * continue } switch key { - case "nodeId": - (out.NodeID).UnmarshalEasyJSON(in) + case "styleSheetId": + out.StyleSheetID = StyleSheetID(in.String()) + case "selectorText": + out.SelectorText = string(in.String()) default: in.SkipRecursive() } @@ -7224,42 +7242,47 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss66(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss66(out *jwriter.Writer, in GetLayersForNodeParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss66(out *jwriter.Writer, in GetLocationForSelectorParams) { out.RawByte('{') first := true _ = first { - const prefix string = ",\"nodeId\":" + const prefix string = ",\"styleSheetId\":" out.RawString(prefix[1:]) - out.Int64(int64(in.NodeID)) + out.String(string(in.StyleSheetID)) + } + { + const prefix string = ",\"selectorText\":" + out.RawString(prefix) + out.String(string(in.SelectorText)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetLayersForNodeParams) MarshalJSON() ([]byte, error) { +func (v GetLocationForSelectorParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss66(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetLayersForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v GetLocationForSelectorParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss66(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetLayersForNodeParams) UnmarshalJSON(data []byte) error { +func (v *GetLocationForSelectorParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss66(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetLayersForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetLocationForSelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss66(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(in *jlexer.Lexer, out *GetInlineStylesForNodeReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(in *jlexer.Lexer, out *GetLayersForNodeReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -7278,25 +7301,15 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(in *jlexer.Lexer, out * continue } switch key { - case "inlineStyle": - if in.IsNull() { - in.Skip() - out.InlineStyle = nil - } else { - if out.InlineStyle == nil { - out.InlineStyle = new(Style) - } - (*out.InlineStyle).UnmarshalEasyJSON(in) - } - case "attributesStyle": + case "rootLayer": if in.IsNull() { in.Skip() - out.AttributesStyle = nil + out.RootLayer = nil } else { - if out.AttributesStyle == nil { - out.AttributesStyle = new(Style) + if out.RootLayer == nil { + out.RootLayer = new(LayerData) } - (*out.AttributesStyle).UnmarshalEasyJSON(in) + (*out.RootLayer).UnmarshalEasyJSON(in) } default: in.SkipRecursive() @@ -7308,13 +7321,164 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss67(out *jwriter.Writer, in GetInlineStylesForNodeReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss67(out *jwriter.Writer, in GetLayersForNodeReturns) { out.RawByte('{') first := true _ = first - if in.InlineStyle != nil { - const prefix string = ",\"inlineStyle\":" - first = false + if in.RootLayer != nil { + const prefix string = ",\"rootLayer\":" + first = false + out.RawString(prefix[1:]) + (*in.RootLayer).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetLayersForNodeReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss67(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetLayersForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss67(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetLayersForNodeReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetLayersForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss68(in *jlexer.Lexer, out *GetLayersForNodeParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "nodeId": + (out.NodeID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss68(out *jwriter.Writer, in GetLayersForNodeParams) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"nodeId\":" + out.RawString(prefix[1:]) + out.Int64(int64(in.NodeID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetLayersForNodeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss68(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetLayersForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss68(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetLayersForNodeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss68(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetLayersForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss68(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss69(in *jlexer.Lexer, out *GetInlineStylesForNodeReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "inlineStyle": + if in.IsNull() { + in.Skip() + out.InlineStyle = nil + } else { + if out.InlineStyle == nil { + out.InlineStyle = new(Style) + } + (*out.InlineStyle).UnmarshalEasyJSON(in) + } + case "attributesStyle": + if in.IsNull() { + in.Skip() + out.AttributesStyle = nil + } else { + if out.AttributesStyle == nil { + out.AttributesStyle = new(Style) + } + (*out.AttributesStyle).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss69(out *jwriter.Writer, in GetInlineStylesForNodeReturns) { + out.RawByte('{') + first := true + _ = first + if in.InlineStyle != nil { + const prefix string = ",\"inlineStyle\":" + first = false out.RawString(prefix[1:]) (*in.InlineStyle).MarshalEasyJSON(out) } @@ -7334,27 +7498,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss67(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetInlineStylesForNodeReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss67(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss69(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetInlineStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss67(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss69(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetInlineStylesForNodeReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss69(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetInlineStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss69(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss68(in *jlexer.Lexer, out *GetInlineStylesForNodeParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss70(in *jlexer.Lexer, out *GetInlineStylesForNodeParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -7385,7 +7549,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss68(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss68(out *jwriter.Writer, in GetInlineStylesForNodeParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss70(out *jwriter.Writer, in GetInlineStylesForNodeParams) { out.RawByte('{') first := true _ = first @@ -7400,27 +7564,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss68(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetInlineStylesForNodeParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss68(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss70(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetInlineStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss68(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss70(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetInlineStylesForNodeParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss68(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss70(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetInlineStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss68(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss70(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss69(in *jlexer.Lexer, out *GetComputedStyleForNodeReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss71(in *jlexer.Lexer, out *GetComputedStyleForNodeReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -7480,7 +7644,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss69(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss69(out *jwriter.Writer, in GetComputedStyleForNodeReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss71(out *jwriter.Writer, in GetComputedStyleForNodeReturns) { out.RawByte('{') first := true _ = first @@ -7509,27 +7673,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss69(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetComputedStyleForNodeReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss69(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss71(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetComputedStyleForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss69(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss71(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetComputedStyleForNodeReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss69(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss71(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetComputedStyleForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss69(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss71(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss70(in *jlexer.Lexer, out *GetComputedStyleForNodeParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss72(in *jlexer.Lexer, out *GetComputedStyleForNodeParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -7560,7 +7724,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss70(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss70(out *jwriter.Writer, in GetComputedStyleForNodeParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss72(out *jwriter.Writer, in GetComputedStyleForNodeParams) { out.RawByte('{') first := true _ = first @@ -7575,27 +7739,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss70(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetComputedStyleForNodeParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss70(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss72(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetComputedStyleForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss70(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss72(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetComputedStyleForNodeParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss70(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss72(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetComputedStyleForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss70(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss72(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss71(in *jlexer.Lexer, out *GetBackgroundColorsReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss73(in *jlexer.Lexer, out *GetBackgroundColorsReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -7651,7 +7815,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss71(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss71(out *jwriter.Writer, in GetBackgroundColorsReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss73(out *jwriter.Writer, in GetBackgroundColorsReturns) { out.RawByte('{') first := true _ = first @@ -7696,27 +7860,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss71(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetBackgroundColorsReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss71(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss73(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetBackgroundColorsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss71(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss73(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetBackgroundColorsReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss71(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss73(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetBackgroundColorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss71(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss73(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss72(in *jlexer.Lexer, out *GetBackgroundColorsParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss74(in *jlexer.Lexer, out *GetBackgroundColorsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -7747,7 +7911,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss72(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss72(out *jwriter.Writer, in GetBackgroundColorsParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss74(out *jwriter.Writer, in GetBackgroundColorsParams) { out.RawByte('{') first := true _ = first @@ -7762,27 +7926,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss72(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetBackgroundColorsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss72(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss74(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetBackgroundColorsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss72(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss74(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetBackgroundColorsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss72(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss74(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetBackgroundColorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss72(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss74(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss73(in *jlexer.Lexer, out *ForcePseudoStateParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss75(in *jlexer.Lexer, out *ForcePseudoStateParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -7836,7 +8000,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss73(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss73(out *jwriter.Writer, in ForcePseudoStateParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss75(out *jwriter.Writer, in ForcePseudoStateParams) { out.RawByte('{') first := true _ = first @@ -7867,27 +8031,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss73(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v ForcePseudoStateParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss73(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss75(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ForcePseudoStateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss73(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss75(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ForcePseudoStateParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss73(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss75(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ForcePseudoStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss73(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss75(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss74(in *jlexer.Lexer, out *FontVariationAxis) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss76(in *jlexer.Lexer, out *FontVariationAxis) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -7926,7 +8090,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss74(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss74(out *jwriter.Writer, in FontVariationAxis) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss76(out *jwriter.Writer, in FontVariationAxis) { out.RawByte('{') first := true _ = first @@ -7961,27 +8125,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss74(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v FontVariationAxis) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss74(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss76(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FontVariationAxis) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss74(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss76(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FontVariationAxis) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss74(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss76(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FontVariationAxis) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss74(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss76(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss75(in *jlexer.Lexer, out *FontPaletteValuesRule) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss77(in *jlexer.Lexer, out *FontPaletteValuesRule) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8034,7 +8198,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss75(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss75(out *jwriter.Writer, in FontPaletteValuesRule) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss77(out *jwriter.Writer, in FontPaletteValuesRule) { out.RawByte('{') first := true _ = first @@ -8078,27 +8242,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss75(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v FontPaletteValuesRule) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss75(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss77(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FontPaletteValuesRule) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss75(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss77(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FontPaletteValuesRule) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss75(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss77(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FontPaletteValuesRule) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss75(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss77(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss76(in *jlexer.Lexer, out *FontFace) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss78(in *jlexer.Lexer, out *FontFace) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8176,7 +8340,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss76(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss76(out *jwriter.Writer, in FontFace) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss78(out *jwriter.Writer, in FontFace) { out.RawByte('{') first := true _ = first @@ -8249,27 +8413,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss76(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v FontFace) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss76(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss78(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FontFace) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss76(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss78(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FontFace) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss76(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss78(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FontFace) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss76(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss78(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss77(in *jlexer.Lexer, out *EventStyleSheetRemoved) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss79(in *jlexer.Lexer, out *EventStyleSheetRemoved) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8300,7 +8464,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss77(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss77(out *jwriter.Writer, in EventStyleSheetRemoved) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss79(out *jwriter.Writer, in EventStyleSheetRemoved) { out.RawByte('{') first := true _ = first @@ -8315,27 +8479,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss77(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventStyleSheetRemoved) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss77(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss79(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventStyleSheetRemoved) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss77(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss79(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventStyleSheetRemoved) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss77(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss79(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventStyleSheetRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss77(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss79(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss78(in *jlexer.Lexer, out *EventStyleSheetChanged) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss80(in *jlexer.Lexer, out *EventStyleSheetChanged) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8366,7 +8530,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss78(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss78(out *jwriter.Writer, in EventStyleSheetChanged) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss80(out *jwriter.Writer, in EventStyleSheetChanged) { out.RawByte('{') first := true _ = first @@ -8381,27 +8545,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss78(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventStyleSheetChanged) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss78(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss80(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventStyleSheetChanged) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss78(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss80(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventStyleSheetChanged) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss78(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss80(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventStyleSheetChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss78(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss80(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss79(in *jlexer.Lexer, out *EventStyleSheetAdded) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss81(in *jlexer.Lexer, out *EventStyleSheetAdded) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8440,7 +8604,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss79(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss79(out *jwriter.Writer, in EventStyleSheetAdded) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss81(out *jwriter.Writer, in EventStyleSheetAdded) { out.RawByte('{') first := true _ = first @@ -8459,27 +8623,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss79(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventStyleSheetAdded) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss79(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss81(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventStyleSheetAdded) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss79(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss81(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventStyleSheetAdded) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss79(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss81(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventStyleSheetAdded) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss79(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss81(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss80(in *jlexer.Lexer, out *EventMediaQueryResultChanged) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss82(in *jlexer.Lexer, out *EventMediaQueryResultChanged) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8508,7 +8672,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss80(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss80(out *jwriter.Writer, in EventMediaQueryResultChanged) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss82(out *jwriter.Writer, in EventMediaQueryResultChanged) { out.RawByte('{') first := true _ = first @@ -8518,27 +8682,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss80(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventMediaQueryResultChanged) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss80(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss82(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventMediaQueryResultChanged) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss80(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss82(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventMediaQueryResultChanged) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss80(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss82(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventMediaQueryResultChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss80(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss82(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss81(in *jlexer.Lexer, out *EventFontsUpdated) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss83(in *jlexer.Lexer, out *EventFontsUpdated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8577,7 +8741,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss81(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss81(out *jwriter.Writer, in EventFontsUpdated) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss83(out *jwriter.Writer, in EventFontsUpdated) { out.RawByte('{') first := true _ = first @@ -8593,27 +8757,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss81(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventFontsUpdated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss81(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss83(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFontsUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss81(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss83(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFontsUpdated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss81(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss83(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFontsUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss81(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss83(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss82(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss84(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8642,7 +8806,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss82(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss82(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss84(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -8652,27 +8816,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss82(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss82(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss84(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss82(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss84(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss82(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss84(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss82(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss84(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss83(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss85(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8701,7 +8865,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss83(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss83(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss85(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -8711,27 +8875,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss83(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss83(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss85(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss83(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss85(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss83(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss85(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss83(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss85(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss84(in *jlexer.Lexer, out *CreateStyleSheetReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss86(in *jlexer.Lexer, out *CreateStyleSheetReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8762,7 +8926,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss84(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss84(out *jwriter.Writer, in CreateStyleSheetReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss86(out *jwriter.Writer, in CreateStyleSheetReturns) { out.RawByte('{') first := true _ = first @@ -8778,27 +8942,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss84(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v CreateStyleSheetReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss84(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss86(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateStyleSheetReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss84(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss86(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateStyleSheetReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss84(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss86(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateStyleSheetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss84(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss86(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss85(in *jlexer.Lexer, out *CreateStyleSheetParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss87(in *jlexer.Lexer, out *CreateStyleSheetParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8829,7 +8993,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss85(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss85(out *jwriter.Writer, in CreateStyleSheetParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss87(out *jwriter.Writer, in CreateStyleSheetParams) { out.RawByte('{') first := true _ = first @@ -8844,27 +9008,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss85(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v CreateStyleSheetParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss85(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss87(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateStyleSheetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss85(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss87(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateStyleSheetParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss85(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss87(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateStyleSheetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss85(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss87(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss86(in *jlexer.Lexer, out *ContainerQuery) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss88(in *jlexer.Lexer, out *ContainerQuery) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8913,7 +9077,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss86(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss86(out *jwriter.Writer, in ContainerQuery) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss88(out *jwriter.Writer, in ContainerQuery) { out.RawByte('{') first := true _ = first @@ -8953,27 +9117,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss86(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v ContainerQuery) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss86(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss88(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ContainerQuery) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss86(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss88(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ContainerQuery) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss86(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss88(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ContainerQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss86(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss88(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss87(in *jlexer.Lexer, out *ComputedStyleProperty) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss89(in *jlexer.Lexer, out *ComputedStyleProperty) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9006,7 +9170,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss87(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss87(out *jwriter.Writer, in ComputedStyleProperty) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss89(out *jwriter.Writer, in ComputedStyleProperty) { out.RawByte('{') first := true _ = first @@ -9026,27 +9190,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss87(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v ComputedStyleProperty) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss87(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss89(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ComputedStyleProperty) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss87(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss89(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ComputedStyleProperty) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss87(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss89(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ComputedStyleProperty) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss87(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss89(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss88(in *jlexer.Lexer, out *CollectClassNamesReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss90(in *jlexer.Lexer, out *CollectClassNamesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9098,7 +9262,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss88(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss88(out *jwriter.Writer, in CollectClassNamesReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss90(out *jwriter.Writer, in CollectClassNamesReturns) { out.RawByte('{') first := true _ = first @@ -9123,27 +9287,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss88(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v CollectClassNamesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss88(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss90(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CollectClassNamesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss88(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss90(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CollectClassNamesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss88(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss90(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CollectClassNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss88(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss90(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss89(in *jlexer.Lexer, out *CollectClassNamesParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss91(in *jlexer.Lexer, out *CollectClassNamesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9174,7 +9338,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss89(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss89(out *jwriter.Writer, in CollectClassNamesParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss91(out *jwriter.Writer, in CollectClassNamesParams) { out.RawByte('{') first := true _ = first @@ -9189,27 +9353,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss89(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v CollectClassNamesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss89(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss91(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CollectClassNamesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss89(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss91(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CollectClassNamesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss89(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss91(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CollectClassNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss89(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss91(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss90(in *jlexer.Lexer, out *AddRuleReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss92(in *jlexer.Lexer, out *AddRuleReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9248,7 +9412,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss90(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss90(out *jwriter.Writer, in AddRuleReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss92(out *jwriter.Writer, in AddRuleReturns) { out.RawByte('{') first := true _ = first @@ -9264,27 +9428,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss90(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v AddRuleReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss90(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss92(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddRuleReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss90(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss92(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddRuleReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss90(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss92(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddRuleReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss90(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss92(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss91(in *jlexer.Lexer, out *AddRuleParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss93(in *jlexer.Lexer, out *AddRuleParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9329,7 +9493,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss91(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss91(out *jwriter.Writer, in AddRuleParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss93(out *jwriter.Writer, in AddRuleParams) { out.RawByte('{') first := true _ = first @@ -9363,23 +9527,23 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss91(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v AddRuleParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss91(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss93(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddRuleParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss91(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss93(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddRuleParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss91(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss93(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddRuleParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss91(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss93(l, v) } diff --git a/css/types.go b/css/types.go index f32fd64..7c1887d 100644 --- a/css/types.go +++ b/css/types.go @@ -430,12 +430,14 @@ type TryRule struct { Style *Style `json:"style"` // Associated style declaration. } -// PositionFallbackRule CSS position-fallback rule representation. +// PositionTryRule CSS @position-try rule representation. // -// See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSPositionFallbackRule -type PositionFallbackRule struct { - Name *Value `json:"name"` - TryRules []*TryRule `json:"tryRules"` // List of keyframes. +// See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSPositionTryRule +type PositionTryRule struct { + Name *Value `json:"name"` // The prelude dashed-ident name + StyleSheetID StyleSheetID `json:"styleSheetId,omitempty"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from. + Origin StyleSheetOrigin `json:"origin"` // Parent stylesheet's origin. + Style *Style `json:"style"` // Associated style declaration. } // KeyframesRule CSS keyframes rule representation. diff --git a/emulation/easyjson.go b/emulation/easyjson.go index 87cc70f..4f9ad98 100644 --- a/emulation/easyjson.go +++ b/emulation/easyjson.go @@ -3485,129 +3485,3 @@ func (v *ClearDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error { func (v *ClearDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation42(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation43(in *jlexer.Lexer, out *CanEmulateReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "result": - out.Result = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation43(out *jwriter.Writer, in CanEmulateReturns) { - out.RawByte('{') - first := true - _ = first - if in.Result { - const prefix string = ",\"result\":" - first = false - out.RawString(prefix[1:]) - out.Bool(bool(in.Result)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CanEmulateReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation43(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CanEmulateReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation43(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CanEmulateReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation43(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CanEmulateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation43(l, v) -} -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation44(in *jlexer.Lexer, out *CanEmulateParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation44(out *jwriter.Writer, in CanEmulateParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CanEmulateParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation44(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CanEmulateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation44(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CanEmulateParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation44(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CanEmulateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation44(l, v) -} diff --git a/emulation/emulation.go b/emulation/emulation.go index 7910a9b..0701b35 100644 --- a/emulation/emulation.go +++ b/emulation/emulation.go @@ -15,37 +15,6 @@ import ( "github.com/chromedp/cdproto/page" ) -// CanEmulateParams tells whether emulation is supported. -type CanEmulateParams struct{} - -// CanEmulate tells whether emulation is supported. -// -// See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-canEmulate -func CanEmulate() *CanEmulateParams { - return &CanEmulateParams{} -} - -// CanEmulateReturns return values. -type CanEmulateReturns struct { - Result bool `json:"result,omitempty"` // True if emulation is supported. -} - -// Do executes Emulation.canEmulate against the provided context. -// -// returns: -// -// result - True if emulation is supported. -func (p *CanEmulateParams) Do(ctx context.Context) (result bool, err error) { - // execute - var res CanEmulateReturns - err = cdp.Execute(ctx, CommandCanEmulate, nil, &res) - if err != nil { - return false, err - } - - return res.Result, nil -} - // ClearDeviceMetricsOverrideParams clears the overridden device metrics. type ClearDeviceMetricsOverrideParams struct{} @@ -959,7 +928,6 @@ func (p *SetAutomationOverrideParams) Do(ctx context.Context) (err error) { // Command names. const ( - CommandCanEmulate = "Emulation.canEmulate" CommandClearDeviceMetricsOverride = "Emulation.clearDeviceMetricsOverride" CommandClearGeolocationOverride = "Emulation.clearGeolocationOverride" CommandResetPageScaleFactor = "Emulation.resetPageScaleFactor" diff --git a/network/easyjson.go b/network/easyjson.go index eefd19a..2af649a 100644 --- a/network/easyjson.go +++ b/network/easyjson.go @@ -3591,8 +3591,6 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork29(in *jlexer.Lexer, o } in.Delim('}') } - case "postData": - out.PostData = string(in.String()) case "hasPostData": out.HasPostData = bool(in.Bool()) case "postDataEntries": @@ -3702,11 +3700,6 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork29(out *jwriter.Writer out.RawByte('}') } } - if in.PostData != "" { - const prefix string = ",\"postData\":" - out.RawString(prefix) - out.String(string(in.PostData)) - } if in.HasPostData { const prefix string = ",\"hasPostData\":" out.RawString(prefix) @@ -8990,6 +8983,12 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(in *jlexer.Lexer, o out.UploadThroughput = float64(in.Float64()) case "connectionType": (out.ConnectionType).UnmarshalEasyJSON(in) + case "packetLoss": + out.PacketLoss = float64(in.Float64()) + case "packetQueueLength": + out.PacketQueueLength = int64(in.Int64()) + case "packetReordering": + out.PacketReordering = bool(in.Bool()) default: in.SkipRecursive() } @@ -9029,6 +9028,21 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(out *jwriter.Writer out.RawString(prefix) (in.ConnectionType).MarshalEasyJSON(out) } + if in.PacketLoss != 0 { + const prefix string = ",\"packetLoss\":" + out.RawString(prefix) + out.Float64(float64(in.PacketLoss)) + } + if in.PacketQueueLength != 0 { + const prefix string = ",\"packetQueueLength\":" + out.RawString(prefix) + out.Int64(int64(in.PacketQueueLength)) + } + if in.PacketReordering { + const prefix string = ",\"packetReordering\":" + out.RawString(prefix) + out.Bool(bool(in.PacketReordering)) + } out.RawByte('}') } diff --git a/network/network.go b/network/network.go index e854db1..6fb1176 100644 --- a/network/network.go +++ b/network/network.go @@ -165,11 +165,14 @@ func (p *DisableParams) Do(ctx context.Context) (err error) { // EmulateNetworkConditionsParams activates emulation of network conditions. type EmulateNetworkConditionsParams struct { - Offline bool `json:"offline"` // True to emulate internet disconnection. - Latency float64 `json:"latency"` // Minimum latency from request sent to response headers received (ms). - DownloadThroughput float64 `json:"downloadThroughput"` // Maximal aggregated download throughput (bytes/sec). -1 disables download throttling. - UploadThroughput float64 `json:"uploadThroughput"` // Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling. - ConnectionType ConnectionType `json:"connectionType,omitempty"` // Connection type if known. + Offline bool `json:"offline"` // True to emulate internet disconnection. + Latency float64 `json:"latency"` // Minimum latency from request sent to response headers received (ms). + DownloadThroughput float64 `json:"downloadThroughput"` // Maximal aggregated download throughput (bytes/sec). -1 disables download throttling. + UploadThroughput float64 `json:"uploadThroughput"` // Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling. + ConnectionType ConnectionType `json:"connectionType,omitempty"` // Connection type if known. + PacketLoss float64 `json:"packetLoss,omitempty"` // WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets. + PacketQueueLength int64 `json:"packetQueueLength,omitempty"` // WebRTC packet queue length (packet). 0 removes any queue length limitations. + PacketReordering bool `json:"packetReordering,omitempty"` // WebRTC packetReordering feature. } // EmulateNetworkConditions activates emulation of network conditions. @@ -197,6 +200,26 @@ func (p EmulateNetworkConditionsParams) WithConnectionType(connectionType Connec return &p } +// WithPacketLoss webRTC packet loss (percent, 0-100). 0 disables packet loss +// emulation, 100 drops all the packets. +func (p EmulateNetworkConditionsParams) WithPacketLoss(packetLoss float64) *EmulateNetworkConditionsParams { + p.PacketLoss = packetLoss + return &p +} + +// WithPacketQueueLength webRTC packet queue length (packet). 0 removes any +// queue length limitations. +func (p EmulateNetworkConditionsParams) WithPacketQueueLength(packetQueueLength int64) *EmulateNetworkConditionsParams { + p.PacketQueueLength = packetQueueLength + return &p +} + +// WithPacketReordering webRTC packetReordering feature. +func (p EmulateNetworkConditionsParams) WithPacketReordering(packetReordering bool) *EmulateNetworkConditionsParams { + p.PacketReordering = packetReordering + return &p +} + // Do executes Network.emulateNetworkConditions against the provided context. func (p *EmulateNetworkConditionsParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandEmulateNetworkConditions, p, nil) diff --git a/network/types.go b/network/types.go index cb2c16b..e5ee09e 100644 --- a/network/types.go +++ b/network/types.go @@ -523,9 +523,8 @@ type Request struct { URLFragment string `json:"urlFragment,omitempty"` // Fragment of the requested URL starting with hash, if present. Method string `json:"method"` // HTTP request method. Headers Headers `json:"headers"` // HTTP request headers. - PostData string `json:"postData,omitempty"` // HTTP POST request data. HasPostData bool `json:"hasPostData,omitempty"` // True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long. - PostDataEntries []*PostDataEntry `json:"postDataEntries,omitempty"` // Request body elements. This will be converted from base64 to binary + PostDataEntries []*PostDataEntry `json:"postDataEntries,omitempty"` // Request body elements (post data broken into individual entries). MixedContentType security.MixedContentType `json:"mixedContentType,omitempty"` // The mixed content type of the request. InitialPriority ResourcePriority `json:"initialPriority"` // Priority of the resource request at the time request is sent. ReferrerPolicy ReferrerPolicy `json:"referrerPolicy"` // The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ diff --git a/page/events.go b/page/events.go index 2f714d7..1d86198 100644 --- a/page/events.go +++ b/page/events.go @@ -114,7 +114,7 @@ type EventJavascriptDialogOpening struct { URL string `json:"url"` // Frame url. Message string `json:"message"` // Message that will be displayed by the dialog. Type DialogType `json:"type"` // Dialog type. - HasBrowserHandler bool `json:"hasBrowserHandler"` // True if browser is capable showing or acting on the given dialog. When browser has no dialog handler for given target, calling alert while Page domain is engaged will stall the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog. + HasBrowserHandler bool `json:"hasBrowserHandler"` // True iff browser is capable showing or acting on the given dialog. When browser has no dialog handler for given target, calling alert while Page domain is engaged will stall the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog. DefaultPrompt string `json:"defaultPrompt,omitempty"` // Default dialog prompt. } diff --git a/page/types.go b/page/types.go index 434b10e..b564a66 100644 --- a/page/types.go +++ b/page/types.go @@ -59,7 +59,7 @@ const ( PermissionsPolicyFeatureChUaPlatform PermissionsPolicyFeature = "ch-ua-platform" PermissionsPolicyFeatureChUaModel PermissionsPolicyFeature = "ch-ua-model" PermissionsPolicyFeatureChUaMobile PermissionsPolicyFeature = "ch-ua-mobile" - PermissionsPolicyFeatureChUaFormFactor PermissionsPolicyFeature = "ch-ua-form-factor" + PermissionsPolicyFeatureChUaFormFactors PermissionsPolicyFeature = "ch-ua-form-factors" PermissionsPolicyFeatureChUaFullVersion PermissionsPolicyFeature = "ch-ua-full-version" PermissionsPolicyFeatureChUaFullVersionList PermissionsPolicyFeature = "ch-ua-full-version-list" PermissionsPolicyFeatureChUaPlatformVersion PermissionsPolicyFeature = "ch-ua-platform-version" @@ -183,8 +183,8 @@ func (t *PermissionsPolicyFeature) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = PermissionsPolicyFeatureChUaModel case PermissionsPolicyFeatureChUaMobile: *t = PermissionsPolicyFeatureChUaMobile - case PermissionsPolicyFeatureChUaFormFactor: - *t = PermissionsPolicyFeatureChUaFormFactor + case PermissionsPolicyFeatureChUaFormFactors: + *t = PermissionsPolicyFeatureChUaFormFactors case PermissionsPolicyFeatureChUaFullVersion: *t = PermissionsPolicyFeatureChUaFullVersion case PermissionsPolicyFeatureChUaFullVersionList: @@ -1030,6 +1030,7 @@ const ( BackForwardCacheNotRestoredReasonCookieDisabled BackForwardCacheNotRestoredReason = "CookieDisabled" BackForwardCacheNotRestoredReasonHTTPAuthRequired BackForwardCacheNotRestoredReason = "HTTPAuthRequired" BackForwardCacheNotRestoredReasonCookieFlushed BackForwardCacheNotRestoredReason = "CookieFlushed" + BackForwardCacheNotRestoredReasonBroadcastChannelOnMessage BackForwardCacheNotRestoredReason = "BroadcastChannelOnMessage" BackForwardCacheNotRestoredReasonWebSocket BackForwardCacheNotRestoredReason = "WebSocket" BackForwardCacheNotRestoredReasonWebTransport BackForwardCacheNotRestoredReason = "WebTransport" BackForwardCacheNotRestoredReasonWebRTC BackForwardCacheNotRestoredReason = "WebRTC" @@ -1233,6 +1234,8 @@ func (t *BackForwardCacheNotRestoredReason) UnmarshalEasyJSON(in *jlexer.Lexer) *t = BackForwardCacheNotRestoredReasonHTTPAuthRequired case BackForwardCacheNotRestoredReasonCookieFlushed: *t = BackForwardCacheNotRestoredReasonCookieFlushed + case BackForwardCacheNotRestoredReasonBroadcastChannelOnMessage: + *t = BackForwardCacheNotRestoredReasonBroadcastChannelOnMessage case BackForwardCacheNotRestoredReasonWebSocket: *t = BackForwardCacheNotRestoredReasonWebSocket case BackForwardCacheNotRestoredReasonWebTransport: diff --git a/preload/types.go b/preload/types.go index 1534c7d..27d50fc 100644 --- a/preload/types.go +++ b/preload/types.go @@ -32,7 +32,7 @@ type RuleSet struct { BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // A speculation rule set is either added through an inline