| // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. |
| |
| package page |
| |
| import ( |
| json "encoding/json" |
| cdp "github.com/chromedp/cdproto/cdp" |
| debugger "github.com/chromedp/cdproto/debugger" |
| dom "github.com/chromedp/cdproto/dom" |
| runtime "github.com/chromedp/cdproto/runtime" |
| easyjson "github.com/mailru/easyjson" |
| jlexer "github.com/mailru/easyjson/jlexer" |
| jwriter "github.com/mailru/easyjson/jwriter" |
| ) |
| |
| // suppress unused package warning |
| var ( |
| _ *json.RawMessage |
| _ *jlexer.Lexer |
| _ *jwriter.Writer |
| _ easyjson.Marshaler |
| ) |
| |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage(in *jlexer.Lexer, out *VisualViewport) { |
| 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 "offsetX": |
| out.OffsetX = float64(in.Float64()) |
| case "offsetY": |
| out.OffsetY = float64(in.Float64()) |
| case "pageX": |
| out.PageX = float64(in.Float64()) |
| case "pageY": |
| out.PageY = float64(in.Float64()) |
| case "clientWidth": |
| out.ClientWidth = float64(in.Float64()) |
| case "clientHeight": |
| out.ClientHeight = float64(in.Float64()) |
| case "scale": |
| out.Scale = float64(in.Float64()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage(out *jwriter.Writer, in VisualViewport) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"offsetX\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.OffsetX)) |
| } |
| { |
| const prefix string = ",\"offsetY\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.OffsetY)) |
| } |
| { |
| const prefix string = ",\"pageX\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.PageX)) |
| } |
| { |
| const prefix string = ",\"pageY\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.PageY)) |
| } |
| { |
| const prefix string = ",\"clientWidth\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.ClientWidth)) |
| } |
| { |
| const prefix string = ",\"clientHeight\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.ClientHeight)) |
| } |
| { |
| const prefix string = ",\"scale\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.Scale)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v VisualViewport) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v VisualViewport) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *VisualViewport) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *VisualViewport) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage1(in *jlexer.Lexer, out *Viewport) { |
| 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 "x": |
| out.X = float64(in.Float64()) |
| case "y": |
| out.Y = float64(in.Float64()) |
| case "width": |
| out.Width = float64(in.Float64()) |
| case "height": |
| out.Height = float64(in.Float64()) |
| case "scale": |
| out.Scale = float64(in.Float64()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage1(out *jwriter.Writer, in Viewport) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"x\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.X)) |
| } |
| { |
| const prefix string = ",\"y\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.Y)) |
| } |
| { |
| const prefix string = ",\"width\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.Width)) |
| } |
| { |
| const prefix string = ",\"height\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.Height)) |
| } |
| { |
| const prefix string = ",\"scale\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.Scale)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v Viewport) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage1(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v Viewport) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage1(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *Viewport) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage1(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *Viewport) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage1(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage2(in *jlexer.Lexer, out *StopScreencastParams) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage2(out *jwriter.Writer, in StopScreencastParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v StopScreencastParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage2(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v StopScreencastParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage2(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *StopScreencastParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage2(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *StopScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage2(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage3(in *jlexer.Lexer, out *StopLoadingParams) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage3(out *jwriter.Writer, in StopLoadingParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v StopLoadingParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage3(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v StopLoadingParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage3(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *StopLoadingParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage3(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *StopLoadingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage3(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage4(in *jlexer.Lexer, out *StartScreencastParams) { |
| 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 "format": |
| (out.Format).UnmarshalEasyJSON(in) |
| case "quality": |
| out.Quality = int64(in.Int64()) |
| case "maxWidth": |
| out.MaxWidth = int64(in.Int64()) |
| case "maxHeight": |
| out.MaxHeight = int64(in.Int64()) |
| case "everyNthFrame": |
| out.EveryNthFrame = int64(in.Int64()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage4(out *jwriter.Writer, in StartScreencastParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.Format != "" { |
| const prefix string = ",\"format\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (in.Format).MarshalEasyJSON(out) |
| } |
| if in.Quality != 0 { |
| const prefix string = ",\"quality\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.Quality)) |
| } |
| if in.MaxWidth != 0 { |
| const prefix string = ",\"maxWidth\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.MaxWidth)) |
| } |
| if in.MaxHeight != 0 { |
| const prefix string = ",\"maxHeight\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.MaxHeight)) |
| } |
| if in.EveryNthFrame != 0 { |
| const prefix string = ",\"everyNthFrame\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.EveryNthFrame)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v StartScreencastParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage4(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v StartScreencastParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage4(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *StartScreencastParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage4(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *StartScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage4(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage5(in *jlexer.Lexer, out *SetWebLifecycleStateParams) { |
| 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 "state": |
| (out.State).UnmarshalEasyJSON(in) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage5(out *jwriter.Writer, in SetWebLifecycleStateParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"state\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (in.State).MarshalEasyJSON(out) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v SetWebLifecycleStateParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage5(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SetWebLifecycleStateParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage5(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SetWebLifecycleStateParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage5(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SetWebLifecycleStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage5(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage6(in *jlexer.Lexer, out *SetProduceCompilationCacheParams) { |
| 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 "enabled": |
| out.Enabled = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage6(out *jwriter.Writer, in SetProduceCompilationCacheParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"enabled\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.Enabled)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v SetProduceCompilationCacheParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage6(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SetProduceCompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage6(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SetProduceCompilationCacheParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage6(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SetProduceCompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage6(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage7(in *jlexer.Lexer, out *SetLifecycleEventsEnabledParams) { |
| 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 "enabled": |
| out.Enabled = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage7(out *jwriter.Writer, in SetLifecycleEventsEnabledParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"enabled\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.Enabled)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v SetLifecycleEventsEnabledParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage7(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SetLifecycleEventsEnabledParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage7(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SetLifecycleEventsEnabledParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage7(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SetLifecycleEventsEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage7(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage8(in *jlexer.Lexer, out *SetFontSizesParams) { |
| 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 "fontSizes": |
| if in.IsNull() { |
| in.Skip() |
| out.FontSizes = nil |
| } else { |
| if out.FontSizes == nil { |
| out.FontSizes = new(FontSizes) |
| } |
| (*out.FontSizes).UnmarshalEasyJSON(in) |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage8(out *jwriter.Writer, in SetFontSizesParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"fontSizes\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| if in.FontSizes == nil { |
| out.RawString("null") |
| } else { |
| (*in.FontSizes).MarshalEasyJSON(out) |
| } |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v SetFontSizesParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage8(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SetFontSizesParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage8(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SetFontSizesParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage8(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SetFontSizesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage8(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage9(in *jlexer.Lexer, out *SetFontFamiliesParams) { |
| 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 "fontFamilies": |
| if in.IsNull() { |
| in.Skip() |
| out.FontFamilies = nil |
| } else { |
| if out.FontFamilies == nil { |
| out.FontFamilies = new(FontFamilies) |
| } |
| (*out.FontFamilies).UnmarshalEasyJSON(in) |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage9(out *jwriter.Writer, in SetFontFamiliesParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"fontFamilies\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| if in.FontFamilies == nil { |
| out.RawString("null") |
| } else { |
| (*in.FontFamilies).MarshalEasyJSON(out) |
| } |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v SetFontFamiliesParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage9(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SetFontFamiliesParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage9(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SetFontFamiliesParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage9(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SetFontFamiliesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage9(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage10(in *jlexer.Lexer, out *SetDownloadBehaviorParams) { |
| 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 "behavior": |
| (out.Behavior).UnmarshalEasyJSON(in) |
| case "downloadPath": |
| out.DownloadPath = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage10(out *jwriter.Writer, in SetDownloadBehaviorParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"behavior\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (in.Behavior).MarshalEasyJSON(out) |
| } |
| if in.DownloadPath != "" { |
| const prefix string = ",\"downloadPath\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.DownloadPath)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v SetDownloadBehaviorParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage10(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SetDownloadBehaviorParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage10(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SetDownloadBehaviorParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage10(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SetDownloadBehaviorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage10(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage11(in *jlexer.Lexer, out *SetDocumentContentParams) { |
| 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 "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| case "html": |
| out.HTML = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage11(out *jwriter.Writer, in SetDocumentContentParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| { |
| const prefix string = ",\"html\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.HTML)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v SetDocumentContentParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage11(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SetDocumentContentParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage11(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SetDocumentContentParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage11(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SetDocumentContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage11(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage12(in *jlexer.Lexer, out *SetBypassCSPParams) { |
| 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 "enabled": |
| out.Enabled = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage12(out *jwriter.Writer, in SetBypassCSPParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"enabled\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.Enabled)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v SetBypassCSPParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage12(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SetBypassCSPParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage12(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SetBypassCSPParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage12(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SetBypassCSPParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage12(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage13(in *jlexer.Lexer, out *SetAdBlockingEnabledParams) { |
| 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 "enabled": |
| out.Enabled = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage13(out *jwriter.Writer, in SetAdBlockingEnabledParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"enabled\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.Enabled)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v SetAdBlockingEnabledParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage13(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SetAdBlockingEnabledParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage13(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SetAdBlockingEnabledParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage13(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SetAdBlockingEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage13(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage14(in *jlexer.Lexer, out *SearchInResourceReturns) { |
| 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 "result": |
| if in.IsNull() { |
| in.Skip() |
| out.Result = nil |
| } else { |
| in.Delim('[') |
| if out.Result == nil { |
| if !in.IsDelim(']') { |
| out.Result = make([]*debugger.SearchMatch, 0, 8) |
| } else { |
| out.Result = []*debugger.SearchMatch{} |
| } |
| } else { |
| out.Result = (out.Result)[:0] |
| } |
| for !in.IsDelim(']') { |
| var v1 *debugger.SearchMatch |
| if in.IsNull() { |
| in.Skip() |
| v1 = nil |
| } else { |
| if v1 == nil { |
| v1 = new(debugger.SearchMatch) |
| } |
| (*v1).UnmarshalEasyJSON(in) |
| } |
| out.Result = append(out.Result, v1) |
| in.WantComma() |
| } |
| in.Delim(']') |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage14(out *jwriter.Writer, in SearchInResourceReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if len(in.Result) != 0 { |
| const prefix string = ",\"result\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| { |
| out.RawByte('[') |
| for v2, v3 := range in.Result { |
| if v2 > 0 { |
| out.RawByte(',') |
| } |
| if v3 == nil { |
| out.RawString("null") |
| } else { |
| (*v3).MarshalEasyJSON(out) |
| } |
| } |
| out.RawByte(']') |
| } |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v SearchInResourceReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage14(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SearchInResourceReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage14(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SearchInResourceReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage14(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SearchInResourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage14(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage15(in *jlexer.Lexer, out *SearchInResourceParams) { |
| 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 "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| case "url": |
| out.URL = string(in.String()) |
| case "query": |
| out.Query = string(in.String()) |
| case "caseSensitive": |
| out.CaseSensitive = bool(in.Bool()) |
| case "isRegex": |
| out.IsRegex = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage15(out *jwriter.Writer, in SearchInResourceParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| { |
| const prefix string = ",\"url\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.URL)) |
| } |
| { |
| const prefix string = ",\"query\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Query)) |
| } |
| if in.CaseSensitive { |
| const prefix string = ",\"caseSensitive\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.CaseSensitive)) |
| } |
| if in.IsRegex { |
| const prefix string = ",\"isRegex\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.IsRegex)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v SearchInResourceParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage15(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SearchInResourceParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage15(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SearchInResourceParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage15(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SearchInResourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage15(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage16(in *jlexer.Lexer, out *ScreencastFrameMetadata) { |
| 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 "offsetTop": |
| out.OffsetTop = float64(in.Float64()) |
| case "pageScaleFactor": |
| out.PageScaleFactor = float64(in.Float64()) |
| case "deviceWidth": |
| out.DeviceWidth = float64(in.Float64()) |
| case "deviceHeight": |
| out.DeviceHeight = float64(in.Float64()) |
| case "scrollOffsetX": |
| out.ScrollOffsetX = float64(in.Float64()) |
| case "scrollOffsetY": |
| out.ScrollOffsetY = float64(in.Float64()) |
| case "timestamp": |
| if in.IsNull() { |
| in.Skip() |
| out.Timestamp = nil |
| } else { |
| if out.Timestamp == nil { |
| out.Timestamp = new(cdp.TimeSinceEpoch) |
| } |
| (*out.Timestamp).UnmarshalEasyJSON(in) |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage16(out *jwriter.Writer, in ScreencastFrameMetadata) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"offsetTop\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.OffsetTop)) |
| } |
| { |
| const prefix string = ",\"pageScaleFactor\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.PageScaleFactor)) |
| } |
| { |
| const prefix string = ",\"deviceWidth\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.DeviceWidth)) |
| } |
| { |
| const prefix string = ",\"deviceHeight\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.DeviceHeight)) |
| } |
| { |
| const prefix string = ",\"scrollOffsetX\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.ScrollOffsetX)) |
| } |
| { |
| const prefix string = ",\"scrollOffsetY\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.ScrollOffsetY)) |
| } |
| if in.Timestamp != nil { |
| const prefix string = ",\"timestamp\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (*in.Timestamp).MarshalEasyJSON(out) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v ScreencastFrameMetadata) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage16(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v ScreencastFrameMetadata) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage16(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *ScreencastFrameMetadata) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage16(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *ScreencastFrameMetadata) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage16(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage17(in *jlexer.Lexer, out *ScreencastFrameAckParams) { |
| 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 "sessionId": |
| out.SessionID = int64(in.Int64()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage17(out *jwriter.Writer, in ScreencastFrameAckParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"sessionId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.SessionID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v ScreencastFrameAckParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage17(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v ScreencastFrameAckParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage17(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *ScreencastFrameAckParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage17(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *ScreencastFrameAckParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage17(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage18(in *jlexer.Lexer, out *RequestAppBannerParams) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage18(out *jwriter.Writer, in RequestAppBannerParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v RequestAppBannerParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage18(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v RequestAppBannerParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage18(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *RequestAppBannerParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage18(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *RequestAppBannerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage18(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage19(in *jlexer.Lexer, out *RemoveScriptToEvaluateOnNewDocumentParams) { |
| 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 "identifier": |
| out.Identifier = ScriptIdentifier(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage19(out *jwriter.Writer, in RemoveScriptToEvaluateOnNewDocumentParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"identifier\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Identifier)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v RemoveScriptToEvaluateOnNewDocumentParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage19(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v RemoveScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage19(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *RemoveScriptToEvaluateOnNewDocumentParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage19(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *RemoveScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage19(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage20(in *jlexer.Lexer, out *ReloadParams) { |
| 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 "ignoreCache": |
| out.IgnoreCache = bool(in.Bool()) |
| case "scriptToEvaluateOnLoad": |
| out.ScriptToEvaluateOnLoad = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage20(out *jwriter.Writer, in ReloadParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.IgnoreCache { |
| const prefix string = ",\"ignoreCache\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.IgnoreCache)) |
| } |
| if in.ScriptToEvaluateOnLoad != "" { |
| const prefix string = ",\"scriptToEvaluateOnLoad\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.ScriptToEvaluateOnLoad)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v ReloadParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage20(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v ReloadParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage20(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *ReloadParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage20(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *ReloadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage20(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage21(in *jlexer.Lexer, out *PrintToPDFReturns) { |
| 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 "data": |
| out.Data = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage21(out *jwriter.Writer, in PrintToPDFReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.Data != "" { |
| const prefix string = ",\"data\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Data)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v PrintToPDFReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage21(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v PrintToPDFReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage21(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *PrintToPDFReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage21(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *PrintToPDFReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage21(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage22(in *jlexer.Lexer, out *PrintToPDFParams) { |
| 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 "landscape": |
| out.Landscape = bool(in.Bool()) |
| case "displayHeaderFooter": |
| out.DisplayHeaderFooter = bool(in.Bool()) |
| case "printBackground": |
| out.PrintBackground = bool(in.Bool()) |
| case "scale": |
| out.Scale = float64(in.Float64()) |
| case "paperWidth": |
| out.PaperWidth = float64(in.Float64()) |
| case "paperHeight": |
| out.PaperHeight = float64(in.Float64()) |
| case "marginTop": |
| out.MarginTop = float64(in.Float64()) |
| case "marginBottom": |
| out.MarginBottom = float64(in.Float64()) |
| case "marginLeft": |
| out.MarginLeft = float64(in.Float64()) |
| case "marginRight": |
| out.MarginRight = float64(in.Float64()) |
| case "pageRanges": |
| out.PageRanges = string(in.String()) |
| case "ignoreInvalidPageRanges": |
| out.IgnoreInvalidPageRanges = bool(in.Bool()) |
| case "headerTemplate": |
| out.HeaderTemplate = string(in.String()) |
| case "footerTemplate": |
| out.FooterTemplate = string(in.String()) |
| case "preferCSSPageSize": |
| out.PreferCSSPageSize = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage22(out *jwriter.Writer, in PrintToPDFParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.Landscape { |
| const prefix string = ",\"landscape\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.Landscape)) |
| } |
| if in.DisplayHeaderFooter { |
| const prefix string = ",\"displayHeaderFooter\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.DisplayHeaderFooter)) |
| } |
| if in.PrintBackground { |
| const prefix string = ",\"printBackground\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.PrintBackground)) |
| } |
| if in.Scale != 0 { |
| const prefix string = ",\"scale\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.Scale)) |
| } |
| if in.PaperWidth != 0 { |
| const prefix string = ",\"paperWidth\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.PaperWidth)) |
| } |
| if in.PaperHeight != 0 { |
| const prefix string = ",\"paperHeight\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.PaperHeight)) |
| } |
| if in.MarginTop != 0 { |
| const prefix string = ",\"marginTop\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.MarginTop)) |
| } |
| if in.MarginBottom != 0 { |
| const prefix string = ",\"marginBottom\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.MarginBottom)) |
| } |
| if in.MarginLeft != 0 { |
| const prefix string = ",\"marginLeft\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.MarginLeft)) |
| } |
| if in.MarginRight != 0 { |
| const prefix string = ",\"marginRight\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.MarginRight)) |
| } |
| if in.PageRanges != "" { |
| const prefix string = ",\"pageRanges\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.PageRanges)) |
| } |
| if in.IgnoreInvalidPageRanges { |
| const prefix string = ",\"ignoreInvalidPageRanges\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.IgnoreInvalidPageRanges)) |
| } |
| if in.HeaderTemplate != "" { |
| const prefix string = ",\"headerTemplate\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.HeaderTemplate)) |
| } |
| if in.FooterTemplate != "" { |
| const prefix string = ",\"footerTemplate\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FooterTemplate)) |
| } |
| if in.PreferCSSPageSize { |
| const prefix string = ",\"preferCSSPageSize\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.PreferCSSPageSize)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v PrintToPDFParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage22(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v PrintToPDFParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage22(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *PrintToPDFParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage22(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *PrintToPDFParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage22(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage23(in *jlexer.Lexer, out *NavigationEntry) { |
| 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 "id": |
| out.ID = int64(in.Int64()) |
| case "url": |
| out.URL = string(in.String()) |
| case "userTypedURL": |
| out.UserTypedURL = string(in.String()) |
| case "title": |
| out.Title = string(in.String()) |
| case "transitionType": |
| (out.TransitionType).UnmarshalEasyJSON(in) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage23(out *jwriter.Writer, in NavigationEntry) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"id\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.ID)) |
| } |
| { |
| const prefix string = ",\"url\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.URL)) |
| } |
| { |
| const prefix string = ",\"userTypedURL\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.UserTypedURL)) |
| } |
| { |
| const prefix string = ",\"title\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Title)) |
| } |
| { |
| const prefix string = ",\"transitionType\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (in.TransitionType).MarshalEasyJSON(out) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v NavigationEntry) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage23(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v NavigationEntry) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage23(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *NavigationEntry) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage23(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *NavigationEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage23(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage24(in *jlexer.Lexer, out *NavigateToHistoryEntryParams) { |
| 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 "entryId": |
| out.EntryID = int64(in.Int64()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage24(out *jwriter.Writer, in NavigateToHistoryEntryParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"entryId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.EntryID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v NavigateToHistoryEntryParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage24(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v NavigateToHistoryEntryParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage24(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *NavigateToHistoryEntryParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage24(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *NavigateToHistoryEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage24(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage25(in *jlexer.Lexer, out *NavigateReturns) { |
| 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 "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| case "loaderId": |
| out.LoaderID = cdp.LoaderID(in.String()) |
| case "errorText": |
| out.ErrorText = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage25(out *jwriter.Writer, in NavigateReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.FrameID != "" { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| if in.LoaderID != "" { |
| const prefix string = ",\"loaderId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.LoaderID)) |
| } |
| if in.ErrorText != "" { |
| const prefix string = ",\"errorText\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.ErrorText)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v NavigateReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage25(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v NavigateReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage25(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *NavigateReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage25(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *NavigateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage25(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage26(in *jlexer.Lexer, out *NavigateParams) { |
| 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 "url": |
| out.URL = string(in.String()) |
| case "referrer": |
| out.Referrer = string(in.String()) |
| case "transitionType": |
| (out.TransitionType).UnmarshalEasyJSON(in) |
| case "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage26(out *jwriter.Writer, in NavigateParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"url\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.URL)) |
| } |
| if in.Referrer != "" { |
| const prefix string = ",\"referrer\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Referrer)) |
| } |
| if in.TransitionType != "" { |
| const prefix string = ",\"transitionType\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (in.TransitionType).MarshalEasyJSON(out) |
| } |
| if in.FrameID != "" { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v NavigateParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage26(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v NavigateParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage26(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *NavigateParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage26(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *NavigateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage26(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage27(in *jlexer.Lexer, out *LayoutViewport) { |
| 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 "pageX": |
| out.PageX = int64(in.Int64()) |
| case "pageY": |
| out.PageY = int64(in.Int64()) |
| case "clientWidth": |
| out.ClientWidth = int64(in.Int64()) |
| case "clientHeight": |
| out.ClientHeight = int64(in.Int64()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage27(out *jwriter.Writer, in LayoutViewport) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"pageX\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.PageX)) |
| } |
| { |
| const prefix string = ",\"pageY\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.PageY)) |
| } |
| { |
| const prefix string = ",\"clientWidth\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.ClientWidth)) |
| } |
| { |
| const prefix string = ",\"clientHeight\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.ClientHeight)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v LayoutViewport) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage27(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v LayoutViewport) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage27(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *LayoutViewport) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage27(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *LayoutViewport) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage27(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage28(in *jlexer.Lexer, out *HandleJavaScriptDialogParams) { |
| 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 "accept": |
| out.Accept = bool(in.Bool()) |
| case "promptText": |
| out.PromptText = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage28(out *jwriter.Writer, in HandleJavaScriptDialogParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"accept\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.Accept)) |
| } |
| if in.PromptText != "" { |
| const prefix string = ",\"promptText\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.PromptText)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v HandleJavaScriptDialogParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage28(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v HandleJavaScriptDialogParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage28(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *HandleJavaScriptDialogParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage28(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *HandleJavaScriptDialogParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage28(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage29(in *jlexer.Lexer, out *GetResourceTreeReturns) { |
| 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(FrameResourceTree) |
| } |
| (*out.FrameTree).UnmarshalEasyJSON(in) |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage29(out *jwriter.Writer, in GetResourceTreeReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.FrameTree != nil { |
| const prefix string = ",\"frameTree\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (*in.FrameTree).MarshalEasyJSON(out) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetResourceTreeReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage29(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetResourceTreeReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage29(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetResourceTreeReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage29(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetResourceTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage29(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage30(in *jlexer.Lexer, out *GetResourceTreeParams) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage30(out *jwriter.Writer, in GetResourceTreeParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetResourceTreeParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage30(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetResourceTreeParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage30(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetResourceTreeParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage30(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetResourceTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage30(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage31(in *jlexer.Lexer, out *GetResourceContentReturns) { |
| 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 "content": |
| out.Content = string(in.String()) |
| case "base64Encoded": |
| out.Base64encoded = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage31(out *jwriter.Writer, in GetResourceContentReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.Content != "" { |
| const prefix string = ",\"content\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Content)) |
| } |
| if in.Base64encoded { |
| const prefix string = ",\"base64Encoded\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.Base64encoded)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetResourceContentReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage31(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetResourceContentReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage31(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetResourceContentReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage31(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetResourceContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage31(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage32(in *jlexer.Lexer, out *GetResourceContentParams) { |
| 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 "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| case "url": |
| out.URL = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage32(out *jwriter.Writer, in GetResourceContentParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| { |
| const prefix string = ",\"url\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.URL)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetResourceContentParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage32(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetResourceContentParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage32(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetResourceContentParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage32(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetResourceContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage32(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage33(in *jlexer.Lexer, out *GetNavigationHistoryReturns) { |
| 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 "currentIndex": |
| out.CurrentIndex = int64(in.Int64()) |
| case "entries": |
| if in.IsNull() { |
| in.Skip() |
| out.Entries = nil |
| } else { |
| in.Delim('[') |
| if out.Entries == nil { |
| if !in.IsDelim(']') { |
| out.Entries = make([]*NavigationEntry, 0, 8) |
| } else { |
| out.Entries = []*NavigationEntry{} |
| } |
| } else { |
| out.Entries = (out.Entries)[:0] |
| } |
| for !in.IsDelim(']') { |
| var v4 *NavigationEntry |
| if in.IsNull() { |
| in.Skip() |
| v4 = nil |
| } else { |
| if v4 == nil { |
| v4 = new(NavigationEntry) |
| } |
| (*v4).UnmarshalEasyJSON(in) |
| } |
| out.Entries = append(out.Entries, v4) |
| in.WantComma() |
| } |
| in.Delim(']') |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage33(out *jwriter.Writer, in GetNavigationHistoryReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.CurrentIndex != 0 { |
| const prefix string = ",\"currentIndex\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.CurrentIndex)) |
| } |
| if len(in.Entries) != 0 { |
| const prefix string = ",\"entries\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| { |
| out.RawByte('[') |
| for v5, v6 := range in.Entries { |
| if v5 > 0 { |
| out.RawByte(',') |
| } |
| if v6 == nil { |
| out.RawString("null") |
| } else { |
| (*v6).MarshalEasyJSON(out) |
| } |
| } |
| out.RawByte(']') |
| } |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetNavigationHistoryReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage33(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetNavigationHistoryReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage33(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetNavigationHistoryReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage33(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetNavigationHistoryReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage33(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage34(in *jlexer.Lexer, out *GetNavigationHistoryParams) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage34(out *jwriter.Writer, in GetNavigationHistoryParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetNavigationHistoryParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage34(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetNavigationHistoryParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage34(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetNavigationHistoryParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage34(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetNavigationHistoryParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage34(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage35(in *jlexer.Lexer, out *GetLayoutMetricsReturns) { |
| 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 "layoutViewport": |
| if in.IsNull() { |
| in.Skip() |
| out.LayoutViewport = nil |
| } else { |
| if out.LayoutViewport == nil { |
| out.LayoutViewport = new(LayoutViewport) |
| } |
| (*out.LayoutViewport).UnmarshalEasyJSON(in) |
| } |
| case "visualViewport": |
| if in.IsNull() { |
| in.Skip() |
| out.VisualViewport = nil |
| } else { |
| if out.VisualViewport == nil { |
| out.VisualViewport = new(VisualViewport) |
| } |
| (*out.VisualViewport).UnmarshalEasyJSON(in) |
| } |
| case "contentSize": |
| if in.IsNull() { |
| in.Skip() |
| out.ContentSize = nil |
| } else { |
| if out.ContentSize == nil { |
| out.ContentSize = new(dom.Rect) |
| } |
| (*out.ContentSize).UnmarshalEasyJSON(in) |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage35(out *jwriter.Writer, in GetLayoutMetricsReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.LayoutViewport != nil { |
| const prefix string = ",\"layoutViewport\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (*in.LayoutViewport).MarshalEasyJSON(out) |
| } |
| if in.VisualViewport != nil { |
| const prefix string = ",\"visualViewport\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (*in.VisualViewport).MarshalEasyJSON(out) |
| } |
| if in.ContentSize != nil { |
| const prefix string = ",\"contentSize\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (*in.ContentSize).MarshalEasyJSON(out) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetLayoutMetricsReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage35(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetLayoutMetricsReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage35(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetLayoutMetricsReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage35(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetLayoutMetricsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage35(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage36(in *jlexer.Lexer, out *GetLayoutMetricsParams) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage36(out *jwriter.Writer, in GetLayoutMetricsParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetLayoutMetricsParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage36(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetLayoutMetricsParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage36(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetLayoutMetricsParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage36(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetLayoutMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage36(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage37(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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage37(out *jwriter.Writer, in GetFrameTreeReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.FrameTree != nil { |
| const prefix string = ",\"frameTree\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (*in.FrameTree).MarshalEasyJSON(out) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetFrameTreeReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage37(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetFrameTreeReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage37(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetFrameTreeReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage37(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetFrameTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage37(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage38(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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage38(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{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage38(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetFrameTreeParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage38(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetFrameTreeParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage38(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetFrameTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage38(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage39(in *jlexer.Lexer, out *GetAppManifestReturns) { |
| 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 "url": |
| out.URL = string(in.String()) |
| case "errors": |
| if in.IsNull() { |
| in.Skip() |
| out.Errors = nil |
| } else { |
| in.Delim('[') |
| if out.Errors == nil { |
| if !in.IsDelim(']') { |
| out.Errors = make([]*AppManifestError, 0, 8) |
| } else { |
| out.Errors = []*AppManifestError{} |
| } |
| } else { |
| out.Errors = (out.Errors)[:0] |
| } |
| for !in.IsDelim(']') { |
| var v7 *AppManifestError |
| if in.IsNull() { |
| in.Skip() |
| v7 = nil |
| } else { |
| if v7 == nil { |
| v7 = new(AppManifestError) |
| } |
| (*v7).UnmarshalEasyJSON(in) |
| } |
| out.Errors = append(out.Errors, v7) |
| in.WantComma() |
| } |
| in.Delim(']') |
| } |
| case "data": |
| out.Data = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage39(out *jwriter.Writer, in GetAppManifestReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.URL != "" { |
| const prefix string = ",\"url\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.URL)) |
| } |
| if len(in.Errors) != 0 { |
| const prefix string = ",\"errors\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| { |
| out.RawByte('[') |
| for v8, v9 := range in.Errors { |
| if v8 > 0 { |
| out.RawByte(',') |
| } |
| if v9 == nil { |
| out.RawString("null") |
| } else { |
| (*v9).MarshalEasyJSON(out) |
| } |
| } |
| out.RawByte(']') |
| } |
| } |
| if in.Data != "" { |
| const prefix string = ",\"data\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Data)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetAppManifestReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage39(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetAppManifestReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage39(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetAppManifestReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage39(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetAppManifestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage39(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage40(in *jlexer.Lexer, out *GetAppManifestParams) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage40(out *jwriter.Writer, in GetAppManifestParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetAppManifestParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage40(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetAppManifestParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage40(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetAppManifestParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage40(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetAppManifestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage40(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage41(in *jlexer.Lexer, out *GenerateTestReportParams) { |
| 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 "message": |
| out.Message = string(in.String()) |
| case "group": |
| out.Group = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage41(out *jwriter.Writer, in GenerateTestReportParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"message\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Message)) |
| } |
| if in.Group != "" { |
| const prefix string = ",\"group\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Group)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GenerateTestReportParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage41(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GenerateTestReportParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage41(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GenerateTestReportParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage41(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GenerateTestReportParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage41(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage42(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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage42(out *jwriter.Writer, in FrameTree) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frame\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| if in.Frame == nil { |
| out.RawString("null") |
| } else { |
| (*in.Frame).MarshalEasyJSON(out) |
| } |
| } |
| if len(in.ChildFrames) != 0 { |
| const prefix string = ",\"childFrames\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| { |
| 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{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage42(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v FrameTree) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage42(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *FrameTree) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage42(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *FrameTree) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage42(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage43(in *jlexer.Lexer, out *FrameResourceTree) { |
| 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([]*FrameResourceTree, 0, 8) |
| } else { |
| out.ChildFrames = []*FrameResourceTree{} |
| } |
| } else { |
| out.ChildFrames = (out.ChildFrames)[:0] |
| } |
| for !in.IsDelim(']') { |
| var v13 *FrameResourceTree |
| if in.IsNull() { |
| in.Skip() |
| v13 = nil |
| } else { |
| if v13 == nil { |
| v13 = new(FrameResourceTree) |
| } |
| (*v13).UnmarshalEasyJSON(in) |
| } |
| out.ChildFrames = append(out.ChildFrames, v13) |
| in.WantComma() |
| } |
| in.Delim(']') |
| } |
| case "resources": |
| if in.IsNull() { |
| in.Skip() |
| out.Resources = nil |
| } else { |
| in.Delim('[') |
| if out.Resources == nil { |
| if !in.IsDelim(']') { |
| out.Resources = make([]*FrameResource, 0, 8) |
| } else { |
| out.Resources = []*FrameResource{} |
| } |
| } else { |
| out.Resources = (out.Resources)[:0] |
| } |
| for !in.IsDelim(']') { |
| var v14 *FrameResource |
| if in.IsNull() { |
| in.Skip() |
| v14 = nil |
| } else { |
| if v14 == nil { |
| v14 = new(FrameResource) |
| } |
| (*v14).UnmarshalEasyJSON(in) |
| } |
| out.Resources = append(out.Resources, v14) |
| in.WantComma() |
| } |
| in.Delim(']') |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage43(out *jwriter.Writer, in FrameResourceTree) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frame\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| if in.Frame == nil { |
| out.RawString("null") |
| } else { |
| (*in.Frame).MarshalEasyJSON(out) |
| } |
| } |
| if len(in.ChildFrames) != 0 { |
| const prefix string = ",\"childFrames\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| { |
| out.RawByte('[') |
| for v15, v16 := range in.ChildFrames { |
| if v15 > 0 { |
| out.RawByte(',') |
| } |
| if v16 == nil { |
| out.RawString("null") |
| } else { |
| (*v16).MarshalEasyJSON(out) |
| } |
| } |
| out.RawByte(']') |
| } |
| } |
| { |
| const prefix string = ",\"resources\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| if in.Resources == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { |
| out.RawString("null") |
| } else { |
| out.RawByte('[') |
| for v17, v18 := range in.Resources { |
| if v17 > 0 { |
| out.RawByte(',') |
| } |
| if v18 == nil { |
| out.RawString("null") |
| } else { |
| (*v18).MarshalEasyJSON(out) |
| } |
| } |
| out.RawByte(']') |
| } |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v FrameResourceTree) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage43(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v FrameResourceTree) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage43(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *FrameResourceTree) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage43(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *FrameResourceTree) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage43(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage44(in *jlexer.Lexer, out *FrameResource) { |
| 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 "url": |
| out.URL = string(in.String()) |
| case "type": |
| (out.Type).UnmarshalEasyJSON(in) |
| case "mimeType": |
| out.MimeType = string(in.String()) |
| case "lastModified": |
| if in.IsNull() { |
| in.Skip() |
| out.LastModified = nil |
| } else { |
| if out.LastModified == nil { |
| out.LastModified = new(cdp.TimeSinceEpoch) |
| } |
| (*out.LastModified).UnmarshalEasyJSON(in) |
| } |
| case "contentSize": |
| out.ContentSize = float64(in.Float64()) |
| case "failed": |
| out.Failed = bool(in.Bool()) |
| case "canceled": |
| out.Canceled = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage44(out *jwriter.Writer, in FrameResource) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"url\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.URL)) |
| } |
| { |
| const prefix string = ",\"type\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (in.Type).MarshalEasyJSON(out) |
| } |
| { |
| const prefix string = ",\"mimeType\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.MimeType)) |
| } |
| if in.LastModified != nil { |
| const prefix string = ",\"lastModified\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (*in.LastModified).MarshalEasyJSON(out) |
| } |
| if in.ContentSize != 0 { |
| const prefix string = ",\"contentSize\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.ContentSize)) |
| } |
| if in.Failed { |
| const prefix string = ",\"failed\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.Failed)) |
| } |
| if in.Canceled { |
| const prefix string = ",\"canceled\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.Canceled)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v FrameResource) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage44(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v FrameResource) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage44(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *FrameResource) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage44(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *FrameResource) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage44(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage45(in *jlexer.Lexer, out *FontSizes) { |
| 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 "standard": |
| out.Standard = int64(in.Int64()) |
| case "fixed": |
| out.Fixed = int64(in.Int64()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage45(out *jwriter.Writer, in FontSizes) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.Standard != 0 { |
| const prefix string = ",\"standard\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.Standard)) |
| } |
| if in.Fixed != 0 { |
| const prefix string = ",\"fixed\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.Fixed)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v FontSizes) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage45(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v FontSizes) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage45(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *FontSizes) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage45(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *FontSizes) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage45(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage46(in *jlexer.Lexer, out *FontFamilies) { |
| 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 "standard": |
| out.Standard = string(in.String()) |
| case "fixed": |
| out.Fixed = string(in.String()) |
| case "serif": |
| out.Serif = string(in.String()) |
| case "sansSerif": |
| out.SansSerif = string(in.String()) |
| case "cursive": |
| out.Cursive = string(in.String()) |
| case "fantasy": |
| out.Fantasy = string(in.String()) |
| case "pictograph": |
| out.Pictograph = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage46(out *jwriter.Writer, in FontFamilies) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.Standard != "" { |
| const prefix string = ",\"standard\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Standard)) |
| } |
| if in.Fixed != "" { |
| const prefix string = ",\"fixed\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Fixed)) |
| } |
| if in.Serif != "" { |
| const prefix string = ",\"serif\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Serif)) |
| } |
| if in.SansSerif != "" { |
| const prefix string = ",\"sansSerif\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.SansSerif)) |
| } |
| if in.Cursive != "" { |
| const prefix string = ",\"cursive\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Cursive)) |
| } |
| if in.Fantasy != "" { |
| const prefix string = ",\"fantasy\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Fantasy)) |
| } |
| if in.Pictograph != "" { |
| const prefix string = ",\"pictograph\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Pictograph)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v FontFamilies) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage46(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v FontFamilies) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage46(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *FontFamilies) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage46(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *FontFamilies) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage46(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage47(in *jlexer.Lexer, out *EventWindowOpen) { |
| 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 "url": |
| out.URL = string(in.String()) |
| case "windowName": |
| out.WindowName = string(in.String()) |
| case "windowFeatures": |
| if in.IsNull() { |
| in.Skip() |
| out.WindowFeatures = nil |
| } else { |
| in.Delim('[') |
| if out.WindowFeatures == nil { |
| if !in.IsDelim(']') { |
| out.WindowFeatures = make([]string, 0, 4) |
| } else { |
| out.WindowFeatures = []string{} |
| } |
| } else { |
| out.WindowFeatures = (out.WindowFeatures)[:0] |
| } |
| for !in.IsDelim(']') { |
| var v19 string |
| v19 = string(in.String()) |
| out.WindowFeatures = append(out.WindowFeatures, v19) |
| in.WantComma() |
| } |
| in.Delim(']') |
| } |
| case "userGesture": |
| out.UserGesture = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage47(out *jwriter.Writer, in EventWindowOpen) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"url\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.URL)) |
| } |
| { |
| const prefix string = ",\"windowName\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.WindowName)) |
| } |
| { |
| const prefix string = ",\"windowFeatures\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| if in.WindowFeatures == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { |
| out.RawString("null") |
| } else { |
| out.RawByte('[') |
| for v20, v21 := range in.WindowFeatures { |
| if v20 > 0 { |
| out.RawByte(',') |
| } |
| out.String(string(v21)) |
| } |
| out.RawByte(']') |
| } |
| } |
| { |
| const prefix string = ",\"userGesture\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.UserGesture)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventWindowOpen) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage47(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventWindowOpen) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage47(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventWindowOpen) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage47(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventWindowOpen) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage47(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage48(in *jlexer.Lexer, out *EventScreencastVisibilityChanged) { |
| 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 "visible": |
| out.Visible = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage48(out *jwriter.Writer, in EventScreencastVisibilityChanged) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"visible\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.Visible)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventScreencastVisibilityChanged) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage48(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventScreencastVisibilityChanged) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage48(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventScreencastVisibilityChanged) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage48(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventScreencastVisibilityChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage48(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage49(in *jlexer.Lexer, out *EventScreencastFrame) { |
| 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 "data": |
| out.Data = string(in.String()) |
| case "metadata": |
| if in.IsNull() { |
| in.Skip() |
| out.Metadata = nil |
| } else { |
| if out.Metadata == nil { |
| out.Metadata = new(ScreencastFrameMetadata) |
| } |
| (*out.Metadata).UnmarshalEasyJSON(in) |
| } |
| case "sessionId": |
| out.SessionID = int64(in.Int64()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage49(out *jwriter.Writer, in EventScreencastFrame) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"data\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Data)) |
| } |
| { |
| const prefix string = ",\"metadata\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| if in.Metadata == nil { |
| out.RawString("null") |
| } else { |
| (*in.Metadata).MarshalEasyJSON(out) |
| } |
| } |
| { |
| const prefix string = ",\"sessionId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.SessionID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventScreencastFrame) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage49(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventScreencastFrame) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage49(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventScreencastFrame) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage49(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventScreencastFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage49(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage50(in *jlexer.Lexer, out *EventNavigatedWithinDocument) { |
| 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 "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| case "url": |
| out.URL = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage50(out *jwriter.Writer, in EventNavigatedWithinDocument) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| { |
| const prefix string = ",\"url\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.URL)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventNavigatedWithinDocument) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage50(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventNavigatedWithinDocument) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage50(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventNavigatedWithinDocument) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage50(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventNavigatedWithinDocument) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage50(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage51(in *jlexer.Lexer, out *EventLoadEventFired) { |
| 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 "timestamp": |
| if in.IsNull() { |
| in.Skip() |
| out.Timestamp = nil |
| } else { |
| if out.Timestamp == nil { |
| out.Timestamp = new(cdp.MonotonicTime) |
| } |
| (*out.Timestamp).UnmarshalEasyJSON(in) |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage51(out *jwriter.Writer, in EventLoadEventFired) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"timestamp\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| if in.Timestamp == nil { |
| out.RawString("null") |
| } else { |
| (*in.Timestamp).MarshalEasyJSON(out) |
| } |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventLoadEventFired) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage51(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventLoadEventFired) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage51(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventLoadEventFired) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage51(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventLoadEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage51(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage52(in *jlexer.Lexer, out *EventLifecycleEvent) { |
| 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 "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| case "loaderId": |
| out.LoaderID = cdp.LoaderID(in.String()) |
| case "name": |
| out.Name = string(in.String()) |
| case "timestamp": |
| if in.IsNull() { |
| in.Skip() |
| out.Timestamp = nil |
| } else { |
| if out.Timestamp == nil { |
| out.Timestamp = new(cdp.MonotonicTime) |
| } |
| (*out.Timestamp).UnmarshalEasyJSON(in) |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage52(out *jwriter.Writer, in EventLifecycleEvent) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| { |
| const prefix string = ",\"loaderId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.LoaderID)) |
| } |
| { |
| const prefix string = ",\"name\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Name)) |
| } |
| { |
| const prefix string = ",\"timestamp\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| if in.Timestamp == nil { |
| out.RawString("null") |
| } else { |
| (*in.Timestamp).MarshalEasyJSON(out) |
| } |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventLifecycleEvent) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage52(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventLifecycleEvent) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage52(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventLifecycleEvent) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage52(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventLifecycleEvent) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage52(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage53(in *jlexer.Lexer, out *EventJavascriptDialogOpening) { |
| 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 "url": |
| out.URL = string(in.String()) |
| case "message": |
| out.Message = string(in.String()) |
| case "type": |
| (out.Type).UnmarshalEasyJSON(in) |
| case "hasBrowserHandler": |
| out.HasBrowserHandler = bool(in.Bool()) |
| case "defaultPrompt": |
| out.DefaultPrompt = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage53(out *jwriter.Writer, in EventJavascriptDialogOpening) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"url\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.URL)) |
| } |
| { |
| const prefix string = ",\"message\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Message)) |
| } |
| { |
| const prefix string = ",\"type\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (in.Type).MarshalEasyJSON(out) |
| } |
| { |
| const prefix string = ",\"hasBrowserHandler\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.HasBrowserHandler)) |
| } |
| if in.DefaultPrompt != "" { |
| const prefix string = ",\"defaultPrompt\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.DefaultPrompt)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventJavascriptDialogOpening) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage53(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventJavascriptDialogOpening) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage53(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventJavascriptDialogOpening) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage53(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventJavascriptDialogOpening) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage53(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage54(in *jlexer.Lexer, out *EventJavascriptDialogClosed) { |
| 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 "result": |
| out.Result = bool(in.Bool()) |
| case "userInput": |
| out.UserInput = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage54(out *jwriter.Writer, in EventJavascriptDialogClosed) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"result\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.Result)) |
| } |
| { |
| const prefix string = ",\"userInput\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.UserInput)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventJavascriptDialogClosed) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage54(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventJavascriptDialogClosed) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage54(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventJavascriptDialogClosed) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage54(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventJavascriptDialogClosed) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage54(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage55(in *jlexer.Lexer, out *EventInterstitialShown) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage55(out *jwriter.Writer, in EventInterstitialShown) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventInterstitialShown) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage55(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventInterstitialShown) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage55(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventInterstitialShown) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage55(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventInterstitialShown) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage55(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage56(in *jlexer.Lexer, out *EventInterstitialHidden) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage56(out *jwriter.Writer, in EventInterstitialHidden) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventInterstitialHidden) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage56(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventInterstitialHidden) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage56(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventInterstitialHidden) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage56(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventInterstitialHidden) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage56(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage57(in *jlexer.Lexer, out *EventFrameStoppedLoading) { |
| 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 "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage57(out *jwriter.Writer, in EventFrameStoppedLoading) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventFrameStoppedLoading) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage57(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventFrameStoppedLoading) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage57(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventFrameStoppedLoading) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage57(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventFrameStoppedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage57(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage58(in *jlexer.Lexer, out *EventFrameStartedLoading) { |
| 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 "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage58(out *jwriter.Writer, in EventFrameStartedLoading) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventFrameStartedLoading) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage58(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventFrameStartedLoading) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage58(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventFrameStartedLoading) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage58(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventFrameStartedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage58(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage59(in *jlexer.Lexer, out *EventFrameScheduledNavigation) { |
| 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 "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| case "delay": |
| out.Delay = float64(in.Float64()) |
| case "reason": |
| (out.Reason).UnmarshalEasyJSON(in) |
| case "url": |
| out.URL = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage59(out *jwriter.Writer, in EventFrameScheduledNavigation) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| { |
| const prefix string = ",\"delay\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Float64(float64(in.Delay)) |
| } |
| { |
| const prefix string = ",\"reason\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (in.Reason).MarshalEasyJSON(out) |
| } |
| { |
| const prefix string = ",\"url\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.URL)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventFrameScheduledNavigation) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage59(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventFrameScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage59(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventFrameScheduledNavigation) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage59(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventFrameScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage59(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage60(in *jlexer.Lexer, out *EventFrameResized) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage60(out *jwriter.Writer, in EventFrameResized) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventFrameResized) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage60(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventFrameResized) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage60(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventFrameResized) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage60(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventFrameResized) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage60(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage61(in *jlexer.Lexer, out *EventFrameNavigated) { |
| 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) |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage61(out *jwriter.Writer, in EventFrameNavigated) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frame\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| if in.Frame == nil { |
| out.RawString("null") |
| } else { |
| (*in.Frame).MarshalEasyJSON(out) |
| } |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventFrameNavigated) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage61(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventFrameNavigated) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage61(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventFrameNavigated) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage61(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventFrameNavigated) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage61(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage62(in *jlexer.Lexer, out *EventFrameDetached) { |
| 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 "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage62(out *jwriter.Writer, in EventFrameDetached) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventFrameDetached) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage62(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventFrameDetached) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage62(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventFrameDetached) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage62(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventFrameDetached) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage62(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage63(in *jlexer.Lexer, out *EventFrameClearedScheduledNavigation) { |
| 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 "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage63(out *jwriter.Writer, in EventFrameClearedScheduledNavigation) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventFrameClearedScheduledNavigation) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage63(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventFrameClearedScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage63(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventFrameClearedScheduledNavigation) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage63(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventFrameClearedScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage63(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage64(in *jlexer.Lexer, out *EventFrameAttached) { |
| 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 "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| case "parentFrameId": |
| (out.ParentFrameID).UnmarshalEasyJSON(in) |
| case "stack": |
| if in.IsNull() { |
| in.Skip() |
| out.Stack = nil |
| } else { |
| if out.Stack == nil { |
| out.Stack = new(runtime.StackTrace) |
| } |
| (*out.Stack).UnmarshalEasyJSON(in) |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage64(out *jwriter.Writer, in EventFrameAttached) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| { |
| const prefix string = ",\"parentFrameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.ParentFrameID)) |
| } |
| if in.Stack != nil { |
| const prefix string = ",\"stack\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (*in.Stack).MarshalEasyJSON(out) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventFrameAttached) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage64(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventFrameAttached) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage64(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventFrameAttached) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage64(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventFrameAttached) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage64(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage65(in *jlexer.Lexer, out *EventDomContentEventFired) { |
| 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 "timestamp": |
| if in.IsNull() { |
| in.Skip() |
| out.Timestamp = nil |
| } else { |
| if out.Timestamp == nil { |
| out.Timestamp = new(cdp.MonotonicTime) |
| } |
| (*out.Timestamp).UnmarshalEasyJSON(in) |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage65(out *jwriter.Writer, in EventDomContentEventFired) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"timestamp\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| if in.Timestamp == nil { |
| out.RawString("null") |
| } else { |
| (*in.Timestamp).MarshalEasyJSON(out) |
| } |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventDomContentEventFired) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage65(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventDomContentEventFired) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage65(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventDomContentEventFired) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage65(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventDomContentEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage65(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage66(in *jlexer.Lexer, out *EventCompilationCacheProduced) { |
| 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 "url": |
| out.URL = string(in.String()) |
| case "data": |
| out.Data = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage66(out *jwriter.Writer, in EventCompilationCacheProduced) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"url\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.URL)) |
| } |
| { |
| const prefix string = ",\"data\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Data)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventCompilationCacheProduced) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage66(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventCompilationCacheProduced) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage66(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventCompilationCacheProduced) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage66(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventCompilationCacheProduced) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage66(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage67(in *jlexer.Lexer, out *EnableParams) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage67(out *jwriter.Writer, in EnableParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EnableParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage67(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage67(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EnableParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage67(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage67(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage68(in *jlexer.Lexer, out *DisableParams) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage68(out *jwriter.Writer, in DisableParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v DisableParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage68(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage68(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *DisableParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage68(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage68(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage69(in *jlexer.Lexer, out *CreateIsolatedWorldReturns) { |
| 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 "executionContextId": |
| out.ExecutionContextID = runtime.ExecutionContextID(in.Int64()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage69(out *jwriter.Writer, in CreateIsolatedWorldReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.ExecutionContextID != 0 { |
| const prefix string = ",\"executionContextId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.ExecutionContextID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CreateIsolatedWorldReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage69(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CreateIsolatedWorldReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage69(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CreateIsolatedWorldReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage69(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CreateIsolatedWorldReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage69(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage70(in *jlexer.Lexer, out *CreateIsolatedWorldParams) { |
| 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 "frameId": |
| (out.FrameID).UnmarshalEasyJSON(in) |
| case "worldName": |
| out.WorldName = string(in.String()) |
| case "grantUniveralAccess": |
| out.GrantUniveralAccess = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage70(out *jwriter.Writer, in CreateIsolatedWorldParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"frameId\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.FrameID)) |
| } |
| if in.WorldName != "" { |
| const prefix string = ",\"worldName\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.WorldName)) |
| } |
| if in.GrantUniveralAccess { |
| const prefix string = ",\"grantUniveralAccess\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.GrantUniveralAccess)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CreateIsolatedWorldParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage70(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CreateIsolatedWorldParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage70(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CreateIsolatedWorldParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage70(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CreateIsolatedWorldParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage70(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage71(in *jlexer.Lexer, out *CrashParams) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage71(out *jwriter.Writer, in CrashParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CrashParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage71(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CrashParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage71(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CrashParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage71(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CrashParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage71(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage72(in *jlexer.Lexer, out *CloseParams) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage72(out *jwriter.Writer, in CloseParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CloseParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage72(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CloseParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage72(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CloseParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage72(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CloseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage72(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage73(in *jlexer.Lexer, out *ClearCompilationCacheParams) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage73(out *jwriter.Writer, in ClearCompilationCacheParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v ClearCompilationCacheParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage73(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v ClearCompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage73(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *ClearCompilationCacheParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage73(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *ClearCompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage73(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage74(in *jlexer.Lexer, out *CaptureSnapshotReturns) { |
| 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 "data": |
| out.Data = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage74(out *jwriter.Writer, in CaptureSnapshotReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.Data != "" { |
| const prefix string = ",\"data\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Data)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CaptureSnapshotReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage74(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CaptureSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage74(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CaptureSnapshotReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage74(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CaptureSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage74(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage75(in *jlexer.Lexer, out *CaptureSnapshotParams) { |
| 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 "format": |
| (out.Format).UnmarshalEasyJSON(in) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage75(out *jwriter.Writer, in CaptureSnapshotParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.Format != "" { |
| const prefix string = ",\"format\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (in.Format).MarshalEasyJSON(out) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CaptureSnapshotParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage75(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CaptureSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage75(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CaptureSnapshotParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage75(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CaptureSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage75(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage76(in *jlexer.Lexer, out *CaptureScreenshotReturns) { |
| 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 "data": |
| out.Data = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage76(out *jwriter.Writer, in CaptureScreenshotReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.Data != "" { |
| const prefix string = ",\"data\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Data)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CaptureScreenshotReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage76(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CaptureScreenshotReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage76(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CaptureScreenshotReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage76(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CaptureScreenshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage76(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage77(in *jlexer.Lexer, out *CaptureScreenshotParams) { |
| 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 "format": |
| (out.Format).UnmarshalEasyJSON(in) |
| case "quality": |
| out.Quality = int64(in.Int64()) |
| case "clip": |
| if in.IsNull() { |
| in.Skip() |
| out.Clip = nil |
| } else { |
| if out.Clip == nil { |
| out.Clip = new(Viewport) |
| } |
| (*out.Clip).UnmarshalEasyJSON(in) |
| } |
| case "fromSurface": |
| out.FromSurface = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage77(out *jwriter.Writer, in CaptureScreenshotParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.Format != "" { |
| const prefix string = ",\"format\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (in.Format).MarshalEasyJSON(out) |
| } |
| if in.Quality != 0 { |
| const prefix string = ",\"quality\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.Quality)) |
| } |
| if in.Clip != nil { |
| const prefix string = ",\"clip\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| (*in.Clip).MarshalEasyJSON(out) |
| } |
| if in.FromSurface { |
| const prefix string = ",\"fromSurface\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Bool(bool(in.FromSurface)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CaptureScreenshotParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage77(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CaptureScreenshotParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage77(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CaptureScreenshotParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage77(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CaptureScreenshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage77(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage78(in *jlexer.Lexer, out *BringToFrontParams) { |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage78(out *jwriter.Writer, in BringToFrontParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v BringToFrontParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage78(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v BringToFrontParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage78(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *BringToFrontParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage78(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *BringToFrontParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage78(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage79(in *jlexer.Lexer, out *AppManifestError) { |
| 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 "message": |
| out.Message = string(in.String()) |
| case "critical": |
| out.Critical = int64(in.Int64()) |
| case "line": |
| out.Line = int64(in.Int64()) |
| case "column": |
| out.Column = int64(in.Int64()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage79(out *jwriter.Writer, in AppManifestError) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"message\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Message)) |
| } |
| { |
| const prefix string = ",\"critical\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.Critical)) |
| } |
| { |
| const prefix string = ",\"line\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.Line)) |
| } |
| { |
| const prefix string = ",\"column\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.Int64(int64(in.Column)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v AppManifestError) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage79(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v AppManifestError) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage79(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *AppManifestError) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage79(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *AppManifestError) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage79(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage80(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentReturns) { |
| 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 "identifier": |
| out.Identifier = ScriptIdentifier(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage80(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.Identifier != "" { |
| const prefix string = ",\"identifier\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Identifier)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v AddScriptToEvaluateOnNewDocumentReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage80(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v AddScriptToEvaluateOnNewDocumentReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage80(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage80(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage80(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage81(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentParams) { |
| 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 "source": |
| out.Source = string(in.String()) |
| case "worldName": |
| out.WorldName = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage81(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"source\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Source)) |
| } |
| if in.WorldName != "" { |
| const prefix string = ",\"worldName\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.WorldName)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v AddScriptToEvaluateOnNewDocumentParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage81(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v AddScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage81(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage81(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage81(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage82(in *jlexer.Lexer, out *AddCompilationCacheParams) { |
| 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 "url": |
| out.URL = string(in.String()) |
| case "data": |
| out.Data = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage82(out *jwriter.Writer, in AddCompilationCacheParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"url\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.URL)) |
| } |
| { |
| const prefix string = ",\"data\":" |
| if first { |
| first = false |
| out.RawString(prefix[1:]) |
| } else { |
| out.RawString(prefix) |
| } |
| out.String(string(in.Data)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v AddCompilationCacheParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage82(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v AddCompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage82(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *AddCompilationCacheParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage82(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *AddCompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage82(l, v) |
| } |