Updating to latest protocol.json
This commit is contained in:
parent
5c732ec7c4
commit
9282791225
|
@ -79,6 +79,7 @@ const (
|
|||
CommandPageRemoveScriptToEvaluateOnNewDocument MethodType = "Page.removeScriptToEvaluateOnNewDocument"
|
||||
CommandPageSetAutoAttachToCreatedPages MethodType = "Page.setAutoAttachToCreatedPages"
|
||||
CommandPageReload MethodType = "Page.reload"
|
||||
CommandPageSetAdBlockingEnabled MethodType = "Page.setAdBlockingEnabled"
|
||||
CommandPageNavigate MethodType = "Page.navigate"
|
||||
CommandPageStopLoading MethodType = "Page.stopLoading"
|
||||
CommandPageGetNavigationHistory MethodType = "Page.getNavigationHistory"
|
||||
|
@ -99,8 +100,10 @@ const (
|
|||
CommandPageProcessNavigation MethodType = "Page.processNavigation"
|
||||
CommandPageGetLayoutMetrics MethodType = "Page.getLayoutMetrics"
|
||||
CommandPageCreateIsolatedWorld MethodType = "Page.createIsolatedWorld"
|
||||
CommandPageBringToFront MethodType = "Page.bringToFront"
|
||||
EventOverlayNodeHighlightRequested MethodType = "Overlay.nodeHighlightRequested"
|
||||
EventOverlayInspectNodeRequested MethodType = "Overlay.inspectNodeRequested"
|
||||
EventOverlayScreenshotRequested MethodType = "Overlay.screenshotRequested"
|
||||
CommandOverlayEnable MethodType = "Overlay.enable"
|
||||
CommandOverlayDisable MethodType = "Overlay.disable"
|
||||
CommandOverlaySetShowPaintRects MethodType = "Overlay.setShowPaintRects"
|
||||
|
@ -544,6 +547,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
*t = CommandPageSetAutoAttachToCreatedPages
|
||||
case CommandPageReload:
|
||||
*t = CommandPageReload
|
||||
case CommandPageSetAdBlockingEnabled:
|
||||
*t = CommandPageSetAdBlockingEnabled
|
||||
case CommandPageNavigate:
|
||||
*t = CommandPageNavigate
|
||||
case CommandPageStopLoading:
|
||||
|
@ -584,10 +589,14 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
*t = CommandPageGetLayoutMetrics
|
||||
case CommandPageCreateIsolatedWorld:
|
||||
*t = CommandPageCreateIsolatedWorld
|
||||
case CommandPageBringToFront:
|
||||
*t = CommandPageBringToFront
|
||||
case EventOverlayNodeHighlightRequested:
|
||||
*t = EventOverlayNodeHighlightRequested
|
||||
case EventOverlayInspectNodeRequested:
|
||||
*t = EventOverlayInspectNodeRequested
|
||||
case EventOverlayScreenshotRequested:
|
||||
*t = EventOverlayScreenshotRequested
|
||||
case CommandOverlayEnable:
|
||||
*t = CommandOverlayEnable
|
||||
case CommandOverlayDisable:
|
||||
|
|
|
@ -89,6 +89,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
|||
case cdp.CommandPageReload:
|
||||
return emptyVal, nil
|
||||
|
||||
case cdp.CommandPageSetAdBlockingEnabled:
|
||||
return emptyVal, nil
|
||||
|
||||
case cdp.CommandPageNavigate:
|
||||
v = new(page.NavigateReturns)
|
||||
|
||||
|
@ -149,6 +152,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
|||
case cdp.CommandPageCreateIsolatedWorld:
|
||||
v = new(page.CreateIsolatedWorldReturns)
|
||||
|
||||
case cdp.CommandPageBringToFront:
|
||||
return emptyVal, nil
|
||||
|
||||
case cdp.EventPageDomContentEventFired:
|
||||
v = new(page.EventDomContentEventFired)
|
||||
|
||||
|
@ -254,6 +260,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
|||
case cdp.EventOverlayInspectNodeRequested:
|
||||
v = new(overlay.EventInspectNodeRequested)
|
||||
|
||||
case cdp.EventOverlayScreenshotRequested:
|
||||
v = new(overlay.EventScreenshotRequested)
|
||||
|
||||
case cdp.CommandEmulationSetDeviceMetricsOverride:
|
||||
return emptyVal, nil
|
||||
|
||||
|
|
|
@ -173,6 +173,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo2(in *jlexer.Lexer, out *Rea
|
|||
continue
|
||||
}
|
||||
switch key {
|
||||
case "base64Encoded":
|
||||
out.Base64encoded = bool(in.Bool())
|
||||
case "data":
|
||||
out.Data = string(in.String())
|
||||
case "eof":
|
||||
|
@ -191,6 +193,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo2(out *jwriter.Writer, in Re
|
|||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
if in.Base64encoded {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
}
|
||||
first = false
|
||||
out.RawString("\"base64Encoded\":")
|
||||
out.Bool(bool(in.Base64encoded))
|
||||
}
|
||||
if in.Data != "" {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
|
|
|
@ -48,8 +48,9 @@ func (p ReadParams) WithSize(size int64) *ReadParams {
|
|||
|
||||
// ReadReturns return values.
|
||||
type ReadReturns struct {
|
||||
Data string `json:"data,omitempty"` // Data that were read.
|
||||
EOF bool `json:"eof,omitempty"` // Set if the end-of-file condition occurred while reading.
|
||||
Base64encoded bool `json:"base64Encoded,omitempty"` // Set if the data is base64-encoded
|
||||
Data string `json:"data,omitempty"` // Data that were read.
|
||||
EOF bool `json:"eof,omitempty"` // Set if the end-of-file condition occurred while reading.
|
||||
}
|
||||
|
||||
// Do executes IO.read against the provided context and
|
||||
|
|
|
@ -2,7 +2,8 @@ package io
|
|||
|
||||
// Code generated by chromedp-gen. DO NOT EDIT.
|
||||
|
||||
// StreamHandle [no description].
|
||||
// StreamHandle this is either obtained from another method or specified as
|
||||
// blob:<uuid> where <uuid> is an UUID of a Blob.
|
||||
type StreamHandle string
|
||||
|
||||
// String returns the StreamHandle as string value.
|
||||
|
|
|
@ -18,7 +18,126 @@ var (
|
|||
_ easyjson.Marshaler
|
||||
)
|
||||
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree(in *jlexer.Lexer, out *SnapshotCommandLogReturns) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree(in *jlexer.Lexer, out *StickyPositionConstraint) {
|
||||
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 "stickyBoxRect":
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
out.StickyBoxRect = nil
|
||||
} else {
|
||||
if out.StickyBoxRect == nil {
|
||||
out.StickyBoxRect = new(dom.Rect)
|
||||
}
|
||||
(*out.StickyBoxRect).UnmarshalEasyJSON(in)
|
||||
}
|
||||
case "containingBlockRect":
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
out.ContainingBlockRect = nil
|
||||
} else {
|
||||
if out.ContainingBlockRect == nil {
|
||||
out.ContainingBlockRect = new(dom.Rect)
|
||||
}
|
||||
(*out.ContainingBlockRect).UnmarshalEasyJSON(in)
|
||||
}
|
||||
case "nearestLayerShiftingStickyBox":
|
||||
out.NearestLayerShiftingStickyBox = LayerID(in.String())
|
||||
case "nearestLayerShiftingContainingBlock":
|
||||
out.NearestLayerShiftingContainingBlock = LayerID(in.String())
|
||||
default:
|
||||
in.SkipRecursive()
|
||||
}
|
||||
in.WantComma()
|
||||
}
|
||||
in.Delim('}')
|
||||
if isTopLevel {
|
||||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree(out *jwriter.Writer, in StickyPositionConstraint) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
}
|
||||
first = false
|
||||
out.RawString("\"stickyBoxRect\":")
|
||||
if in.StickyBoxRect == nil {
|
||||
out.RawString("null")
|
||||
} else {
|
||||
(*in.StickyBoxRect).MarshalEasyJSON(out)
|
||||
}
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
}
|
||||
first = false
|
||||
out.RawString("\"containingBlockRect\":")
|
||||
if in.ContainingBlockRect == nil {
|
||||
out.RawString("null")
|
||||
} else {
|
||||
(*in.ContainingBlockRect).MarshalEasyJSON(out)
|
||||
}
|
||||
if in.NearestLayerShiftingStickyBox != "" {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
}
|
||||
first = false
|
||||
out.RawString("\"nearestLayerShiftingStickyBox\":")
|
||||
out.String(string(in.NearestLayerShiftingStickyBox))
|
||||
}
|
||||
if in.NearestLayerShiftingContainingBlock != "" {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
}
|
||||
first = false
|
||||
out.RawString("\"nearestLayerShiftingContainingBlock\":")
|
||||
out.String(string(in.NearestLayerShiftingContainingBlock))
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v StickyPositionConstraint) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v StickyPositionConstraint) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *StickyPositionConstraint) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *StickyPositionConstraint) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree1(in *jlexer.Lexer, out *SnapshotCommandLogReturns) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -70,7 +189,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree(in *jlexer.Lexer, ou
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree(out *jwriter.Writer, in SnapshotCommandLogReturns) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree1(out *jwriter.Writer, in SnapshotCommandLogReturns) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -99,27 +218,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree(out *jwriter.Writer,
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v SnapshotCommandLogReturns) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree1(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v SnapshotCommandLogReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree1(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *SnapshotCommandLogReturns) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree1(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *SnapshotCommandLogReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree1(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree1(in *jlexer.Lexer, out *SnapshotCommandLogParams) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(in *jlexer.Lexer, out *SnapshotCommandLogParams) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -150,7 +269,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree1(in *jlexer.Lexer, o
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree1(out *jwriter.Writer, in SnapshotCommandLogParams) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(out *jwriter.Writer, in SnapshotCommandLogParams) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -166,27 +285,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree1(out *jwriter.Writer
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v SnapshotCommandLogParams) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree1(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v SnapshotCommandLogParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree1(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *SnapshotCommandLogParams) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree1(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *SnapshotCommandLogParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree1(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(in *jlexer.Lexer, out *ScrollRect) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(in *jlexer.Lexer, out *ScrollRect) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -227,7 +346,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(in *jlexer.Lexer, o
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(out *jwriter.Writer, in ScrollRect) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(out *jwriter.Writer, in ScrollRect) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -253,27 +372,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(out *jwriter.Writer
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v ScrollRect) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v ScrollRect) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *ScrollRect) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *ScrollRect) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(in *jlexer.Lexer, out *ReplaySnapshotReturns) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(in *jlexer.Lexer, out *ReplaySnapshotReturns) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -304,7 +423,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(in *jlexer.Lexer, o
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(out *jwriter.Writer, in ReplaySnapshotReturns) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(out *jwriter.Writer, in ReplaySnapshotReturns) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -322,27 +441,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(out *jwriter.Writer
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v ReplaySnapshotReturns) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v ReplaySnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *ReplaySnapshotReturns) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *ReplaySnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(in *jlexer.Lexer, out *ReplaySnapshotParams) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(in *jlexer.Lexer, out *ReplaySnapshotParams) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -379,7 +498,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(in *jlexer.Lexer, o
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(out *jwriter.Writer, in ReplaySnapshotParams) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(out *jwriter.Writer, in ReplaySnapshotParams) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -419,27 +538,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(out *jwriter.Writer
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v ReplaySnapshotParams) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v ReplaySnapshotParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *ReplaySnapshotParams) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *ReplaySnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(in *jlexer.Lexer, out *ReleaseSnapshotParams) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree6(in *jlexer.Lexer, out *ReleaseSnapshotParams) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -470,7 +589,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(in *jlexer.Lexer, o
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(out *jwriter.Writer, in ReleaseSnapshotParams) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(out *jwriter.Writer, in ReleaseSnapshotParams) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -486,27 +605,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(out *jwriter.Writer
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v ReleaseSnapshotParams) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v ReleaseSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *ReleaseSnapshotParams) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree6(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *ReleaseSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree6(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree6(in *jlexer.Lexer, out *ProfileSnapshotReturns) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree7(in *jlexer.Lexer, out *ProfileSnapshotReturns) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -579,7 +698,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree6(in *jlexer.Lexer, o
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(out *jwriter.Writer, in ProfileSnapshotReturns) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree7(out *jwriter.Writer, in ProfileSnapshotReturns) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -619,27 +738,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(out *jwriter.Writer
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v ProfileSnapshotReturns) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree7(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v ProfileSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree7(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *ProfileSnapshotReturns) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree6(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree7(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *ProfileSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree6(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree7(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree7(in *jlexer.Lexer, out *ProfileSnapshotParams) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree8(in *jlexer.Lexer, out *ProfileSnapshotParams) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -684,7 +803,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree7(in *jlexer.Lexer, o
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree7(out *jwriter.Writer, in ProfileSnapshotParams) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree8(out *jwriter.Writer, in ProfileSnapshotParams) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -728,27 +847,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree7(out *jwriter.Writer
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v ProfileSnapshotParams) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree7(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree8(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v ProfileSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree7(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree8(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *ProfileSnapshotParams) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree7(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree8(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *ProfileSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree7(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree8(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree8(in *jlexer.Lexer, out *PictureTile) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree9(in *jlexer.Lexer, out *PictureTile) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -783,7 +902,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree8(in *jlexer.Lexer, o
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree8(out *jwriter.Writer, in PictureTile) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree9(out *jwriter.Writer, in PictureTile) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -811,27 +930,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree8(out *jwriter.Writer
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v PictureTile) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree8(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree9(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v PictureTile) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree8(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree9(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *PictureTile) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree8(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree9(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *PictureTile) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree8(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree9(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree9(in *jlexer.Lexer, out *MakeSnapshotReturns) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree10(in *jlexer.Lexer, out *MakeSnapshotReturns) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -862,7 +981,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree9(in *jlexer.Lexer, o
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree9(out *jwriter.Writer, in MakeSnapshotReturns) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree10(out *jwriter.Writer, in MakeSnapshotReturns) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -880,27 +999,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree9(out *jwriter.Writer
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v MakeSnapshotReturns) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree9(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree10(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v MakeSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree9(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree10(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *MakeSnapshotReturns) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree9(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree10(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *MakeSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree9(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree10(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree10(in *jlexer.Lexer, out *MakeSnapshotParams) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(in *jlexer.Lexer, out *MakeSnapshotParams) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -931,7 +1050,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree10(in *jlexer.Lexer,
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree10(out *jwriter.Writer, in MakeSnapshotParams) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(out *jwriter.Writer, in MakeSnapshotParams) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -947,27 +1066,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree10(out *jwriter.Write
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v MakeSnapshotParams) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree10(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v MakeSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree10(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *MakeSnapshotParams) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree10(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *MakeSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree10(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(in *jlexer.Lexer, out *LoadSnapshotReturns) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(in *jlexer.Lexer, out *LoadSnapshotReturns) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -998,7 +1117,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(in *jlexer.Lexer,
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(out *jwriter.Writer, in LoadSnapshotReturns) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(out *jwriter.Writer, in LoadSnapshotReturns) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -1016,27 +1135,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(out *jwriter.Write
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v LoadSnapshotReturns) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v LoadSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *LoadSnapshotReturns) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *LoadSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(in *jlexer.Lexer, out *LoadSnapshotParams) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree13(in *jlexer.Lexer, out *LoadSnapshotParams) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -1096,7 +1215,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(in *jlexer.Lexer,
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(out *jwriter.Writer, in LoadSnapshotParams) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree13(out *jwriter.Writer, in LoadSnapshotParams) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -1127,27 +1246,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(out *jwriter.Write
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v LoadSnapshotParams) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree13(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v LoadSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree13(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *LoadSnapshotParams) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree13(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *LoadSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree13(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree13(in *jlexer.Lexer, out *Layer) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree14(in *jlexer.Lexer, out *Layer) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -1246,6 +1365,16 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree13(in *jlexer.Lexer,
|
|||
}
|
||||
in.Delim(']')
|
||||
}
|
||||
case "stickyPositionConstraint":
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
out.StickyPositionConstraint = nil
|
||||
} else {
|
||||
if out.StickyPositionConstraint == nil {
|
||||
out.StickyPositionConstraint = new(StickyPositionConstraint)
|
||||
}
|
||||
(*out.StickyPositionConstraint).UnmarshalEasyJSON(in)
|
||||
}
|
||||
default:
|
||||
in.SkipRecursive()
|
||||
}
|
||||
|
@ -1256,7 +1385,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree13(in *jlexer.Lexer,
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree13(out *jwriter.Writer, in Layer) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(out *jwriter.Writer, in Layer) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -1392,33 +1521,45 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree13(out *jwriter.Write
|
|||
out.RawByte(']')
|
||||
}
|
||||
}
|
||||
if in.StickyPositionConstraint != nil {
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
}
|
||||
first = false
|
||||
out.RawString("\"stickyPositionConstraint\":")
|
||||
if in.StickyPositionConstraint == nil {
|
||||
out.RawString("null")
|
||||
} else {
|
||||
(*in.StickyPositionConstraint).MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v Layer) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree13(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v Layer) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree13(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *Layer) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree13(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree14(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *Layer) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree13(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree14(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree14(in *jlexer.Lexer, out *EventLayerTreeDidChange) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree15(in *jlexer.Lexer, out *EventLayerTreeDidChange) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -1478,7 +1619,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree14(in *jlexer.Lexer,
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(out *jwriter.Writer, in EventLayerTreeDidChange) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree15(out *jwriter.Writer, in EventLayerTreeDidChange) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -1511,27 +1652,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(out *jwriter.Write
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v EventLayerTreeDidChange) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree15(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v EventLayerTreeDidChange) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree15(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *EventLayerTreeDidChange) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree14(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree15(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *EventLayerTreeDidChange) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree14(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree15(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree15(in *jlexer.Lexer, out *EventLayerPainted) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(in *jlexer.Lexer, out *EventLayerPainted) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -1572,7 +1713,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree15(in *jlexer.Lexer,
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree15(out *jwriter.Writer, in EventLayerPainted) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(out *jwriter.Writer, in EventLayerPainted) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -1598,27 +1739,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree15(out *jwriter.Write
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v EventLayerPainted) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree15(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v EventLayerPainted) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree15(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *EventLayerPainted) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree15(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *EventLayerPainted) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree15(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(in *jlexer.Lexer, out *EnableParams) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(in *jlexer.Lexer, out *EnableParams) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -1647,7 +1788,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(in *jlexer.Lexer,
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(out *jwriter.Writer, in EnableParams) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree17(out *jwriter.Writer, in EnableParams) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -1657,27 +1798,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(out *jwriter.Write
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v EnableParams) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree17(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree17(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *EnableParams) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(in *jlexer.Lexer, out *DisableParams) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree18(in *jlexer.Lexer, out *DisableParams) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -1706,7 +1847,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(in *jlexer.Lexer,
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree17(out *jwriter.Writer, in DisableParams) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree18(out *jwriter.Writer, in DisableParams) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -1716,27 +1857,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree17(out *jwriter.Write
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v DisableParams) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree17(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree18(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree17(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree18(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *DisableParams) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree18(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree18(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree18(in *jlexer.Lexer, out *CompositingReasonsReturns) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree19(in *jlexer.Lexer, out *CompositingReasonsReturns) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -1788,7 +1929,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree18(in *jlexer.Lexer,
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree18(out *jwriter.Writer, in CompositingReasonsReturns) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree19(out *jwriter.Writer, in CompositingReasonsReturns) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -1817,27 +1958,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree18(out *jwriter.Write
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v CompositingReasonsReturns) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree18(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree19(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v CompositingReasonsReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree18(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree19(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *CompositingReasonsReturns) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree18(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree19(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *CompositingReasonsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree18(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree19(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree19(in *jlexer.Lexer, out *CompositingReasonsParams) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree20(in *jlexer.Lexer, out *CompositingReasonsParams) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -1868,7 +2009,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree19(in *jlexer.Lexer,
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree19(out *jwriter.Writer, in CompositingReasonsParams) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree20(out *jwriter.Writer, in CompositingReasonsParams) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -1884,23 +2025,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree19(out *jwriter.Write
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v CompositingReasonsParams) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree19(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree20(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v CompositingReasonsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree19(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree20(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *CompositingReasonsParams) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree19(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree20(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *CompositingReasonsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree19(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree20(l, v)
|
||||
}
|
||||
|
|
|
@ -34,6 +34,14 @@ type ScrollRect struct {
|
|||
Type ScrollRectType `json:"type"` // Reason for rectangle to force scrolling on the main thread
|
||||
}
|
||||
|
||||
// StickyPositionConstraint sticky position constraints.
|
||||
type StickyPositionConstraint struct {
|
||||
StickyBoxRect *dom.Rect `json:"stickyBoxRect"` // Layout rectangle of the sticky element before being shifted
|
||||
ContainingBlockRect *dom.Rect `json:"containingBlockRect"` // Layout rectangle of the containing block of the sticky element
|
||||
NearestLayerShiftingStickyBox LayerID `json:"nearestLayerShiftingStickyBox,omitempty"` // The nearest sticky layer that shifts the sticky box
|
||||
NearestLayerShiftingContainingBlock LayerID `json:"nearestLayerShiftingContainingBlock,omitempty"` // The nearest sticky layer that shifts the containing block
|
||||
}
|
||||
|
||||
// PictureTile serialized fragment of layer picture along with its offset
|
||||
// within the layer.
|
||||
type PictureTile struct {
|
||||
|
@ -44,21 +52,22 @@ type PictureTile struct {
|
|||
|
||||
// Layer information about a compositing layer.
|
||||
type Layer struct {
|
||||
LayerID LayerID `json:"layerId"` // The unique id for this layer.
|
||||
ParentLayerID LayerID `json:"parentLayerId,omitempty"` // The id of parent (not present for root).
|
||||
BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // The backend id for the node associated with this layer.
|
||||
OffsetX float64 `json:"offsetX"` // Offset from parent layer, X coordinate.
|
||||
OffsetY float64 `json:"offsetY"` // Offset from parent layer, Y coordinate.
|
||||
Width float64 `json:"width"` // Layer width.
|
||||
Height float64 `json:"height"` // Layer height.
|
||||
Transform []float64 `json:"transform,omitempty"` // Transformation matrix for layer, default is identity matrix
|
||||
AnchorX float64 `json:"anchorX,omitempty"` // Transform anchor point X, absent if no transform specified
|
||||
AnchorY float64 `json:"anchorY,omitempty"` // Transform anchor point Y, absent if no transform specified
|
||||
AnchorZ float64 `json:"anchorZ,omitempty"` // Transform anchor point Z, absent if no transform specified
|
||||
PaintCount int64 `json:"paintCount"` // Indicates how many time this layer has painted.
|
||||
DrawsContent bool `json:"drawsContent"` // Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
|
||||
Invisible bool `json:"invisible,omitempty"` // Set if layer is not visible.
|
||||
ScrollRects []*ScrollRect `json:"scrollRects,omitempty"` // Rectangles scrolling on main thread only.
|
||||
LayerID LayerID `json:"layerId"` // The unique id for this layer.
|
||||
ParentLayerID LayerID `json:"parentLayerId,omitempty"` // The id of parent (not present for root).
|
||||
BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // The backend id for the node associated with this layer.
|
||||
OffsetX float64 `json:"offsetX"` // Offset from parent layer, X coordinate.
|
||||
OffsetY float64 `json:"offsetY"` // Offset from parent layer, Y coordinate.
|
||||
Width float64 `json:"width"` // Layer width.
|
||||
Height float64 `json:"height"` // Layer height.
|
||||
Transform []float64 `json:"transform,omitempty"` // Transformation matrix for layer, default is identity matrix
|
||||
AnchorX float64 `json:"anchorX,omitempty"` // Transform anchor point X, absent if no transform specified
|
||||
AnchorY float64 `json:"anchorY,omitempty"` // Transform anchor point Y, absent if no transform specified
|
||||
AnchorZ float64 `json:"anchorZ,omitempty"` // Transform anchor point Z, absent if no transform specified
|
||||
PaintCount int64 `json:"paintCount"` // Indicates how many time this layer has painted.
|
||||
DrawsContent bool `json:"drawsContent"` // Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
|
||||
Invisible bool `json:"invisible,omitempty"` // Set if layer is not visible.
|
||||
ScrollRects []*ScrollRect `json:"scrollRects,omitempty"` // Rectangles scrolling on main thread only.
|
||||
StickyPositionConstraint *StickyPositionConstraint `json:"stickyPositionConstraint,omitempty"` // Sticky position constraint information
|
||||
}
|
||||
|
||||
// PaintProfile array of timings, one per paint step.
|
||||
|
|
|
@ -6,6 +6,7 @@ import (
|
|||
json "encoding/json"
|
||||
cdp "github.com/knq/chromedp/cdp"
|
||||
dom "github.com/knq/chromedp/cdp/dom"
|
||||
page "github.com/knq/chromedp/cdp/page"
|
||||
runtime "github.com/knq/chromedp/cdp/runtime"
|
||||
easyjson "github.com/mailru/easyjson"
|
||||
jlexer "github.com/mailru/easyjson/jlexer"
|
||||
|
@ -1536,7 +1537,86 @@ func (v *GetHighlightObjectForTestParams) UnmarshalJSON(data []byte) error {
|
|||
func (v *GetHighlightObjectForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay15(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay16(in *jlexer.Lexer, out *EventNodeHighlightRequested) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay16(in *jlexer.Lexer, out *EventScreenshotRequested) {
|
||||
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 "viewport":
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
out.Viewport = nil
|
||||
} else {
|
||||
if out.Viewport == nil {
|
||||
out.Viewport = new(page.Viewport)
|
||||
}
|
||||
(*out.Viewport).UnmarshalEasyJSON(in)
|
||||
}
|
||||
default:
|
||||
in.SkipRecursive()
|
||||
}
|
||||
in.WantComma()
|
||||
}
|
||||
in.Delim('}')
|
||||
if isTopLevel {
|
||||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay16(out *jwriter.Writer, in EventScreenshotRequested) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
if !first {
|
||||
out.RawByte(',')
|
||||
}
|
||||
first = false
|
||||
out.RawString("\"viewport\":")
|
||||
if in.Viewport == nil {
|
||||
out.RawString("null")
|
||||
} else {
|
||||
(*in.Viewport).MarshalEasyJSON(out)
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v EventScreenshotRequested) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay16(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v EventScreenshotRequested) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay16(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *EventScreenshotRequested) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay16(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *EventScreenshotRequested) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay16(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay17(in *jlexer.Lexer, out *EventNodeHighlightRequested) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -1567,7 +1647,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay16(in *jlexer.Lexer, ou
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay16(out *jwriter.Writer, in EventNodeHighlightRequested) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay17(out *jwriter.Writer, in EventNodeHighlightRequested) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -1583,27 +1663,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay16(out *jwriter.Writer,
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v EventNodeHighlightRequested) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay16(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay17(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v EventNodeHighlightRequested) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay16(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay17(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *EventNodeHighlightRequested) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay16(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay17(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *EventNodeHighlightRequested) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay16(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay17(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay17(in *jlexer.Lexer, out *EventInspectNodeRequested) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay18(in *jlexer.Lexer, out *EventInspectNodeRequested) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -1634,7 +1714,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay17(in *jlexer.Lexer, ou
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay17(out *jwriter.Writer, in EventInspectNodeRequested) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay18(out *jwriter.Writer, in EventInspectNodeRequested) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -1650,27 +1730,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay17(out *jwriter.Writer,
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v EventInspectNodeRequested) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay17(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay18(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v EventInspectNodeRequested) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay17(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay18(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *EventInspectNodeRequested) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay17(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay18(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *EventInspectNodeRequested) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay17(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay18(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay18(in *jlexer.Lexer, out *EnableParams) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay19(in *jlexer.Lexer, out *EnableParams) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -1699,7 +1779,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay18(in *jlexer.Lexer, ou
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay18(out *jwriter.Writer, in EnableParams) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay19(out *jwriter.Writer, in EnableParams) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -1709,27 +1789,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay18(out *jwriter.Writer,
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v EnableParams) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay18(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay19(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay18(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay19(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *EnableParams) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay18(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay19(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay18(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay19(l, v)
|
||||
}
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay19(in *jlexer.Lexer, out *DisableParams) {
|
||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay20(in *jlexer.Lexer, out *DisableParams) {
|
||||
isTopLevel := in.IsStart()
|
||||
if in.IsNull() {
|
||||
if isTopLevel {
|
||||
|
@ -1758,7 +1838,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay19(in *jlexer.Lexer, ou
|
|||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay19(out *jwriter.Writer, in DisableParams) {
|
||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay20(out *jwriter.Writer, in DisableParams) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
|
@ -1768,23 +1848,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay19(out *jwriter.Writer,
|
|||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v DisableParams) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay19(&w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay20(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay19(w, v)
|
||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay20(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *DisableParams) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay19(&r, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay20(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay19(l, v)
|
||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay20(l, v)
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ package overlay
|
|||
|
||||
import (
|
||||
cdp "github.com/knq/chromedp/cdp"
|
||||
"github.com/knq/chromedp/cdp/page"
|
||||
)
|
||||
|
||||
// EventNodeHighlightRequested fired when the node should be highlighted.
|
||||
|
@ -19,8 +20,15 @@ type EventInspectNodeRequested struct {
|
|||
BackendNodeID cdp.BackendNodeID `json:"backendNodeId"` // Id of the node to inspect.
|
||||
}
|
||||
|
||||
// EventScreenshotRequested fired when user asks to capture screenshot of
|
||||
// some area on the page.
|
||||
type EventScreenshotRequested struct {
|
||||
Viewport *page.Viewport `json:"viewport"` // Viewport to capture, in CSS.
|
||||
}
|
||||
|
||||
// EventTypes all event types in the domain.
|
||||
var EventTypes = []cdp.MethodType{
|
||||
cdp.EventOverlayNodeHighlightRequested,
|
||||
cdp.EventOverlayInspectNodeRequested,
|
||||
cdp.EventOverlayScreenshotRequested,
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -48,8 +48,10 @@ type EventFrameStoppedLoading struct {
|
|||
// EventFrameScheduledNavigation fired when frame schedules a potential
|
||||
// navigation.
|
||||
type EventFrameScheduledNavigation struct {
|
||||
FrameID cdp.FrameID `json:"frameId"` // Id of the frame that has scheduled a navigation.
|
||||
Delay float64 `json:"delay"` // Delay (in seconds) until the navigation is scheduled to begin. The navigation is not guaranteed to start.
|
||||
FrameID cdp.FrameID `json:"frameId"` // Id of the frame that has scheduled a navigation.
|
||||
Delay float64 `json:"delay"` // Delay (in seconds) until the navigation is scheduled to begin. The navigation is not guaranteed to start.
|
||||
Reason FrameScheduledNavigationReason `json:"reason"` // The reason for the navigation.
|
||||
URL string `json:"url"` // The destination URL for the scheduled navigation.
|
||||
}
|
||||
|
||||
// EventFrameClearedScheduledNavigation fired when frame no longer has a
|
||||
|
|
|
@ -163,6 +163,28 @@ func (p *ReloadParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
|||
return h.Execute(ctxt, cdp.CommandPageReload, p, nil)
|
||||
}
|
||||
|
||||
// SetAdBlockingEnabledParams enable Chrome's experimental ad filter on all
|
||||
// sites.
|
||||
type SetAdBlockingEnabledParams struct {
|
||||
Enabled bool `json:"enabled"` // Whether to block ads.
|
||||
}
|
||||
|
||||
// SetAdBlockingEnabled enable Chrome's experimental ad filter on all sites.
|
||||
//
|
||||
// parameters:
|
||||
// enabled - Whether to block ads.
|
||||
func SetAdBlockingEnabled(enabled bool) *SetAdBlockingEnabledParams {
|
||||
return &SetAdBlockingEnabledParams{
|
||||
Enabled: enabled,
|
||||
}
|
||||
}
|
||||
|
||||
// Do executes Page.setAdBlockingEnabled against the provided context and
|
||||
// target handler.
|
||||
func (p *SetAdBlockingEnabledParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
||||
return h.Execute(ctxt, cdp.CommandPageSetAdBlockingEnabled, p, nil)
|
||||
}
|
||||
|
||||
// NavigateParams navigates current page to the given URL.
|
||||
type NavigateParams struct {
|
||||
URL string `json:"url"` // URL to navigate the page to.
|
||||
|
@ -936,3 +958,17 @@ func (p *CreateIsolatedWorldParams) Do(ctxt context.Context, h cdp.Handler) (exe
|
|||
|
||||
return res.ExecutionContextID, nil
|
||||
}
|
||||
|
||||
// BringToFrontParams brings page to front (activates tab).
|
||||
type BringToFrontParams struct{}
|
||||
|
||||
// BringToFront brings page to front (activates tab).
|
||||
func BringToFront() *BringToFrontParams {
|
||||
return &BringToFrontParams{}
|
||||
}
|
||||
|
||||
// Do executes Page.bringToFront against the provided context and
|
||||
// target handler.
|
||||
func (p *BringToFrontParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
||||
return h.Execute(ctxt, cdp.CommandPageBringToFront, nil, nil)
|
||||
}
|
||||
|
|
|
@ -336,6 +336,60 @@ type Viewport struct {
|
|||
Scale float64 `json:"scale"` // Page scale factor.
|
||||
}
|
||||
|
||||
// FrameScheduledNavigationReason the reason for the navigation.
|
||||
type FrameScheduledNavigationReason string
|
||||
|
||||
// String returns the FrameScheduledNavigationReason as string value.
|
||||
func (t FrameScheduledNavigationReason) String() string {
|
||||
return string(t)
|
||||
}
|
||||
|
||||
// FrameScheduledNavigationReason values.
|
||||
const (
|
||||
FrameScheduledNavigationReasonFormSubmission FrameScheduledNavigationReason = "formSubmission"
|
||||
FrameScheduledNavigationReasonHTTPHeaderRefresh FrameScheduledNavigationReason = "httpHeaderRefresh"
|
||||
FrameScheduledNavigationReasonScriptInitiated FrameScheduledNavigationReason = "scriptInitiated"
|
||||
FrameScheduledNavigationReasonMetaTagRefresh FrameScheduledNavigationReason = "metaTagRefresh"
|
||||
FrameScheduledNavigationReasonPageBlockInterstitial FrameScheduledNavigationReason = "pageBlockInterstitial"
|
||||
FrameScheduledNavigationReasonReload FrameScheduledNavigationReason = "reload"
|
||||
)
|
||||
|
||||
// MarshalEasyJSON satisfies easyjson.Marshaler.
|
||||
func (t FrameScheduledNavigationReason) MarshalEasyJSON(out *jwriter.Writer) {
|
||||
out.String(string(t))
|
||||
}
|
||||
|
||||
// MarshalJSON satisfies json.Marshaler.
|
||||
func (t FrameScheduledNavigationReason) MarshalJSON() ([]byte, error) {
|
||||
return easyjson.Marshal(t)
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
|
||||
func (t *FrameScheduledNavigationReason) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
||||
switch FrameScheduledNavigationReason(in.String()) {
|
||||
case FrameScheduledNavigationReasonFormSubmission:
|
||||
*t = FrameScheduledNavigationReasonFormSubmission
|
||||
case FrameScheduledNavigationReasonHTTPHeaderRefresh:
|
||||
*t = FrameScheduledNavigationReasonHTTPHeaderRefresh
|
||||
case FrameScheduledNavigationReasonScriptInitiated:
|
||||
*t = FrameScheduledNavigationReasonScriptInitiated
|
||||
case FrameScheduledNavigationReasonMetaTagRefresh:
|
||||
*t = FrameScheduledNavigationReasonMetaTagRefresh
|
||||
case FrameScheduledNavigationReasonPageBlockInterstitial:
|
||||
*t = FrameScheduledNavigationReasonPageBlockInterstitial
|
||||
case FrameScheduledNavigationReasonReload:
|
||||
*t = FrameScheduledNavigationReasonReload
|
||||
|
||||
default:
|
||||
in.AddError(errors.New("unknown FrameScheduledNavigationReason value"))
|
||||
}
|
||||
}
|
||||
|
||||
// UnmarshalJSON satisfies json.Unmarshaler.
|
||||
func (t *FrameScheduledNavigationReason) UnmarshalJSON(buf []byte) error {
|
||||
return easyjson.Unmarshal(buf, t)
|
||||
}
|
||||
|
||||
// CaptureScreenshotFormat image compression format (defaults to png).
|
||||
type CaptureScreenshotFormat string
|
||||
|
||||
|
|
|
@ -619,6 +619,18 @@
|
|||
],
|
||||
"description": "Reloads given page optionally ignoring the cache."
|
||||
},
|
||||
{
|
||||
"name": "setAdBlockingEnabled",
|
||||
"description": "Enable Chrome's experimental ad filter on all sites.",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "enabled",
|
||||
"type": "boolean",
|
||||
"description": "Whether to block ads."
|
||||
}
|
||||
],
|
||||
"experimental": true
|
||||
},
|
||||
{
|
||||
"name": "navigate",
|
||||
"parameters": [
|
||||
|
@ -1294,6 +1306,10 @@
|
|||
"description": "Execution context of the isolated world."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "bringToFront",
|
||||
"description": "Brings page to front (activates tab)."
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
|
@ -1397,6 +1413,26 @@
|
|||
"name": "delay",
|
||||
"type": "number",
|
||||
"description": "Delay (in seconds) until the navigation is scheduled to begin. The navigation is not guaranteed to start."
|
||||
},
|
||||
{
|
||||
"name": "reason",
|
||||
"type": "string",
|
||||
"experimental": true,
|
||||
"enum": [
|
||||
"formSubmission",
|
||||
"httpHeaderRefresh",
|
||||
"scriptInitiated",
|
||||
"metaTagRefresh",
|
||||
"pageBlockInterstitial",
|
||||
"reload"
|
||||
],
|
||||
"description": "The reason for the navigation."
|
||||
},
|
||||
{
|
||||
"name": "url",
|
||||
"type": "string",
|
||||
"experimental": true,
|
||||
"description": "The destination URL for the scheduled navigation."
|
||||
}
|
||||
],
|
||||
"experimental": true
|
||||
|
@ -1870,6 +1906,17 @@
|
|||
"description": "Id of the node to inspect."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "screenshotRequested",
|
||||
"description": "Fired when user asks to capture screenshot of some area on the page.",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "viewport",
|
||||
"$ref": "Page.Viewport",
|
||||
"description": "Viewport to capture, in CSS."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -7829,14 +7876,12 @@
|
|||
{
|
||||
"domain": "IO",
|
||||
"description": "Input/Output operations for streams produced by DevTools.",
|
||||
"dependencies": [
|
||||
"Runtime"
|
||||
],
|
||||
"experimental": true,
|
||||
"types": [
|
||||
{
|
||||
"id": "StreamHandle",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"description": "This is either obtained from another method or specifed as <code>blob:<uuid></code> where <code><uuid></code> is an UUID of a Blob."
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
|
@ -7863,6 +7908,12 @@
|
|||
}
|
||||
],
|
||||
"returns": [
|
||||
{
|
||||
"name": "base64Encoded",
|
||||
"type": "boolean",
|
||||
"optional": true,
|
||||
"description": "Set if the data is base64-encoded"
|
||||
},
|
||||
{
|
||||
"name": "data",
|
||||
"type": "string",
|
||||
|
@ -9324,6 +9375,35 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "StickyPositionConstraint",
|
||||
"type": "object",
|
||||
"description": "Sticky position constraints.",
|
||||
"properties": [
|
||||
{
|
||||
"name": "stickyBoxRect",
|
||||
"$ref": "DOM.Rect",
|
||||
"description": "Layout rectangle of the sticky element before being shifted"
|
||||
},
|
||||
{
|
||||
"name": "containingBlockRect",
|
||||
"$ref": "DOM.Rect",
|
||||
"description": "Layout rectangle of the containing block of the sticky element"
|
||||
},
|
||||
{
|
||||
"name": "nearestLayerShiftingStickyBox",
|
||||
"$ref": "LayerId",
|
||||
"optional": true,
|
||||
"description": "The nearest sticky layer that shifts the sticky box"
|
||||
},
|
||||
{
|
||||
"name": "nearestLayerShiftingContainingBlock",
|
||||
"$ref": "LayerId",
|
||||
"optional": true,
|
||||
"description": "The nearest sticky layer that shifts the containing block"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "PictureTile",
|
||||
"type": "object",
|
||||
|
@ -9441,6 +9521,12 @@
|
|||
},
|
||||
"optional": true,
|
||||
"description": "Rectangles scrolling on main thread only."
|
||||
},
|
||||
{
|
||||
"name": "stickyPositionConstraint",
|
||||
"$ref": "StickyPositionConstraint",
|
||||
"optional": true,
|
||||
"description": "Sticky position constraint information"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -363,7 +363,7 @@ var Keys = map[rune]*Key{
|
|||
'\u0d2f': {"MediaPlay", "MediaPlay", "", "", 0, 0, false, false},
|
||||
'\u0d30': {"MediaRecord", "MediaRecord", "", "", 0, 0, false, false},
|
||||
'\u0d31': {"MediaRewind", "MediaRewind", "", "", 0, 0, false, false},
|
||||
'\u0d43': {"Settings", "Settings", "", "", 0, 0, false, false},
|
||||
'\u0d43': {"LaunchControlPanel", "Settings", "", "", 154, 0, false, false},
|
||||
'\u0d4e': {"ZoomToggle", "ZoomToggle", "", "", 251, 251, false, false},
|
||||
'\u0e02': {"AudioBassBoostToggle", "AudioBassBoostToggle", "", "", 0, 0, false, false},
|
||||
'\u0f02': {"SpeechInputToggle", "SpeechInputToggle", "", "", 0, 0, false, false},
|
||||
|
|
Loading…
Reference in New Issue
Block a user