From 289f0eeb04e434b3e7f200acf34ea7b7a1d2dd79 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Thu, 2 Nov 2017 11:49:15 +0700 Subject: [PATCH] Updating to latest protocol.json --- cdp/cdp.go | 3 + cdp/cdputil/cdputil.go | 3 + cdp/css/easyjson.go | 456 +++++++++------------ cdp/css/types.go | 9 - cdp/dom/dom.go | 4 +- cdp/domsnapshot/easyjson.go | 152 +++++-- cdp/domsnapshot/types.go | 19 +- cdp/network/easyjson.go | 8 + cdp/network/events.go | 5 +- cdp/page/easyjson.go | 705 +++++++++++++++++++++++---------- cdp/page/events.go | 3 +- cdp/page/page.go | 29 ++ cdp/page/types.go | 53 +-- cmd/chromedp-gen/protocol.json | 422 +++++++++----------- 14 files changed, 1045 insertions(+), 826 deletions(-) diff --git a/cdp/cdp.go b/cdp/cdp.go index 3a8617d..9e20ef4 100644 --- a/cdp/cdp.go +++ b/cdp/cdp.go @@ -91,6 +91,7 @@ const ( CommandPageGetNavigationHistory MethodType = "Page.getNavigationHistory" CommandPageNavigateToHistoryEntry MethodType = "Page.navigateToHistoryEntry" CommandPageGetResourceTree MethodType = "Page.getResourceTree" + CommandPageGetFrameTree MethodType = "Page.getFrameTree" CommandPageGetResourceContent MethodType = "Page.getResourceContent" CommandPageSearchInResource MethodType = "Page.searchInResource" CommandPageSetDocumentContent MethodType = "Page.setDocumentContent" @@ -603,6 +604,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CommandPageNavigateToHistoryEntry case CommandPageGetResourceTree: *t = CommandPageGetResourceTree + case CommandPageGetFrameTree: + *t = CommandPageGetFrameTree case CommandPageGetResourceContent: *t = CommandPageGetResourceContent case CommandPageSearchInResource: diff --git a/cdp/cdputil/cdputil.go b/cdp/cdputil/cdputil.go index dd21944..8030b0d 100644 --- a/cdp/cdputil/cdputil.go +++ b/cdp/cdputil/cdputil.go @@ -125,6 +125,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) { case cdp.CommandPageGetResourceTree: v = new(page.GetResourceTreeReturns) + case cdp.CommandPageGetFrameTree: + v = new(page.GetFrameTreeReturns) + case cdp.CommandPageGetResourceContent: v = new(page.GetResourceContentReturns) diff --git a/cdp/css/easyjson.go b/cdp/css/easyjson.go index 30526e0..5ce179a 100644 --- a/cdp/css/easyjson.go +++ b/cdp/css/easyjson.go @@ -4,7 +4,6 @@ package css import ( json "encoding/json" - dom "github.com/knq/chromedp/cdp/dom" easyjson "github.com/mailru/easyjson" jlexer "github.com/mailru/easyjson/jlexer" jwriter "github.com/mailru/easyjson/jwriter" @@ -3636,102 +3635,7 @@ func (v *KeyframeRule) UnmarshalJSON(data []byte) error { func (v *KeyframeRule) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(in *jlexer.Lexer, out *InlineTextBox) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "boundingBox": - if in.IsNull() { - in.Skip() - out.BoundingBox = nil - } else { - if out.BoundingBox == nil { - out.BoundingBox = new(dom.Rect) - } - (*out.BoundingBox).UnmarshalEasyJSON(in) - } - case "startCharacterIndex": - out.StartCharacterIndex = int64(in.Int64()) - case "numCharacters": - out.NumCharacters = int64(in.Int64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(out *jwriter.Writer, in InlineTextBox) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"boundingBox\":") - if in.BoundingBox == nil { - out.RawString("null") - } else { - (*in.BoundingBox).MarshalEasyJSON(out) - } - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"startCharacterIndex\":") - out.Int64(int64(in.StartCharacterIndex)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"numCharacters\":") - out.Int64(int64(in.NumCharacters)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v InlineTextBox) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v InlineTextBox) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *InlineTextBox) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *InlineTextBox) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(in *jlexer.Lexer, out *InheritedStyleEntry) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(in *jlexer.Lexer, out *InheritedStyleEntry) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3801,7 +3705,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(in *jlexer.Lexer, out *I in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(out *jwriter.Writer, in InheritedStyleEntry) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(out *jwriter.Writer, in InheritedStyleEntry) { out.RawByte('{') first := true _ = first @@ -3844,27 +3748,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v InheritedStyleEntry) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v InheritedStyleEntry) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *InheritedStyleEntry) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *InheritedStyleEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(in *jlexer.Lexer, out *GetStyleSheetTextReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(in *jlexer.Lexer, out *GetStyleSheetTextReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3895,7 +3799,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(out *jwriter.Writer, in GetStyleSheetTextReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(out *jwriter.Writer, in GetStyleSheetTextReturns) { out.RawByte('{') first := true _ = first @@ -3913,27 +3817,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetStyleSheetTextReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetStyleSheetTextReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(in *jlexer.Lexer, out *GetStyleSheetTextParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(in *jlexer.Lexer, out *GetStyleSheetTextParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3964,7 +3868,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(out *jwriter.Writer, in GetStyleSheetTextParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(out *jwriter.Writer, in GetStyleSheetTextParams) { out.RawByte('{') first := true _ = first @@ -3980,27 +3884,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetStyleSheetTextParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetStyleSheetTextParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(in *jlexer.Lexer, out *GetPlatformFontsForNodeReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(in *jlexer.Lexer, out *GetPlatformFontsForNodeReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4060,7 +3964,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(out *jwriter.Writer, in GetPlatformFontsForNodeReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(out *jwriter.Writer, in GetPlatformFontsForNodeReturns) { out.RawByte('{') first := true _ = first @@ -4093,27 +3997,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetPlatformFontsForNodeReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetPlatformFontsForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetPlatformFontsForNodeReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetPlatformFontsForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(in *jlexer.Lexer, out *GetPlatformFontsForNodeParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(in *jlexer.Lexer, out *GetPlatformFontsForNodeParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4144,7 +4048,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(out *jwriter.Writer, in GetPlatformFontsForNodeParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(out *jwriter.Writer, in GetPlatformFontsForNodeParams) { out.RawByte('{') first := true _ = first @@ -4160,27 +4064,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetPlatformFontsForNodeParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetPlatformFontsForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetPlatformFontsForNodeParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetPlatformFontsForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(in *jlexer.Lexer, out *GetMediaQueriesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(in *jlexer.Lexer, out *GetMediaQueriesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4240,7 +4144,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(out *jwriter.Writer, in GetMediaQueriesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(out *jwriter.Writer, in GetMediaQueriesReturns) { out.RawByte('{') first := true _ = first @@ -4273,27 +4177,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetMediaQueriesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetMediaQueriesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetMediaQueriesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetMediaQueriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(in *jlexer.Lexer, out *GetMediaQueriesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(in *jlexer.Lexer, out *GetMediaQueriesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4322,7 +4226,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(out *jwriter.Writer, in GetMediaQueriesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(out *jwriter.Writer, in GetMediaQueriesParams) { out.RawByte('{') first := true _ = first @@ -4332,27 +4236,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetMediaQueriesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetMediaQueriesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetMediaQueriesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetMediaQueriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(in *jlexer.Lexer, out *GetMatchedStylesForNodeReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(in *jlexer.Lexer, out *GetMatchedStylesForNodeReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4525,7 +4429,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(out *jwriter.Writer, in GetMatchedStylesForNodeReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(out *jwriter.Writer, in GetMatchedStylesForNodeReturns) { out.RawByte('{') first := true _ = first @@ -4651,27 +4555,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetMatchedStylesForNodeReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetMatchedStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetMatchedStylesForNodeReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetMatchedStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(in *jlexer.Lexer, out *GetMatchedStylesForNodeParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(in *jlexer.Lexer, out *GetMatchedStylesForNodeParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4702,7 +4606,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(out *jwriter.Writer, in GetMatchedStylesForNodeParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(out *jwriter.Writer, in GetMatchedStylesForNodeParams) { out.RawByte('{') first := true _ = first @@ -4718,27 +4622,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetMatchedStylesForNodeParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetMatchedStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetMatchedStylesForNodeParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetMatchedStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(in *jlexer.Lexer, out *GetInlineStylesForNodeReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(in *jlexer.Lexer, out *GetInlineStylesForNodeReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4787,7 +4691,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(out *jwriter.Writer, in GetInlineStylesForNodeReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(out *jwriter.Writer, in GetInlineStylesForNodeReturns) { out.RawByte('{') first := true _ = first @@ -4821,27 +4725,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetInlineStylesForNodeReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetInlineStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetInlineStylesForNodeReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetInlineStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(in *jlexer.Lexer, out *GetInlineStylesForNodeParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(in *jlexer.Lexer, out *GetInlineStylesForNodeParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4872,7 +4776,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(out *jwriter.Writer, in GetInlineStylesForNodeParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(out *jwriter.Writer, in GetInlineStylesForNodeParams) { out.RawByte('{') first := true _ = first @@ -4888,27 +4792,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetInlineStylesForNodeParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetInlineStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetInlineStylesForNodeParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetInlineStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(in *jlexer.Lexer, out *GetComputedStyleForNodeReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(in *jlexer.Lexer, out *GetComputedStyleForNodeReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4968,7 +4872,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(out *jwriter.Writer, in GetComputedStyleForNodeReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(out *jwriter.Writer, in GetComputedStyleForNodeReturns) { out.RawByte('{') first := true _ = first @@ -5001,27 +4905,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetComputedStyleForNodeReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetComputedStyleForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetComputedStyleForNodeReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetComputedStyleForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(in *jlexer.Lexer, out *GetComputedStyleForNodeParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(in *jlexer.Lexer, out *GetComputedStyleForNodeParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5052,7 +4956,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(out *jwriter.Writer, in GetComputedStyleForNodeParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(out *jwriter.Writer, in GetComputedStyleForNodeParams) { out.RawByte('{') first := true _ = first @@ -5068,27 +4972,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetComputedStyleForNodeParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetComputedStyleForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetComputedStyleForNodeParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetComputedStyleForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(in *jlexer.Lexer, out *GetBackgroundColorsReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(in *jlexer.Lexer, out *GetBackgroundColorsReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5146,7 +5050,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(out *jwriter.Writer, in GetBackgroundColorsReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(out *jwriter.Writer, in GetBackgroundColorsReturns) { out.RawByte('{') first := true _ = first @@ -5199,27 +5103,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetBackgroundColorsReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetBackgroundColorsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetBackgroundColorsReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetBackgroundColorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(in *jlexer.Lexer, out *GetBackgroundColorsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(in *jlexer.Lexer, out *GetBackgroundColorsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5250,7 +5154,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(out *jwriter.Writer, in GetBackgroundColorsParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(out *jwriter.Writer, in GetBackgroundColorsParams) { out.RawByte('{') first := true _ = first @@ -5266,27 +5170,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetBackgroundColorsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetBackgroundColorsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetBackgroundColorsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetBackgroundColorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(in *jlexer.Lexer, out *ForcePseudoStateParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(in *jlexer.Lexer, out *ForcePseudoStateParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5340,7 +5244,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(in *jlexer.Lexer, out *F in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(out *jwriter.Writer, in ForcePseudoStateParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(out *jwriter.Writer, in ForcePseudoStateParams) { out.RawByte('{') first := true _ = first @@ -5373,27 +5277,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v ForcePseudoStateParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ForcePseudoStateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ForcePseudoStateParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ForcePseudoStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(in *jlexer.Lexer, out *EventStyleSheetRemoved) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(in *jlexer.Lexer, out *EventStyleSheetRemoved) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5424,7 +5328,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(out *jwriter.Writer, in EventStyleSheetRemoved) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(out *jwriter.Writer, in EventStyleSheetRemoved) { out.RawByte('{') first := true _ = first @@ -5440,27 +5344,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventStyleSheetRemoved) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventStyleSheetRemoved) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventStyleSheetRemoved) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventStyleSheetRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(in *jlexer.Lexer, out *EventStyleSheetChanged) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(in *jlexer.Lexer, out *EventStyleSheetChanged) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5491,7 +5395,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(out *jwriter.Writer, in EventStyleSheetChanged) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(out *jwriter.Writer, in EventStyleSheetChanged) { out.RawByte('{') first := true _ = first @@ -5507,27 +5411,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventStyleSheetChanged) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventStyleSheetChanged) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventStyleSheetChanged) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventStyleSheetChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(in *jlexer.Lexer, out *EventStyleSheetAdded) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(in *jlexer.Lexer, out *EventStyleSheetAdded) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5566,7 +5470,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(out *jwriter.Writer, in EventStyleSheetAdded) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(out *jwriter.Writer, in EventStyleSheetAdded) { out.RawByte('{') first := true _ = first @@ -5586,27 +5490,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventStyleSheetAdded) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventStyleSheetAdded) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventStyleSheetAdded) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventStyleSheetAdded) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(in *jlexer.Lexer, out *EventMediaQueryResultChanged) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(in *jlexer.Lexer, out *EventMediaQueryResultChanged) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5635,7 +5539,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(out *jwriter.Writer, in EventMediaQueryResultChanged) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(out *jwriter.Writer, in EventMediaQueryResultChanged) { out.RawByte('{') first := true _ = first @@ -5645,27 +5549,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventMediaQueryResultChanged) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventMediaQueryResultChanged) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventMediaQueryResultChanged) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventMediaQueryResultChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(in *jlexer.Lexer, out *EventFontsUpdated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(in *jlexer.Lexer, out *EventFontsUpdated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5694,7 +5598,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(out *jwriter.Writer, in EventFontsUpdated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(out *jwriter.Writer, in EventFontsUpdated) { out.RawByte('{') first := true _ = first @@ -5704,27 +5608,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventFontsUpdated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFontsUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFontsUpdated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFontsUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5753,7 +5657,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -5763,27 +5667,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5812,7 +5716,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(in *jlexer.Lexer, out *D in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -5822,27 +5726,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(in *jlexer.Lexer, out *CreateStyleSheetReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(in *jlexer.Lexer, out *CreateStyleSheetReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5873,7 +5777,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(in *jlexer.Lexer, out *C in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(out *jwriter.Writer, in CreateStyleSheetReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(out *jwriter.Writer, in CreateStyleSheetReturns) { out.RawByte('{') first := true _ = first @@ -5891,27 +5795,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v CreateStyleSheetReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateStyleSheetReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateStyleSheetReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateStyleSheetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(in *jlexer.Lexer, out *CreateStyleSheetParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(in *jlexer.Lexer, out *CreateStyleSheetParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5942,7 +5846,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(in *jlexer.Lexer, out *C in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(out *jwriter.Writer, in CreateStyleSheetParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(out *jwriter.Writer, in CreateStyleSheetParams) { out.RawByte('{') first := true _ = first @@ -5958,27 +5862,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v CreateStyleSheetParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateStyleSheetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateStyleSheetParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateStyleSheetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(in *jlexer.Lexer, out *ComputedProperty) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(in *jlexer.Lexer, out *ComputedProperty) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6011,7 +5915,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(in *jlexer.Lexer, out *C in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(out *jwriter.Writer, in ComputedProperty) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(out *jwriter.Writer, in ComputedProperty) { out.RawByte('{') first := true _ = first @@ -6033,27 +5937,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v ComputedProperty) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ComputedProperty) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ComputedProperty) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ComputedProperty) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(in *jlexer.Lexer, out *CollectClassNamesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(in *jlexer.Lexer, out *CollectClassNamesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6105,7 +6009,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(in *jlexer.Lexer, out *C in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(out *jwriter.Writer, in CollectClassNamesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(out *jwriter.Writer, in CollectClassNamesReturns) { out.RawByte('{') first := true _ = first @@ -6134,27 +6038,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v CollectClassNamesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CollectClassNamesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CollectClassNamesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CollectClassNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(in *jlexer.Lexer, out *CollectClassNamesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(in *jlexer.Lexer, out *CollectClassNamesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6185,7 +6089,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(in *jlexer.Lexer, out *C in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(out *jwriter.Writer, in CollectClassNamesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(out *jwriter.Writer, in CollectClassNamesParams) { out.RawByte('{') first := true _ = first @@ -6201,27 +6105,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v CollectClassNamesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CollectClassNamesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CollectClassNamesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CollectClassNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(in *jlexer.Lexer, out *AddRuleReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(in *jlexer.Lexer, out *AddRuleReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6260,7 +6164,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(in *jlexer.Lexer, out *A in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(out *jwriter.Writer, in AddRuleReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(out *jwriter.Writer, in AddRuleReturns) { out.RawByte('{') first := true _ = first @@ -6282,27 +6186,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v AddRuleReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddRuleReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddRuleReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddRuleReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(in *jlexer.Lexer, out *AddRuleParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(in *jlexer.Lexer, out *AddRuleParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6345,7 +6249,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(in *jlexer.Lexer, out *A in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(out *jwriter.Writer, in AddRuleParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(out *jwriter.Writer, in AddRuleParams) { out.RawByte('{') first := true _ = first @@ -6377,23 +6281,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v AddRuleParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddRuleParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddRuleParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddRuleParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(l, v) } diff --git a/cdp/css/types.go b/cdp/css/types.go index 9fbf8bd..c23e6a3 100644 --- a/cdp/css/types.go +++ b/cdp/css/types.go @@ -6,7 +6,6 @@ import ( "errors" cdp "github.com/knq/chromedp/cdp" - "github.com/knq/chromedp/cdp/dom" "github.com/mailru/easyjson" "github.com/mailru/easyjson/jlexer" "github.com/mailru/easyjson/jwriter" @@ -233,14 +232,6 @@ type StyleDeclarationEdit struct { Text string `json:"text"` // New style text. } -// InlineTextBox details of post layout rendered text positions. The exact -// layout should not be regarded as stable and may change between versions. -type InlineTextBox struct { - BoundingBox *dom.Rect `json:"boundingBox"` // The absolute position bounding box. - StartCharacterIndex int64 `json:"startCharacterIndex"` // The starting index in characters, for this post layout textbox substring. - NumCharacters int64 `json:"numCharacters"` // The number of characters in this post layout textbox substring. -} - // MediaSource source of the media query: "mediaRule" if specified by a // @media rule, "importRule" if specified by an @import rule, "linkedSheet" if // specified by a "media" attribute in a linked stylesheet's LINK tag, diff --git a/cdp/dom/dom.go b/cdp/dom/dom.go index 9ddc4c6..e8d87bc 100644 --- a/cdp/dom/dom.go +++ b/cdp/dom/dom.go @@ -1132,14 +1132,14 @@ func (p *SetFileInputFilesParams) Do(ctxt context.Context, h cdp.Handler) (err e return h.Execute(ctxt, cdp.CommandDOMSetFileInputFiles, p, nil) } -// GetBoxModelParams returns boxes for the currently selected nodes. +// GetBoxModelParams returns boxes for the given node. type GetBoxModelParams struct { NodeID cdp.NodeID `json:"nodeId,omitempty"` // Identifier of the node. BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Identifier of the backend node. ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"` // JavaScript object id of the node wrapper. } -// GetBoxModel returns boxes for the currently selected nodes. +// GetBoxModel returns boxes for the given node. // // parameters: func GetBoxModel() *GetBoxModelParams { diff --git a/cdp/domsnapshot/easyjson.go b/cdp/domsnapshot/easyjson.go index 7341e06..9c72cdc 100644 --- a/cdp/domsnapshot/easyjson.go +++ b/cdp/domsnapshot/easyjson.go @@ -4,7 +4,6 @@ package domsnapshot import ( json "encoding/json" - css "github.com/knq/chromedp/cdp/css" dom "github.com/knq/chromedp/cdp/dom" easyjson "github.com/mailru/easyjson" jlexer "github.com/mailru/easyjson/jlexer" @@ -135,21 +134,21 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot1(in *jlexer.Lexer, in.Delim('[') if out.InlineTextNodes == nil { if !in.IsDelim(']') { - out.InlineTextNodes = make([]*css.InlineTextBox, 0, 8) + out.InlineTextNodes = make([]*InlineTextBox, 0, 8) } else { - out.InlineTextNodes = []*css.InlineTextBox{} + out.InlineTextNodes = []*InlineTextBox{} } } else { out.InlineTextNodes = (out.InlineTextNodes)[:0] } for !in.IsDelim(']') { - var v1 *css.InlineTextBox + var v1 *InlineTextBox if in.IsNull() { in.Skip() v1 = nil } else { if v1 == nil { - v1 = new(css.InlineTextBox) + v1 = new(InlineTextBox) } (*v1).UnmarshalEasyJSON(in) } @@ -255,7 +254,102 @@ func (v *LayoutTreeNode) UnmarshalJSON(data []byte) error { func (v *LayoutTreeNode) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot2(in *jlexer.Lexer, out *GetSnapshotReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot2(in *jlexer.Lexer, out *InlineTextBox) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "boundingBox": + if in.IsNull() { + in.Skip() + out.BoundingBox = nil + } else { + if out.BoundingBox == nil { + out.BoundingBox = new(dom.Rect) + } + (*out.BoundingBox).UnmarshalEasyJSON(in) + } + case "startCharacterIndex": + out.StartCharacterIndex = int64(in.Int64()) + case "numCharacters": + out.NumCharacters = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot2(out *jwriter.Writer, in InlineTextBox) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"boundingBox\":") + if in.BoundingBox == nil { + out.RawString("null") + } else { + (*in.BoundingBox).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startCharacterIndex\":") + out.Int64(int64(in.StartCharacterIndex)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"numCharacters\":") + out.Int64(int64(in.NumCharacters)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v InlineTextBox) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v InlineTextBox) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *InlineTextBox) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *InlineTextBox) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot3(in *jlexer.Lexer, out *GetSnapshotReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -377,7 +471,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot2(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot2(out *jwriter.Writer, in GetSnapshotReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot3(out *jwriter.Writer, in GetSnapshotReturns) { out.RawByte('{') first := true _ = first @@ -456,27 +550,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot2(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v GetSnapshotReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot2(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot2(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetSnapshotReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot2(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot2(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot3(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot3(in *jlexer.Lexer, out *GetSnapshotParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot4(in *jlexer.Lexer, out *GetSnapshotParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -528,7 +622,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot3(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot3(out *jwriter.Writer, in GetSnapshotParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot4(out *jwriter.Writer, in GetSnapshotParams) { out.RawByte('{') first := true _ = first @@ -555,27 +649,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot3(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v GetSnapshotParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot3(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot3(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetSnapshotParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot3(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot3(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot4(in *jlexer.Lexer, out *DOMNode) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot5(in *jlexer.Lexer, out *DOMNode) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -723,7 +817,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot4(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot4(out *jwriter.Writer, in DOMNode) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot5(out *jwriter.Writer, in DOMNode) { out.RawByte('{') first := true _ = first @@ -954,27 +1048,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot4(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v DOMNode) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DOMNode) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot4(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DOMNode) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot4(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DOMNode) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot4(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot5(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot5(in *jlexer.Lexer, out *ComputedStyle) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot6(in *jlexer.Lexer, out *ComputedStyle) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1034,7 +1128,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot5(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot5(out *jwriter.Writer, in ComputedStyle) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot6(out *jwriter.Writer, in ComputedStyle) { out.RawByte('{') first := true _ = first @@ -1065,23 +1159,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot5(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v ComputedStyle) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot5(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ComputedStyle) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot5(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomsnapshot6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ComputedStyle) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot5(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ComputedStyle) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot5(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomsnapshot6(l, v) } diff --git a/cdp/domsnapshot/types.go b/cdp/domsnapshot/types.go index 1563306..c80e326 100644 --- a/cdp/domsnapshot/types.go +++ b/cdp/domsnapshot/types.go @@ -4,7 +4,6 @@ package domsnapshot import ( cdp "github.com/knq/chromedp/cdp" - "github.com/knq/chromedp/cdp/css" "github.com/knq/chromedp/cdp/dom" ) @@ -36,13 +35,21 @@ type DOMNode struct { IsClickable bool `json:"isClickable,omitempty"` // Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked. } +// InlineTextBox details of post layout rendered text positions. The exact +// layout should not be regarded as stable and may change between versions. +type InlineTextBox struct { + BoundingBox *dom.Rect `json:"boundingBox"` // The absolute position bounding box. + StartCharacterIndex int64 `json:"startCharacterIndex"` // The starting index in characters, for this post layout textbox substring. + NumCharacters int64 `json:"numCharacters"` // The number of characters in this post layout textbox substring. +} + // LayoutTreeNode details of an element in the DOM tree with a LayoutObject. type LayoutTreeNode struct { - DomNodeIndex int64 `json:"domNodeIndex"` // The index of the related DOM node in the domNodes array returned by getSnapshot. - BoundingBox *dom.Rect `json:"boundingBox"` // The absolute position bounding box. - LayoutText string `json:"layoutText,omitempty"` // Contents of the LayoutText, if any. - InlineTextNodes []*css.InlineTextBox `json:"inlineTextNodes,omitempty"` // The post-layout inline text nodes, if any. - StyleIndex int64 `json:"styleIndex,omitempty"` // Index into the computedStyles array returned by getSnapshot. + DomNodeIndex int64 `json:"domNodeIndex"` // The index of the related DOM node in the domNodes array returned by getSnapshot. + BoundingBox *dom.Rect `json:"boundingBox"` // The absolute position bounding box. + LayoutText string `json:"layoutText,omitempty"` // Contents of the LayoutText, if any. + InlineTextNodes []*InlineTextBox `json:"inlineTextNodes,omitempty"` // The post-layout inline text nodes, if any. + StyleIndex int64 `json:"styleIndex,omitempty"` // Index into the computedStyles array returned by getSnapshot. } // ComputedStyle a subset of the full ComputedStyle as defined by the request diff --git a/cdp/network/easyjson.go b/cdp/network/easyjson.go index 04d6c93..c19d5a0 100644 --- a/cdp/network/easyjson.go +++ b/cdp/network/easyjson.go @@ -4666,6 +4666,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(in *jlexer.Lexer, ou } (*out.Request).UnmarshalEasyJSON(in) } + case "frameId": + (out.FrameID).UnmarshalEasyJSON(in) case "resourceType": (out.ResourceType).UnmarshalEasyJSON(in) case "isNavigationRequest": @@ -4744,6 +4746,12 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(out *jwriter.Writer, out.RawByte(',') } first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + if !first { + out.RawByte(',') + } + first = false out.RawString("\"resourceType\":") (in.ResourceType).MarshalEasyJSON(out) if !first { diff --git a/cdp/network/events.go b/cdp/network/events.go index be4ecd3..16fb602 100644 --- a/cdp/network/events.go +++ b/cdp/network/events.go @@ -18,7 +18,7 @@ type EventResourceChangedPriority struct { // EventRequestWillBeSent fired when page is about to send HTTP request. type EventRequestWillBeSent struct { RequestID RequestID `json:"requestId"` // Request identifier. - LoaderID cdp.LoaderID `json:"loaderId"` // Loader identifier. Empty string if the request is fetched form worker. + LoaderID cdp.LoaderID `json:"loaderId"` // Loader identifier. Empty string if the request is fetched from worker. DocumentURL string `json:"documentURL"` // URL of the document this request is loaded for. Request *Request `json:"request"` // Request data. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. @@ -37,7 +37,7 @@ type EventRequestServedFromCache struct { // EventResponseReceived fired when HTTP response is available. type EventResponseReceived struct { RequestID RequestID `json:"requestId"` // Request identifier. - LoaderID cdp.LoaderID `json:"loaderId"` // Loader identifier. Empty string if the request is fetched form worker. + LoaderID cdp.LoaderID `json:"loaderId"` // Loader identifier. Empty string if the request is fetched from worker. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. Type page.ResourceType `json:"type"` // Resource type. Response *Response `json:"response"` // Response data. @@ -135,6 +135,7 @@ type EventEventSourceMessageReceived struct { type EventRequestIntercepted struct { InterceptionID InterceptionID `json:"interceptionId"` // Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch. Likewise if HTTP authentication is needed then the same fetch id will be used. Request *Request `json:"request"` + FrameID cdp.FrameID `json:"frameId"` // The id of the frame that initiated the request. ResourceType page.ResourceType `json:"resourceType"` // How the requested resource will be used. IsNavigationRequest bool `json:"isNavigationRequest"` // Whether this is a navigation request, which can abort the navigation completely. RedirectHeaders Headers `json:"redirectHeaders,omitempty"` // HTTP response headers, only sent if a redirect was intercepted. diff --git a/cdp/page/easyjson.go b/cdp/page/easyjson.go index 5c627b0..267be8c 100644 --- a/cdp/page/easyjson.go +++ b/cdp/page/easyjson.go @@ -2763,7 +2763,147 @@ func (v *GetLayoutMetricsParams) UnmarshalJSON(data []byte) error { func (v *GetLayoutMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage31(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(in *jlexer.Lexer, out *GetAppManifestReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(in *jlexer.Lexer, out *GetFrameTreeReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "frameTree": + if in.IsNull() { + in.Skip() + out.FrameTree = nil + } else { + if out.FrameTree == nil { + out.FrameTree = new(FrameTree) + } + (*out.FrameTree).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(out *jwriter.Writer, in GetFrameTreeReturns) { + out.RawByte('{') + first := true + _ = first + if in.FrameTree != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameTree\":") + if in.FrameTree == nil { + out.RawString("null") + } else { + (*in.FrameTree).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetFrameTreeReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetFrameTreeReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetFrameTreeReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetFrameTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(in *jlexer.Lexer, out *GetFrameTreeParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(out *jwriter.Writer, in GetFrameTreeParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetFrameTreeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetFrameTreeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetFrameTreeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetFrameTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(in *jlexer.Lexer, out *GetAppManifestReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2827,7 +2967,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(out *jwriter.Writer, in GetAppManifestReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(out *jwriter.Writer, in GetAppManifestReturns) { out.RawByte('{') first := true _ = first @@ -2876,27 +3016,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetAppManifestReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetAppManifestReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetAppManifestReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetAppManifestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(in *jlexer.Lexer, out *GetAppManifestParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(in *jlexer.Lexer, out *GetAppManifestParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2925,7 +3065,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(out *jwriter.Writer, in GetAppManifestParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(out *jwriter.Writer, in GetAppManifestParams) { out.RawByte('{') first := true _ = first @@ -2935,27 +3075,160 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetAppManifestParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetAppManifestParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetAppManifestParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetAppManifestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(in *jlexer.Lexer, out *FrameResourceTree) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(in *jlexer.Lexer, out *FrameTree) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "frame": + if in.IsNull() { + in.Skip() + out.Frame = nil + } else { + if out.Frame == nil { + out.Frame = new(cdp.Frame) + } + (*out.Frame).UnmarshalEasyJSON(in) + } + case "childFrames": + if in.IsNull() { + in.Skip() + out.ChildFrames = nil + } else { + in.Delim('[') + if out.ChildFrames == nil { + if !in.IsDelim(']') { + out.ChildFrames = make([]*FrameTree, 0, 8) + } else { + out.ChildFrames = []*FrameTree{} + } + } else { + out.ChildFrames = (out.ChildFrames)[:0] + } + for !in.IsDelim(']') { + var v10 *FrameTree + if in.IsNull() { + in.Skip() + v10 = nil + } else { + if v10 == nil { + v10 = new(FrameTree) + } + (*v10).UnmarshalEasyJSON(in) + } + out.ChildFrames = append(out.ChildFrames, v10) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(out *jwriter.Writer, in FrameTree) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frame\":") + if in.Frame == nil { + out.RawString("null") + } else { + (*in.Frame).MarshalEasyJSON(out) + } + if len(in.ChildFrames) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"childFrames\":") + if in.ChildFrames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v11, v12 := range in.ChildFrames { + if v11 > 0 { + out.RawByte(',') + } + if v12 == nil { + out.RawString("null") + } else { + (*v12).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v FrameTree) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v FrameTree) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *FrameTree) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *FrameTree) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(in *jlexer.Lexer, out *FrameResourceTree) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3000,17 +3273,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(in *jlexer.Lexer, out * out.ChildFrames = (out.ChildFrames)[:0] } for !in.IsDelim(']') { - var v10 *FrameResourceTree + var v13 *FrameResourceTree if in.IsNull() { in.Skip() - v10 = nil + v13 = nil } else { - if v10 == nil { - v10 = new(FrameResourceTree) + if v13 == nil { + v13 = new(FrameResourceTree) } - (*v10).UnmarshalEasyJSON(in) + (*v13).UnmarshalEasyJSON(in) } - out.ChildFrames = append(out.ChildFrames, v10) + out.ChildFrames = append(out.ChildFrames, v13) in.WantComma() } in.Delim(']') @@ -3031,17 +3304,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(in *jlexer.Lexer, out * out.Resources = (out.Resources)[:0] } for !in.IsDelim(']') { - var v11 *FrameResource + var v14 *FrameResource if in.IsNull() { in.Skip() - v11 = nil + v14 = nil } else { - if v11 == nil { - v11 = new(FrameResource) + if v14 == nil { + v14 = new(FrameResource) } - (*v11).UnmarshalEasyJSON(in) + (*v14).UnmarshalEasyJSON(in) } - out.Resources = append(out.Resources, v11) + out.Resources = append(out.Resources, v14) in.WantComma() } in.Delim(']') @@ -3056,7 +3329,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(out *jwriter.Writer, in FrameResourceTree) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(out *jwriter.Writer, in FrameResourceTree) { out.RawByte('{') first := true _ = first @@ -3080,14 +3353,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v12, v13 := range in.ChildFrames { - if v12 > 0 { + for v15, v16 := range in.ChildFrames { + if v15 > 0 { out.RawByte(',') } - if v13 == nil { + if v16 == nil { out.RawString("null") } else { - (*v13).MarshalEasyJSON(out) + (*v16).MarshalEasyJSON(out) } } out.RawByte(']') @@ -3102,14 +3375,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v14, v15 := range in.Resources { - if v14 > 0 { + for v17, v18 := range in.Resources { + if v17 > 0 { out.RawByte(',') } - if v15 == nil { + if v18 == nil { out.RawString("null") } else { - (*v15).MarshalEasyJSON(out) + (*v18).MarshalEasyJSON(out) } } out.RawByte(']') @@ -3120,27 +3393,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v FrameResourceTree) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FrameResourceTree) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FrameResourceTree) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FrameResourceTree) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(in *jlexer.Lexer, out *FrameResource) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(in *jlexer.Lexer, out *FrameResource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3191,7 +3464,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(out *jwriter.Writer, in FrameResource) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(out *jwriter.Writer, in FrameResource) { out.RawByte('{') first := true _ = first @@ -3255,27 +3528,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v FrameResource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FrameResource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FrameResource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FrameResource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(in *jlexer.Lexer, out *EventWindowOpen) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(in *jlexer.Lexer, out *EventWindowOpen) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3312,7 +3585,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(out *jwriter.Writer, in EventWindowOpen) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(out *jwriter.Writer, in EventWindowOpen) { out.RawByte('{') first := true _ = first @@ -3346,27 +3619,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventWindowOpen) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWindowOpen) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWindowOpen) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWindowOpen) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(in *jlexer.Lexer, out *EventScreencastVisibilityChanged) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(in *jlexer.Lexer, out *EventScreencastVisibilityChanged) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3397,7 +3670,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(out *jwriter.Writer, in EventScreencastVisibilityChanged) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(out *jwriter.Writer, in EventScreencastVisibilityChanged) { out.RawByte('{') first := true _ = first @@ -3413,27 +3686,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventScreencastVisibilityChanged) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventScreencastVisibilityChanged) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventScreencastVisibilityChanged) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventScreencastVisibilityChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(in *jlexer.Lexer, out *EventScreencastFrame) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(in *jlexer.Lexer, out *EventScreencastFrame) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3476,7 +3749,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(out *jwriter.Writer, in EventScreencastFrame) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(out *jwriter.Writer, in EventScreencastFrame) { out.RawByte('{') first := true _ = first @@ -3508,27 +3781,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventScreencastFrame) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventScreencastFrame) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventScreencastFrame) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventScreencastFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(in *jlexer.Lexer, out *EventLoadEventFired) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(in *jlexer.Lexer, out *EventLoadEventFired) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3567,7 +3840,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(out *jwriter.Writer, in EventLoadEventFired) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(out *jwriter.Writer, in EventLoadEventFired) { out.RawByte('{') first := true _ = first @@ -3587,27 +3860,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventLoadEventFired) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventLoadEventFired) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventLoadEventFired) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventLoadEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(in *jlexer.Lexer, out *EventLifecycleEvent) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(in *jlexer.Lexer, out *EventLifecycleEvent) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3628,6 +3901,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(in *jlexer.Lexer, out * switch key { case "frameId": (out.FrameID).UnmarshalEasyJSON(in) + case "loaderId": + out.LoaderID = cdp.LoaderID(in.String()) case "name": out.Name = string(in.String()) case "timestamp": @@ -3650,7 +3925,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(out *jwriter.Writer, in EventLifecycleEvent) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(out *jwriter.Writer, in EventLifecycleEvent) { out.RawByte('{') first := true _ = first @@ -3664,6 +3939,12 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(out *jwriter.Writer, in out.RawByte(',') } first = false + out.RawString("\"loaderId\":") + out.String(string(in.LoaderID)) + if !first { + out.RawByte(',') + } + first = false out.RawString("\"name\":") out.String(string(in.Name)) if !first { @@ -3682,27 +3963,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventLifecycleEvent) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventLifecycleEvent) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventLifecycleEvent) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventLifecycleEvent) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(in *jlexer.Lexer, out *EventJavascriptDialogOpening) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(in *jlexer.Lexer, out *EventJavascriptDialogOpening) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3739,7 +4020,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(out *jwriter.Writer, in EventJavascriptDialogOpening) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(out *jwriter.Writer, in EventJavascriptDialogOpening) { out.RawByte('{') first := true _ = first @@ -3775,27 +4056,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventJavascriptDialogOpening) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventJavascriptDialogOpening) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventJavascriptDialogOpening) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventJavascriptDialogOpening) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(in *jlexer.Lexer, out *EventJavascriptDialogClosed) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(in *jlexer.Lexer, out *EventJavascriptDialogClosed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3828,7 +4109,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(out *jwriter.Writer, in EventJavascriptDialogClosed) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(out *jwriter.Writer, in EventJavascriptDialogClosed) { out.RawByte('{') first := true _ = first @@ -3850,27 +4131,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventJavascriptDialogClosed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventJavascriptDialogClosed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventJavascriptDialogClosed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventJavascriptDialogClosed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(in *jlexer.Lexer, out *EventInterstitialShown) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(in *jlexer.Lexer, out *EventInterstitialShown) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3899,7 +4180,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(out *jwriter.Writer, in EventInterstitialShown) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(out *jwriter.Writer, in EventInterstitialShown) { out.RawByte('{') first := true _ = first @@ -3909,27 +4190,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventInterstitialShown) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventInterstitialShown) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventInterstitialShown) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventInterstitialShown) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(in *jlexer.Lexer, out *EventInterstitialHidden) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(in *jlexer.Lexer, out *EventInterstitialHidden) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3958,7 +4239,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(out *jwriter.Writer, in EventInterstitialHidden) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(out *jwriter.Writer, in EventInterstitialHidden) { out.RawByte('{') first := true _ = first @@ -3968,27 +4249,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventInterstitialHidden) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventInterstitialHidden) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventInterstitialHidden) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventInterstitialHidden) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(in *jlexer.Lexer, out *EventFrameStoppedLoading) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(in *jlexer.Lexer, out *EventFrameStoppedLoading) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4019,7 +4300,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(out *jwriter.Writer, in EventFrameStoppedLoading) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(out *jwriter.Writer, in EventFrameStoppedLoading) { out.RawByte('{') first := true _ = first @@ -4035,27 +4316,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventFrameStoppedLoading) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameStoppedLoading) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameStoppedLoading) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameStoppedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(in *jlexer.Lexer, out *EventFrameStartedLoading) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(in *jlexer.Lexer, out *EventFrameStartedLoading) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4086,7 +4367,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(out *jwriter.Writer, in EventFrameStartedLoading) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(out *jwriter.Writer, in EventFrameStartedLoading) { out.RawByte('{') first := true _ = first @@ -4102,27 +4383,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventFrameStartedLoading) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameStartedLoading) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameStartedLoading) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameStartedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(in *jlexer.Lexer, out *EventFrameScheduledNavigation) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(in *jlexer.Lexer, out *EventFrameScheduledNavigation) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4159,7 +4440,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(out *jwriter.Writer, in EventFrameScheduledNavigation) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(out *jwriter.Writer, in EventFrameScheduledNavigation) { out.RawByte('{') first := true _ = first @@ -4193,27 +4474,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventFrameScheduledNavigation) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameScheduledNavigation) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(in *jlexer.Lexer, out *EventFrameResized) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(in *jlexer.Lexer, out *EventFrameResized) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4242,7 +4523,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(out *jwriter.Writer, in EventFrameResized) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(out *jwriter.Writer, in EventFrameResized) { out.RawByte('{') first := true _ = first @@ -4252,27 +4533,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventFrameResized) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameResized) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameResized) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameResized) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(in *jlexer.Lexer, out *EventFrameNavigated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(in *jlexer.Lexer, out *EventFrameNavigated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4311,7 +4592,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(out *jwriter.Writer, in EventFrameNavigated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(out *jwriter.Writer, in EventFrameNavigated) { out.RawByte('{') first := true _ = first @@ -4331,27 +4612,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventFrameNavigated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameNavigated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameNavigated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameNavigated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(in *jlexer.Lexer, out *EventFrameDetached) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(in *jlexer.Lexer, out *EventFrameDetached) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4382,7 +4663,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(out *jwriter.Writer, in EventFrameDetached) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(out *jwriter.Writer, in EventFrameDetached) { out.RawByte('{') first := true _ = first @@ -4398,27 +4679,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventFrameDetached) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameDetached) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameDetached) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameDetached) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(in *jlexer.Lexer, out *EventFrameClearedScheduledNavigation) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(in *jlexer.Lexer, out *EventFrameClearedScheduledNavigation) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4449,7 +4730,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(out *jwriter.Writer, in EventFrameClearedScheduledNavigation) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(out *jwriter.Writer, in EventFrameClearedScheduledNavigation) { out.RawByte('{') first := true _ = first @@ -4465,27 +4746,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventFrameClearedScheduledNavigation) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameClearedScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameClearedScheduledNavigation) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameClearedScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(in *jlexer.Lexer, out *EventFrameAttached) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(in *jlexer.Lexer, out *EventFrameAttached) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4528,7 +4809,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(out *jwriter.Writer, in EventFrameAttached) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(out *jwriter.Writer, in EventFrameAttached) { out.RawByte('{') first := true _ = first @@ -4562,27 +4843,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventFrameAttached) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameAttached) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameAttached) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameAttached) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(in *jlexer.Lexer, out *EventDomContentEventFired) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(in *jlexer.Lexer, out *EventDomContentEventFired) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4621,7 +4902,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(out *jwriter.Writer, in EventDomContentEventFired) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(out *jwriter.Writer, in EventDomContentEventFired) { out.RawByte('{') first := true _ = first @@ -4641,27 +4922,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventDomContentEventFired) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventDomContentEventFired) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventDomContentEventFired) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventDomContentEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4690,7 +4971,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -4700,27 +4981,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4749,7 +5030,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -4759,27 +5040,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(in *jlexer.Lexer, out *CreateIsolatedWorldReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(in *jlexer.Lexer, out *CreateIsolatedWorldReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4810,7 +5091,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(out *jwriter.Writer, in CreateIsolatedWorldReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(out *jwriter.Writer, in CreateIsolatedWorldReturns) { out.RawByte('{') first := true _ = first @@ -4828,27 +5109,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v CreateIsolatedWorldReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateIsolatedWorldReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateIsolatedWorldReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateIsolatedWorldReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(in *jlexer.Lexer, out *CreateIsolatedWorldParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage60(in *jlexer.Lexer, out *CreateIsolatedWorldParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4883,7 +5164,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(out *jwriter.Writer, in CreateIsolatedWorldParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage60(out *jwriter.Writer, in CreateIsolatedWorldParams) { out.RawByte('{') first := true _ = first @@ -4915,27 +5196,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v CreateIsolatedWorldParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage60(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateIsolatedWorldParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage60(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateIsolatedWorldParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage60(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateIsolatedWorldParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage60(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(in *jlexer.Lexer, out *CaptureScreenshotReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage61(in *jlexer.Lexer, out *CaptureScreenshotReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4966,7 +5247,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(out *jwriter.Writer, in CaptureScreenshotReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage61(out *jwriter.Writer, in CaptureScreenshotReturns) { out.RawByte('{') first := true _ = first @@ -4984,27 +5265,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v CaptureScreenshotReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage61(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CaptureScreenshotReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage61(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CaptureScreenshotReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage61(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CaptureScreenshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage61(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(in *jlexer.Lexer, out *CaptureScreenshotParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage62(in *jlexer.Lexer, out *CaptureScreenshotParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5049,7 +5330,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(out *jwriter.Writer, in CaptureScreenshotParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage62(out *jwriter.Writer, in CaptureScreenshotParams) { out.RawByte('{') first := true _ = first @@ -5095,27 +5376,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v CaptureScreenshotParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage62(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CaptureScreenshotParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage62(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CaptureScreenshotParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage62(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CaptureScreenshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage62(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage60(in *jlexer.Lexer, out *BringToFrontParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage63(in *jlexer.Lexer, out *BringToFrontParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5144,7 +5425,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage60(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage60(out *jwriter.Writer, in BringToFrontParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage63(out *jwriter.Writer, in BringToFrontParams) { out.RawByte('{') first := true _ = first @@ -5154,27 +5435,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage60(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v BringToFrontParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage60(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage63(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BringToFrontParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage60(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage63(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BringToFrontParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage60(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage63(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BringToFrontParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage60(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage63(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage61(in *jlexer.Lexer, out *AppManifestError) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage64(in *jlexer.Lexer, out *AppManifestError) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5211,7 +5492,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage61(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage61(out *jwriter.Writer, in AppManifestError) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage64(out *jwriter.Writer, in AppManifestError) { out.RawByte('{') first := true _ = first @@ -5245,27 +5526,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage61(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v AppManifestError) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage61(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage64(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AppManifestError) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage61(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage64(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AppManifestError) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage61(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage64(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AppManifestError) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage61(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage64(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage62(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage65(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5296,7 +5577,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage62(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage62(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage65(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentReturns) { out.RawByte('{') first := true _ = first @@ -5314,27 +5595,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage62(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v AddScriptToEvaluateOnNewDocumentReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage62(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage65(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddScriptToEvaluateOnNewDocumentReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage62(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage65(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage62(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage65(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage62(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage65(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage63(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage66(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5365,7 +5646,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage63(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage63(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage66(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentParams) { out.RawByte('{') first := true _ = first @@ -5381,23 +5662,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage63(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v AddScriptToEvaluateOnNewDocumentParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage63(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage66(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage63(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage66(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage63(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage66(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage63(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage66(l, v) } diff --git a/cdp/page/events.go b/cdp/page/events.go index 943f7f9..7daadde 100644 --- a/cdp/page/events.go +++ b/cdp/page/events.go @@ -20,7 +20,8 @@ type EventLoadEventFired struct { // EventLifecycleEvent fired for top level page lifecycle events such as // navigation, load, paint, etc. type EventLifecycleEvent struct { - FrameID cdp.FrameID `json:"frameId"` // Id of the frame. + FrameID cdp.FrameID `json:"frameId"` // Id of the frame. + LoaderID cdp.LoaderID `json:"loaderId"` // Loader identifier. Empty string if the request is fetched from worker. Name string `json:"name"` Timestamp *cdp.MonotonicTime `json:"timestamp"` } diff --git a/cdp/page/page.go b/cdp/page/page.go index d70e647..6cb3d2a 100644 --- a/cdp/page/page.go +++ b/cdp/page/page.go @@ -334,6 +334,35 @@ func (p *GetResourceTreeParams) Do(ctxt context.Context, h cdp.Handler) (frameTr return res.FrameTree, nil } +// GetFrameTreeParams returns present frame tree structure. +type GetFrameTreeParams struct{} + +// GetFrameTree returns present frame tree structure. +func GetFrameTree() *GetFrameTreeParams { + return &GetFrameTreeParams{} +} + +// GetFrameTreeReturns return values. +type GetFrameTreeReturns struct { + FrameTree *FrameTree `json:"frameTree,omitempty"` // Present frame tree structure. +} + +// Do executes Page.getFrameTree against the provided context and +// target handler. +// +// returns: +// frameTree - Present frame tree structure. +func (p *GetFrameTreeParams) Do(ctxt context.Context, h cdp.Handler) (frameTree *FrameTree, err error) { + // execute + var res GetFrameTreeReturns + err = h.Execute(ctxt, cdp.CommandPageGetFrameTree, nil, &res) + if err != nil { + return nil, err + } + + return res.FrameTree, nil +} + // GetResourceContentParams returns content of the given resource. type GetResourceContentParams struct { FrameID cdp.FrameID `json:"frameId"` // Frame id to get resource for. diff --git a/cdp/page/types.go b/cdp/page/types.go index 3040408..255f109 100644 --- a/cdp/page/types.go +++ b/cdp/page/types.go @@ -105,6 +105,12 @@ type FrameResourceTree struct { Resources []*FrameResource `json:"resources"` // Information about frame resources. } +// FrameTree information about the Frame hierarchy. +type FrameTree struct { + Frame *cdp.Frame `json:"frame"` // Frame information for this tree item. + ChildFrames []*FrameTree `json:"childFrames,omitempty"` // Child frames. +} + // ScriptIdentifier unique script identifier. type ScriptIdentifier string @@ -261,53 +267,6 @@ type AppManifestError struct { Column int64 `json:"column"` // Error column. } -// NavigationResponse proceed: allow the navigation; Cancel: cancel the -// navigation; CancelAndIgnore: cancels the navigation and makes the requester -// of the navigation acts like the request was never made. -type NavigationResponse string - -// String returns the NavigationResponse as string value. -func (t NavigationResponse) String() string { - return string(t) -} - -// NavigationResponse values. -const ( - NavigationResponseProceed NavigationResponse = "Proceed" - NavigationResponseCancel NavigationResponse = "Cancel" - NavigationResponseCancelAndIgnore NavigationResponse = "CancelAndIgnore" -) - -// MarshalEasyJSON satisfies easyjson.Marshaler. -func (t NavigationResponse) MarshalEasyJSON(out *jwriter.Writer) { - out.String(string(t)) -} - -// MarshalJSON satisfies json.Marshaler. -func (t NavigationResponse) MarshalJSON() ([]byte, error) { - return easyjson.Marshal(t) -} - -// UnmarshalEasyJSON satisfies easyjson.Unmarshaler. -func (t *NavigationResponse) UnmarshalEasyJSON(in *jlexer.Lexer) { - switch NavigationResponse(in.String()) { - case NavigationResponseProceed: - *t = NavigationResponseProceed - case NavigationResponseCancel: - *t = NavigationResponseCancel - case NavigationResponseCancelAndIgnore: - *t = NavigationResponseCancelAndIgnore - - default: - in.AddError(errors.New("unknown NavigationResponse value")) - } -} - -// UnmarshalJSON satisfies json.Unmarshaler. -func (t *NavigationResponse) UnmarshalJSON(buf []byte) error { - return easyjson.Unmarshal(buf, t) -} - // LayoutViewport layout viewport position and dimensions. type LayoutViewport struct { PageX int64 `json:"pageX"` // Horizontal offset relative to the document (CSS pixels). diff --git a/cmd/chromedp-gen/protocol.json b/cmd/chromedp-gen/protocol.json index 9232ec2..9088631 100644 --- a/cmd/chromedp-gen/protocol.json +++ b/cmd/chromedp-gen/protocol.json @@ -97,7 +97,6 @@ }, { "domain": "Performance", - "experimental": true, "types": [ { "id": "Metric", @@ -325,17 +324,36 @@ ], "experimental": true }, + { + "id": "FrameTree", + "type": "object", + "description": "Information about the Frame hierarchy.", + "properties": [ + { + "name": "frame", + "$ref": "Frame", + "description": "Frame information for this tree item." + }, + { + "name": "childFrames", + "type": "array", + "optional": true, + "items": { + "$ref": "FrameTree" + }, + "description": "Child frames." + } + ] + }, { "id": "ScriptIdentifier", "type": "string", - "description": "Unique script identifier.", - "experimental": true + "description": "Unique script identifier." }, { "id": "TransitionType", "type": "string", "description": "Transition type.", - "experimental": true, "enum": [ "link", "typed", @@ -381,8 +399,7 @@ "$ref": "TransitionType", "description": "Transition type." } - ], - "experimental": true + ] }, { "id": "ScreencastFrameMetadata", @@ -444,8 +461,7 @@ "confirm", "prompt", "beforeunload" - ], - "experimental": true + ] }, { "id": "AppManifestError", @@ -472,25 +488,12 @@ "type": "integer", "description": "Error column." } - ], - "experimental": true - }, - { - "id": "NavigationResponse", - "description": "Proceed: allow the navigation; Cancel: cancel the navigation; CancelAndIgnore: cancels the navigation and makes the requester of the navigation acts like the request was never made.", - "type": "string", - "enum": [ - "Proceed", - "Cancel", - "CancelAndIgnore" - ], - "experimental": true + ] }, { "id": "LayoutViewport", "type": "object", "description": "Layout viewport position and dimensions.", - "experimental": true, "properties": [ { "name": "pageX", @@ -518,7 +521,6 @@ "id": "VisualViewport", "type": "object", "description": "Visual viewport position, dimensions, and scale.", - "experimental": true, "properties": [ { "name": "offsetX", @@ -561,7 +563,6 @@ "id": "Viewport", "type": "object", "description": "Viewport for capturing screenshot.", - "experimental": true, "properties": [ { "name": "x", @@ -646,8 +647,7 @@ "description": "Identifier of the added script." } ], - "description": "Evaluates given script in every frame upon creation (before loading frame's scripts).", - "experimental": true + "description": "Evaluates given script in every frame upon creation (before loading frame's scripts)." }, { "name": "removeScriptToEvaluateOnNewDocument", @@ -657,8 +657,7 @@ "$ref": "ScriptIdentifier" } ], - "description": "Removes given script from the list.", - "experimental": true + "description": "Removes given script from the list." }, { "name": "setAutoAttachToCreatedPages", @@ -714,14 +713,12 @@ "name": "referrer", "type": "string", "optional": true, - "experimental": true, "description": "Referrer URL." }, { "name": "transitionType", "$ref": "TransitionType", "optional": true, - "experimental": true, "description": "Intended transition type." } ], @@ -729,7 +726,6 @@ { "name": "frameId", "$ref": "FrameId", - "experimental": true, "description": "Frame id that will be navigated." } ], @@ -737,8 +733,7 @@ }, { "name": "stopLoading", - "description": "Force the page stop all navigations and pending resource fetches.", - "experimental": true + "description": "Force the page stop all navigations and pending resource fetches." }, { "name": "getNavigationHistory", @@ -757,8 +752,7 @@ "description": "Array of navigation history entries." } ], - "description": "Returns navigation history for the current page.", - "experimental": true + "description": "Returns navigation history for the current page." }, { "name": "navigateToHistoryEntry", @@ -769,8 +763,7 @@ "description": "Unique id of the entry to navigate to." } ], - "description": "Navigates current page to the given history entry.", - "experimental": true + "description": "Navigates current page to the given history entry." }, { "name": "getCookies", @@ -785,6 +778,7 @@ } ], "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.", + "deprecated": true, "experimental": true, "redirect": "Network" }, @@ -803,6 +797,7 @@ } ], "description": "Deletes browser cookie with given name, domain and path.", + "deprecated": true, "experimental": true, "redirect": "Network" }, @@ -818,6 +813,17 @@ ], "experimental": true }, + { + "name": "getFrameTree", + "description": "Returns present frame tree structure.", + "returns": [ + { + "name": "frameTree", + "$ref": "FrameTree", + "description": "Present frame tree structure." + } + ] + }, { "name": "getResourceContent", "description": "Returns content of the given resource.", @@ -981,13 +987,15 @@ "description": "The viewport dimensions and scale. If not set, the override is cleared." } ], - "redirect": "Emulation", - "experimental": true + "experimental": true, + "deprecated": true, + "redirect": "Emulation" }, { "name": "clearDeviceMetricsOverride", "description": "Clears the overriden device metrics.", "redirect": "Emulation", + "deprecated": true, "experimental": true }, { @@ -1013,12 +1021,14 @@ "description": "Mock accuracy" } ], - "redirect": "Emulation" + "redirect": "Emulation", + "deprecated": true }, { "name": "clearGeolocationOverride", "description": "Clears the overriden Geolocation Position and Error.", - "redirect": "Emulation" + "redirect": "Emulation", + "deprecated": true }, { "name": "setDeviceOrientationOverride", @@ -1041,12 +1051,14 @@ } ], "redirect": "DeviceOrientation", + "deprecated": true, "experimental": true }, { "name": "clearDeviceOrientationOverride", "description": "Clears the overridden Device Orientation.", "redirect": "DeviceOrientation", + "deprecated": true, "experimental": true }, { @@ -1070,6 +1082,7 @@ ], "description": "Toggles mouse event-based touch event emulation.", "experimental": true, + "deprecated": true, "redirect": "Emulation" }, { @@ -1096,8 +1109,7 @@ "name": "clip", "$ref": "Viewport", "optional": true, - "description": "Capture the screenshot of a given region only.", - "experimental": true + "description": "Capture the screenshot of a given region only." }, { "name": "fromSurface", @@ -1113,8 +1125,7 @@ "type": "string", "description": "Base64-encoded image data." } - ], - "experimental": true + ] }, { "name": "printToPDF", @@ -1199,8 +1210,7 @@ "type": "string", "description": "Base64-encoded pdf data." } - ], - "experimental": true + ] }, { "name": "startScreencast", @@ -1279,7 +1289,6 @@ }, { "name": "getAppManifest", - "experimental": true, "returns": [ { "name": "url", @@ -1308,7 +1317,6 @@ { "name": "getLayoutMetrics", "description": "Returns metrics relating to the layouting of the page, such as viewport bounds/scale.", - "experimental": true, "returns": [ { "name": "layoutViewport", @@ -1330,7 +1338,6 @@ { "name": "createIsolatedWorld", "description": "Creates an isolated world for the given frame.", - "experimental": true, "parameters": [ { "name": "frameId", @@ -1413,6 +1420,11 @@ "$ref": "FrameId", "description": "Id of the frame." }, + { + "name": "loaderId", + "$ref": "Network.LoaderId", + "description": "Loader identifier. Empty string if the request is fetched from worker." + }, { "name": "name", "type": "string" @@ -1442,8 +1454,7 @@ "name": "stack", "$ref": "Runtime.StackTrace", "optional": true, - "description": "JavaScript stack trace of when frame was attached, only set if frame initiated from script.", - "experimental": true + "description": "JavaScript stack trace of when frame was attached, only set if frame initiated from script." } ] }, @@ -1510,7 +1521,6 @@ { "name": "reason", "type": "string", - "experimental": true, "enum": [ "formSubmissionGet", "formSubmissionPost", @@ -1525,7 +1535,6 @@ { "name": "url", "type": "string", - "experimental": true, "description": "The destination URL for the scheduled navigation." } ], @@ -1656,8 +1665,7 @@ "type": "boolean", "description": "Whether or not window.open() was triggered by user gesture." } - ], - "experimental": true + ] } ] }, @@ -2204,7 +2212,6 @@ { "name": "setScriptExecutionDisabled", "description": "Switches script execution in the page.", - "experimental": true, "parameters": [ { "name": "value", @@ -2216,7 +2223,6 @@ { "name": "setGeolocationOverride", "description": "Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.", - "experimental": true, "parameters": [ { "name": "latitude", @@ -2240,8 +2246,7 @@ }, { "name": "clearGeolocationOverride", - "description": "Clears the overriden Geolocation Position and Error.", - "experimental": true + "description": "Clears the overriden Geolocation Position and Error." }, { "name": "setTouchEmulationEnabled", @@ -2313,8 +2318,7 @@ "type": "boolean", "description": "True if emulation is supported." } - ], - "experimental": true + ] }, { "name": "setVirtualTimePolicy", @@ -2361,8 +2365,7 @@ "optional": true, "description": "RGBA of the default background color. If not specified, any existing override will be cleared." } - ], - "experimental": true + ] } ], "events": [ @@ -2400,7 +2403,6 @@ { "domain": "Security", "description": "Security", - "experimental": true, "types": [ { "id": "CertificateId", @@ -3051,8 +3053,7 @@ "inspector", "subresource-filter", "other" - ], - "experimental": true + ] }, { "id": "Response", @@ -3116,14 +3117,12 @@ "name": "remoteIPAddress", "type": "string", "optional": true, - "experimental": true, "description": "Remote IP address." }, { "name": "remotePort", "type": "integer", "optional": true, - "experimental": true, "description": "Remote port." }, { @@ -3173,7 +3172,6 @@ "id": "WebSocketRequest", "type": "object", "description": "WebSocket request data.", - "experimental": true, "properties": [ { "name": "headers", @@ -3186,7 +3184,6 @@ "id": "WebSocketResponse", "type": "object", "description": "WebSocket response data.", - "experimental": true, "properties": [ { "name": "status", @@ -3227,7 +3224,6 @@ "id": "WebSocketFrame", "type": "object", "description": "WebSocket frame data.", - "experimental": true, "properties": [ { "name": "opcode", @@ -3366,8 +3362,7 @@ "optional": true, "description": "Cookie SameSite type." } - ], - "experimental": true + ] }, { "id": "CookieParam", @@ -3426,8 +3421,7 @@ "optional": true, "description": "Cookie expiration date, session cookie if not set" } - ], - "experimental": true + ] }, { "id": "AuthChallenge", @@ -3663,8 +3657,7 @@ "description": "Array of cookie objects." } ], - "description": "Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the cookies field.", - "experimental": true + "description": "Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the cookies field." }, { "name": "getAllCookies", @@ -3678,8 +3671,7 @@ "description": "Array of cookie objects." } ], - "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.", - "experimental": true + "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field." }, { "name": "deleteCookies", @@ -3708,8 +3700,7 @@ "description": "If specified, deletes only cookies with the exact path." } ], - "description": "Deletes browser cookies with matching name and url or domain/path pair.", - "experimental": true + "description": "Deletes browser cookies with matching name and url or domain/path pair." }, { "name": "setCookie", @@ -3774,8 +3765,7 @@ "description": "True if successfully set cookie." } ], - "description": "Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.", - "experimental": true + "description": "Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist." }, { "name": "setCookies", @@ -3789,8 +3779,7 @@ "description": "Cookies to be set." } ], - "description": "Sets given cookies.", - "experimental": true + "description": "Sets given cookies." }, { "name": "canEmulateNetworkConditions", @@ -3801,8 +3790,7 @@ "type": "boolean", "description": "True if emulation of network conditions is supported." } - ], - "experimental": true + ] }, { "name": "emulateNetworkConditions", @@ -4001,7 +3989,7 @@ { "name": "loaderId", "$ref": "LoaderId", - "description": "Loader identifier. Empty string if the request is fetched form worker." + "description": "Loader identifier. Empty string if the request is fetched from worker." }, { "name": "documentURL", @@ -4021,7 +4009,6 @@ { "name": "wallTime", "$ref": "TimeSinceEpoch", - "experimental": true, "description": "Timestamp." }, { @@ -4039,15 +4026,13 @@ "name": "type", "$ref": "Page.ResourceType", "optional": true, - "experimental": true, "description": "Type of this resource." }, { "name": "frameId", "optional": true, "$ref": "Page.FrameId", - "description": "Frame identifier.", - "experimental": true + "description": "Frame identifier." } ] }, @@ -4074,7 +4059,7 @@ { "name": "loaderId", "$ref": "LoaderId", - "description": "Loader identifier. Empty string if the request is fetched form worker." + "description": "Loader identifier. Empty string if the request is fetched from worker." }, { "name": "timestamp", @@ -4095,8 +4080,7 @@ "name": "frameId", "optional": true, "$ref": "Page.FrameId", - "description": "Frame identifier.", - "experimental": true + "description": "Frame identifier." } ] }, @@ -4181,8 +4165,7 @@ "name": "blockedReason", "$ref": "BlockedReason", "optional": true, - "description": "The reason why loading was blocked, if any.", - "experimental": true + "description": "The reason why loading was blocked, if any." } ] }, @@ -4203,7 +4186,6 @@ { "name": "wallTime", "$ref": "TimeSinceEpoch", - "experimental": true, "description": "UTC Timestamp." }, { @@ -4211,8 +4193,7 @@ "$ref": "WebSocketRequest", "description": "WebSocket request data." } - ], - "experimental": true + ] }, { "name": "webSocketHandshakeResponseReceived", @@ -4233,8 +4214,7 @@ "$ref": "WebSocketResponse", "description": "WebSocket response data." } - ], - "experimental": true + ] }, { "name": "webSocketCreated", @@ -4256,8 +4236,7 @@ "optional": true, "description": "Request initiator." } - ], - "experimental": true + ] }, { "name": "webSocketClosed", @@ -4273,8 +4252,7 @@ "$ref": "MonotonicTime", "description": "Timestamp." } - ], - "experimental": true + ] }, { "name": "webSocketFrameReceived", @@ -4295,8 +4273,7 @@ "$ref": "WebSocketFrame", "description": "WebSocket response data." } - ], - "experimental": true + ] }, { "name": "webSocketFrameError", @@ -4317,8 +4294,7 @@ "type": "string", "description": "WebSocket frame error message." } - ], - "experimental": true + ] }, { "name": "webSocketFrameSent", @@ -4339,8 +4315,7 @@ "$ref": "WebSocketFrame", "description": "WebSocket response data." } - ], - "experimental": true + ] }, { "name": "eventSourceMessageReceived", @@ -4371,8 +4346,7 @@ "type": "string", "description": "Message content." } - ], - "experimental": true + ] }, { "name": "requestIntercepted", @@ -4387,6 +4361,11 @@ "name": "request", "$ref": "Request" }, + { + "name": "frameId", + "$ref": "Page.FrameId", + "description": "The id of the frame that initiated the request." + }, { "name": "resourceType", "$ref": "Page.ResourceType", @@ -5493,8 +5472,7 @@ { "id": "BackendNodeId", "type": "integer", - "description": "Unique DOM node identifier used to reference a node that may not have been pushed to the front-end.", - "experimental": true + "description": "Unique DOM node identifier used to reference a node that may not have been pushed to the front-end." }, { "id": "BackendNode", @@ -5515,7 +5493,6 @@ "$ref": "BackendNodeId" } ], - "experimental": true, "description": "Backend node with a friendly name." }, { @@ -5563,14 +5540,12 @@ "name": "parentId", "$ref": "NodeId", "optional": true, - "description": "The id of the parent node if any.", - "experimental": true + "description": "The id of the parent node if any." }, { "name": "backendNodeId", "$ref": "BackendNodeId", - "description": "The BackendNodeId for this node.", - "experimental": true + "description": "The BackendNodeId for this node." }, { "name": "nodeType", @@ -5626,8 +5601,7 @@ "name": "baseURL", "type": "string", "optional": true, - "description": "Base URL that Document or FrameOwner node uses for URL completion.", - "experimental": true + "description": "Base URL that Document or FrameOwner node uses for URL completion." }, { "name": "publicId", @@ -5681,8 +5655,7 @@ "name": "frameId", "$ref": "Page.FrameId", "optional": true, - "description": "Frame ID for frame owner elements.", - "experimental": true + "description": "Frame ID for frame owner elements." }, { "name": "contentDocument", @@ -5697,15 +5670,13 @@ "items": { "$ref": "Node" }, - "description": "Shadow root list for given element host.", - "experimental": true + "description": "Shadow root list for given element host." }, { "name": "templateContent", "$ref": "Node", "optional": true, - "description": "Content document fragment for template elements.", - "experimental": true + "description": "Content document fragment for template elements." }, { "name": "pseudoElements", @@ -5714,8 +5685,7 @@ "$ref": "Node" }, "optional": true, - "description": "Pseudo elements associated with this node.", - "experimental": true + "description": "Pseudo elements associated with this node." }, { "name": "importedDocument", @@ -5730,15 +5700,13 @@ "$ref": "BackendNode" }, "optional": true, - "description": "Distributed nodes for given insertion point.", - "experimental": true + "description": "Distributed nodes for given insertion point." }, { "name": "isSVG", "type": "boolean", "optional": true, - "description": "Whether the node is SVG.", - "experimental": true + "description": "Whether the node is SVG." } ], "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type." @@ -5779,13 +5747,11 @@ }, "minItems": 8, "maxItems": 8, - "description": "An array of quad vertices, x immediately followed by y for each point, points clock-wise.", - "experimental": true + "description": "An array of quad vertices, x immediately followed by y for each point, points clock-wise." }, { "id": "BoxModel", "type": "object", - "experimental": true, "properties": [ { "name": "content", @@ -5829,7 +5795,6 @@ { "id": "ShapeOutsideInfo", "type": "object", - "experimental": true, "properties": [ { "name": "bounds", @@ -5858,7 +5823,6 @@ { "id": "Rect", "type": "object", - "experimental": true, "properties": [ { "name": "x", @@ -5900,15 +5864,13 @@ "name": "depth", "type": "integer", "optional": true, - "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", - "experimental": true + "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0." }, { "name": "pierce", "type": "boolean", "optional": true, - "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).", - "experimental": true + "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false)." } ], "returns": [ @@ -5927,15 +5889,13 @@ "name": "depth", "type": "integer", "optional": true, - "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", - "experimental": true + "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0." }, { "name": "pierce", "type": "boolean", "optional": true, - "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).", - "experimental": true + "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false)." } ], "returns": [ @@ -5984,15 +5944,13 @@ "name": "depth", "type": "integer", "optional": true, - "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", - "experimental": true + "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0." }, { "name": "pierce", "type": "boolean", "optional": true, - "description": "Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).", - "experimental": true + "description": "Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false)." } ], "description": "Requests that children of the node with given id are returned to the caller in form of setChildNodes events where not only immediate children are retrieved, but all children down to the specified depth." @@ -6214,8 +6172,7 @@ "name": "includeUserAgentShadowDOM", "type": "boolean", "optional": true, - "description": "True to search in user agent shadow DOM.", - "experimental": true + "description": "True to search in user agent shadow DOM." } ], "returns": [ @@ -6514,8 +6471,7 @@ "description": "JavaScript object id of the node wrapper." } ], - "description": "Focuses the given element.", - "experimental": true + "description": "Focuses the given element." }, { "name": "setFileInputFiles", @@ -6547,8 +6503,7 @@ "description": "JavaScript object id of the node wrapper." } ], - "description": "Sets files for the given file input element.", - "experimental": true + "description": "Sets files for the given file input element." }, { "name": "getBoxModel", @@ -6579,8 +6534,7 @@ "description": "Box model for the node." } ], - "description": "Returns boxes for the currently selected nodes.", - "experimental": true + "description": "Returns boxes for the given node." }, { "name": "getNodeForLocation", @@ -6656,15 +6610,13 @@ "name": "depth", "type": "integer", "optional": true, - "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", - "experimental": true + "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0." }, { "name": "pierce", "type": "boolean", "optional": true, - "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).", - "experimental": true + "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false)." } ], "returns": [ @@ -7104,8 +7056,7 @@ { "name": "length", "type": "number", - "description": "Size of the content (in characters).", - "experimental": true + "description": "Size of the content (in characters)." } ], "description": "CSS stylesheet metainformation." @@ -7172,8 +7123,7 @@ "description": "Indicates whether the rule was actually used by some element in the page." } ], - "description": "CSS coverage information.", - "experimental": true + "description": "CSS coverage information." }, { "id": "SourceRange", @@ -7379,7 +7329,6 @@ "$ref": "MediaQuery" }, "optional": true, - "experimental": true, "description": "Array of media queries." } ], @@ -7403,8 +7352,7 @@ "description": "Whether the media query condition is satisfied." } ], - "description": "Media query descriptor.", - "experimental": true + "description": "Media query descriptor." }, { "id": "MediaQueryExpression", @@ -7438,8 +7386,7 @@ "description": "Computed length of media query expression (if applicable)." } ], - "description": "Media query expression descriptor.", - "experimental": true + "description": "Media query expression descriptor." }, { "id": "PlatformFontUsage", @@ -7461,8 +7408,7 @@ "description": "Amount of glyphs that were rendered with this font." } ], - "description": "Information about amount of glyphs that were rendered with given font.", - "experimental": true + "description": "Information about amount of glyphs that were rendered with given font." }, { "id": "CSSKeyframesRule", @@ -7533,29 +7479,6 @@ } ], "description": "A descriptor of operation to mutate style declaration text." - }, - { - "id": "InlineTextBox", - "type": "object", - "properties": [ - { - "name": "boundingBox", - "$ref": "DOM.Rect", - "description": "The absolute position bounding box." - }, - { - "name": "startCharacterIndex", - "type": "integer", - "description": "The starting index in characters, for this post layout textbox substring." - }, - { - "name": "numCharacters", - "type": "integer", - "description": "The number of characters in this post layout textbox substring." - } - ], - "description": "Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.", - "experimental": true } ], "commands": [ @@ -7689,8 +7612,7 @@ "description": "Usage statistics for every employed platform font." } ], - "description": "Requests information about platform fonts which we used to render child TextNodes in the given node.", - "experimental": true + "description": "Requests information about platform fonts which we used to render child TextNodes in the given node." }, { "name": "getStyleSheetText", @@ -7727,8 +7649,7 @@ "description": "Class name list." } ], - "description": "Returns all class names from specified stylesheet.", - "experimental": true + "description": "Returns all class names from specified stylesheet." }, { "name": "setStyleSheetText", @@ -7932,8 +7853,7 @@ } } ], - "description": "Returns all media queries parsed by the rendering engine.", - "experimental": true + "description": "Returns all media queries parsed by the rendering engine." }, { "name": "setEffectivePropertyValueForNode", @@ -7952,8 +7872,7 @@ "type": "string" } ], - "description": "Find a rule with the given active property for the given node and set the new value for this property", - "experimental": true + "description": "Find a rule with the given active property for the given node and set the new value for this property" }, { "name": "getBackgroundColors", @@ -7992,13 +7911,11 @@ "description": "The computed font size for the document body, as a computed CSS value string (e.g. '16px').", "optional": true } - ], - "experimental": true + ] }, { "name": "startRuleUsageTracking", - "description": "Enables the selector recording.", - "experimental": true + "description": "Enables the selector recording." }, { "name": "takeCoverageDelta", @@ -8011,8 +7928,7 @@ "$ref": "RuleUsage" } } - ], - "experimental": true + ] }, { "name": "stopRuleUsageTracking", @@ -8025,8 +7941,7 @@ } } ], - "description": "The list of rules with an indication of whether these were used", - "experimental": true + "description": "The list of rules with an indication of whether these were used" } ], "events": [ @@ -8238,6 +8153,28 @@ ], "description": "A Node in the DOM tree." }, + { + "id": "InlineTextBox", + "type": "object", + "properties": [ + { + "name": "boundingBox", + "$ref": "DOM.Rect", + "description": "The absolute position bounding box." + }, + { + "name": "startCharacterIndex", + "type": "integer", + "description": "The starting index in characters, for this post layout textbox substring." + }, + { + "name": "numCharacters", + "type": "integer", + "description": "The number of characters in this post layout textbox substring." + } + ], + "description": "Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions." + }, { "id": "LayoutTreeNode", "type": "object", @@ -8263,7 +8200,7 @@ "type": "array", "optional": true, "items": { - "$ref": "CSS.InlineTextBox" + "$ref": "InlineTextBox" }, "description": "The post-layout inline text nodes, if any." }, @@ -8355,7 +8292,6 @@ { "domain": "IO", "description": "Input/Output operations for streams produced by DevTools.", - "experimental": true, "types": [ { "id": "StreamHandle", @@ -8512,8 +8448,7 @@ "optional": true, "description": "Node the listener is added to (if any)." } - ], - "experimental": true + ] } ], "commands": [ @@ -8633,7 +8568,6 @@ }, { "name": "getEventListeners", - "experimental": true, "parameters": [ { "name": "objectId", @@ -8644,15 +8578,13 @@ "name": "depth", "type": "integer", "optional": true, - "description": "The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", - "experimental": true + "description": "The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0." }, { "name": "pierce", "type": "boolean", "optional": true, - "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Reports listeners for all contexts if pierce is enabled.", - "experimental": true + "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Reports listeners for all contexts if pierce is enabled." } ], "returns": [ @@ -8672,7 +8604,6 @@ { "domain": "Target", "description": "Supports additional targets discovery and allows to attach to them.", - "experimental": true, "types": [ { "id": "TargetID", @@ -8685,7 +8616,8 @@ }, { "id": "BrowserContextID", - "type": "string" + "type": "string", + "experimental": true }, { "id": "TargetInfo", @@ -8732,7 +8664,8 @@ "name": "port", "type": "integer" } - ] + ], + "experimental": true } ], "commands": [ @@ -8771,7 +8704,8 @@ "type": "boolean", "description": "Whether to attach to frames." } - ] + ], + "experimental": true }, { "name": "setRemoteLocations", @@ -8785,7 +8719,8 @@ }, "description": "List of remote locations." } - ] + ], + "experimental": true }, { "name": "sendMessageToTarget", @@ -8897,7 +8832,8 @@ "$ref": "BrowserContextID", "description": "The id of the context created." } - ] + ], + "experimental": true }, { "name": "disposeBrowserContext", @@ -8913,7 +8849,8 @@ "name": "success", "type": "boolean" } - ] + ], + "experimental": true }, { "name": "createTarget", @@ -9457,7 +9394,6 @@ { "id": "TouchPoint", "type": "object", - "experimental": true, "properties": [ { "name": "x", @@ -9619,7 +9555,6 @@ "name": "location", "type": "integer", "optional": true, - "experimental": true, "description": "Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0)." } ], @@ -9696,7 +9631,6 @@ }, { "name": "dispatchTouchEvent", - "experimental": true, "parameters": [ { "name": "type", @@ -11542,7 +11476,6 @@ "Runtime", "Network" ], - "experimental": true, "types": [ { "id": "LogEntry", @@ -11851,11 +11784,11 @@ { "domain": "Browser", "description": "The Browser domain defines methods and events for browser managing.", - "experimental": true, "types": [ { "id": "WindowID", - "type": "integer" + "type": "integer", + "experimental": true }, { "id": "WindowState", @@ -11866,7 +11799,8 @@ "maximized", "fullscreen" ], - "description": "The state of the browser window." + "description": "The state of the browser window.", + "experimental": true }, { "id": "Bounds", @@ -11903,7 +11837,8 @@ "optional": true, "description": "The window state. Default to normal." } - ] + ], + "experimental": true } ], "commands": [ @@ -11932,7 +11867,8 @@ "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored window position and size are returned." } - ] + ], + "experimental": true }, { "name": "getVersion", @@ -11979,7 +11915,8 @@ "$ref": "Bounds", "description": "New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged." } - ] + ], + "experimental": true }, { "name": "getWindowBounds", @@ -11997,7 +11934,8 @@ "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored window position and size are returned." } - ] + ], + "experimental": true } ] },