Updating to latest protocol.json

This commit is contained in:
Kenneth Shaw 2017-10-05 07:41:50 +07:00
parent 73f5d37ce2
commit 20927f98e0
3 changed files with 39 additions and 33 deletions

View File

@ -1464,12 +1464,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation17(out *jwriter.Write
first = false first = false
out.RawString("\"fill\":") out.RawString("\"fill\":")
out.String(string(in.Fill)) out.String(string(in.Fill))
if in.BackendNodeID != 0 {
if !first { if !first {
out.RawByte(',') out.RawByte(',')
} }
first = false first = false
out.RawString("\"backendNodeId\":") out.RawString("\"backendNodeId\":")
out.Int64(int64(in.BackendNodeID)) out.Int64(int64(in.BackendNodeID))
}
if in.KeyframesRule != nil { if in.KeyframesRule != nil {
if !first { if !first {
out.RawByte(',') out.RawByte(',')
@ -1606,6 +1608,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation19(in *jlexer.Lexer,
out.StartTime = float64(in.Float64()) out.StartTime = float64(in.Float64())
case "currentTime": case "currentTime":
out.CurrentTime = float64(in.Float64()) out.CurrentTime = float64(in.Float64())
case "type":
(out.Type).UnmarshalEasyJSON(in)
case "source": case "source":
if in.IsNull() { if in.IsNull() {
in.Skip() in.Skip()
@ -1616,8 +1620,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation19(in *jlexer.Lexer,
} }
(*out.Source).UnmarshalEasyJSON(in) (*out.Source).UnmarshalEasyJSON(in)
} }
case "type":
(out.Type).UnmarshalEasyJSON(in)
case "cssId": case "cssId":
out.CSSID = string(in.String()) out.CSSID = string(in.String())
default: default:
@ -1676,6 +1678,13 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation19(out *jwriter.Write
first = false first = false
out.RawString("\"currentTime\":") out.RawString("\"currentTime\":")
out.Float64(float64(in.CurrentTime)) out.Float64(float64(in.CurrentTime))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"type\":")
(in.Type).MarshalEasyJSON(out)
if in.Source != nil {
if !first { if !first {
out.RawByte(',') out.RawByte(',')
} }
@ -1686,12 +1695,7 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation19(out *jwriter.Write
} else { } else {
(*in.Source).MarshalEasyJSON(out) (*in.Source).MarshalEasyJSON(out)
} }
if !first {
out.RawByte(',')
} }
first = false
out.RawString("\"type\":")
(in.Type).MarshalEasyJSON(out)
if in.CSSID != "" { if in.CSSID != "" {
if !first { if !first {
out.RawByte(',') out.RawByte(',')

View File

@ -20,8 +20,8 @@ type Animation struct {
PlaybackRate float64 `json:"playbackRate"` // Animation's playback rate. PlaybackRate float64 `json:"playbackRate"` // Animation's playback rate.
StartTime float64 `json:"startTime"` // Animation's start time. StartTime float64 `json:"startTime"` // Animation's start time.
CurrentTime float64 `json:"currentTime"` // Animation's current time. CurrentTime float64 `json:"currentTime"` // Animation's current time.
Source *Effect `json:"source"` // Animation's source animation node.
Type Type `json:"type"` // Animation type of Animation. Type Type `json:"type"` // Animation type of Animation.
Source *Effect `json:"source,omitempty"` // Animation's source animation node.
CSSID string `json:"cssId,omitempty"` // A unique ID for Animation representing the sources that triggered this CSS animation/transition. CSSID string `json:"cssId,omitempty"` // A unique ID for Animation representing the sources that triggered this CSS animation/transition.
} }
@ -34,7 +34,7 @@ type Effect struct {
Duration float64 `json:"duration"` // AnimationEffect's iteration duration. Duration float64 `json:"duration"` // AnimationEffect's iteration duration.
Direction string `json:"direction"` // AnimationEffect's playback direction. Direction string `json:"direction"` // AnimationEffect's playback direction.
Fill string `json:"fill"` // AnimationEffect's fill mode. Fill string `json:"fill"` // AnimationEffect's fill mode.
BackendNodeID cdp.BackendNodeID `json:"backendNodeId"` // AnimationEffect's target node. BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // AnimationEffect's target node.
KeyframesRule *KeyframesRule `json:"keyframesRule,omitempty"` // AnimationEffect's keyframes. KeyframesRule *KeyframesRule `json:"keyframesRule,omitempty"` // AnimationEffect's keyframes.
Easing string `json:"easing"` // AnimationEffect's timing function. Easing string `json:"easing"` // AnimationEffect's timing function.
} }

View File

@ -10456,11 +10456,6 @@
"type": "number", "type": "number",
"description": "<code>Animation</code>'s current time." "description": "<code>Animation</code>'s current time."
}, },
{
"name": "source",
"$ref": "AnimationEffect",
"description": "<code>Animation</code>'s source animation node."
},
{ {
"name": "type", "name": "type",
"type": "string", "type": "string",
@ -10471,6 +10466,12 @@
], ],
"description": "Animation type of <code>Animation</code>." "description": "Animation type of <code>Animation</code>."
}, },
{
"name": "source",
"$ref": "AnimationEffect",
"optional": true,
"description": "<code>Animation</code>'s source animation node."
},
{ {
"name": "cssId", "name": "cssId",
"type": "string", "type": "string",
@ -10523,6 +10524,7 @@
{ {
"name": "backendNodeId", "name": "backendNodeId",
"$ref": "DOM.BackendNodeId", "$ref": "DOM.BackendNodeId",
"optional": true,
"description": "<code>AnimationEffect</code>'s target node." "description": "<code>AnimationEffect</code>'s target node."
}, },
{ {