From 1d073bb389982a81c7fcd88d721258e7ad9cebb4 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Wed, 11 Oct 2023 12:01:54 +0700 Subject: [PATCH] Updating to 120.0.6060.1_12.0.55 definitions --- input/easyjson.go | 16 ++++++++-------- input/input.go | 8 ++++---- input/types.go | 4 ++-- preload/types.go | 3 --- 4 files changed, 14 insertions(+), 17 deletions(-) diff --git a/input/easyjson.go b/input/easyjson.go index eb18e51..3462c8c 100644 --- a/input/easyjson.go +++ b/input/easyjson.go @@ -51,9 +51,9 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput(in *jlexer.Lexer, out * case "tangentialPressure": out.TangentialPressure = float64(in.Float64()) case "tiltX": - out.TiltX = int64(in.Int64()) + out.TiltX = float64(in.Float64()) case "tiltY": - out.TiltY = int64(in.Int64()) + out.TiltY = float64(in.Float64()) case "twist": out.Twist = int64(in.Int64()) case "id": @@ -110,12 +110,12 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput(out *jwriter.Writer, in if in.TiltX != 0 { const prefix string = ",\"tiltX\":" out.RawString(prefix) - out.Int64(int64(in.TiltX)) + out.Float64(float64(in.TiltX)) } if in.TiltY != 0 { const prefix string = ",\"tiltY\":" out.RawString(prefix) - out.Int64(int64(in.TiltY)) + out.Float64(float64(in.TiltY)) } if in.Twist != 0 { const prefix string = ",\"twist\":" @@ -1412,9 +1412,9 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput13(in *jlexer.Lexer, out case "tangentialPressure": out.TangentialPressure = float64(in.Float64()) case "tiltX": - out.TiltX = int64(in.Int64()) + out.TiltX = float64(in.Float64()) case "tiltY": - out.TiltY = int64(in.Int64()) + out.TiltY = float64(in.Float64()) case "twist": out.Twist = int64(in.Int64()) case "deltaX": @@ -1490,12 +1490,12 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput13(out *jwriter.Writer, if in.TiltX != 0 { const prefix string = ",\"tiltX\":" out.RawString(prefix) - out.Int64(int64(in.TiltX)) + out.Float64(float64(in.TiltX)) } if in.TiltY != 0 { const prefix string = ",\"tiltY\":" out.RawString(prefix) - out.Int64(int64(in.TiltY)) + out.Float64(float64(in.TiltY)) } if in.Twist != 0 { const prefix string = ",\"twist\":" diff --git a/input/input.go b/input/input.go index e0467ab..52b35e4 100644 --- a/input/input.go +++ b/input/input.go @@ -272,8 +272,8 @@ type DispatchMouseEventParams struct { ClickCount int64 `json:"clickCount,omitempty"` // Number of times the mouse button was clicked (default: 0). Force float64 `json:"force,omitempty"` // The normalized pressure, which has a range of [0,1] (default: 0). TangentialPressure float64 `json:"tangentialPressure,omitempty"` // The normalized tangential pressure, which has a range of [-1,1] (default: 0). - TiltX int64 `json:"tiltX,omitempty"` // The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0). - TiltY int64 `json:"tiltY,omitempty"` // The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). + TiltX float64 `json:"tiltX,omitempty"` // The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0). + TiltY float64 `json:"tiltY,omitempty"` // The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). Twist int64 `json:"twist,omitempty"` // The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). DeltaX float64 `json:"deltaX"` // X delta in CSS pixels for mouse wheel event (default: 0). DeltaY float64 `json:"deltaY"` // Y delta in CSS pixels for mouse wheel event (default: 0). @@ -347,7 +347,7 @@ func (p DispatchMouseEventParams) WithTangentialPressure(tangentialPressure floa // WithTiltX the plane angle between the Y-Z plane and the plane containing // both the stylus axis and the Y axis, in degrees of the range [-90,90], a // positive tiltX is to the right (default: 0). -func (p DispatchMouseEventParams) WithTiltX(tiltX int64) *DispatchMouseEventParams { +func (p DispatchMouseEventParams) WithTiltX(tiltX float64) *DispatchMouseEventParams { p.TiltX = tiltX return &p } @@ -355,7 +355,7 @@ func (p DispatchMouseEventParams) WithTiltX(tiltX int64) *DispatchMouseEventPara // WithTiltY the plane angle between the X-Z plane and the plane containing // both the stylus axis and the X axis, in degrees of the range [-90,90], a // positive tiltY is towards the user (default: 0). -func (p DispatchMouseEventParams) WithTiltY(tiltY int64) *DispatchMouseEventParams { +func (p DispatchMouseEventParams) WithTiltY(tiltY float64) *DispatchMouseEventParams { p.TiltY = tiltY return &p } diff --git a/input/types.go b/input/types.go index 8c0c11c..aa2ae1e 100644 --- a/input/types.go +++ b/input/types.go @@ -23,8 +23,8 @@ type TouchPoint struct { RotationAngle float64 `json:"rotationAngle,omitempty"` // Rotation angle (default: 0.0). Force float64 `json:"force,omitempty"` // Force (default: 1.0). TangentialPressure float64 `json:"tangentialPressure,omitempty"` // The normalized tangential pressure, which has a range of [-1,1] (default: 0). - TiltX int64 `json:"tiltX,omitempty"` // The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0) - TiltY int64 `json:"tiltY,omitempty"` // The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). + TiltX float64 `json:"tiltX,omitempty"` // The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0) + TiltY float64 `json:"tiltY,omitempty"` // The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). Twist int64 `json:"twist,omitempty"` // The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). ID float64 `json:"id,omitempty"` // Identifier used to track touch sources between events, must be unique within an event. } diff --git a/preload/types.go b/preload/types.go index c79987a..c5b3b1f 100644 --- a/preload/types.go +++ b/preload/types.go @@ -269,7 +269,6 @@ const ( PrerenderFinalStatusMemoryPressureOnTrigger PrerenderFinalStatus = "MemoryPressureOnTrigger" PrerenderFinalStatusMemoryPressureAfterTriggered PrerenderFinalStatus = "MemoryPressureAfterTriggered" PrerenderFinalStatusPrerenderingDisabledByDevTools PrerenderFinalStatus = "PrerenderingDisabledByDevTools" - PrerenderFinalStatusResourceLoadBlockedByClient PrerenderFinalStatus = "ResourceLoadBlockedByClient" PrerenderFinalStatusSpeculationRuleRemoved PrerenderFinalStatus = "SpeculationRuleRemoved" PrerenderFinalStatusActivatedWithAuxiliaryBrowsingContexts PrerenderFinalStatus = "ActivatedWithAuxiliaryBrowsingContexts" PrerenderFinalStatusMaxNumOfRunningEagerPrerendersExceeded PrerenderFinalStatus = "MaxNumOfRunningEagerPrerendersExceeded" @@ -408,8 +407,6 @@ func (t *PrerenderFinalStatus) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = PrerenderFinalStatusMemoryPressureAfterTriggered case PrerenderFinalStatusPrerenderingDisabledByDevTools: *t = PrerenderFinalStatusPrerenderingDisabledByDevTools - case PrerenderFinalStatusResourceLoadBlockedByClient: - *t = PrerenderFinalStatusResourceLoadBlockedByClient case PrerenderFinalStatusSpeculationRuleRemoved: *t = PrerenderFinalStatusSpeculationRuleRemoved case PrerenderFinalStatusActivatedWithAuxiliaryBrowsingContexts: