2017-01-24 15:09:23 +00:00
|
|
|
// AUTOGENERATED FILE: easyjson marshaler/unmarshalers.
|
|
|
|
|
|
|
|
package page
|
|
|
|
|
|
|
|
import (
|
|
|
|
json "encoding/json"
|
|
|
|
cdp "github.com/knq/chromedp/cdp"
|
|
|
|
debugger "github.com/knq/chromedp/cdp/debugger"
|
|
|
|
easyjson "github.com/mailru/easyjson"
|
|
|
|
jlexer "github.com/mailru/easyjson/jlexer"
|
|
|
|
jwriter "github.com/mailru/easyjson/jwriter"
|
|
|
|
)
|
|
|
|
|
|
|
|
// suppress unused package warning
|
|
|
|
var (
|
|
|
|
_ *json.RawMessage
|
|
|
|
_ *jlexer.Lexer
|
|
|
|
_ *jwriter.Writer
|
|
|
|
_ easyjson.Marshaler
|
|
|
|
)
|
|
|
|
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage(in *jlexer.Lexer, out *VisualViewport) {
|
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "offsetX":
|
|
|
|
out.OffsetX = float64(in.Float64())
|
|
|
|
case "offsetY":
|
|
|
|
out.OffsetY = float64(in.Float64())
|
|
|
|
case "pageX":
|
|
|
|
out.PageX = float64(in.Float64())
|
|
|
|
case "pageY":
|
|
|
|
out.PageY = float64(in.Float64())
|
|
|
|
case "clientWidth":
|
|
|
|
out.ClientWidth = float64(in.Float64())
|
|
|
|
case "clientHeight":
|
|
|
|
out.ClientHeight = float64(in.Float64())
|
|
|
|
case "scale":
|
|
|
|
out.Scale = float64(in.Float64())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage(out *jwriter.Writer, in VisualViewport) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.OffsetX != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"offsetX\":")
|
|
|
|
out.Float64(float64(in.OffsetX))
|
|
|
|
}
|
|
|
|
if in.OffsetY != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"offsetY\":")
|
|
|
|
out.Float64(float64(in.OffsetY))
|
|
|
|
}
|
|
|
|
if in.PageX != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"pageX\":")
|
|
|
|
out.Float64(float64(in.PageX))
|
|
|
|
}
|
|
|
|
if in.PageY != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"pageY\":")
|
|
|
|
out.Float64(float64(in.PageY))
|
|
|
|
}
|
|
|
|
if in.ClientWidth != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"clientWidth\":")
|
|
|
|
out.Float64(float64(in.ClientWidth))
|
|
|
|
}
|
|
|
|
if in.ClientHeight != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"clientHeight\":")
|
|
|
|
out.Float64(float64(in.ClientHeight))
|
|
|
|
}
|
|
|
|
if in.Scale != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"scale\":")
|
|
|
|
out.Float64(float64(in.Scale))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v VisualViewport) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v VisualViewport) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *VisualViewport) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *VisualViewport) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage1(in *jlexer.Lexer, out *LayoutViewport) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "pageX":
|
|
|
|
out.PageX = int64(in.Int64())
|
|
|
|
case "pageY":
|
|
|
|
out.PageY = int64(in.Int64())
|
|
|
|
case "clientWidth":
|
|
|
|
out.ClientWidth = int64(in.Int64())
|
|
|
|
case "clientHeight":
|
|
|
|
out.ClientHeight = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage1(out *jwriter.Writer, in LayoutViewport) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.PageX != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"pageX\":")
|
|
|
|
out.Int64(int64(in.PageX))
|
|
|
|
}
|
|
|
|
if in.PageY != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"pageY\":")
|
|
|
|
out.Int64(int64(in.PageY))
|
|
|
|
}
|
|
|
|
if in.ClientWidth != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"clientWidth\":")
|
|
|
|
out.Int64(int64(in.ClientWidth))
|
|
|
|
}
|
|
|
|
if in.ClientHeight != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"clientHeight\":")
|
|
|
|
out.Int64(int64(in.ClientHeight))
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v LayoutViewport) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage1(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v LayoutViewport) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage1(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *LayoutViewport) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage1(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *LayoutViewport) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage1(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage2(in *jlexer.Lexer, out *AppManifestError) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "message":
|
|
|
|
out.Message = string(in.String())
|
|
|
|
case "critical":
|
|
|
|
out.Critical = int64(in.Int64())
|
|
|
|
case "line":
|
|
|
|
out.Line = int64(in.Int64())
|
|
|
|
case "column":
|
|
|
|
out.Column = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage2(out *jwriter.Writer, in AppManifestError) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Message != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"message\":")
|
|
|
|
out.String(string(in.Message))
|
|
|
|
}
|
|
|
|
if in.Critical != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"critical\":")
|
|
|
|
out.Int64(int64(in.Critical))
|
|
|
|
}
|
|
|
|
if in.Line != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"line\":")
|
|
|
|
out.Int64(int64(in.Line))
|
|
|
|
}
|
|
|
|
if in.Column != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"column\":")
|
|
|
|
out.Int64(int64(in.Column))
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v AppManifestError) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage2(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v AppManifestError) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage2(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *AppManifestError) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage2(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *AppManifestError) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage2(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(in *jlexer.Lexer, out *ScreencastFrameMetadata) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "offsetTop":
|
|
|
|
out.OffsetTop = float64(in.Float64())
|
|
|
|
case "pageScaleFactor":
|
|
|
|
out.PageScaleFactor = float64(in.Float64())
|
|
|
|
case "deviceWidth":
|
|
|
|
out.DeviceWidth = float64(in.Float64())
|
|
|
|
case "deviceHeight":
|
|
|
|
out.DeviceHeight = float64(in.Float64())
|
|
|
|
case "scrollOffsetX":
|
|
|
|
out.ScrollOffsetX = float64(in.Float64())
|
|
|
|
case "scrollOffsetY":
|
|
|
|
out.ScrollOffsetY = float64(in.Float64())
|
|
|
|
case "timestamp":
|
|
|
|
(out.Timestamp).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(out *jwriter.Writer, in ScreencastFrameMetadata) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.OffsetTop != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"offsetTop\":")
|
|
|
|
out.Float64(float64(in.OffsetTop))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.PageScaleFactor != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"pageScaleFactor\":")
|
|
|
|
out.Float64(float64(in.PageScaleFactor))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.DeviceWidth != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"deviceWidth\":")
|
|
|
|
out.Float64(float64(in.DeviceWidth))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.DeviceHeight != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"deviceHeight\":")
|
|
|
|
out.Float64(float64(in.DeviceHeight))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.ScrollOffsetX != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"scrollOffsetX\":")
|
|
|
|
out.Float64(float64(in.ScrollOffsetX))
|
|
|
|
}
|
|
|
|
if in.ScrollOffsetY != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"scrollOffsetY\":")
|
|
|
|
out.Float64(float64(in.ScrollOffsetY))
|
|
|
|
}
|
|
|
|
if true {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
(in.Timestamp).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v ScreencastFrameMetadata) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v ScreencastFrameMetadata) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *ScreencastFrameMetadata) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *ScreencastFrameMetadata) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(in *jlexer.Lexer, out *NavigationEntry) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "id":
|
|
|
|
out.ID = int64(in.Int64())
|
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "title":
|
|
|
|
out.Title = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(out *jwriter.Writer, in NavigationEntry) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.ID != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"id\":")
|
|
|
|
out.Int64(int64(in.ID))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.URL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
}
|
|
|
|
if in.Title != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"title\":")
|
|
|
|
out.String(string(in.Title))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v NavigationEntry) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v NavigationEntry) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *NavigationEntry) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *NavigationEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(in *jlexer.Lexer, out *FrameResourceTree) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "frame":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Frame = nil
|
|
|
|
} else {
|
|
|
|
if out.Frame == nil {
|
|
|
|
out.Frame = new(cdp.Frame)
|
|
|
|
}
|
|
|
|
(*out.Frame).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "childFrames":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.ChildFrames = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.ChildFrames = make([]*FrameResourceTree, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.ChildFrames = []*FrameResourceTree{}
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
|
|
|
var v1 *FrameResourceTree
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
v1 = nil
|
|
|
|
} else {
|
|
|
|
if v1 == nil {
|
|
|
|
v1 = new(FrameResourceTree)
|
|
|
|
}
|
|
|
|
(*v1).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
out.ChildFrames = append(out.ChildFrames, v1)
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "resources":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Resources = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Resources = make([]*FrameResource, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Resources = []*FrameResource{}
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
|
|
|
var v2 *FrameResource
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
v2 = nil
|
|
|
|
} else {
|
|
|
|
if v2 == nil {
|
|
|
|
v2 = new(FrameResource)
|
|
|
|
}
|
|
|
|
(*v2).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
out.Resources = append(out.Resources, v2)
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(out *jwriter.Writer, in FrameResourceTree) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.Frame != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"frame\":")
|
|
|
|
if in.Frame == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Frame).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(in.ChildFrames) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"childFrames\":")
|
|
|
|
if in.ChildFrames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v3, v4 := range in.ChildFrames {
|
|
|
|
if v3 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v4 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v4).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(in.Resources) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"resources\":")
|
|
|
|
if in.Resources == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v5, v6 := range in.Resources {
|
|
|
|
if v5 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v6 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v6).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v FrameResourceTree) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v FrameResourceTree) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *FrameResourceTree) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *FrameResourceTree) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage6(in *jlexer.Lexer, out *FrameResource) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
|
|
|
case "mimeType":
|
|
|
|
out.MimeType = string(in.String())
|
|
|
|
case "lastModified":
|
|
|
|
(out.LastModified).UnmarshalEasyJSON(in)
|
|
|
|
case "contentSize":
|
|
|
|
out.ContentSize = float64(in.Float64())
|
|
|
|
case "failed":
|
|
|
|
out.Failed = bool(in.Bool())
|
|
|
|
case "canceled":
|
|
|
|
out.Canceled = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(out *jwriter.Writer, in FrameResource) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.URL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
}
|
|
|
|
if in.Type != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if in.MimeType != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"mimeType\":")
|
|
|
|
out.String(string(in.MimeType))
|
|
|
|
}
|
|
|
|
if true {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"lastModified\":")
|
|
|
|
(in.LastModified).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if in.ContentSize != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"contentSize\":")
|
|
|
|
out.Float64(float64(in.ContentSize))
|
|
|
|
}
|
|
|
|
if in.Failed {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"failed\":")
|
|
|
|
out.Bool(bool(in.Failed))
|
|
|
|
}
|
|
|
|
if in.Canceled {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"canceled\":")
|
|
|
|
out.Bool(bool(in.Canceled))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v FrameResource) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v FrameResource) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *FrameResource) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage6(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *FrameResource) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage6(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage7(in *jlexer.Lexer, out *GetLayoutMetricsReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "layoutViewport":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.LayoutViewport = nil
|
|
|
|
} else {
|
|
|
|
if out.LayoutViewport == nil {
|
|
|
|
out.LayoutViewport = new(LayoutViewport)
|
|
|
|
}
|
|
|
|
(*out.LayoutViewport).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "visualViewport":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.VisualViewport = nil
|
|
|
|
} else {
|
|
|
|
if out.VisualViewport == nil {
|
|
|
|
out.VisualViewport = new(VisualViewport)
|
|
|
|
}
|
|
|
|
(*out.VisualViewport).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage7(out *jwriter.Writer, in GetLayoutMetricsReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.LayoutViewport != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"layoutViewport\":")
|
|
|
|
if in.LayoutViewport == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.LayoutViewport).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.VisualViewport != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"visualViewport\":")
|
|
|
|
if in.VisualViewport == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.VisualViewport).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetLayoutMetricsReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage7(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetLayoutMetricsReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage7(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetLayoutMetricsReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage7(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetLayoutMetricsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage7(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage8(in *jlexer.Lexer, out *GetLayoutMetricsParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(out *jwriter.Writer, in GetLayoutMetricsParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
2017-02-14 08:41:23 +00:00
|
|
|
_ = first
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetLayoutMetricsParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetLayoutMetricsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetLayoutMetricsParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage8(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetLayoutMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage8(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage9(in *jlexer.Lexer, out *ProcessNavigationParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "response":
|
|
|
|
(out.Response).UnmarshalEasyJSON(in)
|
|
|
|
case "navigationId":
|
|
|
|
out.NavigationID = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(out *jwriter.Writer, in ProcessNavigationParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"response\":")
|
|
|
|
(in.Response).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"navigationId\":")
|
|
|
|
out.Int64(int64(in.NavigationID))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v ProcessNavigationParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v ProcessNavigationParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *ProcessNavigationParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage9(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *ProcessNavigationParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage9(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage10(in *jlexer.Lexer, out *SetControlNavigationsParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "enabled":
|
|
|
|
out.Enabled = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(out *jwriter.Writer, in SetControlNavigationsParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"enabled\":")
|
|
|
|
out.Bool(bool(in.Enabled))
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetControlNavigationsParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetControlNavigationsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetControlNavigationsParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage10(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetControlNavigationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage10(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage11(in *jlexer.Lexer, out *RequestAppBannerParams) {
|
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
in.Skip()
|
|
|
|
return
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
in.WantComma()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(out *jwriter.Writer, in RequestAppBannerParams) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v RequestAppBannerParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v RequestAppBannerParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *RequestAppBannerParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage11(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *RequestAppBannerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage11(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage12(in *jlexer.Lexer, out *GetAppManifestReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "errors":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Errors = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Errors = make([]*AppManifestError, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Errors = []*AppManifestError{}
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
|
|
|
var v7 *AppManifestError
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
v7 = nil
|
|
|
|
} else {
|
|
|
|
if v7 == nil {
|
|
|
|
v7 = new(AppManifestError)
|
|
|
|
}
|
|
|
|
(*v7).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
out.Errors = append(out.Errors, v7)
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "data":
|
|
|
|
out.Data = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(out *jwriter.Writer, in GetAppManifestReturns) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.URL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
}
|
|
|
|
if len(in.Errors) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"errors\":")
|
|
|
|
if in.Errors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v8, v9 := range in.Errors {
|
|
|
|
if v8 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v9 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v9).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Data != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"data\":")
|
|
|
|
out.String(string(in.Data))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetAppManifestReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetAppManifestReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetAppManifestReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage12(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetAppManifestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage12(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage13(in *jlexer.Lexer, out *GetAppManifestParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(out *jwriter.Writer, in GetAppManifestParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetAppManifestParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetAppManifestParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetAppManifestParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage13(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetAppManifestParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage13(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage14(in *jlexer.Lexer, out *ConfigureOverlayParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "suspended":
|
|
|
|
out.Suspended = bool(in.Bool())
|
|
|
|
case "message":
|
|
|
|
out.Message = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(out *jwriter.Writer, in ConfigureOverlayParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Suspended {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"suspended\":")
|
|
|
|
out.Bool(bool(in.Suspended))
|
|
|
|
}
|
|
|
|
if in.Message != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"message\":")
|
|
|
|
out.String(string(in.Message))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v ConfigureOverlayParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v ConfigureOverlayParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *ConfigureOverlayParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage14(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *ConfigureOverlayParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage14(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage15(in *jlexer.Lexer, out *SetColorPickerEnabledParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "enabled":
|
|
|
|
out.Enabled = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(out *jwriter.Writer, in SetColorPickerEnabledParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"enabled\":")
|
|
|
|
out.Bool(bool(in.Enabled))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v SetColorPickerEnabledParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v SetColorPickerEnabledParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *SetColorPickerEnabledParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage15(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *SetColorPickerEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage15(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage16(in *jlexer.Lexer, out *HandleJavaScriptDialogParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "accept":
|
|
|
|
out.Accept = bool(in.Bool())
|
|
|
|
case "promptText":
|
|
|
|
out.PromptText = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(out *jwriter.Writer, in HandleJavaScriptDialogParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"accept\":")
|
|
|
|
out.Bool(bool(in.Accept))
|
|
|
|
if in.PromptText != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"promptText\":")
|
|
|
|
out.String(string(in.PromptText))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v HandleJavaScriptDialogParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v HandleJavaScriptDialogParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *HandleJavaScriptDialogParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage16(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *HandleJavaScriptDialogParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage16(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage17(in *jlexer.Lexer, out *ScreencastFrameAckParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "sessionId":
|
|
|
|
out.SessionID = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(out *jwriter.Writer, in ScreencastFrameAckParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"sessionId\":")
|
|
|
|
out.Int64(int64(in.SessionID))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v ScreencastFrameAckParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v ScreencastFrameAckParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *ScreencastFrameAckParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage17(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *ScreencastFrameAckParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage17(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage18(in *jlexer.Lexer, out *StopScreencastParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(out *jwriter.Writer, in StopScreencastParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v StopScreencastParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v StopScreencastParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *StopScreencastParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage18(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *StopScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage18(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage19(in *jlexer.Lexer, out *StartScreencastParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "format":
|
|
|
|
(out.Format).UnmarshalEasyJSON(in)
|
|
|
|
case "quality":
|
|
|
|
out.Quality = int64(in.Int64())
|
|
|
|
case "maxWidth":
|
|
|
|
out.MaxWidth = int64(in.Int64())
|
|
|
|
case "maxHeight":
|
|
|
|
out.MaxHeight = int64(in.Int64())
|
|
|
|
case "everyNthFrame":
|
|
|
|
out.EveryNthFrame = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(out *jwriter.Writer, in StartScreencastParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Format != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"format\":")
|
|
|
|
(in.Format).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if in.Quality != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"quality\":")
|
|
|
|
out.Int64(int64(in.Quality))
|
|
|
|
}
|
|
|
|
if in.MaxWidth != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"maxWidth\":")
|
|
|
|
out.Int64(int64(in.MaxWidth))
|
|
|
|
}
|
|
|
|
if in.MaxHeight != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"maxHeight\":")
|
|
|
|
out.Int64(int64(in.MaxHeight))
|
|
|
|
}
|
|
|
|
if in.EveryNthFrame != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"everyNthFrame\":")
|
|
|
|
out.Int64(int64(in.EveryNthFrame))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v StartScreencastParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v StartScreencastParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *StartScreencastParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage19(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *StartScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage19(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage20(in *jlexer.Lexer, out *CaptureScreenshotReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "data":
|
|
|
|
out.Data = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(out *jwriter.Writer, in CaptureScreenshotReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Data != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"data\":")
|
|
|
|
out.String(string(in.Data))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v CaptureScreenshotReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v CaptureScreenshotReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *CaptureScreenshotReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage20(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *CaptureScreenshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage20(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage21(in *jlexer.Lexer, out *CaptureScreenshotParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "format":
|
|
|
|
(out.Format).UnmarshalEasyJSON(in)
|
|
|
|
case "quality":
|
|
|
|
out.Quality = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(out *jwriter.Writer, in CaptureScreenshotParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Format != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"format\":")
|
|
|
|
(in.Format).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Quality != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"quality\":")
|
|
|
|
out.Int64(int64(in.Quality))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v CaptureScreenshotParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v CaptureScreenshotParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *CaptureScreenshotParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage21(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *CaptureScreenshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage21(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage22(in *jlexer.Lexer, out *SetDocumentContentParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
|
|
|
case "html":
|
|
|
|
out.HTML = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(out *jwriter.Writer, in SetDocumentContentParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"html\":")
|
|
|
|
out.String(string(in.HTML))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v SetDocumentContentParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v SetDocumentContentParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *SetDocumentContentParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage22(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *SetDocumentContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage22(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage23(in *jlexer.Lexer, out *SearchInResourceReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "result":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-14 08:41:23 +00:00
|
|
|
out.Result = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-14 08:41:23 +00:00
|
|
|
in.Delim('[')
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Result = make([]*debugger.SearchMatch, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Result = []*debugger.SearchMatch{}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
for !in.IsDelim(']') {
|
|
|
|
var v10 *debugger.SearchMatch
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
v10 = nil
|
|
|
|
} else {
|
|
|
|
if v10 == nil {
|
|
|
|
v10 = new(debugger.SearchMatch)
|
|
|
|
}
|
|
|
|
(*v10).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
out.Result = append(out.Result, v10)
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(out *jwriter.Writer, in SearchInResourceReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if len(in.Result) != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"result\":")
|
|
|
|
if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawByte('[')
|
|
|
|
for v11, v12 := range in.Result {
|
|
|
|
if v11 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v12 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v12).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v SearchInResourceReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v SearchInResourceReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *SearchInResourceReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage23(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *SearchInResourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage23(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage24(in *jlexer.Lexer, out *SearchInResourceParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "query":
|
|
|
|
out.Query = string(in.String())
|
|
|
|
case "caseSensitive":
|
|
|
|
out.CaseSensitive = bool(in.Bool())
|
|
|
|
case "isRegex":
|
|
|
|
out.IsRegex = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(out *jwriter.Writer, in SearchInResourceParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"query\":")
|
|
|
|
out.String(string(in.Query))
|
|
|
|
if in.CaseSensitive {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"caseSensitive\":")
|
|
|
|
out.Bool(bool(in.CaseSensitive))
|
|
|
|
}
|
|
|
|
if in.IsRegex {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"isRegex\":")
|
|
|
|
out.Bool(bool(in.IsRegex))
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v SearchInResourceParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v SearchInResourceParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *SearchInResourceParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage24(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *SearchInResourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage24(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage25(in *jlexer.Lexer, out *GetResourceContentReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "content":
|
|
|
|
out.Content = string(in.String())
|
|
|
|
case "base64Encoded":
|
|
|
|
out.Base64encoded = bool(in.Bool())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(out *jwriter.Writer, in GetResourceContentReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.Content != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"content\":")
|
|
|
|
out.String(string(in.Content))
|
|
|
|
}
|
|
|
|
if in.Base64encoded {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"base64Encoded\":")
|
|
|
|
out.Bool(bool(in.Base64encoded))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetResourceContentReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetResourceContentReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetResourceContentReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage25(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetResourceContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage25(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage26(in *jlexer.Lexer, out *GetResourceContentParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(out *jwriter.Writer, in GetResourceContentParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetResourceContentParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetResourceContentParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetResourceContentParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage26(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetResourceContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-02-14 08:41:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage26(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage27(in *jlexer.Lexer, out *GetResourceTreeReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "frameTree":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-14 08:41:23 +00:00
|
|
|
out.FrameTree = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-14 08:41:23 +00:00
|
|
|
if out.FrameTree == nil {
|
|
|
|
out.FrameTree = new(FrameResourceTree)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
(*out.FrameTree).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(out *jwriter.Writer, in GetResourceTreeReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.FrameTree != nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"frameTree\":")
|
|
|
|
if in.FrameTree == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-14 08:41:23 +00:00
|
|
|
(*in.FrameTree).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetResourceTreeReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetResourceTreeReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetResourceTreeReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage27(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetResourceTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage27(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage28(in *jlexer.Lexer, out *GetResourceTreeParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(out *jwriter.Writer, in GetResourceTreeParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetResourceTreeParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetResourceTreeParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetResourceTreeParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage28(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetResourceTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage28(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage29(in *jlexer.Lexer, out *NavigateToHistoryEntryParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "entryId":
|
|
|
|
out.EntryID = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(out *jwriter.Writer, in NavigateToHistoryEntryParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"entryId\":")
|
|
|
|
out.Int64(int64(in.EntryID))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v NavigateToHistoryEntryParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v NavigateToHistoryEntryParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *NavigateToHistoryEntryParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage29(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *NavigateToHistoryEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage29(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage30(in *jlexer.Lexer, out *GetNavigationHistoryReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "currentIndex":
|
|
|
|
out.CurrentIndex = int64(in.Int64())
|
|
|
|
case "entries":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-14 08:41:23 +00:00
|
|
|
out.Entries = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if !in.IsDelim(']') {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.Entries = make([]*NavigationEntry, 0, 8)
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.Entries = []*NavigationEntry{}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-02-14 08:41:23 +00:00
|
|
|
var v13 *NavigationEntry
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-14 08:41:23 +00:00
|
|
|
v13 = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-14 08:41:23 +00:00
|
|
|
if v13 == nil {
|
|
|
|
v13 = new(NavigationEntry)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
(*v13).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
out.Entries = append(out.Entries, v13)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(out *jwriter.Writer, in GetNavigationHistoryReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.CurrentIndex != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"currentIndex\":")
|
|
|
|
out.Int64(int64(in.CurrentIndex))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if len(in.Entries) != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"entries\":")
|
|
|
|
if in.Entries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-02-14 08:41:23 +00:00
|
|
|
for v14, v15 := range in.Entries {
|
|
|
|
if v14 > 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if v15 == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-14 08:41:23 +00:00
|
|
|
(*v15).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetNavigationHistoryReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetNavigationHistoryReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetNavigationHistoryReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage30(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetNavigationHistoryReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage30(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage31(in *jlexer.Lexer, out *GetNavigationHistoryParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage31(out *jwriter.Writer, in GetNavigationHistoryParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetNavigationHistoryParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage31(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v GetNavigationHistoryParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage31(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetNavigationHistoryParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage31(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *GetNavigationHistoryParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage31(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(in *jlexer.Lexer, out *StopLoadingParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(out *jwriter.Writer, in StopLoadingParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v StopLoadingParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v StopLoadingParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *StopLoadingParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *StopLoadingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(in *jlexer.Lexer, out *NavigateReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
in.WantComma()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(out *jwriter.Writer, in NavigateReturns) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.FrameID != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v NavigateReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v NavigateReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *NavigateReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *NavigateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(in *jlexer.Lexer, out *NavigateParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(out *jwriter.Writer, in NavigateParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v NavigateParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v NavigateParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *NavigateParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *NavigateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(in *jlexer.Lexer, out *ReloadParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "ignoreCache":
|
|
|
|
out.IgnoreCache = bool(in.Bool())
|
|
|
|
case "scriptToEvaluateOnLoad":
|
|
|
|
out.ScriptToEvaluateOnLoad = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(out *jwriter.Writer, in ReloadParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.IgnoreCache {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"ignoreCache\":")
|
|
|
|
out.Bool(bool(in.IgnoreCache))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.ScriptToEvaluateOnLoad != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"scriptToEvaluateOnLoad\":")
|
|
|
|
out.String(string(in.ScriptToEvaluateOnLoad))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v ReloadParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v ReloadParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *ReloadParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *ReloadParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(in *jlexer.Lexer, out *SetAutoAttachToCreatedPagesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "autoAttach":
|
|
|
|
out.AutoAttach = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(out *jwriter.Writer, in SetAutoAttachToCreatedPagesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"autoAttach\":")
|
|
|
|
out.Bool(bool(in.AutoAttach))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v SetAutoAttachToCreatedPagesParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v SetAutoAttachToCreatedPagesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *SetAutoAttachToCreatedPagesParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *SetAutoAttachToCreatedPagesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(in *jlexer.Lexer, out *RemoveScriptToEvaluateOnLoadParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "identifier":
|
|
|
|
out.Identifier = ScriptIdentifier(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(out *jwriter.Writer, in RemoveScriptToEvaluateOnLoadParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"identifier\":")
|
|
|
|
out.String(string(in.Identifier))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v RemoveScriptToEvaluateOnLoadParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v RemoveScriptToEvaluateOnLoadParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *RemoveScriptToEvaluateOnLoadParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *RemoveScriptToEvaluateOnLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(in *jlexer.Lexer, out *AddScriptToEvaluateOnLoadReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "identifier":
|
|
|
|
out.Identifier = ScriptIdentifier(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(out *jwriter.Writer, in AddScriptToEvaluateOnLoadReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Identifier != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"identifier\":")
|
|
|
|
out.String(string(in.Identifier))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v AddScriptToEvaluateOnLoadReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v AddScriptToEvaluateOnLoadReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *AddScriptToEvaluateOnLoadReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *AddScriptToEvaluateOnLoadReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(in *jlexer.Lexer, out *AddScriptToEvaluateOnLoadParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "scriptSource":
|
|
|
|
out.ScriptSource = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(out *jwriter.Writer, in AddScriptToEvaluateOnLoadParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"scriptSource\":")
|
|
|
|
out.String(string(in.ScriptSource))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v AddScriptToEvaluateOnLoadParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v AddScriptToEvaluateOnLoadParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *AddScriptToEvaluateOnLoadParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *AddScriptToEvaluateOnLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(in *jlexer.Lexer, out *DisableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(out *jwriter.Writer, in DisableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v DisableParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *DisableParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(in *jlexer.Lexer, out *EnableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(out *jwriter.Writer, in EnableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EnableParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EnableParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(in *jlexer.Lexer, out *EventNavigationRequested) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "isInMainFrame":
|
|
|
|
out.IsInMainFrame = bool(in.Bool())
|
|
|
|
case "isRedirect":
|
|
|
|
out.IsRedirect = bool(in.Bool())
|
|
|
|
case "navigationId":
|
|
|
|
out.NavigationID = int64(in.Int64())
|
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(out *jwriter.Writer, in EventNavigationRequested) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.IsInMainFrame {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"isInMainFrame\":")
|
|
|
|
out.Bool(bool(in.IsInMainFrame))
|
|
|
|
}
|
|
|
|
if in.IsRedirect {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"isRedirect\":")
|
|
|
|
out.Bool(bool(in.IsRedirect))
|
|
|
|
}
|
|
|
|
if in.NavigationID != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"navigationId\":")
|
|
|
|
out.Int64(int64(in.NavigationID))
|
|
|
|
}
|
|
|
|
if in.URL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventNavigationRequested) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventNavigationRequested) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventNavigationRequested) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventNavigationRequested) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(in *jlexer.Lexer, out *EventInterstitialHidden) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(out *jwriter.Writer, in EventInterstitialHidden) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventInterstitialHidden) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventInterstitialHidden) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventInterstitialHidden) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventInterstitialHidden) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(in *jlexer.Lexer, out *EventInterstitialShown) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(out *jwriter.Writer, in EventInterstitialShown) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventInterstitialShown) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventInterstitialShown) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventInterstitialShown) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventInterstitialShown) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(in *jlexer.Lexer, out *EventColorPicked) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "color":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Color = nil
|
|
|
|
} else {
|
|
|
|
if out.Color == nil {
|
|
|
|
out.Color = new(cdp.RGBA)
|
|
|
|
}
|
|
|
|
(*out.Color).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(out *jwriter.Writer, in EventColorPicked) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Color != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"color\":")
|
|
|
|
if in.Color == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Color).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventColorPicked) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventColorPicked) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventColorPicked) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventColorPicked) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(in *jlexer.Lexer, out *EventScreencastVisibilityChanged) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "visible":
|
|
|
|
out.Visible = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(out *jwriter.Writer, in EventScreencastVisibilityChanged) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Visible {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"visible\":")
|
|
|
|
out.Bool(bool(in.Visible))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventScreencastVisibilityChanged) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventScreencastVisibilityChanged) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventScreencastVisibilityChanged) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventScreencastVisibilityChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(in *jlexer.Lexer, out *EventScreencastFrame) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "data":
|
|
|
|
out.Data = string(in.String())
|
|
|
|
case "metadata":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Metadata = nil
|
|
|
|
} else {
|
|
|
|
if out.Metadata == nil {
|
|
|
|
out.Metadata = new(ScreencastFrameMetadata)
|
|
|
|
}
|
|
|
|
(*out.Metadata).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "sessionId":
|
|
|
|
out.SessionID = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(out *jwriter.Writer, in EventScreencastFrame) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Data != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"data\":")
|
|
|
|
out.String(string(in.Data))
|
|
|
|
}
|
|
|
|
if in.Metadata != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"metadata\":")
|
|
|
|
if in.Metadata == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Metadata).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.SessionID != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"sessionId\":")
|
|
|
|
out.Int64(int64(in.SessionID))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventScreencastFrame) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventScreencastFrame) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventScreencastFrame) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventScreencastFrame) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(in *jlexer.Lexer, out *EventJavascriptDialogClosed) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "result":
|
|
|
|
out.Result = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(out *jwriter.Writer, in EventJavascriptDialogClosed) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Result {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"result\":")
|
|
|
|
out.Bool(bool(in.Result))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventJavascriptDialogClosed) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventJavascriptDialogClosed) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventJavascriptDialogClosed) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventJavascriptDialogClosed) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(in *jlexer.Lexer, out *EventJavascriptDialogOpening) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "message":
|
|
|
|
out.Message = string(in.String())
|
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(out *jwriter.Writer, in EventJavascriptDialogOpening) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Message != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"message\":")
|
|
|
|
out.String(string(in.Message))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Type != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventJavascriptDialogOpening) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventJavascriptDialogOpening) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventJavascriptDialogOpening) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventJavascriptDialogOpening) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(in *jlexer.Lexer, out *EventFrameResized) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(out *jwriter.Writer, in EventFrameResized) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameResized) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameResized) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameResized) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameResized) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(in *jlexer.Lexer, out *EventFrameClearedScheduledNavigation) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(out *jwriter.Writer, in EventFrameClearedScheduledNavigation) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.FrameID != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameClearedScheduledNavigation) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameClearedScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameClearedScheduledNavigation) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameClearedScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(in *jlexer.Lexer, out *EventFrameScheduledNavigation) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
|
|
|
case "delay":
|
|
|
|
out.Delay = float64(in.Float64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(out *jwriter.Writer, in EventFrameScheduledNavigation) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.FrameID != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
|
|
|
}
|
|
|
|
if in.Delay != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"delay\":")
|
|
|
|
out.Float64(float64(in.Delay))
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameScheduledNavigation) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameScheduledNavigation) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(in *jlexer.Lexer, out *EventFrameStoppedLoading) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(out *jwriter.Writer, in EventFrameStoppedLoading) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.FrameID != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameStoppedLoading) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameStoppedLoading) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameStoppedLoading) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameStoppedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(in *jlexer.Lexer, out *EventFrameStartedLoading) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(out *jwriter.Writer, in EventFrameStartedLoading) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.FrameID != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameStartedLoading) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameStartedLoading) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameStartedLoading) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameStartedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(in *jlexer.Lexer, out *EventFrameDetached) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(out *jwriter.Writer, in EventFrameDetached) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.FrameID != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameDetached) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameDetached) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameDetached) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameDetached) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(in *jlexer.Lexer, out *EventFrameNavigated) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "frame":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Frame = nil
|
|
|
|
} else {
|
|
|
|
if out.Frame == nil {
|
|
|
|
out.Frame = new(cdp.Frame)
|
|
|
|
}
|
|
|
|
(*out.Frame).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(out *jwriter.Writer, in EventFrameNavigated) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Frame != nil {
|
2017-01-27 03:29:53 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"frame\":")
|
|
|
|
if in.Frame == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Frame).MarshalEasyJSON(out)
|
2017-01-27 03:29:53 +00:00
|
|
|
}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameNavigated) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameNavigated) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameNavigated) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameNavigated) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(in *jlexer.Lexer, out *EventFrameAttached) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
|
|
|
case "parentFrameId":
|
|
|
|
(out.ParentFrameID).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(out *jwriter.Writer, in EventFrameAttached) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.FrameID != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.ParentFrameID != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"parentFrameId\":")
|
|
|
|
out.String(string(in.ParentFrameID))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameAttached) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventFrameAttached) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameAttached) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventFrameAttached) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(in *jlexer.Lexer, out *EventLoadEventFired) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "timestamp":
|
|
|
|
(out.Timestamp).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(out *jwriter.Writer, in EventLoadEventFired) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if true {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
(in.Timestamp).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventLoadEventFired) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventLoadEventFired) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventLoadEventFired) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventLoadEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(l, v)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(in *jlexer.Lexer, out *EventDomContentEventFired) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-14 08:41:23 +00:00
|
|
|
case "timestamp":
|
|
|
|
(out.Timestamp).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(out *jwriter.Writer, in EventDomContentEventFired) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if true {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
(in.Timestamp).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventDomContentEventFired) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventDomContentEventFired) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventDomContentEventFired) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventDomContentEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(l, v)
|
|
|
|
}
|