Adding faviconURL field to client.Chrome
This commit is contained in:
parent
b9e4c14157
commit
5c732ec7c4
|
@ -15,6 +15,7 @@ type Chrome struct {
|
||||||
Type TargetType `json:"type,omitempty"`
|
Type TargetType `json:"type,omitempty"`
|
||||||
URL string `json:"url,omitempty"`
|
URL string `json:"url,omitempty"`
|
||||||
WebsocketURL string `json:"webSocketDebuggerUrl,omitempty"`
|
WebsocketURL string `json:"webSocketDebuggerUrl,omitempty"`
|
||||||
|
FaviconURL string `json:"faviconURL,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// String satisfies the stringer interface.
|
// String satisfies the stringer interface.
|
||||||
|
|
|
@ -50,6 +50,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpClient(in *jlexer.Lexer, out *Chr
|
||||||
out.URL = string(in.String())
|
out.URL = string(in.String())
|
||||||
case "webSocketDebuggerUrl":
|
case "webSocketDebuggerUrl":
|
||||||
out.WebsocketURL = string(in.String())
|
out.WebsocketURL = string(in.String())
|
||||||
|
case "faviconURL":
|
||||||
|
out.FaviconURL = string(in.String())
|
||||||
default:
|
default:
|
||||||
in.SkipRecursive()
|
in.SkipRecursive()
|
||||||
}
|
}
|
||||||
|
@ -120,6 +122,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpClient(out *jwriter.Writer, in Ch
|
||||||
out.RawString("\"webSocketDebuggerUrl\":")
|
out.RawString("\"webSocketDebuggerUrl\":")
|
||||||
out.String(string(in.WebsocketURL))
|
out.String(string(in.WebsocketURL))
|
||||||
}
|
}
|
||||||
|
if in.FaviconURL != "" {
|
||||||
|
if !first {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
first = false
|
||||||
|
out.RawString("\"faviconURL\":")
|
||||||
|
out.String(string(in.FaviconURL))
|
||||||
|
}
|
||||||
out.RawByte('}')
|
out.RawByte('}')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ const (
|
||||||
Other TargetType = "other"
|
Other TargetType = "other"
|
||||||
Page TargetType = "page"
|
Page TargetType = "page"
|
||||||
ServiceWorker TargetType = "service_worker"
|
ServiceWorker TargetType = "service_worker"
|
||||||
|
Node TargetType = "node"
|
||||||
)
|
)
|
||||||
|
|
||||||
// String satisfies stringer.
|
// String satisfies stringer.
|
||||||
|
@ -53,6 +54,8 @@ func (tt *TargetType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
||||||
*tt = Page
|
*tt = Page
|
||||||
case ServiceWorker:
|
case ServiceWorker:
|
||||||
*tt = ServiceWorker
|
*tt = ServiceWorker
|
||||||
|
case Node:
|
||||||
|
*tt = Node
|
||||||
|
|
||||||
default:
|
default:
|
||||||
in.AddError(errors.New("unknown TargetType"))
|
in.AddError(errors.New("unknown TargetType"))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user