Updating to latest protocol.json

This commit is contained in:
Kenneth Shaw 2017-09-16 06:52:13 +07:00
parent d387b4f27e
commit 0d791ea6f4
21 changed files with 1759 additions and 20876 deletions

View File

@ -1,204 +1,23 @@
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. // TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package
// compilable during generation.
package audits package audits
import ( import (
json "encoding/json" "github.com/mailru/easyjson/jwriter"
network "github.com/knq/chromedp/cdp/network" "github.com/mailru/easyjson/jlexer"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
) )
// suppress unused package warning func ( GetEncodedResponseParams ) MarshalJSON() ([]byte, error) { return nil, nil }
var ( func (* GetEncodedResponseParams ) UnmarshalJSON([]byte) error { return nil }
_ *json.RawMessage func ( GetEncodedResponseParams ) MarshalEasyJSON(w *jwriter.Writer) {}
_ *jlexer.Lexer func (* GetEncodedResponseParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {}
_ *jwriter.Writer
_ easyjson.Marshaler
)
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits(in *jlexer.Lexer, out *GetEncodedResponseReturns) { type EasyJSON_exporter_GetEncodedResponseParams *GetEncodedResponseParams
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "body":
out.Body = string(in.String())
case "originalSize":
out.OriginalSize = int64(in.Int64())
case "encodedSize":
out.EncodedSize = int64(in.Int64())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits(out *jwriter.Writer, in GetEncodedResponseReturns) {
out.RawByte('{')
first := true
_ = first
if in.Body != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"body\":")
out.String(string(in.Body))
}
if in.OriginalSize != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"originalSize\":")
out.Int64(int64(in.OriginalSize))
}
if in.EncodedSize != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"encodedSize\":")
out.Int64(int64(in.EncodedSize))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface func ( GetEncodedResponseReturns ) MarshalJSON() ([]byte, error) { return nil, nil }
func (v GetEncodedResponseReturns) MarshalJSON() ([]byte, error) { func (* GetEncodedResponseReturns ) UnmarshalJSON([]byte) error { return nil }
w := jwriter.Writer{} func ( GetEncodedResponseReturns ) MarshalEasyJSON(w *jwriter.Writer) {}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits(&w, v) func (* GetEncodedResponseReturns ) UnmarshalEasyJSON(l *jlexer.Lexer) {}
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface type EasyJSON_exporter_GetEncodedResponseReturns *GetEncodedResponseReturns
func (v GetEncodedResponseReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetEncodedResponseReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetEncodedResponseReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits1(in *jlexer.Lexer, out *GetEncodedResponseParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "requestId":
out.RequestID = network.RequestID(in.String())
case "encoding":
(out.Encoding).UnmarshalEasyJSON(in)
case "quality":
out.Quality = float64(in.Float64())
case "sizeOnly":
out.SizeOnly = bool(in.Bool())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits1(out *jwriter.Writer, in GetEncodedResponseParams) {
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"requestId\":")
out.String(string(in.RequestID))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"encoding\":")
(in.Encoding).MarshalEasyJSON(out)
if in.Quality != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"quality\":")
out.Float64(float64(in.Quality))
}
if in.SizeOnly {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"sizeOnly\":")
out.Bool(bool(in.SizeOnly))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetEncodedResponseParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits1(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetEncodedResponseParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits1(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetEncodedResponseParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits1(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetEncodedResponseParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits1(l, v)
}

View File

@ -139,6 +139,7 @@ const (
CommandEmulationSetCPUThrottlingRate MethodType = "Emulation.setCPUThrottlingRate" CommandEmulationSetCPUThrottlingRate MethodType = "Emulation.setCPUThrottlingRate"
CommandEmulationCanEmulate MethodType = "Emulation.canEmulate" CommandEmulationCanEmulate MethodType = "Emulation.canEmulate"
CommandEmulationSetVirtualTimePolicy MethodType = "Emulation.setVirtualTimePolicy" CommandEmulationSetVirtualTimePolicy MethodType = "Emulation.setVirtualTimePolicy"
CommandEmulationSetNavigatorOverrides MethodType = "Emulation.setNavigatorOverrides"
CommandEmulationSetDefaultBackgroundColorOverride MethodType = "Emulation.setDefaultBackgroundColorOverride" CommandEmulationSetDefaultBackgroundColorOverride MethodType = "Emulation.setDefaultBackgroundColorOverride"
EventSecuritySecurityStateChanged MethodType = "Security.securityStateChanged" EventSecuritySecurityStateChanged MethodType = "Security.securityStateChanged"
EventSecurityCertificateError MethodType = "Security.certificateError" EventSecurityCertificateError MethodType = "Security.certificateError"
@ -340,6 +341,7 @@ const (
CommandServiceWorkerStartWorker MethodType = "ServiceWorker.startWorker" CommandServiceWorkerStartWorker MethodType = "ServiceWorker.startWorker"
CommandServiceWorkerSkipWaiting MethodType = "ServiceWorker.skipWaiting" CommandServiceWorkerSkipWaiting MethodType = "ServiceWorker.skipWaiting"
CommandServiceWorkerStopWorker MethodType = "ServiceWorker.stopWorker" CommandServiceWorkerStopWorker MethodType = "ServiceWorker.stopWorker"
CommandServiceWorkerStopAllWorkers MethodType = "ServiceWorker.stopAllWorkers"
CommandServiceWorkerInspectWorker MethodType = "ServiceWorker.inspectWorker" CommandServiceWorkerInspectWorker MethodType = "ServiceWorker.inspectWorker"
CommandServiceWorkerSetForceUpdateOnPageLoad MethodType = "ServiceWorker.setForceUpdateOnPageLoad" CommandServiceWorkerSetForceUpdateOnPageLoad MethodType = "ServiceWorker.setForceUpdateOnPageLoad"
CommandServiceWorkerDeliverPushMessage MethodType = "ServiceWorker.deliverPushMessage" CommandServiceWorkerDeliverPushMessage MethodType = "ServiceWorker.deliverPushMessage"
@ -470,6 +472,9 @@ const (
CommandProfilerStopPreciseCoverage MethodType = "Profiler.stopPreciseCoverage" CommandProfilerStopPreciseCoverage MethodType = "Profiler.stopPreciseCoverage"
CommandProfilerTakePreciseCoverage MethodType = "Profiler.takePreciseCoverage" CommandProfilerTakePreciseCoverage MethodType = "Profiler.takePreciseCoverage"
CommandProfilerGetBestEffortCoverage MethodType = "Profiler.getBestEffortCoverage" CommandProfilerGetBestEffortCoverage MethodType = "Profiler.getBestEffortCoverage"
CommandProfilerStartTypeProfile MethodType = "Profiler.startTypeProfile"
CommandProfilerStopTypeProfile MethodType = "Profiler.stopTypeProfile"
CommandProfilerTakeTypeProfile MethodType = "Profiler.takeTypeProfile"
EventHeapProfilerAddHeapSnapshotChunk MethodType = "HeapProfiler.addHeapSnapshotChunk" EventHeapProfilerAddHeapSnapshotChunk MethodType = "HeapProfiler.addHeapSnapshotChunk"
EventHeapProfilerResetProfiles MethodType = "HeapProfiler.resetProfiles" EventHeapProfilerResetProfiles MethodType = "HeapProfiler.resetProfiles"
EventHeapProfilerReportHeapSnapshotProgress MethodType = "HeapProfiler.reportHeapSnapshotProgress" EventHeapProfilerReportHeapSnapshotProgress MethodType = "HeapProfiler.reportHeapSnapshotProgress"
@ -681,6 +686,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
*t = CommandEmulationCanEmulate *t = CommandEmulationCanEmulate
case CommandEmulationSetVirtualTimePolicy: case CommandEmulationSetVirtualTimePolicy:
*t = CommandEmulationSetVirtualTimePolicy *t = CommandEmulationSetVirtualTimePolicy
case CommandEmulationSetNavigatorOverrides:
*t = CommandEmulationSetNavigatorOverrides
case CommandEmulationSetDefaultBackgroundColorOverride: case CommandEmulationSetDefaultBackgroundColorOverride:
*t = CommandEmulationSetDefaultBackgroundColorOverride *t = CommandEmulationSetDefaultBackgroundColorOverride
case EventSecuritySecurityStateChanged: case EventSecuritySecurityStateChanged:
@ -1083,6 +1090,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
*t = CommandServiceWorkerSkipWaiting *t = CommandServiceWorkerSkipWaiting
case CommandServiceWorkerStopWorker: case CommandServiceWorkerStopWorker:
*t = CommandServiceWorkerStopWorker *t = CommandServiceWorkerStopWorker
case CommandServiceWorkerStopAllWorkers:
*t = CommandServiceWorkerStopAllWorkers
case CommandServiceWorkerInspectWorker: case CommandServiceWorkerInspectWorker:
*t = CommandServiceWorkerInspectWorker *t = CommandServiceWorkerInspectWorker
case CommandServiceWorkerSetForceUpdateOnPageLoad: case CommandServiceWorkerSetForceUpdateOnPageLoad:
@ -1343,6 +1352,12 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
*t = CommandProfilerTakePreciseCoverage *t = CommandProfilerTakePreciseCoverage
case CommandProfilerGetBestEffortCoverage: case CommandProfilerGetBestEffortCoverage:
*t = CommandProfilerGetBestEffortCoverage *t = CommandProfilerGetBestEffortCoverage
case CommandProfilerStartTypeProfile:
*t = CommandProfilerStartTypeProfile
case CommandProfilerStopTypeProfile:
*t = CommandProfilerStopTypeProfile
case CommandProfilerTakeTypeProfile:
*t = CommandProfilerTakeTypeProfile
case EventHeapProfilerAddHeapSnapshotChunk: case EventHeapProfilerAddHeapSnapshotChunk:
*t = EventHeapProfilerAddHeapSnapshotChunk *t = EventHeapProfilerAddHeapSnapshotChunk
case EventHeapProfilerResetProfiles: case EventHeapProfilerResetProfiles:

View File

@ -316,6 +316,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandEmulationSetVirtualTimePolicy: case cdp.CommandEmulationSetVirtualTimePolicy:
return emptyVal, nil return emptyVal, nil
case cdp.CommandEmulationSetNavigatorOverrides:
return emptyVal, nil
case cdp.CommandEmulationSetDefaultBackgroundColorOverride: case cdp.CommandEmulationSetDefaultBackgroundColorOverride:
return emptyVal, nil return emptyVal, nil
@ -916,6 +919,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandServiceWorkerStopWorker: case cdp.CommandServiceWorkerStopWorker:
return emptyVal, nil return emptyVal, nil
case cdp.CommandServiceWorkerStopAllWorkers:
return emptyVal, nil
case cdp.CommandServiceWorkerInspectWorker: case cdp.CommandServiceWorkerInspectWorker:
return emptyVal, nil return emptyVal, nil
@ -1309,6 +1315,15 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
case cdp.CommandProfilerGetBestEffortCoverage: case cdp.CommandProfilerGetBestEffortCoverage:
v = new(profiler.GetBestEffortCoverageReturns) v = new(profiler.GetBestEffortCoverageReturns)
case cdp.CommandProfilerStartTypeProfile:
return emptyVal, nil
case cdp.CommandProfilerStopTypeProfile:
return emptyVal, nil
case cdp.CommandProfilerTakeTypeProfile:
v = new(profiler.TakeTypeProfileReturns)
case cdp.EventProfilerConsoleProfileStarted: case cdp.EventProfilerConsoleProfileStarted:
v = new(profiler.EventConsoleProfileStarted) v = new(profiler.EventConsoleProfileStarted)

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,6 @@ package debugger
import ( import (
"errors" "errors"
"github.com/knq/chromedp/cdp/runtime"
"github.com/mailru/easyjson" "github.com/mailru/easyjson"
"github.com/mailru/easyjson/jlexer" "github.com/mailru/easyjson/jlexer"
"github.com/mailru/easyjson/jwriter" "github.com/mailru/easyjson/jwriter"
@ -46,6 +45,7 @@ type CallFrame struct {
FunctionName string `json:"functionName"` // Name of the JavaScript function called on this call frame. FunctionName string `json:"functionName"` // Name of the JavaScript function called on this call frame.
FunctionLocation *Location `json:"functionLocation,omitempty"` // Location in the source code. FunctionLocation *Location `json:"functionLocation,omitempty"` // Location in the source code.
Location *Location `json:"location"` // Location in the source code. Location *Location `json:"location"` // Location in the source code.
URL string `json:"url"` // JavaScript script name or url.
ScopeChain []*Scope `json:"scopeChain"` // Scope chain for this call frame. ScopeChain []*Scope `json:"scopeChain"` // Scope chain for this call frame.
This *runtime.RemoteObject `json:"this"` // this object for this call frame. This *runtime.RemoteObject `json:"this"` // this object for this call frame.
ReturnValue *runtime.RemoteObject `json:"returnValue,omitempty"` // The value being returned, if the function is at return point. ReturnValue *runtime.RemoteObject `json:"returnValue,omitempty"` // The value being returned, if the function is at return point.

View File

@ -306,7 +306,74 @@ func (v *SetPageScaleFactorParams) UnmarshalJSON(data []byte) error {
func (v *SetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *SetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation3(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation3(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(in *jlexer.Lexer, out *SetGeolocationOverrideParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(in *jlexer.Lexer, out *SetNavigatorOverridesParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "platform":
out.Platform = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(out *jwriter.Writer, in SetNavigatorOverridesParams) {
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"platform\":")
out.String(string(in.Platform))
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetNavigatorOverridesParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetNavigatorOverridesParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetNavigatorOverridesParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetNavigatorOverridesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(in *jlexer.Lexer, out *SetGeolocationOverrideParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -341,7 +408,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(in *jlexer.Lexer, o
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(out *jwriter.Writer, in SetGeolocationOverrideParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(out *jwriter.Writer, in SetGeolocationOverrideParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -375,27 +442,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(out *jwriter.Writer
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v SetGeolocationOverrideParams) MarshalJSON() ([]byte, error) { func (v SetGeolocationOverrideParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetGeolocationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { func (v SetGeolocationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *SetGeolocationOverrideParams) UnmarshalJSON(data []byte) error { func (v *SetGeolocationOverrideParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetGeolocationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *SetGeolocationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(in *jlexer.Lexer, out *SetEmulatedMediaParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(in *jlexer.Lexer, out *SetEmulatedMediaParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -426,7 +493,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(in *jlexer.Lexer, o
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(out *jwriter.Writer, in SetEmulatedMediaParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(out *jwriter.Writer, in SetEmulatedMediaParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -442,27 +509,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(out *jwriter.Writer
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v SetEmulatedMediaParams) MarshalJSON() ([]byte, error) { func (v SetEmulatedMediaParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetEmulatedMediaParams) MarshalEasyJSON(w *jwriter.Writer) { func (v SetEmulatedMediaParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *SetEmulatedMediaParams) UnmarshalJSON(data []byte) error { func (v *SetEmulatedMediaParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetEmulatedMediaParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *SetEmulatedMediaParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(in *jlexer.Lexer, out *SetEmitTouchEventsForMouseParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(in *jlexer.Lexer, out *SetEmitTouchEventsForMouseParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -495,7 +562,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(in *jlexer.Lexer, o
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(out *jwriter.Writer, in SetEmitTouchEventsForMouseParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(out *jwriter.Writer, in SetEmitTouchEventsForMouseParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -519,27 +586,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(out *jwriter.Writer
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v SetEmitTouchEventsForMouseParams) MarshalJSON() ([]byte, error) { func (v SetEmitTouchEventsForMouseParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetEmitTouchEventsForMouseParams) MarshalEasyJSON(w *jwriter.Writer) { func (v SetEmitTouchEventsForMouseParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *SetEmitTouchEventsForMouseParams) UnmarshalJSON(data []byte) error { func (v *SetEmitTouchEventsForMouseParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetEmitTouchEventsForMouseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *SetEmitTouchEventsForMouseParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(in *jlexer.Lexer, out *SetDeviceMetricsOverrideParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(in *jlexer.Lexer, out *SetDeviceMetricsOverrideParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -598,7 +665,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(in *jlexer.Lexer, o
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(out *jwriter.Writer, in SetDeviceMetricsOverrideParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(out *jwriter.Writer, in SetDeviceMetricsOverrideParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -692,27 +759,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(out *jwriter.Writer
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v SetDeviceMetricsOverrideParams) MarshalJSON() ([]byte, error) { func (v SetDeviceMetricsOverrideParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetDeviceMetricsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { func (v SetDeviceMetricsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *SetDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error { func (v *SetDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *SetDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(in *jlexer.Lexer, out *SetDefaultBackgroundColorOverrideParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(in *jlexer.Lexer, out *SetDefaultBackgroundColorOverrideParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -751,7 +818,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(in *jlexer.Lexer, o
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(out *jwriter.Writer, in SetDefaultBackgroundColorOverrideParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(out *jwriter.Writer, in SetDefaultBackgroundColorOverrideParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -773,27 +840,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(out *jwriter.Writer
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v SetDefaultBackgroundColorOverrideParams) MarshalJSON() ([]byte, error) { func (v SetDefaultBackgroundColorOverrideParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetDefaultBackgroundColorOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { func (v SetDefaultBackgroundColorOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalJSON(data []byte) error { func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(in *jlexer.Lexer, out *SetCPUThrottlingRateParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(in *jlexer.Lexer, out *SetCPUThrottlingRateParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -824,7 +891,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(in *jlexer.Lexer, o
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(out *jwriter.Writer, in SetCPUThrottlingRateParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(out *jwriter.Writer, in SetCPUThrottlingRateParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -840,27 +907,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(out *jwriter.Writer
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v SetCPUThrottlingRateParams) MarshalJSON() ([]byte, error) { func (v SetCPUThrottlingRateParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetCPUThrottlingRateParams) MarshalEasyJSON(w *jwriter.Writer) { func (v SetCPUThrottlingRateParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *SetCPUThrottlingRateParams) UnmarshalJSON(data []byte) error { func (v *SetCPUThrottlingRateParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetCPUThrottlingRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *SetCPUThrottlingRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(in *jlexer.Lexer, out *ScreenOrientation) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(in *jlexer.Lexer, out *ScreenOrientation) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -893,7 +960,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(in *jlexer.Lexer,
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(out *jwriter.Writer, in ScreenOrientation) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(out *jwriter.Writer, in ScreenOrientation) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -915,27 +982,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(out *jwriter.Write
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v ScreenOrientation) MarshalJSON() ([]byte, error) { func (v ScreenOrientation) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v ScreenOrientation) MarshalEasyJSON(w *jwriter.Writer) { func (v ScreenOrientation) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *ScreenOrientation) UnmarshalJSON(data []byte) error { func (v *ScreenOrientation) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ScreenOrientation) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *ScreenOrientation) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(in *jlexer.Lexer, out *ResetPageScaleFactorParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(in *jlexer.Lexer, out *ResetPageScaleFactorParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -964,7 +1031,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(in *jlexer.Lexer,
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(out *jwriter.Writer, in ResetPageScaleFactorParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(out *jwriter.Writer, in ResetPageScaleFactorParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -974,27 +1041,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(out *jwriter.Write
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v ResetPageScaleFactorParams) MarshalJSON() ([]byte, error) { func (v ResetPageScaleFactorParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v ResetPageScaleFactorParams) MarshalEasyJSON(w *jwriter.Writer) { func (v ResetPageScaleFactorParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *ResetPageScaleFactorParams) UnmarshalJSON(data []byte) error { func (v *ResetPageScaleFactorParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ResetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *ResetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(in *jlexer.Lexer, out *EventVirtualTimePaused) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(in *jlexer.Lexer, out *EventVirtualTimePaused) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -1025,7 +1092,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(in *jlexer.Lexer,
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(out *jwriter.Writer, in EventVirtualTimePaused) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(out *jwriter.Writer, in EventVirtualTimePaused) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -1041,27 +1108,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(out *jwriter.Write
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v EventVirtualTimePaused) MarshalJSON() ([]byte, error) { func (v EventVirtualTimePaused) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventVirtualTimePaused) MarshalEasyJSON(w *jwriter.Writer) { func (v EventVirtualTimePaused) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *EventVirtualTimePaused) UnmarshalJSON(data []byte) error { func (v *EventVirtualTimePaused) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventVirtualTimePaused) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *EventVirtualTimePaused) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(in *jlexer.Lexer, out *EventVirtualTimeBudgetExpired) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(in *jlexer.Lexer, out *EventVirtualTimeBudgetExpired) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -1090,7 +1157,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(in *jlexer.Lexer,
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(out *jwriter.Writer, in EventVirtualTimeBudgetExpired) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(out *jwriter.Writer, in EventVirtualTimeBudgetExpired) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -1100,27 +1167,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(out *jwriter.Write
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v EventVirtualTimeBudgetExpired) MarshalJSON() ([]byte, error) { func (v EventVirtualTimeBudgetExpired) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventVirtualTimeBudgetExpired) MarshalEasyJSON(w *jwriter.Writer) { func (v EventVirtualTimeBudgetExpired) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *EventVirtualTimeBudgetExpired) UnmarshalJSON(data []byte) error { func (v *EventVirtualTimeBudgetExpired) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventVirtualTimeBudgetExpired) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *EventVirtualTimeBudgetExpired) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(in *jlexer.Lexer, out *ClearGeolocationOverrideParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(in *jlexer.Lexer, out *ClearGeolocationOverrideParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -1149,7 +1216,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(in *jlexer.Lexer,
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(out *jwriter.Writer, in ClearGeolocationOverrideParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(out *jwriter.Writer, in ClearGeolocationOverrideParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -1159,27 +1226,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(out *jwriter.Write
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v ClearGeolocationOverrideParams) MarshalJSON() ([]byte, error) { func (v ClearGeolocationOverrideParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v ClearGeolocationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { func (v ClearGeolocationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *ClearGeolocationOverrideParams) UnmarshalJSON(data []byte) error { func (v *ClearGeolocationOverrideParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ClearGeolocationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *ClearGeolocationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(in *jlexer.Lexer, out *ClearDeviceMetricsOverrideParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(in *jlexer.Lexer, out *ClearDeviceMetricsOverrideParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -1208,7 +1275,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(in *jlexer.Lexer,
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(out *jwriter.Writer, in ClearDeviceMetricsOverrideParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(out *jwriter.Writer, in ClearDeviceMetricsOverrideParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -1218,27 +1285,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(out *jwriter.Write
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v ClearDeviceMetricsOverrideParams) MarshalJSON() ([]byte, error) { func (v ClearDeviceMetricsOverrideParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v ClearDeviceMetricsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { func (v ClearDeviceMetricsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *ClearDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error { func (v *ClearDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ClearDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *ClearDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(in *jlexer.Lexer, out *CanEmulateReturns) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(in *jlexer.Lexer, out *CanEmulateReturns) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -1269,7 +1336,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(in *jlexer.Lexer,
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(out *jwriter.Writer, in CanEmulateReturns) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(out *jwriter.Writer, in CanEmulateReturns) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -1287,27 +1354,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(out *jwriter.Write
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v CanEmulateReturns) MarshalJSON() ([]byte, error) { func (v CanEmulateReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v CanEmulateReturns) MarshalEasyJSON(w *jwriter.Writer) { func (v CanEmulateReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *CanEmulateReturns) UnmarshalJSON(data []byte) error { func (v *CanEmulateReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CanEmulateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *CanEmulateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(in *jlexer.Lexer, out *CanEmulateParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation18(in *jlexer.Lexer, out *CanEmulateParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -1336,7 +1403,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(in *jlexer.Lexer,
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(out *jwriter.Writer, in CanEmulateParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation18(out *jwriter.Writer, in CanEmulateParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -1346,23 +1413,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(out *jwriter.Write
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v CanEmulateParams) MarshalJSON() ([]byte, error) { func (v CanEmulateParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation18(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v CanEmulateParams) MarshalEasyJSON(w *jwriter.Writer) { func (v CanEmulateParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation18(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *CanEmulateParams) UnmarshalJSON(data []byte) error { func (v *CanEmulateParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation18(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CanEmulateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *CanEmulateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation18(l, v)
} }

View File

@ -23,11 +23,11 @@ type SetDeviceMetricsOverrideParams struct {
Height int64 `json:"height"` // Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. Height int64 `json:"height"` // Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
DeviceScaleFactor float64 `json:"deviceScaleFactor"` // Overriding device scale factor value. 0 disables the override. DeviceScaleFactor float64 `json:"deviceScaleFactor"` // Overriding device scale factor value. 0 disables the override.
Mobile bool `json:"mobile"` // Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more. Mobile bool `json:"mobile"` // Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more.
Scale float64 `json:"scale,omitempty"` // Scale to apply to resulting view image. Ignored in |fitWindow| mode. Scale float64 `json:"scale,omitempty"` // Scale to apply to resulting view image.
ScreenWidth int64 `json:"screenWidth,omitempty"` // Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. ScreenWidth int64 `json:"screenWidth,omitempty"` // Overriding screen width value in pixels (minimum 0, maximum 10000000).
ScreenHeight int64 `json:"screenHeight,omitempty"` // Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. ScreenHeight int64 `json:"screenHeight,omitempty"` // Overriding screen height value in pixels (minimum 0, maximum 10000000).
PositionX int64 `json:"positionX,omitempty"` // Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. PositionX int64 `json:"positionX,omitempty"` // Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
PositionY int64 `json:"positionY,omitempty"` // Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. PositionY int64 `json:"positionY,omitempty"` // Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
DontSetVisibleSize bool `json:"dontSetVisibleSize,omitempty"` // Do not set visible view size, rely upon explicit setVisibleSize call. DontSetVisibleSize bool `json:"dontSetVisibleSize,omitempty"` // Do not set visible view size, rely upon explicit setVisibleSize call.
ScreenOrientation *ScreenOrientation `json:"screenOrientation,omitempty"` // Screen orientation override. ScreenOrientation *ScreenOrientation `json:"screenOrientation,omitempty"` // Screen orientation override.
} }
@ -51,36 +51,35 @@ func SetDeviceMetricsOverride(width int64, height int64, deviceScaleFactor float
} }
} }
// WithScale scale to apply to resulting view image. Ignored in |fitWindow| // WithScale scale to apply to resulting view image.
// mode.
func (p SetDeviceMetricsOverrideParams) WithScale(scale float64) *SetDeviceMetricsOverrideParams { func (p SetDeviceMetricsOverrideParams) WithScale(scale float64) *SetDeviceMetricsOverrideParams {
p.Scale = scale p.Scale = scale
return &p return &p
} }
// WithScreenWidth overriding screen width value in pixels (minimum 0, // WithScreenWidth overriding screen width value in pixels (minimum 0,
// maximum 10000000). Only used for |mobile==true|. // maximum 10000000).
func (p SetDeviceMetricsOverrideParams) WithScreenWidth(screenWidth int64) *SetDeviceMetricsOverrideParams { func (p SetDeviceMetricsOverrideParams) WithScreenWidth(screenWidth int64) *SetDeviceMetricsOverrideParams {
p.ScreenWidth = screenWidth p.ScreenWidth = screenWidth
return &p return &p
} }
// WithScreenHeight overriding screen height value in pixels (minimum 0, // WithScreenHeight overriding screen height value in pixels (minimum 0,
// maximum 10000000). Only used for |mobile==true|. // maximum 10000000).
func (p SetDeviceMetricsOverrideParams) WithScreenHeight(screenHeight int64) *SetDeviceMetricsOverrideParams { func (p SetDeviceMetricsOverrideParams) WithScreenHeight(screenHeight int64) *SetDeviceMetricsOverrideParams {
p.ScreenHeight = screenHeight p.ScreenHeight = screenHeight
return &p return &p
} }
// WithPositionX overriding view X position on screen in pixels (minimum 0, // WithPositionX overriding view X position on screen in pixels (minimum 0,
// maximum 10000000). Only used for |mobile==true|. // maximum 10000000).
func (p SetDeviceMetricsOverrideParams) WithPositionX(positionX int64) *SetDeviceMetricsOverrideParams { func (p SetDeviceMetricsOverrideParams) WithPositionX(positionX int64) *SetDeviceMetricsOverrideParams {
p.PositionX = positionX p.PositionX = positionX
return &p return &p
} }
// WithPositionY overriding view Y position on screen in pixels (minimum 0, // WithPositionY overriding view Y position on screen in pixels (minimum 0,
// maximum 10000000). Only used for |mobile==true|. // maximum 10000000).
func (p SetDeviceMetricsOverrideParams) WithPositionY(positionY int64) *SetDeviceMetricsOverrideParams { func (p SetDeviceMetricsOverrideParams) WithPositionY(positionY int64) *SetDeviceMetricsOverrideParams {
p.PositionY = positionY p.PositionY = positionY
return &p return &p
@ -396,6 +395,29 @@ func (p *SetVirtualTimePolicyParams) Do(ctxt context.Context, h cdp.Handler) (er
return h.Execute(ctxt, cdp.CommandEmulationSetVirtualTimePolicy, p, nil) return h.Execute(ctxt, cdp.CommandEmulationSetVirtualTimePolicy, p, nil)
} }
// SetNavigatorOverridesParams overrides value returned by the javascript
// navigator object.
type SetNavigatorOverridesParams struct {
Platform string `json:"platform"` // The platform navigator.platform should return.
}
// SetNavigatorOverrides overrides value returned by the javascript navigator
// object.
//
// parameters:
// platform - The platform navigator.platform should return.
func SetNavigatorOverrides(platform string) *SetNavigatorOverridesParams {
return &SetNavigatorOverridesParams{
Platform: platform,
}
}
// Do executes Emulation.setNavigatorOverrides against the provided context and
// target handler.
func (p *SetNavigatorOverridesParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandEmulationSetNavigatorOverrides, p, nil)
}
// SetDefaultBackgroundColorOverrideParams sets or clears an override of the // SetDefaultBackgroundColorOverrideParams sets or clears an override of the
// default background color of the frame. This override is used if the content // default background color of the frame. This override is used if the content
// does not specify one. // does not specify one.

View File

@ -37,13 +37,13 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInput(in *jlexer.Lexer, out *T
} }
switch key { switch key {
case "x": case "x":
out.X = int64(in.Int64()) out.X = float64(in.Float64())
case "y": case "y":
out.Y = int64(in.Int64()) out.Y = float64(in.Float64())
case "radiusX": case "radiusX":
out.RadiusX = int64(in.Int64()) out.RadiusX = float64(in.Float64())
case "radiusY": case "radiusY":
out.RadiusY = int64(in.Int64()) out.RadiusY = float64(in.Float64())
case "rotationAngle": case "rotationAngle":
out.RotationAngle = float64(in.Float64()) out.RotationAngle = float64(in.Float64())
case "force": case "force":
@ -69,20 +69,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput(out *jwriter.Writer, in
} }
first = false first = false
out.RawString("\"x\":") out.RawString("\"x\":")
out.Int64(int64(in.X)) out.Float64(float64(in.X))
if !first { if !first {
out.RawByte(',') out.RawByte(',')
} }
first = false first = false
out.RawString("\"y\":") out.RawString("\"y\":")
out.Int64(int64(in.Y)) out.Float64(float64(in.Y))
if in.RadiusX != 0 { if in.RadiusX != 0 {
if !first { if !first {
out.RawByte(',') out.RawByte(',')
} }
first = false first = false
out.RawString("\"radiusX\":") out.RawString("\"radiusX\":")
out.Int64(int64(in.RadiusX)) out.Float64(float64(in.RadiusX))
} }
if in.RadiusY != 0 { if in.RadiusY != 0 {
if !first { if !first {
@ -90,7 +90,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput(out *jwriter.Writer, in
} }
first = false first = false
out.RawString("\"radiusY\":") out.RawString("\"radiusY\":")
out.Int64(int64(in.RadiusY)) out.Float64(float64(in.RadiusY))
} }
if in.RotationAngle != 0 { if in.RotationAngle != 0 {
if !first { if !first {

View File

@ -15,10 +15,10 @@ import (
// TouchPoint [no description]. // TouchPoint [no description].
type TouchPoint struct { type TouchPoint struct {
X int64 `json:"x"` // X coordinate of the event relative to the main frame's viewport in CSS pixels. X float64 `json:"x"` // X coordinate of the event relative to the main frame's viewport in CSS pixels.
Y int64 `json:"y"` // Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. Y float64 `json:"y"` // Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
RadiusX int64 `json:"radiusX,omitempty"` // X radius of the touch area (default: 1). RadiusX float64 `json:"radiusX,omitempty"` // X radius of the touch area (default: 1.0).
RadiusY int64 `json:"radiusY,omitempty"` // Y radius of the touch area (default: 1). RadiusY float64 `json:"radiusY,omitempty"` // Y radius of the touch area (default: 1.0).
RotationAngle float64 `json:"rotationAngle,omitempty"` // Rotation angle (default: 0.0). RotationAngle float64 `json:"rotationAngle,omitempty"` // Rotation angle (default: 0.0).
Force float64 `json:"force,omitempty"` // Force (default: 1.0). Force float64 `json:"force,omitempty"` // Force (default: 1.0).
ID float64 `json:"id,omitempty"` // Identifier used to track touch sources between events, must be unique within an event. ID float64 `json:"id,omitempty"` // Identifier used to track touch sources between events, must be unique within an event.

View File

@ -1,687 +1,65 @@
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. // TEMPORARY AUTOGENERATED FILE: easyjson stub code to make the package
// compilable during generation.
package log package log
import ( import (
json "encoding/json" "github.com/mailru/easyjson/jwriter"
network "github.com/knq/chromedp/cdp/network" "github.com/mailru/easyjson/jlexer"
runtime "github.com/knq/chromedp/cdp/runtime"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
) )
// suppress unused package warning func ( ClearParams ) MarshalJSON() ([]byte, error) { return nil, nil }
var ( func (* ClearParams ) UnmarshalJSON([]byte) error { return nil }
_ *json.RawMessage func ( ClearParams ) MarshalEasyJSON(w *jwriter.Writer) {}
_ *jlexer.Lexer func (* ClearParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {}
_ *jwriter.Writer
_ easyjson.Marshaler
)
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog(in *jlexer.Lexer, out *ViolationSetting) { type EasyJSON_exporter_ClearParams *ClearParams
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "name":
(out.Name).UnmarshalEasyJSON(in)
case "threshold":
out.Threshold = float64(in.Float64())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(out *jwriter.Writer, in ViolationSetting) {
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"name\":")
(in.Name).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"threshold\":")
out.Float64(float64(in.Threshold))
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface func ( DisableParams ) MarshalJSON() ([]byte, error) { return nil, nil }
func (v ViolationSetting) MarshalJSON() ([]byte, error) { func (* DisableParams ) UnmarshalJSON([]byte) error { return nil }
w := jwriter.Writer{} func ( DisableParams ) MarshalEasyJSON(w *jwriter.Writer) {}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(&w, v) func (* DisableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {}
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface type EasyJSON_exporter_DisableParams *DisableParams
func (v ViolationSetting) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface func ( EnableParams ) MarshalJSON() ([]byte, error) { return nil, nil }
func (v *ViolationSetting) UnmarshalJSON(data []byte) error { func (* EnableParams ) UnmarshalJSON([]byte) error { return nil }
r := jlexer.Lexer{Data: data} func ( EnableParams ) MarshalEasyJSON(w *jwriter.Writer) {}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog(&r, v) func (* EnableParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {}
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface type EasyJSON_exporter_EnableParams *EnableParams
func (v *ViolationSetting) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog1(in *jlexer.Lexer, out *StopViolationsReportParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog1(out *jwriter.Writer, in StopViolationsReportParams) {
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface func ( Entry ) MarshalJSON() ([]byte, error) { return nil, nil }
func (v StopViolationsReportParams) MarshalJSON() ([]byte, error) { func (* Entry ) UnmarshalJSON([]byte) error { return nil }
w := jwriter.Writer{} func ( Entry ) MarshalEasyJSON(w *jwriter.Writer) {}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog1(&w, v) func (* Entry ) UnmarshalEasyJSON(l *jlexer.Lexer) {}
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface type EasyJSON_exporter_Entry *Entry
func (v StopViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog1(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface func ( EventEntryAdded ) MarshalJSON() ([]byte, error) { return nil, nil }
func (v *StopViolationsReportParams) UnmarshalJSON(data []byte) error { func (* EventEntryAdded ) UnmarshalJSON([]byte) error { return nil }
r := jlexer.Lexer{Data: data} func ( EventEntryAdded ) MarshalEasyJSON(w *jwriter.Writer) {}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog1(&r, v) func (* EventEntryAdded ) UnmarshalEasyJSON(l *jlexer.Lexer) {}
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface type EasyJSON_exporter_EventEntryAdded *EventEntryAdded
func (v *StopViolationsReportParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog1(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog2(in *jlexer.Lexer, out *StartViolationsReportParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "config":
if in.IsNull() {
in.Skip()
out.Config = nil
} else {
in.Delim('[')
if out.Config == nil {
if !in.IsDelim(']') {
out.Config = make([]*ViolationSetting, 0, 8)
} else {
out.Config = []*ViolationSetting{}
}
} else {
out.Config = (out.Config)[:0]
}
for !in.IsDelim(']') {
var v1 *ViolationSetting
if in.IsNull() {
in.Skip()
v1 = nil
} else {
if v1 == nil {
v1 = new(ViolationSetting)
}
(*v1).UnmarshalEasyJSON(in)
}
out.Config = append(out.Config, v1)
in.WantComma()
}
in.Delim(']')
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(out *jwriter.Writer, in StartViolationsReportParams) {
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"config\":")
if in.Config == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v2, v3 := range in.Config {
if v2 > 0 {
out.RawByte(',')
}
if v3 == nil {
out.RawString("null")
} else {
(*v3).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface func ( StartViolationsReportParams ) MarshalJSON() ([]byte, error) { return nil, nil }
func (v StartViolationsReportParams) MarshalJSON() ([]byte, error) { func (* StartViolationsReportParams ) UnmarshalJSON([]byte) error { return nil }
w := jwriter.Writer{} func ( StartViolationsReportParams ) MarshalEasyJSON(w *jwriter.Writer) {}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(&w, v) func (* StartViolationsReportParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {}
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface type EasyJSON_exporter_StartViolationsReportParams *StartViolationsReportParams
func (v StartViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface func ( StopViolationsReportParams ) MarshalJSON() ([]byte, error) { return nil, nil }
func (v *StartViolationsReportParams) UnmarshalJSON(data []byte) error { func (* StopViolationsReportParams ) UnmarshalJSON([]byte) error { return nil }
r := jlexer.Lexer{Data: data} func ( StopViolationsReportParams ) MarshalEasyJSON(w *jwriter.Writer) {}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog2(&r, v) func (* StopViolationsReportParams ) UnmarshalEasyJSON(l *jlexer.Lexer) {}
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface type EasyJSON_exporter_StopViolationsReportParams *StopViolationsReportParams
func (v *StartViolationsReportParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog2(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog3(in *jlexer.Lexer, out *EventEntryAdded) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "entry":
if in.IsNull() {
in.Skip()
out.Entry = nil
} else {
if out.Entry == nil {
out.Entry = new(Entry)
}
(*out.Entry).UnmarshalEasyJSON(in)
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog3(out *jwriter.Writer, in EventEntryAdded) {
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"entry\":")
if in.Entry == nil {
out.RawString("null")
} else {
(*in.Entry).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface func ( ViolationSetting ) MarshalJSON() ([]byte, error) { return nil, nil }
func (v EventEntryAdded) MarshalJSON() ([]byte, error) { func (* ViolationSetting ) UnmarshalJSON([]byte) error { return nil }
w := jwriter.Writer{} func ( ViolationSetting ) MarshalEasyJSON(w *jwriter.Writer) {}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog3(&w, v) func (* ViolationSetting ) UnmarshalEasyJSON(l *jlexer.Lexer) {}
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface type EasyJSON_exporter_ViolationSetting *ViolationSetting
func (v EventEntryAdded) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog3(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventEntryAdded) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog3(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventEntryAdded) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog3(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog4(in *jlexer.Lexer, out *Entry) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "source":
(out.Source).UnmarshalEasyJSON(in)
case "level":
(out.Level).UnmarshalEasyJSON(in)
case "text":
out.Text = string(in.String())
case "timestamp":
if in.IsNull() {
in.Skip()
out.Timestamp = nil
} else {
if out.Timestamp == nil {
out.Timestamp = new(runtime.Timestamp)
}
(*out.Timestamp).UnmarshalEasyJSON(in)
}
case "url":
out.URL = string(in.String())
case "lineNumber":
out.LineNumber = int64(in.Int64())
case "stackTrace":
if in.IsNull() {
in.Skip()
out.StackTrace = nil
} else {
if out.StackTrace == nil {
out.StackTrace = new(runtime.StackTrace)
}
(*out.StackTrace).UnmarshalEasyJSON(in)
}
case "networkRequestId":
out.NetworkRequestID = network.RequestID(in.String())
case "workerId":
out.WorkerID = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog4(out *jwriter.Writer, in Entry) {
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"source\":")
(in.Source).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"level\":")
(in.Level).MarshalEasyJSON(out)
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"text\":")
out.String(string(in.Text))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"timestamp\":")
if in.Timestamp == nil {
out.RawString("null")
} else {
(*in.Timestamp).MarshalEasyJSON(out)
}
if in.URL != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"url\":")
out.String(string(in.URL))
}
if in.LineNumber != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"lineNumber\":")
out.Int64(int64(in.LineNumber))
}
if in.StackTrace != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"stackTrace\":")
if in.StackTrace == nil {
out.RawString("null")
} else {
(*in.StackTrace).MarshalEasyJSON(out)
}
}
if in.NetworkRequestID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"networkRequestId\":")
out.String(string(in.NetworkRequestID))
}
if in.WorkerID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"workerId\":")
out.String(string(in.WorkerID))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v Entry) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog4(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v Entry) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog4(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *Entry) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog4(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *Entry) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog4(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog5(in *jlexer.Lexer, out *EnableParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog5(out *jwriter.Writer, in EnableParams) {
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EnableParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog5(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog5(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EnableParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog5(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog5(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog6(in *jlexer.Lexer, out *DisableParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog6(out *jwriter.Writer, in DisableParams) {
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v DisableParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog6(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog6(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *DisableParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog6(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog6(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog7(in *jlexer.Lexer, out *ClearParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog7(out *jwriter.Writer, in ClearParams) {
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v ClearParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog7(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ClearParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog7(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ClearParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog7(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ClearParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog7(l, v)
}

File diff suppressed because it is too large Load Diff

View File

@ -562,9 +562,9 @@ func (p *CanEmulateNetworkConditionsParams) Do(ctxt context.Context, h cdp.Handl
// EmulateNetworkConditionsParams activates emulation of network conditions. // EmulateNetworkConditionsParams activates emulation of network conditions.
type EmulateNetworkConditionsParams struct { type EmulateNetworkConditionsParams struct {
Offline bool `json:"offline"` // True to emulate internet disconnection. Offline bool `json:"offline"` // True to emulate internet disconnection.
Latency float64 `json:"latency"` // Additional latency (ms). Latency float64 `json:"latency"` // Minimum latency from request sent to response headers received (ms).
DownloadThroughput float64 `json:"downloadThroughput"` // Maximal aggregated download throughput. DownloadThroughput float64 `json:"downloadThroughput"` // Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
UploadThroughput float64 `json:"uploadThroughput"` // Maximal aggregated upload throughput. UploadThroughput float64 `json:"uploadThroughput"` // Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
ConnectionType ConnectionType `json:"connectionType,omitempty"` // Connection type if known. ConnectionType ConnectionType `json:"connectionType,omitempty"` // Connection type if known.
} }
@ -572,9 +572,9 @@ type EmulateNetworkConditionsParams struct {
// //
// parameters: // parameters:
// offline - True to emulate internet disconnection. // offline - True to emulate internet disconnection.
// latency - Additional latency (ms). // latency - Minimum latency from request sent to response headers received (ms).
// downloadThroughput - Maximal aggregated download throughput. // downloadThroughput - Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
// uploadThroughput - Maximal aggregated upload throughput. // uploadThroughput - Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
func EmulateNetworkConditions(offline bool, latency float64, downloadThroughput float64, uploadThroughput float64) *EmulateNetworkConditionsParams { func EmulateNetworkConditions(offline bool, latency float64, downloadThroughput float64, uploadThroughput float64) *EmulateNetworkConditionsParams {
return &EmulateNetworkConditionsParams{ return &EmulateNetworkConditionsParams{
Offline: offline, Offline: offline,

View File

@ -105,7 +105,8 @@ func (t *ErrorReason) UnmarshalJSON(buf []byte) error {
// Headers request / response headers as keys / values of JSON object. // Headers request / response headers as keys / values of JSON object.
type Headers map[string]interface{} type Headers map[string]interface{}
// ConnectionType loading priority of a resource request. // ConnectionType the underlying connection technology that the browser is
// supposedly using.
type ConnectionType string type ConnectionType string
// String returns the ConnectionType as string value. // String returns the ConnectionType as string value.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -220,3 +220,62 @@ func (p *GetBestEffortCoverageParams) Do(ctxt context.Context, h cdp.Handler) (r
return res.Result, nil return res.Result, nil
} }
// StartTypeProfileParams enable type profile.
type StartTypeProfileParams struct{}
// StartTypeProfile enable type profile.
func StartTypeProfile() *StartTypeProfileParams {
return &StartTypeProfileParams{}
}
// Do executes Profiler.startTypeProfile against the provided context and
// target handler.
func (p *StartTypeProfileParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandProfilerStartTypeProfile, nil, nil)
}
// StopTypeProfileParams disable type profile. Disabling releases type
// profile data collected so far.
type StopTypeProfileParams struct{}
// StopTypeProfile disable type profile. Disabling releases type profile data
// collected so far.
func StopTypeProfile() *StopTypeProfileParams {
return &StopTypeProfileParams{}
}
// Do executes Profiler.stopTypeProfile against the provided context and
// target handler.
func (p *StopTypeProfileParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandProfilerStopTypeProfile, nil, nil)
}
// TakeTypeProfileParams collect type profile.
type TakeTypeProfileParams struct{}
// TakeTypeProfile collect type profile.
func TakeTypeProfile() *TakeTypeProfileParams {
return &TakeTypeProfileParams{}
}
// TakeTypeProfileReturns return values.
type TakeTypeProfileReturns struct {
Result []*ScriptTypeProfile `json:"result,omitempty"` // Type profile for all scripts since startTypeProfile() was turned on.
}
// Do executes Profiler.takeTypeProfile against the provided context and
// target handler.
//
// returns:
// result - Type profile for all scripts since startTypeProfile() was turned on.
func (p *TakeTypeProfileParams) Do(ctxt context.Context, h cdp.Handler) (result []*ScriptTypeProfile, err error) {
// execute
var res TakeTypeProfileReturns
err = h.Execute(ctxt, cdp.CommandProfilerTakeTypeProfile, nil, &res)
if err != nil {
return nil, err
}
return res.Result, nil
}

View File

@ -51,3 +51,22 @@ type ScriptCoverage struct {
URL string `json:"url"` // JavaScript script name or url. URL string `json:"url"` // JavaScript script name or url.
Functions []*FunctionCoverage `json:"functions"` // Functions contained in the script that has coverage data. Functions []*FunctionCoverage `json:"functions"` // Functions contained in the script that has coverage data.
} }
// TypeObject describes a type collected during runtime.
type TypeObject struct {
Name string `json:"name"` // Name of a type collected with type profiling.
}
// TypeProfileEntry source offset and types for a parameter or return value.
type TypeProfileEntry struct {
Offset int64 `json:"offset"` // Source offset of the parameter or end of function for return values.
Types []*TypeObject `json:"types"` // The types for this parameter or return value.
}
// ScriptTypeProfile type profile data collected during runtime for a
// JavaScript script.
type ScriptTypeProfile struct {
ScriptID runtime.ScriptID `json:"scriptId"` // JavaScript script id.
URL string `json:"url"` // JavaScript script name or url.
Entries []*TypeProfileEntry `json:"entries"` // Type profile entries for parameters and return values of the functions in the script.
}

View File

@ -390,7 +390,66 @@ func (v *StopWorkerParams) UnmarshalJSON(data []byte) error {
func (v *StopWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *StopWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker3(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker3(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(in *jlexer.Lexer, out *StartWorkerParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(in *jlexer.Lexer, out *StopAllWorkersParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(out *jwriter.Writer, in StopAllWorkersParams) {
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v StopAllWorkersParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v StopAllWorkersParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *StopAllWorkersParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *StopAllWorkersParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(in *jlexer.Lexer, out *StartWorkerParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -421,7 +480,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(in *jlexer.Lexe
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(out *jwriter.Writer, in StartWorkerParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(out *jwriter.Writer, in StartWorkerParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -437,27 +496,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(out *jwriter.Wr
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v StartWorkerParams) MarshalJSON() ([]byte, error) { func (v StartWorkerParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v StartWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { func (v StartWorkerParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *StartWorkerParams) UnmarshalJSON(data []byte) error { func (v *StartWorkerParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *StartWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *StartWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(in *jlexer.Lexer, out *SkipWaitingParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(in *jlexer.Lexer, out *SkipWaitingParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -488,7 +547,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(in *jlexer.Lexe
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(out *jwriter.Writer, in SkipWaitingParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(out *jwriter.Writer, in SkipWaitingParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -504,27 +563,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(out *jwriter.Wr
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v SkipWaitingParams) MarshalJSON() ([]byte, error) { func (v SkipWaitingParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v SkipWaitingParams) MarshalEasyJSON(w *jwriter.Writer) { func (v SkipWaitingParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *SkipWaitingParams) UnmarshalJSON(data []byte) error { func (v *SkipWaitingParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SkipWaitingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *SkipWaitingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(in *jlexer.Lexer, out *SetForceUpdateOnPageLoadParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(in *jlexer.Lexer, out *SetForceUpdateOnPageLoadParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -555,7 +614,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(in *jlexer.Lexe
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(out *jwriter.Writer, in SetForceUpdateOnPageLoadParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(out *jwriter.Writer, in SetForceUpdateOnPageLoadParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -571,27 +630,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(out *jwriter.Wr
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v SetForceUpdateOnPageLoadParams) MarshalJSON() ([]byte, error) { func (v SetForceUpdateOnPageLoadParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetForceUpdateOnPageLoadParams) MarshalEasyJSON(w *jwriter.Writer) { func (v SetForceUpdateOnPageLoadParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *SetForceUpdateOnPageLoadParams) UnmarshalJSON(data []byte) error { func (v *SetForceUpdateOnPageLoadParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetForceUpdateOnPageLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *SetForceUpdateOnPageLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(in *jlexer.Lexer, out *Registration) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(in *jlexer.Lexer, out *Registration) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -626,7 +685,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(in *jlexer.Lexe
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(out *jwriter.Writer, in Registration) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(out *jwriter.Writer, in Registration) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -654,27 +713,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(out *jwriter.Wr
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v Registration) MarshalJSON() ([]byte, error) { func (v Registration) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v Registration) MarshalEasyJSON(w *jwriter.Writer) { func (v Registration) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *Registration) UnmarshalJSON(data []byte) error { func (v *Registration) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *Registration) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *Registration) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(in *jlexer.Lexer, out *InspectWorkerParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(in *jlexer.Lexer, out *InspectWorkerParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -705,7 +764,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(in *jlexer.Lexe
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(out *jwriter.Writer, in InspectWorkerParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(out *jwriter.Writer, in InspectWorkerParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -721,27 +780,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(out *jwriter.Wr
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v InspectWorkerParams) MarshalJSON() ([]byte, error) { func (v InspectWorkerParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v InspectWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { func (v InspectWorkerParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *InspectWorkerParams) UnmarshalJSON(data []byte) error { func (v *InspectWorkerParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *InspectWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *InspectWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(in *jlexer.Lexer, out *EventWorkerVersionUpdated) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(in *jlexer.Lexer, out *EventWorkerVersionUpdated) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -801,7 +860,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(in *jlexer.Lexe
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(out *jwriter.Writer, in EventWorkerVersionUpdated) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(out *jwriter.Writer, in EventWorkerVersionUpdated) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -832,27 +891,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(out *jwriter.Wr
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v EventWorkerVersionUpdated) MarshalJSON() ([]byte, error) { func (v EventWorkerVersionUpdated) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventWorkerVersionUpdated) MarshalEasyJSON(w *jwriter.Writer) { func (v EventWorkerVersionUpdated) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *EventWorkerVersionUpdated) UnmarshalJSON(data []byte) error { func (v *EventWorkerVersionUpdated) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventWorkerVersionUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *EventWorkerVersionUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(in *jlexer.Lexer, out *EventWorkerRegistrationUpdated) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(in *jlexer.Lexer, out *EventWorkerRegistrationUpdated) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -912,7 +971,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(in *jlexer.Lex
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(out *jwriter.Writer, in EventWorkerRegistrationUpdated) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(out *jwriter.Writer, in EventWorkerRegistrationUpdated) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -943,27 +1002,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(out *jwriter.W
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v EventWorkerRegistrationUpdated) MarshalJSON() ([]byte, error) { func (v EventWorkerRegistrationUpdated) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventWorkerRegistrationUpdated) MarshalEasyJSON(w *jwriter.Writer) { func (v EventWorkerRegistrationUpdated) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *EventWorkerRegistrationUpdated) UnmarshalJSON(data []byte) error { func (v *EventWorkerRegistrationUpdated) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventWorkerRegistrationUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *EventWorkerRegistrationUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(in *jlexer.Lexer, out *EventWorkerErrorReported) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(in *jlexer.Lexer, out *EventWorkerErrorReported) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -1002,7 +1061,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(in *jlexer.Lex
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(out *jwriter.Writer, in EventWorkerErrorReported) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(out *jwriter.Writer, in EventWorkerErrorReported) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -1022,27 +1081,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(out *jwriter.W
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v EventWorkerErrorReported) MarshalJSON() ([]byte, error) { func (v EventWorkerErrorReported) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventWorkerErrorReported) MarshalEasyJSON(w *jwriter.Writer) { func (v EventWorkerErrorReported) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *EventWorkerErrorReported) UnmarshalJSON(data []byte) error { func (v *EventWorkerErrorReported) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventWorkerErrorReported) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *EventWorkerErrorReported) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(in *jlexer.Lexer, out *ErrorMessage) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(in *jlexer.Lexer, out *ErrorMessage) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -1083,7 +1142,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(in *jlexer.Lex
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(out *jwriter.Writer, in ErrorMessage) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(out *jwriter.Writer, in ErrorMessage) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -1129,27 +1188,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(out *jwriter.W
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v ErrorMessage) MarshalJSON() ([]byte, error) { func (v ErrorMessage) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v ErrorMessage) MarshalEasyJSON(w *jwriter.Writer) { func (v ErrorMessage) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *ErrorMessage) UnmarshalJSON(data []byte) error { func (v *ErrorMessage) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ErrorMessage) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *ErrorMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(in *jlexer.Lexer, out *EnableParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(in *jlexer.Lexer, out *EnableParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -1178,7 +1237,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(in *jlexer.Lex
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(out *jwriter.Writer, in EnableParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(out *jwriter.Writer, in EnableParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -1188,27 +1247,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(out *jwriter.W
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v EnableParams) MarshalJSON() ([]byte, error) { func (v EnableParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *EnableParams) UnmarshalJSON(data []byte) error { func (v *EnableParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(in *jlexer.Lexer, out *DispatchSyncEventParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(in *jlexer.Lexer, out *DispatchSyncEventParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -1245,7 +1304,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(in *jlexer.Lex
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(out *jwriter.Writer, in DispatchSyncEventParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(out *jwriter.Writer, in DispatchSyncEventParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -1279,27 +1338,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(out *jwriter.W
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v DispatchSyncEventParams) MarshalJSON() ([]byte, error) { func (v DispatchSyncEventParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v DispatchSyncEventParams) MarshalEasyJSON(w *jwriter.Writer) { func (v DispatchSyncEventParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *DispatchSyncEventParams) UnmarshalJSON(data []byte) error { func (v *DispatchSyncEventParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DispatchSyncEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *DispatchSyncEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(in *jlexer.Lexer, out *DisableParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(in *jlexer.Lexer, out *DisableParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -1328,7 +1387,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(in *jlexer.Lex
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(out *jwriter.Writer, in DisableParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(out *jwriter.Writer, in DisableParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -1338,27 +1397,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(out *jwriter.W
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v DisableParams) MarshalJSON() ([]byte, error) { func (v DisableParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker15(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *DisableParams) UnmarshalJSON(data []byte) error { func (v *DisableParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(l, v)
} }
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(in *jlexer.Lexer, out *DeliverPushMessageParams) { func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker17(in *jlexer.Lexer, out *DeliverPushMessageParams) {
isTopLevel := in.IsStart() isTopLevel := in.IsStart()
if in.IsNull() { if in.IsNull() {
if isTopLevel { if isTopLevel {
@ -1393,7 +1452,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(in *jlexer.Lex
in.Consumed() in.Consumed()
} }
} }
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(out *jwriter.Writer, in DeliverPushMessageParams) { func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker17(out *jwriter.Writer, in DeliverPushMessageParams) {
out.RawByte('{') out.RawByte('{')
first := true first := true
_ = first _ = first
@ -1421,23 +1480,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(out *jwriter.W
// MarshalJSON supports json.Marshaler interface // MarshalJSON supports json.Marshaler interface
func (v DeliverPushMessageParams) MarshalJSON() ([]byte, error) { func (v DeliverPushMessageParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{} w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(&w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker17(&w, v)
return w.Buffer.BuildBytes(), w.Error return w.Buffer.BuildBytes(), w.Error
} }
// MarshalEasyJSON supports easyjson.Marshaler interface // MarshalEasyJSON supports easyjson.Marshaler interface
func (v DeliverPushMessageParams) MarshalEasyJSON(w *jwriter.Writer) { func (v DeliverPushMessageParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(w, v) easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker17(w, v)
} }
// UnmarshalJSON supports json.Unmarshaler interface // UnmarshalJSON supports json.Unmarshaler interface
func (v *DeliverPushMessageParams) UnmarshalJSON(data []byte) error { func (v *DeliverPushMessageParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data} r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(&r, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker17(&r, v)
return r.Error() return r.Error()
} }
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DeliverPushMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { func (v *DeliverPushMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(l, v) easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker17(l, v)
} }

View File

@ -145,6 +145,20 @@ func (p *StopWorkerParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandServiceWorkerStopWorker, p, nil) return h.Execute(ctxt, cdp.CommandServiceWorkerStopWorker, p, nil)
} }
// StopAllWorkersParams [no description].
type StopAllWorkersParams struct{}
// StopAllWorkers [no description].
func StopAllWorkers() *StopAllWorkersParams {
return &StopAllWorkersParams{}
}
// Do executes ServiceWorker.stopAllWorkers against the provided context and
// target handler.
func (p *StopAllWorkersParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandServiceWorkerStopAllWorkers, nil, nil)
}
// InspectWorkerParams [no description]. // InspectWorkerParams [no description].
type InspectWorkerParams struct { type InspectWorkerParams struct {
VersionID string `json:"versionId"` VersionID string `json:"versionId"`

View File

@ -936,31 +936,31 @@
"name": "scale", "name": "scale",
"type": "number", "type": "number",
"optional": true, "optional": true,
"description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." "description": "Scale to apply to resulting view image."
}, },
{ {
"name": "screenWidth", "name": "screenWidth",
"type": "integer", "type": "integer",
"optional": true, "optional": true,
"description": "Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000)."
}, },
{ {
"name": "screenHeight", "name": "screenHeight",
"type": "integer", "type": "integer",
"optional": true, "optional": true,
"description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000)."
}, },
{ {
"name": "positionX", "name": "positionX",
"type": "integer", "type": "integer",
"optional": true, "optional": true,
"description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000)."
}, },
{ {
"name": "positionY", "name": "positionY",
"type": "integer", "type": "integer",
"optional": true, "optional": true,
"description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000)."
}, },
{ {
"name": "dontSetVisibleSize", "name": "dontSetVisibleSize",
@ -2070,35 +2070,35 @@
"name": "scale", "name": "scale",
"type": "number", "type": "number",
"optional": true, "optional": true,
"description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." "description": "Scale to apply to resulting view image."
}, },
{ {
"name": "screenWidth", "name": "screenWidth",
"type": "integer", "type": "integer",
"optional": true, "optional": true,
"experimental": true, "experimental": true,
"description": "Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000)."
}, },
{ {
"name": "screenHeight", "name": "screenHeight",
"type": "integer", "type": "integer",
"optional": true, "optional": true,
"experimental": true, "experimental": true,
"description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000)."
}, },
{ {
"name": "positionX", "name": "positionX",
"type": "integer", "type": "integer",
"optional": true, "optional": true,
"experimental": true, "experimental": true,
"description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000)."
}, },
{ {
"name": "positionY", "name": "positionY",
"type": "integer", "type": "integer",
"optional": true, "optional": true,
"experimental": true, "experimental": true,
"description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000)."
}, },
{ {
"name": "dontSetVisibleSize", "name": "dontSetVisibleSize",
@ -2286,6 +2286,18 @@
], ],
"experimental": true "experimental": true
}, },
{
"name": "setNavigatorOverrides",
"description": "Overrides value returned by the javascript navigator object.",
"parameters": [
{
"name": "platform",
"type": "string",
"description": "The platform navigator.platform should return."
}
],
"experimental": true
},
{ {
"name": "setDefaultBackgroundColorOverride", "name": "setDefaultBackgroundColorOverride",
"description": "Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.", "description": "Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.",
@ -2667,7 +2679,7 @@
"wimax", "wimax",
"other" "other"
], ],
"description": "Loading priority of a resource request." "description": "The underlying connection technology that the browser is supposedly using."
}, },
{ {
"id": "CookieSameSite", "id": "CookieSameSite",
@ -3719,17 +3731,17 @@
{ {
"name": "latency", "name": "latency",
"type": "number", "type": "number",
"description": "Additional latency (ms)." "description": "Minimum latency from request sent to response headers received (ms)."
}, },
{ {
"name": "downloadThroughput", "name": "downloadThroughput",
"type": "number", "type": "number",
"description": "Maximal aggregated download throughput." "description": "Maximal aggregated download throughput (bytes/sec). -1 disables download throttling."
}, },
{ {
"name": "uploadThroughput", "name": "uploadThroughput",
"type": "number", "type": "number",
"description": "Maximal aggregated upload throughput." "description": "Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling."
}, },
{ {
"name": "connectionType", "name": "connectionType",
@ -9142,6 +9154,9 @@
} }
] ]
}, },
{
"name": "stopAllWorkers"
},
{ {
"name": "inspectWorker", "name": "inspectWorker",
"parameters": [ "parameters": [
@ -9245,25 +9260,25 @@
"properties": [ "properties": [
{ {
"name": "x", "name": "x",
"type": "integer", "type": "number",
"description": "X coordinate of the event relative to the main frame's viewport in CSS pixels." "description": "X coordinate of the event relative to the main frame's viewport in CSS pixels."
}, },
{ {
"name": "y", "name": "y",
"type": "integer", "type": "number",
"description": "Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport." "description": "Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."
}, },
{ {
"name": "radiusX", "name": "radiusX",
"type": "integer", "type": "number",
"optional": true, "optional": true,
"description": "X radius of the touch area (default: 1)." "description": "X radius of the touch area (default: 1.0)."
}, },
{ {
"name": "radiusY", "name": "radiusY",
"type": "integer", "type": "number",
"optional": true, "optional": true,
"description": "Y radius of the touch area (default: 1)." "description": "Y radius of the touch area (default: 1.0)."
}, },
{ {
"name": "rotationAngle", "name": "rotationAngle",
@ -12950,6 +12965,11 @@
"$ref": "Location", "$ref": "Location",
"description": "Location in the source code." "description": "Location in the source code."
}, },
{
"name": "url",
"type": "string",
"description": "JavaScript script name or url."
},
{ {
"name": "scopeChain", "name": "scopeChain",
"type": "array", "type": "array",
@ -14101,6 +14121,66 @@
} }
], ],
"experimental": true "experimental": true
},
{
"id": "TypeObject",
"type": "object",
"description": "Describes a type collected during runtime.",
"properties": [
{
"name": "name",
"type": "string",
"description": "Name of a type collected with type profiling."
}
],
"experimental": true
},
{
"id": "TypeProfileEntry",
"type": "object",
"description": "Source offset and types for a parameter or return value.",
"properties": [
{
"name": "offset",
"type": "integer",
"description": "Source offset of the parameter or end of function for return values."
},
{
"name": "types",
"type": "array",
"items": {
"$ref": "TypeObject"
},
"description": "The types for this parameter or return value."
}
],
"experimental": true
},
{
"id": "ScriptTypeProfile",
"type": "object",
"description": "Type profile data collected during runtime for a JavaScript script.",
"properties": [
{
"name": "scriptId",
"$ref": "Runtime.ScriptId",
"description": "JavaScript script id."
},
{
"name": "url",
"type": "string",
"description": "JavaScript script name or url."
},
{
"name": "entries",
"type": "array",
"items": {
"$ref": "TypeProfileEntry"
},
"description": "Type profile entries for parameters and return values of the functions in the script."
}
],
"experimental": true
} }
], ],
"commands": [ "commands": [
@ -14187,6 +14267,31 @@
], ],
"description": "Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.", "description": "Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.",
"experimental": true "experimental": true
},
{
"name": "startTypeProfile",
"description": "Enable type profile.",
"experimental": true
},
{
"name": "stopTypeProfile",
"description": "Disable type profile. Disabling releases type profile data collected so far.",
"experimental": true
},
{
"name": "takeTypeProfile",
"returns": [
{
"name": "result",
"type": "array",
"items": {
"$ref": "ScriptTypeProfile"
},
"description": "Type profile for all scripts since startTypeProfile() was turned on."
}
],
"description": "Collect type profile.",
"experimental": true
} }
], ],
"events": [ "events": [