From 4bb2c55697098e8636940a5a9fc4858a3d187e30 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Mon, 17 Apr 2017 07:32:07 +0700 Subject: [PATCH] Updating to latest protocol.json and addition of Browser domain --- cdp/browser/browser.go | 116 +++++ cdp/browser/easyjson.go | 522 +++++++++++++++++++++++ cdp/browser/types.go | 76 ++++ cdp/cdp.go | 12 +- cdp/cdputil/cdputil.go | 13 +- cdp/network/easyjson.go | 679 ++++++++++++++---------------- cdp/network/network.go | 23 - cdp/target/easyjson.go | 2 +- cdp/target/target.go | 4 +- cmd/chromedp-gen/internal/enum.go | 4 + cmd/chromedp-gen/protocol.json | 132 +++++- 11 files changed, 1165 insertions(+), 418 deletions(-) create mode 100644 cdp/browser/browser.go create mode 100644 cdp/browser/easyjson.go create mode 100644 cdp/browser/types.go diff --git a/cdp/browser/browser.go b/cdp/browser/browser.go new file mode 100644 index 0000000..2c4bb03 --- /dev/null +++ b/cdp/browser/browser.go @@ -0,0 +1,116 @@ +// Package browser provides the Chrome Debugging Protocol +// commands, types, and events for the Browser domain. +// +// The Browser domain defines methods and events for browser managing. +// +// Generated by the chromedp-gen command. +package browser + +// AUTOGENERATED. DO NOT EDIT. + +import ( + "context" + + cdp "github.com/knq/chromedp/cdp" + "github.com/knq/chromedp/cdp/target" +) + +// GetWindowForTargetParams get the browser window that contains the devtools +// target. +type GetWindowForTargetParams struct { + TargetID target.ID `json:"targetId"` // Devtools agent host id. +} + +// GetWindowForTarget get the browser window that contains the devtools +// target. +// +// parameters: +// targetID - Devtools agent host id. +func GetWindowForTarget(targetID target.ID) *GetWindowForTargetParams { + return &GetWindowForTargetParams{ + TargetID: targetID, + } +} + +// GetWindowForTargetReturns return values. +type GetWindowForTargetReturns struct { + WindowID WindowID `json:"windowId,omitempty"` // Browser window id. + Bounds *Bounds `json:"bounds,omitempty"` // Bounds information of the window. When window state is 'minimized', the restored window position and size are returned. +} + +// Do executes Browser.getWindowForTarget against the provided context and +// target handler. +// +// returns: +// windowID - Browser window id. +// bounds - Bounds information of the window. When window state is 'minimized', the restored window position and size are returned. +func (p *GetWindowForTargetParams) Do(ctxt context.Context, h cdp.Handler) (windowID WindowID, bounds *Bounds, err error) { + // execute + var res GetWindowForTargetReturns + err = h.Execute(ctxt, cdp.CommandBrowserGetWindowForTarget, p, &res) + if err != nil { + return 0, nil, err + } + + return res.WindowID, res.Bounds, nil +} + +// SetWindowBoundsParams set position and/or size of the browser window. +type SetWindowBoundsParams struct { + WindowID WindowID `json:"windowId"` // Browser window id. + Bounds *Bounds `json:"bounds"` // New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged. +} + +// SetWindowBounds set position and/or size of the browser window. +// +// parameters: +// windowID - Browser window id. +// bounds - New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged. +func SetWindowBounds(windowID WindowID, bounds *Bounds) *SetWindowBoundsParams { + return &SetWindowBoundsParams{ + WindowID: windowID, + Bounds: bounds, + } +} + +// Do executes Browser.setWindowBounds against the provided context and +// target handler. +func (p *SetWindowBoundsParams) Do(ctxt context.Context, h cdp.Handler) (err error) { + return h.Execute(ctxt, cdp.CommandBrowserSetWindowBounds, p, nil) +} + +// GetWindowBoundsParams get position and size of the browser window. +type GetWindowBoundsParams struct { + WindowID WindowID `json:"windowId"` // Browser window id. +} + +// GetWindowBounds get position and size of the browser window. +// +// parameters: +// windowID - Browser window id. +func GetWindowBounds(windowID WindowID) *GetWindowBoundsParams { + return &GetWindowBoundsParams{ + WindowID: windowID, + } +} + +// GetWindowBoundsReturns return values. +type GetWindowBoundsReturns struct { + Bounds *Bounds `json:"bounds,omitempty"` // Bounds information of the window. When window state is 'minimized', the restored window position and size are returned. +} + +// Do executes Browser.getWindowBounds against the provided context and +// target handler. +// +// returns: +// bounds - Bounds information of the window. When window state is 'minimized', the restored window position and size are returned. +func (p *GetWindowBoundsParams) Do(ctxt context.Context, h cdp.Handler) (bounds *Bounds, err error) { + // execute + var res GetWindowBoundsReturns + err = h.Execute(ctxt, cdp.CommandBrowserGetWindowBounds, p, &res) + if err != nil { + return nil, err + } + + return res.Bounds, nil +} diff --git a/cdp/browser/easyjson.go b/cdp/browser/easyjson.go new file mode 100644 index 0000000..4b8bfdd --- /dev/null +++ b/cdp/browser/easyjson.go @@ -0,0 +1,522 @@ +// AUTOGENERATED FILE: easyjson marshaler/unmarshalers. + +package browser + +import ( + json "encoding/json" + target "github.com/knq/chromedp/cdp/target" + 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 easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser(in *jlexer.Lexer, out *SetWindowBoundsParams) { + 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 "windowId": + out.WindowID = WindowID(in.Int64()) + case "bounds": + if in.IsNull() { + in.Skip() + out.Bounds = nil + } else { + if out.Bounds == nil { + out.Bounds = new(Bounds) + } + (*out.Bounds).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser(out *jwriter.Writer, in SetWindowBoundsParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"windowId\":") + out.Int64(int64(in.WindowID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"bounds\":") + if in.Bounds == nil { + out.RawString("null") + } else { + (*in.Bounds).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetWindowBoundsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetWindowBoundsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetWindowBoundsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetWindowBoundsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser1(in *jlexer.Lexer, out *GetWindowForTargetReturns) { + 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 "windowId": + out.WindowID = WindowID(in.Int64()) + case "bounds": + if in.IsNull() { + in.Skip() + out.Bounds = nil + } else { + if out.Bounds == nil { + out.Bounds = new(Bounds) + } + (*out.Bounds).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser1(out *jwriter.Writer, in GetWindowForTargetReturns) { + out.RawByte('{') + first := true + _ = first + if in.WindowID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"windowId\":") + out.Int64(int64(in.WindowID)) + } + if in.Bounds != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"bounds\":") + if in.Bounds == nil { + out.RawString("null") + } else { + (*in.Bounds).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetWindowForTargetReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetWindowForTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetWindowForTargetReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetWindowForTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser2(in *jlexer.Lexer, out *GetWindowForTargetParams) { + 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 "targetId": + out.TargetID = target.ID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser2(out *jwriter.Writer, in GetWindowForTargetParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"targetId\":") + out.String(string(in.TargetID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetWindowForTargetParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetWindowForTargetParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetWindowForTargetParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetWindowForTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser3(in *jlexer.Lexer, out *GetWindowBoundsReturns) { + 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 "bounds": + if in.IsNull() { + in.Skip() + out.Bounds = nil + } else { + if out.Bounds == nil { + out.Bounds = new(Bounds) + } + (*out.Bounds).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser3(out *jwriter.Writer, in GetWindowBoundsReturns) { + out.RawByte('{') + first := true + _ = first + if in.Bounds != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"bounds\":") + if in.Bounds == nil { + out.RawString("null") + } else { + (*in.Bounds).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetWindowBoundsReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetWindowBoundsReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetWindowBoundsReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetWindowBoundsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser4(in *jlexer.Lexer, out *GetWindowBoundsParams) { + 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 "windowId": + out.WindowID = WindowID(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser4(out *jwriter.Writer, in GetWindowBoundsParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"windowId\":") + out.Int64(int64(in.WindowID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetWindowBoundsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetWindowBoundsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetWindowBoundsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetWindowBoundsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser5(in *jlexer.Lexer, out *Bounds) { + 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 "left": + out.Left = int64(in.Int64()) + case "top": + out.Top = int64(in.Int64()) + case "width": + out.Width = int64(in.Int64()) + case "height": + out.Height = int64(in.Int64()) + case "windowState": + (out.WindowState).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser5(out *jwriter.Writer, in Bounds) { + out.RawByte('{') + first := true + _ = first + if in.Left != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"left\":") + out.Int64(int64(in.Left)) + } + if in.Top != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"top\":") + out.Int64(int64(in.Top)) + } + if in.Width != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"width\":") + out.Int64(int64(in.Width)) + } + if in.Height != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"height\":") + out.Int64(int64(in.Height)) + } + if in.WindowState != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"windowState\":") + (in.WindowState).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Bounds) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Bounds) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Bounds) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Bounds) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser5(l, v) +} diff --git a/cdp/browser/types.go b/cdp/browser/types.go new file mode 100644 index 0000000..383608e --- /dev/null +++ b/cdp/browser/types.go @@ -0,0 +1,76 @@ +package browser + +import ( + "errors" + + "github.com/mailru/easyjson" + "github.com/mailru/easyjson/jlexer" + "github.com/mailru/easyjson/jwriter" +) + +// AUTOGENERATED. DO NOT EDIT. + +// WindowID [no description]. +type WindowID int64 + +// Int64 returns the WindowID as int64 value. +func (t WindowID) Int64() int64 { + return int64(t) +} + +// WindowState the state of the browser window. +type WindowState string + +// String returns the WindowState as string value. +func (t WindowState) String() string { + return string(t) +} + +// WindowState values. +const ( + WindowStateNormal WindowState = "normal" + WindowStateMinimized WindowState = "minimized" + WindowStateMaximized WindowState = "maximized" + WindowStateFullscreen WindowState = "fullscreen" +) + +// MarshalEasyJSON satisfies easyjson.Marshaler. +func (t WindowState) MarshalEasyJSON(out *jwriter.Writer) { + out.String(string(t)) +} + +// MarshalJSON satisfies json.Marshaler. +func (t WindowState) MarshalJSON() ([]byte, error) { + return easyjson.Marshal(t) +} + +// UnmarshalEasyJSON satisfies easyjson.Unmarshaler. +func (t *WindowState) UnmarshalEasyJSON(in *jlexer.Lexer) { + switch WindowState(in.String()) { + case WindowStateNormal: + *t = WindowStateNormal + case WindowStateMinimized: + *t = WindowStateMinimized + case WindowStateMaximized: + *t = WindowStateMaximized + case WindowStateFullscreen: + *t = WindowStateFullscreen + + default: + in.AddError(errors.New("unknown WindowState value")) + } +} + +// UnmarshalJSON satisfies json.Unmarshaler. +func (t *WindowState) UnmarshalJSON(buf []byte) error { + return easyjson.Unmarshal(buf, t) +} + +// Bounds browser window bounds information. +type Bounds struct { + Left int64 `json:"left,omitempty"` // The offset from the left edge of the screen to the window in pixels. + Top int64 `json:"top,omitempty"` // The offset from the top edge of the screen to the window in pixels. + Width int64 `json:"width,omitempty"` // The window width in pixels. + Height int64 `json:"height,omitempty"` // The window height in pixels. + WindowState WindowState `json:"windowState,omitempty"` // The window state. Default to normal. +} diff --git a/cdp/cdp.go b/cdp/cdp.go index eaa1fa8..c9e412b 100644 --- a/cdp/cdp.go +++ b/cdp/cdp.go @@ -152,7 +152,6 @@ const ( CommandNetworkGetResponseBody MethodType = "Network.getResponseBody" CommandNetworkSetBlockedURLS MethodType = "Network.setBlockedURLs" CommandNetworkReplayXHR MethodType = "Network.replayXHR" - CommandNetworkSetMonitoringXHREnabled MethodType = "Network.setMonitoringXHREnabled" CommandNetworkCanClearBrowserCache MethodType = "Network.canClearBrowserCache" CommandNetworkClearBrowserCache MethodType = "Network.clearBrowserCache" CommandNetworkCanClearBrowserCookies MethodType = "Network.canClearBrowserCookies" @@ -382,6 +381,9 @@ const ( EventTetheringAccepted MethodType = "Tethering.accepted" CommandTetheringBind MethodType = "Tethering.bind" CommandTetheringUnbind MethodType = "Tethering.unbind" + CommandBrowserGetWindowForTarget MethodType = "Browser.getWindowForTarget" + CommandBrowserSetWindowBounds MethodType = "Browser.setWindowBounds" + CommandBrowserGetWindowBounds MethodType = "Browser.getWindowBounds" CommandSchemaGetDomains MethodType = "Schema.getDomains" EventRuntimeExecutionContextCreated MethodType = "Runtime.executionContextCreated" EventRuntimeExecutionContextDestroyed MethodType = "Runtime.executionContextDestroyed" @@ -681,8 +683,6 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CommandNetworkSetBlockedURLS case CommandNetworkReplayXHR: *t = CommandNetworkReplayXHR - case CommandNetworkSetMonitoringXHREnabled: - *t = CommandNetworkSetMonitoringXHREnabled case CommandNetworkCanClearBrowserCache: *t = CommandNetworkCanClearBrowserCache case CommandNetworkClearBrowserCache: @@ -1141,6 +1141,12 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CommandTetheringBind case CommandTetheringUnbind: *t = CommandTetheringUnbind + case CommandBrowserGetWindowForTarget: + *t = CommandBrowserGetWindowForTarget + case CommandBrowserSetWindowBounds: + *t = CommandBrowserSetWindowBounds + case CommandBrowserGetWindowBounds: + *t = CommandBrowserGetWindowBounds case CommandSchemaGetDomains: *t = CommandSchemaGetDomains case EventRuntimeExecutionContextCreated: diff --git a/cdp/cdputil/cdputil.go b/cdp/cdputil/cdputil.go index e7735ea..42ee337 100644 --- a/cdp/cdputil/cdputil.go +++ b/cdp/cdputil/cdputil.go @@ -9,6 +9,7 @@ import ( "github.com/knq/chromedp/cdp/accessibility" "github.com/knq/chromedp/cdp/animation" "github.com/knq/chromedp/cdp/applicationcache" + "github.com/knq/chromedp/cdp/browser" "github.com/knq/chromedp/cdp/cachestorage" "github.com/knq/chromedp/cdp/css" "github.com/knq/chromedp/cdp/database" @@ -310,9 +311,6 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) { case cdp.CommandNetworkReplayXHR: return emptyVal, nil - case cdp.CommandNetworkSetMonitoringXHREnabled: - return emptyVal, nil - case cdp.CommandNetworkCanClearBrowserCache: v = new(network.CanClearBrowserCacheReturns) @@ -1045,6 +1043,15 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) { case cdp.EventTetheringAccepted: v = new(tethering.EventAccepted) + case cdp.CommandBrowserGetWindowForTarget: + v = new(browser.GetWindowForTargetReturns) + + case cdp.CommandBrowserSetWindowBounds: + return emptyVal, nil + + case cdp.CommandBrowserGetWindowBounds: + v = new(browser.GetWindowBoundsReturns) + case cdp.CommandSchemaGetDomains: v = new(schema.GetDomainsReturns) diff --git a/cdp/network/easyjson.go b/cdp/network/easyjson.go index e6b8fa5..411af82 100644 --- a/cdp/network/easyjson.go +++ b/cdp/network/easyjson.go @@ -539,74 +539,7 @@ func (v *SetUserAgentOverrideParams) UnmarshalJSON(data []byte) error { func (v *SetUserAgentOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(in *jlexer.Lexer, out *SetMonitoringXHREnabledParams) { - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(out *jwriter.Writer, in SetMonitoringXHREnabledParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"enabled\":") - out.Bool(bool(in.Enabled)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetMonitoringXHREnabledParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetMonitoringXHREnabledParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetMonitoringXHREnabledParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetMonitoringXHREnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(in *jlexer.Lexer, out *SetExtraHTTPHeadersParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(in *jlexer.Lexer, out *SetExtraHTTPHeadersParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -645,7 +578,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(out *jwriter.Writer, in SetExtraHTTPHeadersParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(out *jwriter.Writer, in SetExtraHTTPHeadersParams) { out.RawByte('{') first := true _ = first @@ -665,27 +598,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetExtraHTTPHeadersParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetExtraHTTPHeadersParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetExtraHTTPHeadersParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetExtraHTTPHeadersParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(in *jlexer.Lexer, out *SetDataSizeLimitsForTestParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(in *jlexer.Lexer, out *SetDataSizeLimitsForTestParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -718,7 +651,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(out *jwriter.Writer, in SetDataSizeLimitsForTestParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(out *jwriter.Writer, in SetDataSizeLimitsForTestParams) { out.RawByte('{') first := true _ = first @@ -740,27 +673,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetDataSizeLimitsForTestParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetDataSizeLimitsForTestParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetDataSizeLimitsForTestParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetDataSizeLimitsForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(in *jlexer.Lexer, out *SetCookieReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(in *jlexer.Lexer, out *SetCookieReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -791,7 +724,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(out *jwriter.Writer, in SetCookieReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(out *jwriter.Writer, in SetCookieReturns) { out.RawByte('{') first := true _ = first @@ -809,27 +742,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetCookieReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetCookieReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetCookieReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetCookieReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(in *jlexer.Lexer, out *SetCookieParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(in *jlexer.Lexer, out *SetCookieParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -876,7 +809,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, in SetCookieParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(out *jwriter.Writer, in SetCookieParams) { out.RawByte('{') first := true _ = first @@ -952,27 +885,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetCookieParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetCookieParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetCookieParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(in *jlexer.Lexer, out *SetCacheDisabledParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(in *jlexer.Lexer, out *SetCacheDisabledParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1003,7 +936,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(out *jwriter.Writer, in SetCacheDisabledParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, in SetCacheDisabledParams) { out.RawByte('{') first := true _ = first @@ -1019,27 +952,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetCacheDisabledParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetCacheDisabledParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetCacheDisabledParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetCacheDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(in *jlexer.Lexer, out *SetBypassServiceWorkerParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(in *jlexer.Lexer, out *SetBypassServiceWorkerParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1070,7 +1003,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(out *jwriter.Writer, in SetBypassServiceWorkerParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(out *jwriter.Writer, in SetBypassServiceWorkerParams) { out.RawByte('{') first := true _ = first @@ -1086,27 +1019,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetBypassServiceWorkerParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetBypassServiceWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, out *SetBlockedURLSParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(in *jlexer.Lexer, out *SetBlockedURLSParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1158,7 +1091,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, in SetBlockedURLSParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(out *jwriter.Writer, in SetBlockedURLSParams) { out.RawByte('{') first := true _ = first @@ -1185,27 +1118,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetBlockedURLSParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetBlockedURLSParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetBlockedURLSParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetBlockedURLSParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, out *SecurityDetails) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, out *SecurityDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1308,7 +1241,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, in SecurityDetails) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, in SecurityDetails) { out.RawByte('{') first := true _ = first @@ -1440,27 +1373,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SecurityDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SecurityDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SecurityDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, out *Response) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, out *Response) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1559,7 +1492,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, in Response) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, in Response) { out.RawByte('{') first := true _ = first @@ -1737,27 +1670,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Response) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Response) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Response) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(in *jlexer.Lexer, out *ResourceTiming) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, out *ResourceTiming) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1818,7 +1751,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(out *jwriter.Writer, in ResourceTiming) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, in ResourceTiming) { out.RawByte('{') first := true _ = first @@ -1956,27 +1889,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ResourceTiming) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ResourceTiming) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ResourceTiming) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ResourceTiming) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(in *jlexer.Lexer, out *Request) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(in *jlexer.Lexer, out *Request) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2029,7 +1962,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, in Request) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(out *jwriter.Writer, in Request) { out.RawByte('{') first := true _ = first @@ -2107,27 +2040,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Request) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Request) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Request) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Request) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, out *ReplayXHRParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(in *jlexer.Lexer, out *ReplayXHRParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2158,7 +2091,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, in ReplayXHRParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, in ReplayXHRParams) { out.RawByte('{') first := true _ = first @@ -2174,27 +2107,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ReplayXHRParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(in *jlexer.Lexer, out *Initiator) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, out *Initiator) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2239,7 +2172,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(out *jwriter.Writer, in Initiator) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, in Initiator) { out.RawByte('{') first := true _ = first @@ -2285,27 +2218,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Initiator) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Initiator) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Initiator) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Initiator) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(in *jlexer.Lexer, out *Headers) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(in *jlexer.Lexer, out *Headers) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2334,7 +2267,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(out *jwriter.Writer, in Headers) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(out *jwriter.Writer, in Headers) { out.RawByte('{') first := true _ = first @@ -2344,27 +2277,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Headers) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Headers) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Headers) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Headers) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(in *jlexer.Lexer, out *GetResponseBodyReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(in *jlexer.Lexer, out *GetResponseBodyReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2397,7 +2330,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(out *jwriter.Writer, in GetResponseBodyReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(out *jwriter.Writer, in GetResponseBodyReturns) { out.RawByte('{') first := true _ = first @@ -2423,27 +2356,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetResponseBodyReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetResponseBodyReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(in *jlexer.Lexer, out *GetResponseBodyParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(in *jlexer.Lexer, out *GetResponseBodyParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2474,7 +2407,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(out *jwriter.Writer, in GetResponseBodyParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(out *jwriter.Writer, in GetResponseBodyParams) { out.RawByte('{') first := true _ = first @@ -2490,27 +2423,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetResponseBodyParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetResponseBodyParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(in *jlexer.Lexer, out *GetCookiesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(in *jlexer.Lexer, out *GetCookiesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2570,7 +2503,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(out *jwriter.Writer, in GetCookiesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(out *jwriter.Writer, in GetCookiesReturns) { out.RawByte('{') first := true _ = first @@ -2603,27 +2536,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetCookiesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(in *jlexer.Lexer, out *GetCookiesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(in *jlexer.Lexer, out *GetCookiesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2675,7 +2608,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(out *jwriter.Writer, in GetCookiesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(out *jwriter.Writer, in GetCookiesParams) { out.RawByte('{') first := true _ = first @@ -2704,27 +2637,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetCookiesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCookiesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(in *jlexer.Lexer, out *GetCertificateReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(in *jlexer.Lexer, out *GetCertificateReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2776,7 +2709,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(out *jwriter.Writer, in GetCertificateReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(out *jwriter.Writer, in GetCertificateReturns) { out.RawByte('{') first := true _ = first @@ -2805,27 +2738,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetCertificateReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCertificateReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCertificateReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCertificateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(in *jlexer.Lexer, out *GetCertificateParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(in *jlexer.Lexer, out *GetCertificateParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2856,7 +2789,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(out *jwriter.Writer, in GetCertificateParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(out *jwriter.Writer, in GetCertificateParams) { out.RawByte('{') first := true _ = first @@ -2872,27 +2805,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetCertificateParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCertificateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCertificateParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCertificateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(in *jlexer.Lexer, out *GetAllCookiesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(in *jlexer.Lexer, out *GetAllCookiesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2952,7 +2885,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(out *jwriter.Writer, in GetAllCookiesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(out *jwriter.Writer, in GetAllCookiesReturns) { out.RawByte('{') first := true _ = first @@ -2985,27 +2918,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetAllCookiesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetAllCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetAllCookiesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetAllCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(in *jlexer.Lexer, out *GetAllCookiesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(in *jlexer.Lexer, out *GetAllCookiesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3034,7 +2967,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(out *jwriter.Writer, in GetAllCookiesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(out *jwriter.Writer, in GetAllCookiesParams) { out.RawByte('{') first := true _ = first @@ -3044,27 +2977,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetAllCookiesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetAllCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetAllCookiesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetAllCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(in *jlexer.Lexer, out *EventWebSocketWillSendHandshakeRequest) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(in *jlexer.Lexer, out *EventWebSocketWillSendHandshakeRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3109,7 +3042,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(out *jwriter.Writer, in EventWebSocketWillSendHandshakeRequest) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(out *jwriter.Writer, in EventWebSocketWillSendHandshakeRequest) { out.RawByte('{') first := true _ = first @@ -3155,27 +3088,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketWillSendHandshakeRequest) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(in *jlexer.Lexer, out *EventWebSocketHandshakeResponseReceived) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(in *jlexer.Lexer, out *EventWebSocketHandshakeResponseReceived) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3218,7 +3151,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(out *jwriter.Writer, in EventWebSocketHandshakeResponseReceived) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(out *jwriter.Writer, in EventWebSocketHandshakeResponseReceived) { out.RawByte('{') first := true _ = first @@ -3256,27 +3189,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketHandshakeResponseReceived) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketHandshakeResponseReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketHandshakeResponseReceived) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(in *jlexer.Lexer, out *EventWebSocketFrameSent) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(in *jlexer.Lexer, out *EventWebSocketFrameSent) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3319,7 +3252,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(out *jwriter.Writer, in EventWebSocketFrameSent) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(out *jwriter.Writer, in EventWebSocketFrameSent) { out.RawByte('{') first := true _ = first @@ -3357,27 +3290,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketFrameSent) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketFrameSent) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketFrameSent) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketFrameSent) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(in *jlexer.Lexer, out *EventWebSocketFrameReceived) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(in *jlexer.Lexer, out *EventWebSocketFrameReceived) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3420,7 +3353,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(out *jwriter.Writer, in EventWebSocketFrameReceived) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(out *jwriter.Writer, in EventWebSocketFrameReceived) { out.RawByte('{') first := true _ = first @@ -3458,27 +3391,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketFrameReceived) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketFrameReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketFrameReceived) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketFrameReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(in *jlexer.Lexer, out *EventWebSocketFrameError) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(in *jlexer.Lexer, out *EventWebSocketFrameError) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3513,7 +3446,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(out *jwriter.Writer, in EventWebSocketFrameError) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(out *jwriter.Writer, in EventWebSocketFrameError) { out.RawByte('{') first := true _ = first @@ -3547,27 +3480,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketFrameError) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketFrameError) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketFrameError) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketFrameError) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(in *jlexer.Lexer, out *EventWebSocketCreated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(in *jlexer.Lexer, out *EventWebSocketCreated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3610,7 +3543,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(out *jwriter.Writer, in EventWebSocketCreated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(out *jwriter.Writer, in EventWebSocketCreated) { out.RawByte('{') first := true _ = first @@ -3648,27 +3581,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketCreated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketCreated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketCreated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(in *jlexer.Lexer, out *EventWebSocketClosed) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(in *jlexer.Lexer, out *EventWebSocketClosed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3701,7 +3634,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(out *jwriter.Writer, in EventWebSocketClosed) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(out *jwriter.Writer, in EventWebSocketClosed) { out.RawByte('{') first := true _ = first @@ -3727,27 +3660,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketClosed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketClosed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketClosed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketClosed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(in *jlexer.Lexer, out *EventResponseReceived) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(in *jlexer.Lexer, out *EventResponseReceived) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3796,7 +3729,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(out *jwriter.Writer, in EventResponseReceived) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(out *jwriter.Writer, in EventResponseReceived) { out.RawByte('{') first := true _ = first @@ -3858,27 +3791,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventResponseReceived) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventResponseReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventResponseReceived) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(in *jlexer.Lexer, out *EventResourceChangedPriority) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(in *jlexer.Lexer, out *EventResourceChangedPriority) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3913,7 +3846,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(out *jwriter.Writer, in EventResourceChangedPriority) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(out *jwriter.Writer, in EventResourceChangedPriority) { out.RawByte('{') first := true _ = first @@ -3947,27 +3880,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventResourceChangedPriority) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventResourceChangedPriority) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventResourceChangedPriority) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventResourceChangedPriority) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(in *jlexer.Lexer, out *EventRequestWillBeSent) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(in *jlexer.Lexer, out *EventRequestWillBeSent) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4040,7 +3973,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(out *jwriter.Writer, in EventRequestWillBeSent) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(out *jwriter.Writer, in EventRequestWillBeSent) { out.RawByte('{') first := true _ = first @@ -4142,27 +4075,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventRequestWillBeSent) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventRequestWillBeSent) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventRequestWillBeSent) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventRequestWillBeSent) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(in *jlexer.Lexer, out *EventRequestServedFromCache) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(in *jlexer.Lexer, out *EventRequestServedFromCache) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4193,7 +4126,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(out *jwriter.Writer, in EventRequestServedFromCache) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(out *jwriter.Writer, in EventRequestServedFromCache) { out.RawByte('{') first := true _ = first @@ -4211,27 +4144,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventRequestServedFromCache) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventRequestServedFromCache) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventRequestServedFromCache) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventRequestServedFromCache) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(in *jlexer.Lexer, out *EventLoadingFinished) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(in *jlexer.Lexer, out *EventLoadingFinished) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4266,7 +4199,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(out *jwriter.Writer, in EventLoadingFinished) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(out *jwriter.Writer, in EventLoadingFinished) { out.RawByte('{') first := true _ = first @@ -4300,27 +4233,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventLoadingFinished) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventLoadingFinished) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventLoadingFinished) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventLoadingFinished) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(in *jlexer.Lexer, out *EventLoadingFailed) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(in *jlexer.Lexer, out *EventLoadingFailed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4361,7 +4294,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(out *jwriter.Writer, in EventLoadingFailed) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(out *jwriter.Writer, in EventLoadingFailed) { out.RawByte('{') first := true _ = first @@ -4419,27 +4352,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventLoadingFailed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventLoadingFailed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventLoadingFailed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventLoadingFailed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(in *jlexer.Lexer, out *EventEventSourceMessageReceived) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(in *jlexer.Lexer, out *EventEventSourceMessageReceived) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4478,7 +4411,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(out *jwriter.Writer, in EventEventSourceMessageReceived) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(out *jwriter.Writer, in EventEventSourceMessageReceived) { out.RawByte('{') first := true _ = first @@ -4528,27 +4461,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventEventSourceMessageReceived) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventEventSourceMessageReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventEventSourceMessageReceived) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventEventSourceMessageReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(in *jlexer.Lexer, out *EventDataReceived) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(in *jlexer.Lexer, out *EventDataReceived) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4585,7 +4518,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(out *jwriter.Writer, in EventDataReceived) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(out *jwriter.Writer, in EventDataReceived) { out.RawByte('{') first := true _ = first @@ -4627,27 +4560,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventDataReceived) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventDataReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventDataReceived) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventDataReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4680,7 +4613,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -4706,27 +4639,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(in *jlexer.Lexer, out *EmulateNetworkConditionsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(in *jlexer.Lexer, out *EmulateNetworkConditionsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4765,7 +4698,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(out *jwriter.Writer, in EmulateNetworkConditionsParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(out *jwriter.Writer, in EmulateNetworkConditionsParams) { out.RawByte('{') first := true _ = first @@ -4807,27 +4740,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EmulateNetworkConditionsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4856,7 +4789,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -4866,27 +4799,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(in *jlexer.Lexer, out *DeleteCookieParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(in *jlexer.Lexer, out *DeleteCookieParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4919,7 +4852,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(out *jwriter.Writer, in DeleteCookieParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(out *jwriter.Writer, in DeleteCookieParams) { out.RawByte('{') first := true _ = first @@ -4941,27 +4874,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v DeleteCookieParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DeleteCookieParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DeleteCookieParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DeleteCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(in *jlexer.Lexer, out *Cookie) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(in *jlexer.Lexer, out *Cookie) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5010,7 +4943,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(out *jwriter.Writer, in Cookie) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(out *jwriter.Writer, in Cookie) { out.RawByte('{') first := true _ = first @@ -5100,27 +5033,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Cookie) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Cookie) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Cookie) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Cookie) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(in *jlexer.Lexer, out *ClearBrowserCookiesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(in *jlexer.Lexer, out *ClearBrowserCookiesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5149,7 +5082,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(out *jwriter.Writer, in ClearBrowserCookiesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(out *jwriter.Writer, in ClearBrowserCookiesParams) { out.RawByte('{') first := true _ = first @@ -5159,27 +5092,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ClearBrowserCookiesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClearBrowserCookiesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(in *jlexer.Lexer, out *ClearBrowserCacheParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(in *jlexer.Lexer, out *ClearBrowserCacheParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5208,7 +5141,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(out *jwriter.Writer, in ClearBrowserCacheParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(out *jwriter.Writer, in ClearBrowserCacheParams) { out.RawByte('{') first := true _ = first @@ -5218,27 +5151,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ClearBrowserCacheParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClearBrowserCacheParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(in *jlexer.Lexer, out *CanEmulateNetworkConditionsReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(in *jlexer.Lexer, out *CanEmulateNetworkConditionsReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5269,7 +5202,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(out *jwriter.Writer, in CanEmulateNetworkConditionsReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(out *jwriter.Writer, in CanEmulateNetworkConditionsReturns) { out.RawByte('{') first := true _ = first @@ -5287,27 +5220,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CanEmulateNetworkConditionsReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanEmulateNetworkConditionsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanEmulateNetworkConditionsReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanEmulateNetworkConditionsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(in *jlexer.Lexer, out *CanEmulateNetworkConditionsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(in *jlexer.Lexer, out *CanEmulateNetworkConditionsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5336,7 +5269,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(out *jwriter.Writer, in CanEmulateNetworkConditionsParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(out *jwriter.Writer, in CanEmulateNetworkConditionsParams) { out.RawByte('{') first := true _ = first @@ -5346,27 +5279,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CanEmulateNetworkConditionsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanEmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanEmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanEmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(in *jlexer.Lexer, out *CanClearBrowserCookiesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(in *jlexer.Lexer, out *CanClearBrowserCookiesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5397,7 +5330,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(out *jwriter.Writer, in CanClearBrowserCookiesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(out *jwriter.Writer, in CanClearBrowserCookiesReturns) { out.RawByte('{') first := true _ = first @@ -5415,27 +5348,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CanClearBrowserCookiesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanClearBrowserCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanClearBrowserCookiesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanClearBrowserCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(in *jlexer.Lexer, out *CanClearBrowserCookiesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(in *jlexer.Lexer, out *CanClearBrowserCookiesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5464,7 +5397,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(out *jwriter.Writer, in CanClearBrowserCookiesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(out *jwriter.Writer, in CanClearBrowserCookiesParams) { out.RawByte('{') first := true _ = first @@ -5474,27 +5407,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CanClearBrowserCookiesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanClearBrowserCookiesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(in *jlexer.Lexer, out *CanClearBrowserCacheReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(in *jlexer.Lexer, out *CanClearBrowserCacheReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5525,7 +5458,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(out *jwriter.Writer, in CanClearBrowserCacheReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(out *jwriter.Writer, in CanClearBrowserCacheReturns) { out.RawByte('{') first := true _ = first @@ -5543,27 +5476,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CanClearBrowserCacheReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanClearBrowserCacheReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanClearBrowserCacheReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanClearBrowserCacheReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(in *jlexer.Lexer, out *CanClearBrowserCacheParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(in *jlexer.Lexer, out *CanClearBrowserCacheParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5592,7 +5525,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(out *jwriter.Writer, in CanClearBrowserCacheParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(out *jwriter.Writer, in CanClearBrowserCacheParams) { out.RawByte('{') first := true _ = first @@ -5602,27 +5535,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CanClearBrowserCacheParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanClearBrowserCacheParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(in *jlexer.Lexer, out *CachedResource) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(in *jlexer.Lexer, out *CachedResource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5667,7 +5600,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(out *jwriter.Writer, in CachedResource) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(out *jwriter.Writer, in CachedResource) { out.RawByte('{') first := true _ = first @@ -5713,23 +5646,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CachedResource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CachedResource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CachedResource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(l, v) } diff --git a/cdp/network/network.go b/cdp/network/network.go index 1e4e89d..d59e45d 100644 --- a/cdp/network/network.go +++ b/cdp/network/network.go @@ -208,29 +208,6 @@ func (p *ReplayXHRParams) Do(ctxt context.Context, h cdp.Handler) (err error) { return h.Execute(ctxt, cdp.CommandNetworkReplayXHR, p, nil) } -// SetMonitoringXHREnabledParams toggles monitoring of XMLHttpRequest. If -// true, console will receive messages upon each XHR issued. -type SetMonitoringXHREnabledParams struct { - Enabled bool `json:"enabled"` // Monitoring enabled state. -} - -// SetMonitoringXHREnabled toggles monitoring of XMLHttpRequest. If true, -// console will receive messages upon each XHR issued. -// -// parameters: -// enabled - Monitoring enabled state. -func SetMonitoringXHREnabled(enabled bool) *SetMonitoringXHREnabledParams { - return &SetMonitoringXHREnabledParams{ - Enabled: enabled, - } -} - -// Do executes Network.setMonitoringXHREnabled against the provided context and -// target handler. -func (p *SetMonitoringXHREnabledParams) Do(ctxt context.Context, h cdp.Handler) (err error) { - return h.Execute(ctxt, cdp.CommandNetworkSetMonitoringXHREnabled, p, nil) -} - // CanClearBrowserCacheParams tells whether clearing browser cache is // supported. type CanClearBrowserCacheParams struct{} diff --git a/cdp/target/easyjson.go b/cdp/target/easyjson.go index 6321ec9..9508e55 100644 --- a/cdp/target/easyjson.go +++ b/cdp/target/easyjson.go @@ -357,7 +357,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget4(in *jlexer.Lexer, out } switch key { case "targetId": - out.TargetID = string(in.String()) + out.TargetID = ID(in.String()) case "message": out.Message = string(in.String()) default: diff --git a/cdp/target/target.go b/cdp/target/target.go index d6f6751..6fa96b2 100644 --- a/cdp/target/target.go +++ b/cdp/target/target.go @@ -114,7 +114,7 @@ func (p *SetRemoteLocationsParams) Do(ctxt context.Context, h cdp.Handler) (err // SendMessageToTargetParams sends protocol message to the target with given // id. type SendMessageToTargetParams struct { - TargetID string `json:"targetId"` + TargetID ID `json:"targetId"` Message string `json:"message"` } @@ -123,7 +123,7 @@ type SendMessageToTargetParams struct { // parameters: // targetID // message -func SendMessageToTarget(targetID string, message string) *SendMessageToTargetParams { +func SendMessageToTarget(targetID ID, message string) *SendMessageToTargetParams { return &SendMessageToTargetParams{ TargetID: targetID, Message: message, diff --git a/cmd/chromedp-gen/internal/enum.go b/cmd/chromedp-gen/internal/enum.go index 0f8688c..5375574 100644 --- a/cmd/chromedp-gen/internal/enum.go +++ b/cmd/chromedp-gen/internal/enum.go @@ -12,6 +12,7 @@ type DomainType string Accessibility Animation ApplicationCache +Browser CacheStorage Console CSS @@ -51,6 +52,7 @@ const ( DomainAccessibility DomainType = "Accessibility" DomainAnimation DomainType = "Animation" DomainApplicationCache DomainType = "ApplicationCache" + DomainBrowser DomainType = "Browser" DomainCacheStorage DomainType = "CacheStorage" DomainConsole DomainType = "Console" DomainCSS DomainType = "CSS" @@ -111,6 +113,8 @@ func (dt *DomainType) UnmarshalJSON(buf []byte) error { *dt = DomainAnimation case DomainApplicationCache: *dt = DomainApplicationCache + case DomainBrowser: + *dt = DomainBrowser case DomainCacheStorage: *dt = DomainCacheStorage case DomainConsole: diff --git a/cmd/chromedp-gen/protocol.json b/cmd/chromedp-gen/protocol.json index 618fcec..90df150 100644 --- a/cmd/chromedp-gen/protocol.json +++ b/cmd/chromedp-gen/protocol.json @@ -2709,18 +2709,6 @@ ], "experimental": true }, - { - "name": "setMonitoringXHREnabled", - "parameters": [ - { - "name": "enabled", - "type": "boolean", - "description": "Monitoring enabled state." - } - ], - "description": "Toggles monitoring of XMLHttpRequest. If true, console will receive messages upon each XHR issued.", - "experimental": true - }, { "name": "canClearBrowserCache", "description": "Tells whether clearing browser cache is supported.", @@ -7573,7 +7561,7 @@ "parameters": [ { "name": "targetId", - "type": "string" + "$ref": "TargetID" }, { "name": "message", @@ -10229,6 +10217,124 @@ } ] }, + { + "domain": "Browser", + "description": "The Browser domain defines methods and events for browser managing.", + "experimental": true, + "types": [ + { + "id": "WindowID", + "type": "integer" + }, + { + "id": "WindowState", + "type": "string", + "enum": [ + "normal", + "minimized", + "maximized", + "fullscreen" + ], + "description": "The state of the browser window." + }, + { + "id": "Bounds", + "type": "object", + "description": "Browser window bounds information", + "properties": [ + { + "name": "left", + "type": "integer", + "optional": true, + "description": "The offset from the left edge of the screen to the window in pixels." + }, + { + "name": "top", + "type": "integer", + "optional": true, + "description": "The offset from the top edge of the screen to the window in pixels." + }, + { + "name": "width", + "type": "integer", + "optional": true, + "description": "The window width in pixels." + }, + { + "name": "height", + "type": "integer", + "optional": true, + "description": "The window height in pixels." + }, + { + "name": "windowState", + "$ref": "WindowState", + "optional": true, + "description": "The window state. Default to normal." + } + ] + } + ], + "commands": [ + { + "name": "getWindowForTarget", + "description": "Get the browser window that contains the devtools target.", + "parameters": [ + { + "name": "targetId", + "$ref": "Target.TargetID", + "description": "Devtools agent host id." + } + ], + "returns": [ + { + "name": "windowId", + "$ref": "WindowID", + "description": "Browser window id." + }, + { + "name": "bounds", + "$ref": "Bounds", + "description": "Bounds information of the window. When window state is 'minimized', the restored window position and size are returned." + } + ] + }, + { + "name": "setWindowBounds", + "description": "Set position and/or size of the browser window.", + "parameters": [ + { + "name": "windowId", + "$ref": "WindowID", + "description": "Browser window id." + }, + { + "name": "bounds", + "$ref": "Bounds", + "description": "New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged." + } + ] + }, + { + "name": "getWindowBounds", + "description": "Get position and size of the browser window.", + "parameters": [ + { + "name": "windowId", + "$ref": "WindowID", + "description": "Browser window id." + } + ], + "returns": [ + { + "name": "bounds", + "$ref": "Bounds", + "description": "Bounds information of the window. When window state is 'minimized', the restored window position and size are returned." + } + ] + } + ] + }, { "domain": "Schema", "description": "Provides information about the protocol schema.",