diff --git a/cdproto.go b/cdproto.go index 383ab375..77ceda79 100644 --- a/cdproto.go +++ b/cdproto.go @@ -319,7 +319,6 @@ const ( CommandDebuggerStepInto = debugger.CommandStepInto CommandDebuggerStepOut = debugger.CommandStepOut CommandDebuggerStepOver = debugger.CommandStepOver - EventDebuggerBreakpointResolved = "Debugger.breakpointResolved" EventDebuggerPaused = "Debugger.paused" EventDebuggerResumed = "Debugger.resumed" EventDebuggerScriptFailedToParse = "Debugger.scriptFailedToParse" @@ -630,6 +629,7 @@ const ( EventPageFrameNavigated = "Page.frameNavigated" EventPageDocumentOpened = "Page.documentOpened" EventPageFrameResized = "Page.frameResized" + EventPageFrameStartedNavigating = "Page.frameStartedNavigating" EventPageFrameRequestedNavigation = "Page.frameRequestedNavigation" EventPageFrameStartedLoading = "Page.frameStartedLoading" EventPageFrameStoppedLoading = "Page.frameStoppedLoading" @@ -1579,9 +1579,6 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case CommandDebuggerStepOver: return emptyVal, nil - case EventDebuggerBreakpointResolved: - v = new(debugger.EventBreakpointResolved) - case EventDebuggerPaused: v = new(debugger.EventPaused) @@ -2512,6 +2509,9 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case EventPageFrameResized: v = new(page.EventFrameResized) + case EventPageFrameStartedNavigating: + v = new(page.EventFrameStartedNavigating) + case EventPageFrameRequestedNavigation: v = new(page.EventFrameRequestedNavigation) diff --git a/css/css.go b/css/css.go index 70763cda..e9a21d6e 100644 --- a/css/css.go +++ b/css/css.go @@ -121,7 +121,8 @@ func (p *CollectClassNamesParams) Do(ctx context.Context) (classNames []string, // CreateStyleSheetParams creates a new special "via-inspector" stylesheet in // the frame with given frameId. type CreateStyleSheetParams struct { - FrameID cdp.FrameID `json:"frameId"` // Identifier of the frame where "via-inspector" stylesheet should be created. + FrameID cdp.FrameID `json:"frameId"` // Identifier of the frame where "via-inspector" stylesheet should be created. + Force bool `json:"force,omitempty"` // If true, creates a new stylesheet for every call. If false, returns a stylesheet previously created by a call with force=false for the frame's document if it exists or creates a new stylesheet (default: false). } // CreateStyleSheet creates a new special "via-inspector" stylesheet in the @@ -138,6 +139,14 @@ func CreateStyleSheet(frameID cdp.FrameID) *CreateStyleSheetParams { } } +// WithForce if true, creates a new stylesheet for every call. If false, +// returns a stylesheet previously created by a call with force=false for the +// frame's document if it exists or creates a new stylesheet (default: false). +func (p CreateStyleSheetParams) WithForce(force bool) *CreateStyleSheetParams { + p.Force = force + return &p +} + // CreateStyleSheetReturns return values. type CreateStyleSheetReturns struct { StyleSheetID StyleSheetID `json:"styleSheetId,omitempty"` // Identifier of the created "via-inspector" stylesheet. diff --git a/css/easyjson.go b/css/easyjson.go index 561fc086..b982534c 100644 --- a/css/easyjson.go +++ b/css/easyjson.go @@ -10127,6 +10127,8 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss98(in *jlexer.Lexer, out * switch key { case "frameId": (out.FrameID).UnmarshalEasyJSON(in) + case "force": + out.Force = bool(in.Bool()) default: in.SkipRecursive() } @@ -10146,6 +10148,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss98(out *jwriter.Writer, in out.RawString(prefix[1:]) out.String(string(in.FrameID)) } + if in.Force { + const prefix string = ",\"force\":" + out.RawString(prefix) + out.Bool(bool(in.Force)) + } out.RawByte('}') } diff --git a/debugger/easyjson.go b/debugger/easyjson.go index b6474683..a753a2c8 100644 --- a/debugger/easyjson.go +++ b/debugger/easyjson.go @@ -2650,7 +2650,7 @@ func (v *RestartFrameParams) UnmarshalJSON(data []byte) error { func (v *RestartFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger29(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger30(in *jlexer.Lexer, out *RemoveBreakpointParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger30(in *jlexer.Lexer, out *ResolvedBreakpoint) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2671,6 +2671,16 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger30(in *jlexer.Lexer, switch key { case "breakpointId": out.BreakpointID = BreakpointID(in.String()) + case "location": + if in.IsNull() { + in.Skip() + out.Location = nil + } else { + if out.Location == nil { + out.Location = new(Location) + } + (*out.Location).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -2681,7 +2691,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger30(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger30(out *jwriter.Writer, in RemoveBreakpointParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger30(out *jwriter.Writer, in ResolvedBreakpoint) { out.RawByte('{') first := true _ = first @@ -2690,33 +2700,42 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger30(out *jwriter.Write out.RawString(prefix[1:]) out.String(string(in.BreakpointID)) } + { + const prefix string = ",\"location\":" + out.RawString(prefix) + if in.Location == nil { + out.RawString("null") + } else { + (*in.Location).MarshalEasyJSON(out) + } + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v RemoveBreakpointParams) MarshalJSON() ([]byte, error) { +func (v ResolvedBreakpoint) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger30(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoveBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v ResolvedBreakpoint) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger30(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoveBreakpointParams) UnmarshalJSON(data []byte) error { +func (v *ResolvedBreakpoint) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger30(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RemoveBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *ResolvedBreakpoint) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger30(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger31(in *jlexer.Lexer, out *PauseParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger31(in *jlexer.Lexer, out *RemoveBreakpointParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2735,6 +2754,8 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger31(in *jlexer.Lexer, continue } switch key { + case "breakpointId": + out.BreakpointID = BreakpointID(in.String()) default: in.SkipRecursive() } @@ -2745,37 +2766,101 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger31(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger31(out *jwriter.Writer, in PauseParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger31(out *jwriter.Writer, in RemoveBreakpointParams) { out.RawByte('{') first := true _ = first + { + const prefix string = ",\"breakpointId\":" + out.RawString(prefix[1:]) + out.String(string(in.BreakpointID)) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v PauseParams) MarshalJSON() ([]byte, error) { +func (v RemoveBreakpointParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger31(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v PauseParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v RemoveBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *PauseParams) UnmarshalJSON(data []byte) error { +func (v *RemoveBreakpointParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger31(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PauseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *RemoveBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger31(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger32(in *jlexer.Lexer, out *NextWasmDisassemblyChunkReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger32(in *jlexer.Lexer, out *PauseParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger32(out *jwriter.Writer, in PauseParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v PauseParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger32(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PauseParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger32(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PauseParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger32(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PauseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger32(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger33(in *jlexer.Lexer, out *NextWasmDisassemblyChunkReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2814,7 +2899,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger32(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger32(out *jwriter.Writer, in NextWasmDisassemblyChunkReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger33(out *jwriter.Writer, in NextWasmDisassemblyChunkReturns) { out.RawByte('{') first := true _ = first @@ -2830,27 +2915,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger32(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v NextWasmDisassemblyChunkReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger32(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger33(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v NextWasmDisassemblyChunkReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger32(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger33(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *NextWasmDisassemblyChunkReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger32(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger33(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *NextWasmDisassemblyChunkReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger32(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger33(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger33(in *jlexer.Lexer, out *NextWasmDisassemblyChunkParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger34(in *jlexer.Lexer, out *NextWasmDisassemblyChunkParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2881,7 +2966,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger33(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger33(out *jwriter.Writer, in NextWasmDisassemblyChunkParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger34(out *jwriter.Writer, in NextWasmDisassemblyChunkParams) { out.RawByte('{') first := true _ = first @@ -2896,27 +2981,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger33(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v NextWasmDisassemblyChunkParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger33(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger34(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v NextWasmDisassemblyChunkParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger33(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger34(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *NextWasmDisassemblyChunkParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger33(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger34(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *NextWasmDisassemblyChunkParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger33(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger34(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger34(in *jlexer.Lexer, out *LocationRange) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger35(in *jlexer.Lexer, out *LocationRange) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2967,7 +3052,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger34(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger34(out *jwriter.Writer, in LocationRange) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger35(out *jwriter.Writer, in LocationRange) { out.RawByte('{') first := true _ = first @@ -3000,27 +3085,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger34(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v LocationRange) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger34(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger35(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v LocationRange) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger34(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger35(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *LocationRange) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger34(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger35(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *LocationRange) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger34(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger35(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger35(in *jlexer.Lexer, out *Location) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger36(in *jlexer.Lexer, out *Location) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3055,7 +3140,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger35(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger35(out *jwriter.Writer, in Location) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger36(out *jwriter.Writer, in Location) { out.RawByte('{') first := true _ = first @@ -3080,27 +3165,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger35(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v Location) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger35(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger36(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Location) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger35(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger36(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Location) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger35(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger36(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Location) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger35(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger36(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger36(in *jlexer.Lexer, out *GetStackTraceReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger37(in *jlexer.Lexer, out *GetStackTraceReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3139,7 +3224,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger36(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger36(out *jwriter.Writer, in GetStackTraceReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger37(out *jwriter.Writer, in GetStackTraceReturns) { out.RawByte('{') first := true _ = first @@ -3155,27 +3240,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger36(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v GetStackTraceReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger36(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger37(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetStackTraceReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger36(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger37(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetStackTraceReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger36(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger37(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetStackTraceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger36(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger37(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger37(in *jlexer.Lexer, out *GetStackTraceParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger38(in *jlexer.Lexer, out *GetStackTraceParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3214,7 +3299,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger37(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger37(out *jwriter.Writer, in GetStackTraceParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger38(out *jwriter.Writer, in GetStackTraceParams) { out.RawByte('{') first := true _ = first @@ -3233,27 +3318,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger37(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v GetStackTraceParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger37(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger38(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetStackTraceParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger37(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger38(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetStackTraceParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger37(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger38(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetStackTraceParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger37(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger38(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger38(in *jlexer.Lexer, out *GetScriptSourceReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger39(in *jlexer.Lexer, out *GetScriptSourceReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3286,7 +3371,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger38(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger38(out *jwriter.Writer, in GetScriptSourceReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger39(out *jwriter.Writer, in GetScriptSourceReturns) { out.RawByte('{') first := true _ = first @@ -3312,27 +3397,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger38(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v GetScriptSourceReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger38(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger39(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger38(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger39(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetScriptSourceReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger38(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger39(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger38(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger39(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger39(in *jlexer.Lexer, out *GetScriptSourceParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger40(in *jlexer.Lexer, out *GetScriptSourceParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3363,7 +3448,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger39(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger39(out *jwriter.Writer, in GetScriptSourceParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger40(out *jwriter.Writer, in GetScriptSourceParams) { out.RawByte('{') first := true _ = first @@ -3378,27 +3463,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger39(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v GetScriptSourceParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger39(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger40(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger39(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger40(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetScriptSourceParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger39(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger40(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger39(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger40(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger40(in *jlexer.Lexer, out *GetPossibleBreakpointsReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger41(in *jlexer.Lexer, out *GetPossibleBreakpointsReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3458,7 +3543,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger40(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger40(out *jwriter.Writer, in GetPossibleBreakpointsReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger41(out *jwriter.Writer, in GetPossibleBreakpointsReturns) { out.RawByte('{') first := true _ = first @@ -3487,27 +3572,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger40(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v GetPossibleBreakpointsReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger40(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger41(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetPossibleBreakpointsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger40(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger41(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetPossibleBreakpointsReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger40(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger41(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetPossibleBreakpointsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger40(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger41(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger41(in *jlexer.Lexer, out *GetPossibleBreakpointsParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger42(in *jlexer.Lexer, out *GetPossibleBreakpointsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3558,7 +3643,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger41(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger41(out *jwriter.Writer, in GetPossibleBreakpointsParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger42(out *jwriter.Writer, in GetPossibleBreakpointsParams) { out.RawByte('{') first := true _ = first @@ -3587,27 +3672,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger41(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v GetPossibleBreakpointsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger41(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger42(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetPossibleBreakpointsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger41(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger42(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetPossibleBreakpointsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger41(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger42(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetPossibleBreakpointsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger41(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger42(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger42(in *jlexer.Lexer, out *EventScriptParsed) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger43(in *jlexer.Lexer, out *EventScriptParsed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3703,6 +3788,37 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger42(in *jlexer.Lexer, } case "embedderName": out.EmbedderName = string(in.String()) + case "resolvedBreakpoints": + if in.IsNull() { + in.Skip() + out.ResolvedBreakpoints = nil + } else { + in.Delim('[') + if out.ResolvedBreakpoints == nil { + if !in.IsDelim(']') { + out.ResolvedBreakpoints = make([]*ResolvedBreakpoint, 0, 8) + } else { + out.ResolvedBreakpoints = []*ResolvedBreakpoint{} + } + } else { + out.ResolvedBreakpoints = (out.ResolvedBreakpoints)[:0] + } + for !in.IsDelim(']') { + var v32 *ResolvedBreakpoint + if in.IsNull() { + in.Skip() + v32 = nil + } else { + if v32 == nil { + v32 = new(ResolvedBreakpoint) + } + (*v32).UnmarshalEasyJSON(in) + } + out.ResolvedBreakpoints = append(out.ResolvedBreakpoints, v32) + in.WantComma() + } + in.Delim(']') + } default: in.SkipRecursive() } @@ -3713,7 +3829,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger42(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger42(out *jwriter.Writer, in EventScriptParsed) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger43(out *jwriter.Writer, in EventScriptParsed) { out.RawByte('{') first := true _ = first @@ -3812,14 +3928,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger42(out *jwriter.Write out.RawString(prefix) { out.RawByte('[') - for v32, v33 := range in.DebugSymbols { - if v32 > 0 { + for v33, v34 := range in.DebugSymbols { + if v33 > 0 { out.RawByte(',') } - if v33 == nil { + if v34 == nil { out.RawString("null") } else { - (*v33).MarshalEasyJSON(out) + (*v34).MarshalEasyJSON(out) } } out.RawByte(']') @@ -3830,33 +3946,51 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger42(out *jwriter.Write out.RawString(prefix) out.String(string(in.EmbedderName)) } + if len(in.ResolvedBreakpoints) != 0 { + const prefix string = ",\"resolvedBreakpoints\":" + out.RawString(prefix) + { + out.RawByte('[') + for v35, v36 := range in.ResolvedBreakpoints { + if v35 > 0 { + out.RawByte(',') + } + if v36 == nil { + out.RawString("null") + } else { + (*v36).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v EventScriptParsed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger42(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger43(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventScriptParsed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger42(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger43(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventScriptParsed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger42(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger43(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventScriptParsed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger42(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger43(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger43(in *jlexer.Lexer, out *EventScriptFailedToParse) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger44(in *jlexer.Lexer, out *EventScriptFailedToParse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3929,7 +4063,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger43(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger43(out *jwriter.Writer, in EventScriptFailedToParse) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger44(out *jwriter.Writer, in EventScriptFailedToParse) { out.RawByte('{') first := true _ = first @@ -4029,27 +4163,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger43(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v EventScriptFailedToParse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger43(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger44(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventScriptFailedToParse) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger43(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger44(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventScriptFailedToParse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger43(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger44(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventScriptFailedToParse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger43(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger44(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger44(in *jlexer.Lexer, out *EventResumed) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger45(in *jlexer.Lexer, out *EventResumed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4078,7 +4212,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger44(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger44(out *jwriter.Writer, in EventResumed) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger45(out *jwriter.Writer, in EventResumed) { out.RawByte('{') first := true _ = first @@ -4088,27 +4222,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger44(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v EventResumed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger44(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger45(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventResumed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger44(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger45(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventResumed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger44(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger45(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventResumed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger44(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger45(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger45(in *jlexer.Lexer, out *EventPaused) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger46(in *jlexer.Lexer, out *EventPaused) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4143,17 +4277,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger45(in *jlexer.Lexer, out.CallFrames = (out.CallFrames)[:0] } for !in.IsDelim(']') { - var v34 *CallFrame + var v37 *CallFrame if in.IsNull() { in.Skip() - v34 = nil + v37 = nil } else { - if v34 == nil { - v34 = new(CallFrame) + if v37 == nil { + v37 = new(CallFrame) } - (*v34).UnmarshalEasyJSON(in) + (*v37).UnmarshalEasyJSON(in) } - out.CallFrames = append(out.CallFrames, v34) + out.CallFrames = append(out.CallFrames, v37) in.WantComma() } in.Delim(']') @@ -4178,9 +4312,9 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger45(in *jlexer.Lexer, out.HitBreakpoints = (out.HitBreakpoints)[:0] } for !in.IsDelim(']') { - var v35 string - v35 = string(in.String()) - out.HitBreakpoints = append(out.HitBreakpoints, v35) + var v38 string + v38 = string(in.String()) + out.HitBreakpoints = append(out.HitBreakpoints, v38) in.WantComma() } in.Delim(']') @@ -4215,7 +4349,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger45(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger45(out *jwriter.Writer, in EventPaused) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger46(out *jwriter.Writer, in EventPaused) { out.RawByte('{') first := true _ = first @@ -4226,14 +4360,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger45(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v36, v37 := range in.CallFrames { - if v36 > 0 { + for v39, v40 := range in.CallFrames { + if v39 > 0 { out.RawByte(',') } - if v37 == nil { + if v40 == nil { out.RawString("null") } else { - (*v37).MarshalEasyJSON(out) + (*v40).MarshalEasyJSON(out) } } out.RawByte(']') @@ -4254,11 +4388,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger45(out *jwriter.Write out.RawString(prefix) { out.RawByte('[') - for v38, v39 := range in.HitBreakpoints { - if v38 > 0 { + for v41, v42 := range in.HitBreakpoints { + if v41 > 0 { out.RawByte(',') } - out.String(string(v39)) + out.String(string(v42)) } out.RawByte(']') } @@ -4278,110 +4412,25 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger45(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v EventPaused) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger45(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventPaused) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger45(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventPaused) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger45(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventPaused) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger45(l, v) -} -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger46(in *jlexer.Lexer, out *EventBreakpointResolved) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "breakpointId": - out.BreakpointID = BreakpointID(in.String()) - case "location": - if in.IsNull() { - in.Skip() - out.Location = nil - } else { - if out.Location == nil { - out.Location = new(Location) - } - (*out.Location).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger46(out *jwriter.Writer, in EventBreakpointResolved) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"breakpointId\":" - out.RawString(prefix[1:]) - out.String(string(in.BreakpointID)) - } - { - const prefix string = ",\"location\":" - out.RawString(prefix) - if in.Location == nil { - out.RawString("null") - } else { - (*in.Location).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventBreakpointResolved) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger46(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventBreakpointResolved) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventPaused) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger46(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventBreakpointResolved) UnmarshalJSON(data []byte) error { +func (v *EventPaused) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger46(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventBreakpointResolved) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventPaused) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger46(l, v) } func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger47(in *jlexer.Lexer, out *EvaluateOnCallFrameReturns) { @@ -4774,9 +4823,9 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger51(in *jlexer.Lexer, out.FunctionBodyOffsets = (out.FunctionBodyOffsets)[:0] } for !in.IsDelim(']') { - var v40 int64 - v40 = int64(in.Int64()) - out.FunctionBodyOffsets = append(out.FunctionBodyOffsets, v40) + var v43 int64 + v43 = int64(in.Int64()) + out.FunctionBodyOffsets = append(out.FunctionBodyOffsets, v43) in.WantComma() } in.Delim(']') @@ -4831,11 +4880,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger51(out *jwriter.Write } { out.RawByte('[') - for v41, v42 := range in.FunctionBodyOffsets { - if v41 > 0 { + for v44, v45 := range in.FunctionBodyOffsets { + if v44 > 0 { out.RawByte(',') } - out.Int64(int64(v42)) + out.Int64(int64(v45)) } out.RawByte(']') } @@ -5218,17 +5267,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger56(in *jlexer.Lexer, out.ScopeChain = (out.ScopeChain)[:0] } for !in.IsDelim(']') { - var v43 *Scope + var v46 *Scope if in.IsNull() { in.Skip() - v43 = nil + v46 = nil } else { - if v43 == nil { - v43 = new(Scope) + if v46 == nil { + v46 = new(Scope) } - (*v43).UnmarshalEasyJSON(in) + (*v46).UnmarshalEasyJSON(in) } - out.ScopeChain = append(out.ScopeChain, v43) + out.ScopeChain = append(out.ScopeChain, v46) in.WantComma() } in.Delim(']') @@ -5300,14 +5349,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger56(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v44, v45 := range in.ScopeChain { - if v44 > 0 { + for v47, v48 := range in.ScopeChain { + if v47 > 0 { out.RawByte(',') } - if v45 == nil { + if v48 == nil { out.RawString("null") } else { - (*v45).MarshalEasyJSON(out) + (*v48).MarshalEasyJSON(out) } } out.RawByte(']') diff --git a/debugger/events.go b/debugger/events.go index bbbfc6fb..758289e7 100644 --- a/debugger/events.go +++ b/debugger/events.go @@ -7,15 +7,6 @@ import ( "github.com/mailru/easyjson" ) -// EventBreakpointResolved fired when breakpoint is resolved to an actual -// script and location. -// -// See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#event-breakpointResolved -type EventBreakpointResolved struct { - BreakpointID BreakpointID `json:"breakpointId"` // Breakpoint unique identifier. - Location *Location `json:"location"` // Actual breakpoint location. -} - // EventPaused fired when the virtual machine stopped on breakpoint or // exception or any other stop criteria. // @@ -74,14 +65,15 @@ type EventScriptParsed struct { Hash string `json:"hash"` // Content hash of the script, SHA-256. BuildID string `json:"buildId"` // For Wasm modules, the content of the build_id custom section. ExecutionContextAuxData easyjson.RawMessage `json:"executionContextAuxData,omitempty"` - IsLiveEdit bool `json:"isLiveEdit,omitempty"` // True, if this script is generated as a result of the live edit operation. - SourceMapURL string `json:"sourceMapURL,omitempty"` // URL of source map associated with script (if any). - HasSourceURL bool `json:"hasSourceURL,omitempty"` // True, if this script has sourceURL. - IsModule bool `json:"isModule,omitempty"` // True, if this script is ES6 module. - Length int64 `json:"length,omitempty"` // This script length. - StackTrace *runtime.StackTrace `json:"stackTrace,omitempty"` // JavaScript top stack frame of where the script parsed event was triggered if available. - CodeOffset int64 `json:"codeOffset,omitempty"` // If the scriptLanguage is WebAssembly, the code section offset in the module. - ScriptLanguage ScriptLanguage `json:"scriptLanguage,omitempty"` // The language of the script. - DebugSymbols []*DebugSymbols `json:"debugSymbols,omitempty"` // If the scriptLanguage is WebAssembly, the source of debug symbols for the module. - EmbedderName string `json:"embedderName,omitempty"` // The name the embedder supplied for this script. + IsLiveEdit bool `json:"isLiveEdit,omitempty"` // True, if this script is generated as a result of the live edit operation. + SourceMapURL string `json:"sourceMapURL,omitempty"` // URL of source map associated with script (if any). + HasSourceURL bool `json:"hasSourceURL,omitempty"` // True, if this script has sourceURL. + IsModule bool `json:"isModule,omitempty"` // True, if this script is ES6 module. + Length int64 `json:"length,omitempty"` // This script length. + StackTrace *runtime.StackTrace `json:"stackTrace,omitempty"` // JavaScript top stack frame of where the script parsed event was triggered if available. + CodeOffset int64 `json:"codeOffset,omitempty"` // If the scriptLanguage is WebAssembly, the code section offset in the module. + ScriptLanguage ScriptLanguage `json:"scriptLanguage,omitempty"` // The language of the script. + DebugSymbols []*DebugSymbols `json:"debugSymbols,omitempty"` // If the scriptLanguage is WebAssembly, the source of debug symbols for the module. + EmbedderName string `json:"embedderName,omitempty"` // The name the embedder supplied for this script. + ResolvedBreakpoints []*ResolvedBreakpoint `json:"resolvedBreakpoints,omitempty"` // The list of set breakpoints in this script if calls to setBreakpointByUrl matches this script's URL or hash. Clients that use this list can ignore the breakpointResolved event. They are equivalent. } diff --git a/debugger/types.go b/debugger/types.go index 4b8b161e..af9ed25c 100644 --- a/debugger/types.go +++ b/debugger/types.go @@ -161,6 +161,14 @@ type DebugSymbols struct { ExternalURL string `json:"externalURL,omitempty"` // URL of the external symbol source. } +// ResolvedBreakpoint [no description]. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-ResolvedBreakpoint +type ResolvedBreakpoint struct { + BreakpointID BreakpointID `json:"breakpointId"` // Breakpoint unique identifier. + Location *Location `json:"location"` // Actual breakpoint location. +} + // ScopeType scope type. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-Scope diff --git a/page/easyjson.go b/page/easyjson.go index edfa5fbf..068c303a 100644 --- a/page/easyjson.go +++ b/page/easyjson.go @@ -8425,7 +8425,7 @@ func (v *EventFrameStoppedLoading) UnmarshalJSON(data []byte) error { func (v *EventFrameStoppedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage88(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage89(in *jlexer.Lexer, out *EventFrameStartedLoading) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage89(in *jlexer.Lexer, out *EventFrameStartedNavigating) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8446,6 +8446,12 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage89(in *jlexer.Lexer, out switch key { case "frameId": (out.FrameID).UnmarshalEasyJSON(in) + case "url": + out.URL = string(in.String()) + case "loaderId": + out.LoaderID = cdp.LoaderID(in.String()) + case "navigationType": + (out.NavigationType).UnmarshalEasyJSON(in) default: in.SkipRecursive() } @@ -8456,7 +8462,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage89(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage89(out *jwriter.Writer, in EventFrameStartedLoading) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage89(out *jwriter.Writer, in EventFrameStartedNavigating) { out.RawByte('{') first := true _ = first @@ -8465,33 +8471,48 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage89(out *jwriter.Writer, i out.RawString(prefix[1:]) out.String(string(in.FrameID)) } + { + const prefix string = ",\"url\":" + out.RawString(prefix) + out.String(string(in.URL)) + } + { + const prefix string = ",\"loaderId\":" + out.RawString(prefix) + out.String(string(in.LoaderID)) + } + { + const prefix string = ",\"navigationType\":" + out.RawString(prefix) + (in.NavigationType).MarshalEasyJSON(out) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventFrameStartedLoading) MarshalJSON() ([]byte, error) { +func (v EventFrameStartedNavigating) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage89(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventFrameStartedLoading) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventFrameStartedNavigating) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage89(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventFrameStartedLoading) UnmarshalJSON(data []byte) error { +func (v *EventFrameStartedNavigating) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage89(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventFrameStartedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventFrameStartedNavigating) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage89(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage90(in *jlexer.Lexer, out *EventFrameResized) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage90(in *jlexer.Lexer, out *EventFrameStartedLoading) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8510,6 +8531,8 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage90(in *jlexer.Lexer, out continue } switch key { + case "frameId": + (out.FrameID).UnmarshalEasyJSON(in) default: in.SkipRecursive() } @@ -8520,37 +8543,101 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage90(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage90(out *jwriter.Writer, in EventFrameResized) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage90(out *jwriter.Writer, in EventFrameStartedLoading) { out.RawByte('{') first := true _ = first + { + const prefix string = ",\"frameId\":" + out.RawString(prefix[1:]) + out.String(string(in.FrameID)) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventFrameResized) MarshalJSON() ([]byte, error) { +func (v EventFrameStartedLoading) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage90(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventFrameResized) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventFrameStartedLoading) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage90(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventFrameResized) UnmarshalJSON(data []byte) error { +func (v *EventFrameStartedLoading) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage90(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventFrameResized) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventFrameStartedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage90(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage91(in *jlexer.Lexer, out *EventFrameRequestedNavigation) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage91(in *jlexer.Lexer, out *EventFrameResized) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage91(out *jwriter.Writer, in EventFrameResized) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventFrameResized) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage91(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventFrameResized) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage91(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventFrameResized) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage91(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventFrameResized) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage91(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage92(in *jlexer.Lexer, out *EventFrameRequestedNavigation) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8587,7 +8674,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage91(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage91(out *jwriter.Writer, in EventFrameRequestedNavigation) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage92(out *jwriter.Writer, in EventFrameRequestedNavigation) { out.RawByte('{') first := true _ = first @@ -8617,27 +8704,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage91(out *jwriter.Writer, i // MarshalJSON supports json.Marshaler interface func (v EventFrameRequestedNavigation) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage91(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage92(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameRequestedNavigation) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage91(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage92(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameRequestedNavigation) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage91(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage92(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameRequestedNavigation) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage91(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage92(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage92(in *jlexer.Lexer, out *EventFrameNavigated) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage93(in *jlexer.Lexer, out *EventFrameNavigated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8678,7 +8765,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage92(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage92(out *jwriter.Writer, in EventFrameNavigated) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage93(out *jwriter.Writer, in EventFrameNavigated) { out.RawByte('{') first := true _ = first @@ -8702,27 +8789,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage92(out *jwriter.Writer, i // MarshalJSON supports json.Marshaler interface func (v EventFrameNavigated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage92(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage93(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameNavigated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage92(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage93(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameNavigated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage92(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage93(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameNavigated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage92(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage93(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage93(in *jlexer.Lexer, out *EventFrameDetached) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage94(in *jlexer.Lexer, out *EventFrameDetached) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8755,7 +8842,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage93(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage93(out *jwriter.Writer, in EventFrameDetached) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage94(out *jwriter.Writer, in EventFrameDetached) { out.RawByte('{') first := true _ = first @@ -8775,27 +8862,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage93(out *jwriter.Writer, i // MarshalJSON supports json.Marshaler interface func (v EventFrameDetached) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage93(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage94(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameDetached) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage93(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage94(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameDetached) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage93(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage94(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameDetached) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage93(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage94(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage94(in *jlexer.Lexer, out *EventFrameAttached) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage95(in *jlexer.Lexer, out *EventFrameAttached) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8838,7 +8925,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage94(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage94(out *jwriter.Writer, in EventFrameAttached) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage95(out *jwriter.Writer, in EventFrameAttached) { out.RawByte('{') first := true _ = first @@ -8863,27 +8950,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage94(out *jwriter.Writer, i // MarshalJSON supports json.Marshaler interface func (v EventFrameAttached) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage94(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage95(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameAttached) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage94(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage95(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameAttached) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage94(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage95(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameAttached) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage94(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage95(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage95(in *jlexer.Lexer, out *EventFileChooserOpened) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage96(in *jlexer.Lexer, out *EventFileChooserOpened) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8918,7 +9005,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage95(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage95(out *jwriter.Writer, in EventFileChooserOpened) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage96(out *jwriter.Writer, in EventFileChooserOpened) { out.RawByte('{') first := true _ = first @@ -8943,27 +9030,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage95(out *jwriter.Writer, i // MarshalJSON supports json.Marshaler interface func (v EventFileChooserOpened) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage95(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage96(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFileChooserOpened) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage95(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage96(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFileChooserOpened) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage95(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage96(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFileChooserOpened) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage95(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage96(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage96(in *jlexer.Lexer, out *EventDomContentEventFired) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage97(in *jlexer.Lexer, out *EventDomContentEventFired) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9002,7 +9089,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage96(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage96(out *jwriter.Writer, in EventDomContentEventFired) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage97(out *jwriter.Writer, in EventDomContentEventFired) { out.RawByte('{') first := true _ = first @@ -9021,27 +9108,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage96(out *jwriter.Writer, i // MarshalJSON supports json.Marshaler interface func (v EventDomContentEventFired) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage96(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage97(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventDomContentEventFired) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage96(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage97(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventDomContentEventFired) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage96(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage97(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventDomContentEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage96(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage97(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage97(in *jlexer.Lexer, out *EventDocumentOpened) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage98(in *jlexer.Lexer, out *EventDocumentOpened) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9080,7 +9167,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage97(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage97(out *jwriter.Writer, in EventDocumentOpened) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage98(out *jwriter.Writer, in EventDocumentOpened) { out.RawByte('{') first := true _ = first @@ -9099,27 +9186,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage97(out *jwriter.Writer, i // MarshalJSON supports json.Marshaler interface func (v EventDocumentOpened) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage97(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage98(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventDocumentOpened) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage97(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage98(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventDocumentOpened) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage97(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage98(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventDocumentOpened) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage97(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage98(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage98(in *jlexer.Lexer, out *EventCompilationCacheProduced) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage99(in *jlexer.Lexer, out *EventCompilationCacheProduced) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9152,7 +9239,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage98(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage98(out *jwriter.Writer, in EventCompilationCacheProduced) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage99(out *jwriter.Writer, in EventCompilationCacheProduced) { out.RawByte('{') first := true _ = first @@ -9172,27 +9259,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage98(out *jwriter.Writer, i // MarshalJSON supports json.Marshaler interface func (v EventCompilationCacheProduced) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage98(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage99(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventCompilationCacheProduced) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage98(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage99(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventCompilationCacheProduced) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage98(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage99(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventCompilationCacheProduced) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage98(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage99(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage99(in *jlexer.Lexer, out *EventBackForwardCacheNotUsed) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage100(in *jlexer.Lexer, out *EventBackForwardCacheNotUsed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9266,7 +9353,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage99(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage99(out *jwriter.Writer, in EventBackForwardCacheNotUsed) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage100(out *jwriter.Writer, in EventBackForwardCacheNotUsed) { out.RawByte('{') first := true _ = first @@ -9311,27 +9398,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage99(out *jwriter.Writer, i // MarshalJSON supports json.Marshaler interface func (v EventBackForwardCacheNotUsed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage99(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage100(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventBackForwardCacheNotUsed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage99(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage100(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventBackForwardCacheNotUsed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage99(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage100(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventBackForwardCacheNotUsed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage99(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage100(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage100(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage101(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9360,7 +9447,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage100(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage100(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage101(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -9370,27 +9457,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage100(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage100(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage101(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage100(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage101(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage100(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage101(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage100(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage101(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage101(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage102(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9419,7 +9506,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage101(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage101(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage102(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -9429,27 +9516,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage101(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage101(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage102(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage101(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage102(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage101(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage102(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage101(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage102(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage102(in *jlexer.Lexer, out *CreateIsolatedWorldReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(in *jlexer.Lexer, out *CreateIsolatedWorldReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9480,7 +9567,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage102(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage102(out *jwriter.Writer, in CreateIsolatedWorldReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(out *jwriter.Writer, in CreateIsolatedWorldReturns) { out.RawByte('{') first := true _ = first @@ -9496,27 +9583,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage102(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CreateIsolatedWorldReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage102(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateIsolatedWorldReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage102(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateIsolatedWorldReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage102(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateIsolatedWorldReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage102(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(in *jlexer.Lexer, out *CreateIsolatedWorldParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(in *jlexer.Lexer, out *CreateIsolatedWorldParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9551,7 +9638,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(out *jwriter.Writer, in CreateIsolatedWorldParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(out *jwriter.Writer, in CreateIsolatedWorldParams) { out.RawByte('{') first := true _ = first @@ -9576,27 +9663,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CreateIsolatedWorldParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateIsolatedWorldParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateIsolatedWorldParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateIsolatedWorldParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(in *jlexer.Lexer, out *CrashParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(in *jlexer.Lexer, out *CrashParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9625,7 +9712,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(out *jwriter.Writer, in CrashParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(out *jwriter.Writer, in CrashParams) { out.RawByte('{') first := true _ = first @@ -9635,27 +9722,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CrashParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CrashParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CrashParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CrashParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(in *jlexer.Lexer, out *CompilationCacheParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(in *jlexer.Lexer, out *CompilationCacheParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9688,7 +9775,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(out *jwriter.Writer, in CompilationCacheParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(out *jwriter.Writer, in CompilationCacheParams) { out.RawByte('{') first := true _ = first @@ -9708,27 +9795,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CompilationCacheParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CompilationCacheParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(in *jlexer.Lexer, out *CloseParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(in *jlexer.Lexer, out *CloseParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9757,7 +9844,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(out *jwriter.Writer, in CloseParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(out *jwriter.Writer, in CloseParams) { out.RawByte('{') first := true _ = first @@ -9767,27 +9854,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CloseParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CloseParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CloseParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CloseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(in *jlexer.Lexer, out *ClearCompilationCacheParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(in *jlexer.Lexer, out *ClearCompilationCacheParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9816,7 +9903,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(out *jwriter.Writer, in ClearCompilationCacheParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(out *jwriter.Writer, in ClearCompilationCacheParams) { out.RawByte('{') first := true _ = first @@ -9826,27 +9913,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ClearCompilationCacheParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClearCompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClearCompilationCacheParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClearCompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(in *jlexer.Lexer, out *CaptureSnapshotReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage109(in *jlexer.Lexer, out *CaptureSnapshotReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9877,7 +9964,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(out *jwriter.Writer, in CaptureSnapshotReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage109(out *jwriter.Writer, in CaptureSnapshotReturns) { out.RawByte('{') first := true _ = first @@ -9893,27 +9980,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CaptureSnapshotReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage109(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CaptureSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage109(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CaptureSnapshotReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage109(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CaptureSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage109(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage109(in *jlexer.Lexer, out *CaptureSnapshotParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage110(in *jlexer.Lexer, out *CaptureSnapshotParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9944,7 +10031,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage109(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage109(out *jwriter.Writer, in CaptureSnapshotParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage110(out *jwriter.Writer, in CaptureSnapshotParams) { out.RawByte('{') first := true _ = first @@ -9960,27 +10047,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage109(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CaptureSnapshotParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage109(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage110(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CaptureSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage109(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage110(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CaptureSnapshotParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage109(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage110(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CaptureSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage109(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage110(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage110(in *jlexer.Lexer, out *CaptureScreenshotReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage111(in *jlexer.Lexer, out *CaptureScreenshotReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10011,7 +10098,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage110(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage110(out *jwriter.Writer, in CaptureScreenshotReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage111(out *jwriter.Writer, in CaptureScreenshotReturns) { out.RawByte('{') first := true _ = first @@ -10027,27 +10114,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage110(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CaptureScreenshotReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage110(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage111(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CaptureScreenshotReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage110(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage111(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CaptureScreenshotReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage110(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage111(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CaptureScreenshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage110(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage111(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage111(in *jlexer.Lexer, out *CaptureScreenshotParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage112(in *jlexer.Lexer, out *CaptureScreenshotParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10096,7 +10183,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage111(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage111(out *jwriter.Writer, in CaptureScreenshotParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage112(out *jwriter.Writer, in CaptureScreenshotParams) { out.RawByte('{') first := true _ = first @@ -10162,27 +10249,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage111(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CaptureScreenshotParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage111(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage112(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CaptureScreenshotParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage111(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage112(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CaptureScreenshotParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage111(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage112(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CaptureScreenshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage111(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage112(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage112(in *jlexer.Lexer, out *BringToFrontParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage113(in *jlexer.Lexer, out *BringToFrontParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10211,7 +10298,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage112(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage112(out *jwriter.Writer, in BringToFrontParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage113(out *jwriter.Writer, in BringToFrontParams) { out.RawByte('{') first := true _ = first @@ -10221,27 +10308,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage112(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v BringToFrontParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage112(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage113(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BringToFrontParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage112(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage113(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BringToFrontParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage112(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage113(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BringToFrontParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage112(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage113(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage113(in *jlexer.Lexer, out *BackForwardCacheNotRestoredExplanationTree) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage114(in *jlexer.Lexer, out *BackForwardCacheNotRestoredExplanationTree) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10334,7 +10421,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage113(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage113(out *jwriter.Writer, in BackForwardCacheNotRestoredExplanationTree) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage114(out *jwriter.Writer, in BackForwardCacheNotRestoredExplanationTree) { out.RawByte('{') first := true _ = first @@ -10389,27 +10476,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage113(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v BackForwardCacheNotRestoredExplanationTree) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage113(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage114(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BackForwardCacheNotRestoredExplanationTree) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage113(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage114(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BackForwardCacheNotRestoredExplanationTree) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage113(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage114(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BackForwardCacheNotRestoredExplanationTree) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage113(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage114(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage114(in *jlexer.Lexer, out *BackForwardCacheNotRestoredExplanation) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage115(in *jlexer.Lexer, out *BackForwardCacheNotRestoredExplanation) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10475,7 +10562,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage114(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage114(out *jwriter.Writer, in BackForwardCacheNotRestoredExplanation) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage115(out *jwriter.Writer, in BackForwardCacheNotRestoredExplanation) { out.RawByte('{') first := true _ = first @@ -10518,27 +10605,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage114(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v BackForwardCacheNotRestoredExplanation) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage114(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage115(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BackForwardCacheNotRestoredExplanation) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage114(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage115(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BackForwardCacheNotRestoredExplanation) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage114(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage115(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BackForwardCacheNotRestoredExplanation) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage114(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage115(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage115(in *jlexer.Lexer, out *BackForwardCacheBlockingDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage116(in *jlexer.Lexer, out *BackForwardCacheBlockingDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10575,7 +10662,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage115(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage115(out *jwriter.Writer, in BackForwardCacheBlockingDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage116(out *jwriter.Writer, in BackForwardCacheBlockingDetails) { out.RawByte('{') first := true _ = first @@ -10616,27 +10703,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage115(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v BackForwardCacheBlockingDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage115(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage116(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BackForwardCacheBlockingDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage115(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage116(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BackForwardCacheBlockingDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage115(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage116(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BackForwardCacheBlockingDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage115(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage116(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage116(in *jlexer.Lexer, out *AppManifestParsedProperties) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage117(in *jlexer.Lexer, out *AppManifestParsedProperties) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10667,7 +10754,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage116(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage116(out *jwriter.Writer, in AppManifestParsedProperties) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage117(out *jwriter.Writer, in AppManifestParsedProperties) { out.RawByte('{') first := true _ = first @@ -10682,27 +10769,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage116(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AppManifestParsedProperties) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage116(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage117(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AppManifestParsedProperties) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage116(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage117(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AppManifestParsedProperties) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage116(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage117(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AppManifestParsedProperties) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage116(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage117(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage117(in *jlexer.Lexer, out *AppManifestError) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage118(in *jlexer.Lexer, out *AppManifestError) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10739,7 +10826,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage117(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage117(out *jwriter.Writer, in AppManifestError) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage118(out *jwriter.Writer, in AppManifestError) { out.RawByte('{') first := true _ = first @@ -10769,27 +10856,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage117(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AppManifestError) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage117(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage118(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AppManifestError) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage117(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage118(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AppManifestError) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage117(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage118(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AppManifestError) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage117(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage118(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage118(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage119(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10820,7 +10907,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage118(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage118(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage119(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentReturns) { out.RawByte('{') first := true _ = first @@ -10836,27 +10923,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage118(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AddScriptToEvaluateOnNewDocumentReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage118(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage119(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddScriptToEvaluateOnNewDocumentReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage118(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage119(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage118(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage119(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage118(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage119(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage119(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage120(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10893,7 +10980,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage119(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage119(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage120(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentParams) { out.RawByte('{') first := true _ = first @@ -10923,27 +11010,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage119(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AddScriptToEvaluateOnNewDocumentParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage119(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage120(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage119(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage120(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage119(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage120(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage119(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage120(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage120(in *jlexer.Lexer, out *AddCompilationCacheParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage121(in *jlexer.Lexer, out *AddCompilationCacheParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10976,7 +11063,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage120(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage120(out *jwriter.Writer, in AddCompilationCacheParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage121(out *jwriter.Writer, in AddCompilationCacheParams) { out.RawByte('{') first := true _ = first @@ -10996,27 +11083,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage120(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AddCompilationCacheParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage120(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage121(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddCompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage120(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage121(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddCompilationCacheParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage120(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage121(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddCompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage120(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage121(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage121(in *jlexer.Lexer, out *AdScriptID) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage122(in *jlexer.Lexer, out *AdScriptID) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -11049,7 +11136,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage121(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage121(out *jwriter.Writer, in AdScriptID) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage122(out *jwriter.Writer, in AdScriptID) { out.RawByte('{') first := true _ = first @@ -11069,23 +11156,23 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage121(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AdScriptID) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage121(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage122(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AdScriptID) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage121(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage122(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AdScriptID) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage121(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage122(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AdScriptID) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage121(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage122(l, v) } diff --git a/page/events.go b/page/events.go index 75cb36e3..4d1b756d 100644 --- a/page/events.go +++ b/page/events.go @@ -70,6 +70,22 @@ type EventDocumentOpened struct { // See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameResized type EventFrameResized struct{} +// EventFrameStartedNavigating fired when a navigation starts. This event is +// fired for both renderer-initiated and browser-initiated navigations. For +// renderer-initiated navigations, the event is fired after +// frameRequestedNavigation. Navigation may still be cancelled after the event +// is issued. Multiple events can be fired for a single navigation, for example, +// when a same-document navigation becomes a cross-document navigation (such as +// in the case of a frameset). +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameStartedNavigating +type EventFrameStartedNavigating struct { + FrameID cdp.FrameID `json:"frameId"` // ID of the frame that is being navigated. + URL string `json:"url"` // The URL the navigation started with. The final URL can be different. + LoaderID cdp.LoaderID `json:"loaderId"` // Loader identifier. Even though it is present in case of same-document navigation, the previously committed loaderId would not change unless the navigation changes from a same-document to a cross-document navigation. + NavigationType FrameStartedNavigatingNavigationType `json:"navigationType"` +} + // EventFrameRequestedNavigation fired when a renderer-initiated navigation // is requested. Navigation may still be cancelled after the event is issued. // diff --git a/page/types.go b/page/types.go index 5fad5ff3..b4a3a236 100644 --- a/page/types.go +++ b/page/types.go @@ -1740,6 +1740,69 @@ func (t *FrameDetachedReason) UnmarshalJSON(buf []byte) error { return easyjson.Unmarshal(buf, t) } +// FrameStartedNavigatingNavigationType [no description]. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-frameStartedNavigating +type FrameStartedNavigatingNavigationType string + +// String returns the FrameStartedNavigatingNavigationType as string value. +func (t FrameStartedNavigatingNavigationType) String() string { + return string(t) +} + +// FrameStartedNavigatingNavigationType values. +const ( + FrameStartedNavigatingNavigationTypeReload FrameStartedNavigatingNavigationType = "reload" + FrameStartedNavigatingNavigationTypeReloadBypassingCache FrameStartedNavigatingNavigationType = "reloadBypassingCache" + FrameStartedNavigatingNavigationTypeRestore FrameStartedNavigatingNavigationType = "restore" + FrameStartedNavigatingNavigationTypeRestoreWithPost FrameStartedNavigatingNavigationType = "restoreWithPost" + FrameStartedNavigatingNavigationTypeHistorySameDocument FrameStartedNavigatingNavigationType = "historySameDocument" + FrameStartedNavigatingNavigationTypeHistoryDifferentDocument FrameStartedNavigatingNavigationType = "historyDifferentDocument" + FrameStartedNavigatingNavigationTypeSameDocument FrameStartedNavigatingNavigationType = "sameDocument" + FrameStartedNavigatingNavigationTypeDifferentDocument FrameStartedNavigatingNavigationType = "differentDocument" +) + +// MarshalEasyJSON satisfies easyjson.Marshaler. +func (t FrameStartedNavigatingNavigationType) MarshalEasyJSON(out *jwriter.Writer) { + out.String(string(t)) +} + +// MarshalJSON satisfies json.Marshaler. +func (t FrameStartedNavigatingNavigationType) MarshalJSON() ([]byte, error) { + return easyjson.Marshal(t) +} + +// UnmarshalEasyJSON satisfies easyjson.Unmarshaler. +func (t *FrameStartedNavigatingNavigationType) UnmarshalEasyJSON(in *jlexer.Lexer) { + v := in.String() + switch FrameStartedNavigatingNavigationType(v) { + case FrameStartedNavigatingNavigationTypeReload: + *t = FrameStartedNavigatingNavigationTypeReload + case FrameStartedNavigatingNavigationTypeReloadBypassingCache: + *t = FrameStartedNavigatingNavigationTypeReloadBypassingCache + case FrameStartedNavigatingNavigationTypeRestore: + *t = FrameStartedNavigatingNavigationTypeRestore + case FrameStartedNavigatingNavigationTypeRestoreWithPost: + *t = FrameStartedNavigatingNavigationTypeRestoreWithPost + case FrameStartedNavigatingNavigationTypeHistorySameDocument: + *t = FrameStartedNavigatingNavigationTypeHistorySameDocument + case FrameStartedNavigatingNavigationTypeHistoryDifferentDocument: + *t = FrameStartedNavigatingNavigationTypeHistoryDifferentDocument + case FrameStartedNavigatingNavigationTypeSameDocument: + *t = FrameStartedNavigatingNavigationTypeSameDocument + case FrameStartedNavigatingNavigationTypeDifferentDocument: + *t = FrameStartedNavigatingNavigationTypeDifferentDocument + + default: + in.AddError(fmt.Errorf("unknown FrameStartedNavigatingNavigationType value: %v", v)) + } +} + +// UnmarshalJSON satisfies json.Unmarshaler. +func (t *FrameStartedNavigatingNavigationType) UnmarshalJSON(buf []byte) error { + return easyjson.Unmarshal(buf, t) +} + // NavigatedWithinDocumentNavigationType navigation type. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Page#event-navigatedWithinDocument diff --git a/runtime/easyjson.go b/runtime/easyjson.go index 9b58820c..3012b915 100644 --- a/runtime/easyjson.go +++ b/runtime/easyjson.go @@ -2568,6 +2568,10 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime26(in *jlexer.Lexer, o out.UsedSize = float64(in.Float64()) case "totalSize": out.TotalSize = float64(in.Float64()) + case "embedderHeapUsedSize": + out.EmbedderHeapUsedSize = float64(in.Float64()) + case "backingStorageSize": + out.BackingStorageSize = float64(in.Float64()) default: in.SkipRecursive() } @@ -2598,6 +2602,26 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime26(out *jwriter.Writer } out.Float64(float64(in.TotalSize)) } + if in.EmbedderHeapUsedSize != 0 { + const prefix string = ",\"embedderHeapUsedSize\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Float64(float64(in.EmbedderHeapUsedSize)) + } + if in.BackingStorageSize != 0 { + const prefix string = ",\"backingStorageSize\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Float64(float64(in.BackingStorageSize)) + } out.RawByte('}') } diff --git a/runtime/runtime.go b/runtime/runtime.go index 0e3ba7c0..7b45b1d9 100644 --- a/runtime/runtime.go +++ b/runtime/runtime.go @@ -539,25 +539,29 @@ func GetHeapUsage() *GetHeapUsageParams { // GetHeapUsageReturns return values. type GetHeapUsageReturns struct { - UsedSize float64 `json:"usedSize,omitempty"` // Used heap size in bytes. - TotalSize float64 `json:"totalSize,omitempty"` // Allocated heap size in bytes. + UsedSize float64 `json:"usedSize,omitempty"` // Used JavaScript heap size in bytes. + TotalSize float64 `json:"totalSize,omitempty"` // Allocated JavaScript heap size in bytes. + EmbedderHeapUsedSize float64 `json:"embedderHeapUsedSize,omitempty"` // Used size in bytes in the embedder's garbage-collected heap. + BackingStorageSize float64 `json:"backingStorageSize,omitempty"` // Size in bytes of backing storage for array buffers and external strings. } // Do executes Runtime.getHeapUsage against the provided context. // // returns: // -// usedSize - Used heap size in bytes. -// totalSize - Allocated heap size in bytes. -func (p *GetHeapUsageParams) Do(ctx context.Context) (usedSize float64, totalSize float64, err error) { +// usedSize - Used JavaScript heap size in bytes. +// totalSize - Allocated JavaScript heap size in bytes. +// embedderHeapUsedSize - Used size in bytes in the embedder's garbage-collected heap. +// backingStorageSize - Size in bytes of backing storage for array buffers and external strings. +func (p *GetHeapUsageParams) Do(ctx context.Context) (usedSize float64, totalSize float64, embedderHeapUsedSize float64, backingStorageSize float64, err error) { // execute var res GetHeapUsageReturns err = cdp.Execute(ctx, CommandGetHeapUsage, nil, &res) if err != nil { - return 0, 0, err + return 0, 0, 0, 0, err } - return res.UsedSize, res.TotalSize, nil + return res.UsedSize, res.TotalSize, res.EmbedderHeapUsedSize, res.BackingStorageSize, nil } // GetPropertiesParams returns properties of a given object. Object group of