easyjson.go 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package input
  3. import (
  4. json "encoding/json"
  5. easyjson "github.com/mailru/easyjson"
  6. jlexer "github.com/mailru/easyjson/jlexer"
  7. jwriter "github.com/mailru/easyjson/jwriter"
  8. )
  9. // suppress unused package warning
  10. var (
  11. _ *json.RawMessage
  12. _ *jlexer.Lexer
  13. _ *jwriter.Writer
  14. _ easyjson.Marshaler
  15. )
  16. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput(in *jlexer.Lexer, out *TouchPoint) {
  17. isTopLevel := in.IsStart()
  18. if in.IsNull() {
  19. if isTopLevel {
  20. in.Consumed()
  21. }
  22. in.Skip()
  23. return
  24. }
  25. in.Delim('{')
  26. for !in.IsDelim('}') {
  27. key := in.UnsafeFieldName(false)
  28. in.WantColon()
  29. if in.IsNull() {
  30. in.Skip()
  31. in.WantComma()
  32. continue
  33. }
  34. switch key {
  35. case "x":
  36. out.X = float64(in.Float64())
  37. case "y":
  38. out.Y = float64(in.Float64())
  39. case "radiusX":
  40. out.RadiusX = float64(in.Float64())
  41. case "radiusY":
  42. out.RadiusY = float64(in.Float64())
  43. case "rotationAngle":
  44. out.RotationAngle = float64(in.Float64())
  45. case "force":
  46. out.Force = float64(in.Float64())
  47. case "tangentialPressure":
  48. out.TangentialPressure = float64(in.Float64())
  49. case "tiltX":
  50. out.TiltX = float64(in.Float64())
  51. case "tiltY":
  52. out.TiltY = float64(in.Float64())
  53. case "twist":
  54. out.Twist = int64(in.Int64())
  55. case "id":
  56. out.ID = float64(in.Float64())
  57. default:
  58. in.SkipRecursive()
  59. }
  60. in.WantComma()
  61. }
  62. in.Delim('}')
  63. if isTopLevel {
  64. in.Consumed()
  65. }
  66. }
  67. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput(out *jwriter.Writer, in TouchPoint) {
  68. out.RawByte('{')
  69. first := true
  70. _ = first
  71. {
  72. const prefix string = ",\"x\":"
  73. out.RawString(prefix[1:])
  74. out.Float64(float64(in.X))
  75. }
  76. {
  77. const prefix string = ",\"y\":"
  78. out.RawString(prefix)
  79. out.Float64(float64(in.Y))
  80. }
  81. if in.RadiusX != 0 {
  82. const prefix string = ",\"radiusX\":"
  83. out.RawString(prefix)
  84. out.Float64(float64(in.RadiusX))
  85. }
  86. if in.RadiusY != 0 {
  87. const prefix string = ",\"radiusY\":"
  88. out.RawString(prefix)
  89. out.Float64(float64(in.RadiusY))
  90. }
  91. if in.RotationAngle != 0 {
  92. const prefix string = ",\"rotationAngle\":"
  93. out.RawString(prefix)
  94. out.Float64(float64(in.RotationAngle))
  95. }
  96. if in.Force != 0 {
  97. const prefix string = ",\"force\":"
  98. out.RawString(prefix)
  99. out.Float64(float64(in.Force))
  100. }
  101. if in.TangentialPressure != 0 {
  102. const prefix string = ",\"tangentialPressure\":"
  103. out.RawString(prefix)
  104. out.Float64(float64(in.TangentialPressure))
  105. }
  106. if in.TiltX != 0 {
  107. const prefix string = ",\"tiltX\":"
  108. out.RawString(prefix)
  109. out.Float64(float64(in.TiltX))
  110. }
  111. if in.TiltY != 0 {
  112. const prefix string = ",\"tiltY\":"
  113. out.RawString(prefix)
  114. out.Float64(float64(in.TiltY))
  115. }
  116. if in.Twist != 0 {
  117. const prefix string = ",\"twist\":"
  118. out.RawString(prefix)
  119. out.Int64(int64(in.Twist))
  120. }
  121. if in.ID != 0 {
  122. const prefix string = ",\"id\":"
  123. out.RawString(prefix)
  124. out.Float64(float64(in.ID))
  125. }
  126. out.RawByte('}')
  127. }
  128. // MarshalJSON supports json.Marshaler interface
  129. func (v TouchPoint) MarshalJSON() ([]byte, error) {
  130. w := jwriter.Writer{}
  131. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput(&w, v)
  132. return w.Buffer.BuildBytes(), w.Error
  133. }
  134. // MarshalEasyJSON supports easyjson.Marshaler interface
  135. func (v TouchPoint) MarshalEasyJSON(w *jwriter.Writer) {
  136. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput(w, v)
  137. }
  138. // UnmarshalJSON supports json.Unmarshaler interface
  139. func (v *TouchPoint) UnmarshalJSON(data []byte) error {
  140. r := jlexer.Lexer{Data: data}
  141. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput(&r, v)
  142. return r.Error()
  143. }
  144. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  145. func (v *TouchPoint) UnmarshalEasyJSON(l *jlexer.Lexer) {
  146. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput(l, v)
  147. }
  148. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput1(in *jlexer.Lexer, out *SynthesizeTapGestureParams) {
  149. isTopLevel := in.IsStart()
  150. if in.IsNull() {
  151. if isTopLevel {
  152. in.Consumed()
  153. }
  154. in.Skip()
  155. return
  156. }
  157. in.Delim('{')
  158. for !in.IsDelim('}') {
  159. key := in.UnsafeFieldName(false)
  160. in.WantColon()
  161. if in.IsNull() {
  162. in.Skip()
  163. in.WantComma()
  164. continue
  165. }
  166. switch key {
  167. case "x":
  168. out.X = float64(in.Float64())
  169. case "y":
  170. out.Y = float64(in.Float64())
  171. case "duration":
  172. out.Duration = int64(in.Int64())
  173. case "tapCount":
  174. out.TapCount = int64(in.Int64())
  175. case "gestureSourceType":
  176. (out.GestureSourceType).UnmarshalEasyJSON(in)
  177. default:
  178. in.SkipRecursive()
  179. }
  180. in.WantComma()
  181. }
  182. in.Delim('}')
  183. if isTopLevel {
  184. in.Consumed()
  185. }
  186. }
  187. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput1(out *jwriter.Writer, in SynthesizeTapGestureParams) {
  188. out.RawByte('{')
  189. first := true
  190. _ = first
  191. {
  192. const prefix string = ",\"x\":"
  193. out.RawString(prefix[1:])
  194. out.Float64(float64(in.X))
  195. }
  196. {
  197. const prefix string = ",\"y\":"
  198. out.RawString(prefix)
  199. out.Float64(float64(in.Y))
  200. }
  201. if in.Duration != 0 {
  202. const prefix string = ",\"duration\":"
  203. out.RawString(prefix)
  204. out.Int64(int64(in.Duration))
  205. }
  206. if in.TapCount != 0 {
  207. const prefix string = ",\"tapCount\":"
  208. out.RawString(prefix)
  209. out.Int64(int64(in.TapCount))
  210. }
  211. if in.GestureSourceType != "" {
  212. const prefix string = ",\"gestureSourceType\":"
  213. out.RawString(prefix)
  214. (in.GestureSourceType).MarshalEasyJSON(out)
  215. }
  216. out.RawByte('}')
  217. }
  218. // MarshalJSON supports json.Marshaler interface
  219. func (v SynthesizeTapGestureParams) MarshalJSON() ([]byte, error) {
  220. w := jwriter.Writer{}
  221. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput1(&w, v)
  222. return w.Buffer.BuildBytes(), w.Error
  223. }
  224. // MarshalEasyJSON supports easyjson.Marshaler interface
  225. func (v SynthesizeTapGestureParams) MarshalEasyJSON(w *jwriter.Writer) {
  226. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput1(w, v)
  227. }
  228. // UnmarshalJSON supports json.Unmarshaler interface
  229. func (v *SynthesizeTapGestureParams) UnmarshalJSON(data []byte) error {
  230. r := jlexer.Lexer{Data: data}
  231. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput1(&r, v)
  232. return r.Error()
  233. }
  234. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  235. func (v *SynthesizeTapGestureParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  236. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput1(l, v)
  237. }
  238. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput2(in *jlexer.Lexer, out *SynthesizeScrollGestureParams) {
  239. isTopLevel := in.IsStart()
  240. if in.IsNull() {
  241. if isTopLevel {
  242. in.Consumed()
  243. }
  244. in.Skip()
  245. return
  246. }
  247. in.Delim('{')
  248. for !in.IsDelim('}') {
  249. key := in.UnsafeFieldName(false)
  250. in.WantColon()
  251. if in.IsNull() {
  252. in.Skip()
  253. in.WantComma()
  254. continue
  255. }
  256. switch key {
  257. case "x":
  258. out.X = float64(in.Float64())
  259. case "y":
  260. out.Y = float64(in.Float64())
  261. case "xDistance":
  262. out.XDistance = float64(in.Float64())
  263. case "yDistance":
  264. out.YDistance = float64(in.Float64())
  265. case "xOverscroll":
  266. out.XOverscroll = float64(in.Float64())
  267. case "yOverscroll":
  268. out.YOverscroll = float64(in.Float64())
  269. case "preventFling":
  270. out.PreventFling = bool(in.Bool())
  271. case "speed":
  272. out.Speed = int64(in.Int64())
  273. case "gestureSourceType":
  274. (out.GestureSourceType).UnmarshalEasyJSON(in)
  275. case "repeatCount":
  276. out.RepeatCount = int64(in.Int64())
  277. case "repeatDelayMs":
  278. out.RepeatDelayMs = int64(in.Int64())
  279. case "interactionMarkerName":
  280. out.InteractionMarkerName = string(in.String())
  281. default:
  282. in.SkipRecursive()
  283. }
  284. in.WantComma()
  285. }
  286. in.Delim('}')
  287. if isTopLevel {
  288. in.Consumed()
  289. }
  290. }
  291. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput2(out *jwriter.Writer, in SynthesizeScrollGestureParams) {
  292. out.RawByte('{')
  293. first := true
  294. _ = first
  295. {
  296. const prefix string = ",\"x\":"
  297. out.RawString(prefix[1:])
  298. out.Float64(float64(in.X))
  299. }
  300. {
  301. const prefix string = ",\"y\":"
  302. out.RawString(prefix)
  303. out.Float64(float64(in.Y))
  304. }
  305. if in.XDistance != 0 {
  306. const prefix string = ",\"xDistance\":"
  307. out.RawString(prefix)
  308. out.Float64(float64(in.XDistance))
  309. }
  310. if in.YDistance != 0 {
  311. const prefix string = ",\"yDistance\":"
  312. out.RawString(prefix)
  313. out.Float64(float64(in.YDistance))
  314. }
  315. if in.XOverscroll != 0 {
  316. const prefix string = ",\"xOverscroll\":"
  317. out.RawString(prefix)
  318. out.Float64(float64(in.XOverscroll))
  319. }
  320. if in.YOverscroll != 0 {
  321. const prefix string = ",\"yOverscroll\":"
  322. out.RawString(prefix)
  323. out.Float64(float64(in.YOverscroll))
  324. }
  325. if in.PreventFling {
  326. const prefix string = ",\"preventFling\":"
  327. out.RawString(prefix)
  328. out.Bool(bool(in.PreventFling))
  329. }
  330. if in.Speed != 0 {
  331. const prefix string = ",\"speed\":"
  332. out.RawString(prefix)
  333. out.Int64(int64(in.Speed))
  334. }
  335. if in.GestureSourceType != "" {
  336. const prefix string = ",\"gestureSourceType\":"
  337. out.RawString(prefix)
  338. (in.GestureSourceType).MarshalEasyJSON(out)
  339. }
  340. if in.RepeatCount != 0 {
  341. const prefix string = ",\"repeatCount\":"
  342. out.RawString(prefix)
  343. out.Int64(int64(in.RepeatCount))
  344. }
  345. if in.RepeatDelayMs != 0 {
  346. const prefix string = ",\"repeatDelayMs\":"
  347. out.RawString(prefix)
  348. out.Int64(int64(in.RepeatDelayMs))
  349. }
  350. if in.InteractionMarkerName != "" {
  351. const prefix string = ",\"interactionMarkerName\":"
  352. out.RawString(prefix)
  353. out.String(string(in.InteractionMarkerName))
  354. }
  355. out.RawByte('}')
  356. }
  357. // MarshalJSON supports json.Marshaler interface
  358. func (v SynthesizeScrollGestureParams) MarshalJSON() ([]byte, error) {
  359. w := jwriter.Writer{}
  360. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput2(&w, v)
  361. return w.Buffer.BuildBytes(), w.Error
  362. }
  363. // MarshalEasyJSON supports easyjson.Marshaler interface
  364. func (v SynthesizeScrollGestureParams) MarshalEasyJSON(w *jwriter.Writer) {
  365. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput2(w, v)
  366. }
  367. // UnmarshalJSON supports json.Unmarshaler interface
  368. func (v *SynthesizeScrollGestureParams) UnmarshalJSON(data []byte) error {
  369. r := jlexer.Lexer{Data: data}
  370. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput2(&r, v)
  371. return r.Error()
  372. }
  373. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  374. func (v *SynthesizeScrollGestureParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  375. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput2(l, v)
  376. }
  377. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput3(in *jlexer.Lexer, out *SynthesizePinchGestureParams) {
  378. isTopLevel := in.IsStart()
  379. if in.IsNull() {
  380. if isTopLevel {
  381. in.Consumed()
  382. }
  383. in.Skip()
  384. return
  385. }
  386. in.Delim('{')
  387. for !in.IsDelim('}') {
  388. key := in.UnsafeFieldName(false)
  389. in.WantColon()
  390. if in.IsNull() {
  391. in.Skip()
  392. in.WantComma()
  393. continue
  394. }
  395. switch key {
  396. case "x":
  397. out.X = float64(in.Float64())
  398. case "y":
  399. out.Y = float64(in.Float64())
  400. case "scaleFactor":
  401. out.ScaleFactor = float64(in.Float64())
  402. case "relativeSpeed":
  403. out.RelativeSpeed = int64(in.Int64())
  404. case "gestureSourceType":
  405. (out.GestureSourceType).UnmarshalEasyJSON(in)
  406. default:
  407. in.SkipRecursive()
  408. }
  409. in.WantComma()
  410. }
  411. in.Delim('}')
  412. if isTopLevel {
  413. in.Consumed()
  414. }
  415. }
  416. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput3(out *jwriter.Writer, in SynthesizePinchGestureParams) {
  417. out.RawByte('{')
  418. first := true
  419. _ = first
  420. {
  421. const prefix string = ",\"x\":"
  422. out.RawString(prefix[1:])
  423. out.Float64(float64(in.X))
  424. }
  425. {
  426. const prefix string = ",\"y\":"
  427. out.RawString(prefix)
  428. out.Float64(float64(in.Y))
  429. }
  430. {
  431. const prefix string = ",\"scaleFactor\":"
  432. out.RawString(prefix)
  433. out.Float64(float64(in.ScaleFactor))
  434. }
  435. if in.RelativeSpeed != 0 {
  436. const prefix string = ",\"relativeSpeed\":"
  437. out.RawString(prefix)
  438. out.Int64(int64(in.RelativeSpeed))
  439. }
  440. if in.GestureSourceType != "" {
  441. const prefix string = ",\"gestureSourceType\":"
  442. out.RawString(prefix)
  443. (in.GestureSourceType).MarshalEasyJSON(out)
  444. }
  445. out.RawByte('}')
  446. }
  447. // MarshalJSON supports json.Marshaler interface
  448. func (v SynthesizePinchGestureParams) MarshalJSON() ([]byte, error) {
  449. w := jwriter.Writer{}
  450. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput3(&w, v)
  451. return w.Buffer.BuildBytes(), w.Error
  452. }
  453. // MarshalEasyJSON supports easyjson.Marshaler interface
  454. func (v SynthesizePinchGestureParams) MarshalEasyJSON(w *jwriter.Writer) {
  455. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput3(w, v)
  456. }
  457. // UnmarshalJSON supports json.Unmarshaler interface
  458. func (v *SynthesizePinchGestureParams) UnmarshalJSON(data []byte) error {
  459. r := jlexer.Lexer{Data: data}
  460. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput3(&r, v)
  461. return r.Error()
  462. }
  463. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  464. func (v *SynthesizePinchGestureParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  465. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput3(l, v)
  466. }
  467. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput4(in *jlexer.Lexer, out *SetInterceptDragsParams) {
  468. isTopLevel := in.IsStart()
  469. if in.IsNull() {
  470. if isTopLevel {
  471. in.Consumed()
  472. }
  473. in.Skip()
  474. return
  475. }
  476. in.Delim('{')
  477. for !in.IsDelim('}') {
  478. key := in.UnsafeFieldName(false)
  479. in.WantColon()
  480. if in.IsNull() {
  481. in.Skip()
  482. in.WantComma()
  483. continue
  484. }
  485. switch key {
  486. case "enabled":
  487. out.Enabled = bool(in.Bool())
  488. default:
  489. in.SkipRecursive()
  490. }
  491. in.WantComma()
  492. }
  493. in.Delim('}')
  494. if isTopLevel {
  495. in.Consumed()
  496. }
  497. }
  498. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput4(out *jwriter.Writer, in SetInterceptDragsParams) {
  499. out.RawByte('{')
  500. first := true
  501. _ = first
  502. {
  503. const prefix string = ",\"enabled\":"
  504. out.RawString(prefix[1:])
  505. out.Bool(bool(in.Enabled))
  506. }
  507. out.RawByte('}')
  508. }
  509. // MarshalJSON supports json.Marshaler interface
  510. func (v SetInterceptDragsParams) MarshalJSON() ([]byte, error) {
  511. w := jwriter.Writer{}
  512. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput4(&w, v)
  513. return w.Buffer.BuildBytes(), w.Error
  514. }
  515. // MarshalEasyJSON supports easyjson.Marshaler interface
  516. func (v SetInterceptDragsParams) MarshalEasyJSON(w *jwriter.Writer) {
  517. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput4(w, v)
  518. }
  519. // UnmarshalJSON supports json.Unmarshaler interface
  520. func (v *SetInterceptDragsParams) UnmarshalJSON(data []byte) error {
  521. r := jlexer.Lexer{Data: data}
  522. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput4(&r, v)
  523. return r.Error()
  524. }
  525. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  526. func (v *SetInterceptDragsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  527. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput4(l, v)
  528. }
  529. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput5(in *jlexer.Lexer, out *SetIgnoreInputEventsParams) {
  530. isTopLevel := in.IsStart()
  531. if in.IsNull() {
  532. if isTopLevel {
  533. in.Consumed()
  534. }
  535. in.Skip()
  536. return
  537. }
  538. in.Delim('{')
  539. for !in.IsDelim('}') {
  540. key := in.UnsafeFieldName(false)
  541. in.WantColon()
  542. if in.IsNull() {
  543. in.Skip()
  544. in.WantComma()
  545. continue
  546. }
  547. switch key {
  548. case "ignore":
  549. out.Ignore = bool(in.Bool())
  550. default:
  551. in.SkipRecursive()
  552. }
  553. in.WantComma()
  554. }
  555. in.Delim('}')
  556. if isTopLevel {
  557. in.Consumed()
  558. }
  559. }
  560. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput5(out *jwriter.Writer, in SetIgnoreInputEventsParams) {
  561. out.RawByte('{')
  562. first := true
  563. _ = first
  564. {
  565. const prefix string = ",\"ignore\":"
  566. out.RawString(prefix[1:])
  567. out.Bool(bool(in.Ignore))
  568. }
  569. out.RawByte('}')
  570. }
  571. // MarshalJSON supports json.Marshaler interface
  572. func (v SetIgnoreInputEventsParams) MarshalJSON() ([]byte, error) {
  573. w := jwriter.Writer{}
  574. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput5(&w, v)
  575. return w.Buffer.BuildBytes(), w.Error
  576. }
  577. // MarshalEasyJSON supports easyjson.Marshaler interface
  578. func (v SetIgnoreInputEventsParams) MarshalEasyJSON(w *jwriter.Writer) {
  579. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput5(w, v)
  580. }
  581. // UnmarshalJSON supports json.Unmarshaler interface
  582. func (v *SetIgnoreInputEventsParams) UnmarshalJSON(data []byte) error {
  583. r := jlexer.Lexer{Data: data}
  584. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput5(&r, v)
  585. return r.Error()
  586. }
  587. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  588. func (v *SetIgnoreInputEventsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  589. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput5(l, v)
  590. }
  591. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput6(in *jlexer.Lexer, out *InsertTextParams) {
  592. isTopLevel := in.IsStart()
  593. if in.IsNull() {
  594. if isTopLevel {
  595. in.Consumed()
  596. }
  597. in.Skip()
  598. return
  599. }
  600. in.Delim('{')
  601. for !in.IsDelim('}') {
  602. key := in.UnsafeFieldName(false)
  603. in.WantColon()
  604. if in.IsNull() {
  605. in.Skip()
  606. in.WantComma()
  607. continue
  608. }
  609. switch key {
  610. case "text":
  611. out.Text = string(in.String())
  612. default:
  613. in.SkipRecursive()
  614. }
  615. in.WantComma()
  616. }
  617. in.Delim('}')
  618. if isTopLevel {
  619. in.Consumed()
  620. }
  621. }
  622. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput6(out *jwriter.Writer, in InsertTextParams) {
  623. out.RawByte('{')
  624. first := true
  625. _ = first
  626. {
  627. const prefix string = ",\"text\":"
  628. out.RawString(prefix[1:])
  629. out.String(string(in.Text))
  630. }
  631. out.RawByte('}')
  632. }
  633. // MarshalJSON supports json.Marshaler interface
  634. func (v InsertTextParams) MarshalJSON() ([]byte, error) {
  635. w := jwriter.Writer{}
  636. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput6(&w, v)
  637. return w.Buffer.BuildBytes(), w.Error
  638. }
  639. // MarshalEasyJSON supports easyjson.Marshaler interface
  640. func (v InsertTextParams) MarshalEasyJSON(w *jwriter.Writer) {
  641. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput6(w, v)
  642. }
  643. // UnmarshalJSON supports json.Unmarshaler interface
  644. func (v *InsertTextParams) UnmarshalJSON(data []byte) error {
  645. r := jlexer.Lexer{Data: data}
  646. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput6(&r, v)
  647. return r.Error()
  648. }
  649. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  650. func (v *InsertTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  651. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput6(l, v)
  652. }
  653. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput7(in *jlexer.Lexer, out *ImeSetCompositionParams) {
  654. isTopLevel := in.IsStart()
  655. if in.IsNull() {
  656. if isTopLevel {
  657. in.Consumed()
  658. }
  659. in.Skip()
  660. return
  661. }
  662. in.Delim('{')
  663. for !in.IsDelim('}') {
  664. key := in.UnsafeFieldName(false)
  665. in.WantColon()
  666. if in.IsNull() {
  667. in.Skip()
  668. in.WantComma()
  669. continue
  670. }
  671. switch key {
  672. case "text":
  673. out.Text = string(in.String())
  674. case "selectionStart":
  675. out.SelectionStart = int64(in.Int64())
  676. case "selectionEnd":
  677. out.SelectionEnd = int64(in.Int64())
  678. case "replacementStart":
  679. out.ReplacementStart = int64(in.Int64())
  680. case "replacementEnd":
  681. out.ReplacementEnd = int64(in.Int64())
  682. default:
  683. in.SkipRecursive()
  684. }
  685. in.WantComma()
  686. }
  687. in.Delim('}')
  688. if isTopLevel {
  689. in.Consumed()
  690. }
  691. }
  692. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput7(out *jwriter.Writer, in ImeSetCompositionParams) {
  693. out.RawByte('{')
  694. first := true
  695. _ = first
  696. {
  697. const prefix string = ",\"text\":"
  698. out.RawString(prefix[1:])
  699. out.String(string(in.Text))
  700. }
  701. {
  702. const prefix string = ",\"selectionStart\":"
  703. out.RawString(prefix)
  704. out.Int64(int64(in.SelectionStart))
  705. }
  706. {
  707. const prefix string = ",\"selectionEnd\":"
  708. out.RawString(prefix)
  709. out.Int64(int64(in.SelectionEnd))
  710. }
  711. if in.ReplacementStart != 0 {
  712. const prefix string = ",\"replacementStart\":"
  713. out.RawString(prefix)
  714. out.Int64(int64(in.ReplacementStart))
  715. }
  716. if in.ReplacementEnd != 0 {
  717. const prefix string = ",\"replacementEnd\":"
  718. out.RawString(prefix)
  719. out.Int64(int64(in.ReplacementEnd))
  720. }
  721. out.RawByte('}')
  722. }
  723. // MarshalJSON supports json.Marshaler interface
  724. func (v ImeSetCompositionParams) MarshalJSON() ([]byte, error) {
  725. w := jwriter.Writer{}
  726. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput7(&w, v)
  727. return w.Buffer.BuildBytes(), w.Error
  728. }
  729. // MarshalEasyJSON supports easyjson.Marshaler interface
  730. func (v ImeSetCompositionParams) MarshalEasyJSON(w *jwriter.Writer) {
  731. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput7(w, v)
  732. }
  733. // UnmarshalJSON supports json.Unmarshaler interface
  734. func (v *ImeSetCompositionParams) UnmarshalJSON(data []byte) error {
  735. r := jlexer.Lexer{Data: data}
  736. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput7(&r, v)
  737. return r.Error()
  738. }
  739. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  740. func (v *ImeSetCompositionParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  741. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput7(l, v)
  742. }
  743. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput8(in *jlexer.Lexer, out *EventDragIntercepted) {
  744. isTopLevel := in.IsStart()
  745. if in.IsNull() {
  746. if isTopLevel {
  747. in.Consumed()
  748. }
  749. in.Skip()
  750. return
  751. }
  752. in.Delim('{')
  753. for !in.IsDelim('}') {
  754. key := in.UnsafeFieldName(false)
  755. in.WantColon()
  756. if in.IsNull() {
  757. in.Skip()
  758. in.WantComma()
  759. continue
  760. }
  761. switch key {
  762. case "data":
  763. if in.IsNull() {
  764. in.Skip()
  765. out.Data = nil
  766. } else {
  767. if out.Data == nil {
  768. out.Data = new(DragData)
  769. }
  770. (*out.Data).UnmarshalEasyJSON(in)
  771. }
  772. default:
  773. in.SkipRecursive()
  774. }
  775. in.WantComma()
  776. }
  777. in.Delim('}')
  778. if isTopLevel {
  779. in.Consumed()
  780. }
  781. }
  782. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput8(out *jwriter.Writer, in EventDragIntercepted) {
  783. out.RawByte('{')
  784. first := true
  785. _ = first
  786. {
  787. const prefix string = ",\"data\":"
  788. out.RawString(prefix[1:])
  789. if in.Data == nil {
  790. out.RawString("null")
  791. } else {
  792. (*in.Data).MarshalEasyJSON(out)
  793. }
  794. }
  795. out.RawByte('}')
  796. }
  797. // MarshalJSON supports json.Marshaler interface
  798. func (v EventDragIntercepted) MarshalJSON() ([]byte, error) {
  799. w := jwriter.Writer{}
  800. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput8(&w, v)
  801. return w.Buffer.BuildBytes(), w.Error
  802. }
  803. // MarshalEasyJSON supports easyjson.Marshaler interface
  804. func (v EventDragIntercepted) MarshalEasyJSON(w *jwriter.Writer) {
  805. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput8(w, v)
  806. }
  807. // UnmarshalJSON supports json.Unmarshaler interface
  808. func (v *EventDragIntercepted) UnmarshalJSON(data []byte) error {
  809. r := jlexer.Lexer{Data: data}
  810. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput8(&r, v)
  811. return r.Error()
  812. }
  813. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  814. func (v *EventDragIntercepted) UnmarshalEasyJSON(l *jlexer.Lexer) {
  815. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput8(l, v)
  816. }
  817. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput9(in *jlexer.Lexer, out *EmulateTouchFromMouseEventParams) {
  818. isTopLevel := in.IsStart()
  819. if in.IsNull() {
  820. if isTopLevel {
  821. in.Consumed()
  822. }
  823. in.Skip()
  824. return
  825. }
  826. in.Delim('{')
  827. for !in.IsDelim('}') {
  828. key := in.UnsafeFieldName(false)
  829. in.WantColon()
  830. if in.IsNull() {
  831. in.Skip()
  832. in.WantComma()
  833. continue
  834. }
  835. switch key {
  836. case "type":
  837. (out.Type).UnmarshalEasyJSON(in)
  838. case "x":
  839. out.X = int64(in.Int64())
  840. case "y":
  841. out.Y = int64(in.Int64())
  842. case "button":
  843. (out.Button).UnmarshalEasyJSON(in)
  844. case "timestamp":
  845. if in.IsNull() {
  846. in.Skip()
  847. out.Timestamp = nil
  848. } else {
  849. if out.Timestamp == nil {
  850. out.Timestamp = new(TimeSinceEpoch)
  851. }
  852. (*out.Timestamp).UnmarshalEasyJSON(in)
  853. }
  854. case "deltaX":
  855. out.DeltaX = float64(in.Float64())
  856. case "deltaY":
  857. out.DeltaY = float64(in.Float64())
  858. case "modifiers":
  859. (out.Modifiers).UnmarshalEasyJSON(in)
  860. case "clickCount":
  861. out.ClickCount = int64(in.Int64())
  862. default:
  863. in.SkipRecursive()
  864. }
  865. in.WantComma()
  866. }
  867. in.Delim('}')
  868. if isTopLevel {
  869. in.Consumed()
  870. }
  871. }
  872. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput9(out *jwriter.Writer, in EmulateTouchFromMouseEventParams) {
  873. out.RawByte('{')
  874. first := true
  875. _ = first
  876. {
  877. const prefix string = ",\"type\":"
  878. out.RawString(prefix[1:])
  879. (in.Type).MarshalEasyJSON(out)
  880. }
  881. {
  882. const prefix string = ",\"x\":"
  883. out.RawString(prefix)
  884. out.Int64(int64(in.X))
  885. }
  886. {
  887. const prefix string = ",\"y\":"
  888. out.RawString(prefix)
  889. out.Int64(int64(in.Y))
  890. }
  891. {
  892. const prefix string = ",\"button\":"
  893. out.RawString(prefix)
  894. (in.Button).MarshalEasyJSON(out)
  895. }
  896. if in.Timestamp != nil {
  897. const prefix string = ",\"timestamp\":"
  898. out.RawString(prefix)
  899. (*in.Timestamp).MarshalEasyJSON(out)
  900. }
  901. {
  902. const prefix string = ",\"deltaX\":"
  903. out.RawString(prefix)
  904. out.Float64(float64(in.DeltaX))
  905. }
  906. {
  907. const prefix string = ",\"deltaY\":"
  908. out.RawString(prefix)
  909. out.Float64(float64(in.DeltaY))
  910. }
  911. {
  912. const prefix string = ",\"modifiers\":"
  913. out.RawString(prefix)
  914. (in.Modifiers).MarshalEasyJSON(out)
  915. }
  916. if in.ClickCount != 0 {
  917. const prefix string = ",\"clickCount\":"
  918. out.RawString(prefix)
  919. out.Int64(int64(in.ClickCount))
  920. }
  921. out.RawByte('}')
  922. }
  923. // MarshalJSON supports json.Marshaler interface
  924. func (v EmulateTouchFromMouseEventParams) MarshalJSON() ([]byte, error) {
  925. w := jwriter.Writer{}
  926. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput9(&w, v)
  927. return w.Buffer.BuildBytes(), w.Error
  928. }
  929. // MarshalEasyJSON supports easyjson.Marshaler interface
  930. func (v EmulateTouchFromMouseEventParams) MarshalEasyJSON(w *jwriter.Writer) {
  931. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput9(w, v)
  932. }
  933. // UnmarshalJSON supports json.Unmarshaler interface
  934. func (v *EmulateTouchFromMouseEventParams) UnmarshalJSON(data []byte) error {
  935. r := jlexer.Lexer{Data: data}
  936. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput9(&r, v)
  937. return r.Error()
  938. }
  939. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  940. func (v *EmulateTouchFromMouseEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  941. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput9(l, v)
  942. }
  943. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput10(in *jlexer.Lexer, out *DragDataItem) {
  944. isTopLevel := in.IsStart()
  945. if in.IsNull() {
  946. if isTopLevel {
  947. in.Consumed()
  948. }
  949. in.Skip()
  950. return
  951. }
  952. in.Delim('{')
  953. for !in.IsDelim('}') {
  954. key := in.UnsafeFieldName(false)
  955. in.WantColon()
  956. if in.IsNull() {
  957. in.Skip()
  958. in.WantComma()
  959. continue
  960. }
  961. switch key {
  962. case "mimeType":
  963. out.MimeType = string(in.String())
  964. case "data":
  965. out.Data = string(in.String())
  966. case "title":
  967. out.Title = string(in.String())
  968. case "baseURL":
  969. out.BaseURL = string(in.String())
  970. default:
  971. in.SkipRecursive()
  972. }
  973. in.WantComma()
  974. }
  975. in.Delim('}')
  976. if isTopLevel {
  977. in.Consumed()
  978. }
  979. }
  980. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput10(out *jwriter.Writer, in DragDataItem) {
  981. out.RawByte('{')
  982. first := true
  983. _ = first
  984. {
  985. const prefix string = ",\"mimeType\":"
  986. out.RawString(prefix[1:])
  987. out.String(string(in.MimeType))
  988. }
  989. {
  990. const prefix string = ",\"data\":"
  991. out.RawString(prefix)
  992. out.String(string(in.Data))
  993. }
  994. if in.Title != "" {
  995. const prefix string = ",\"title\":"
  996. out.RawString(prefix)
  997. out.String(string(in.Title))
  998. }
  999. if in.BaseURL != "" {
  1000. const prefix string = ",\"baseURL\":"
  1001. out.RawString(prefix)
  1002. out.String(string(in.BaseURL))
  1003. }
  1004. out.RawByte('}')
  1005. }
  1006. // MarshalJSON supports json.Marshaler interface
  1007. func (v DragDataItem) MarshalJSON() ([]byte, error) {
  1008. w := jwriter.Writer{}
  1009. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput10(&w, v)
  1010. return w.Buffer.BuildBytes(), w.Error
  1011. }
  1012. // MarshalEasyJSON supports easyjson.Marshaler interface
  1013. func (v DragDataItem) MarshalEasyJSON(w *jwriter.Writer) {
  1014. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput10(w, v)
  1015. }
  1016. // UnmarshalJSON supports json.Unmarshaler interface
  1017. func (v *DragDataItem) UnmarshalJSON(data []byte) error {
  1018. r := jlexer.Lexer{Data: data}
  1019. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput10(&r, v)
  1020. return r.Error()
  1021. }
  1022. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1023. func (v *DragDataItem) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1024. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput10(l, v)
  1025. }
  1026. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput11(in *jlexer.Lexer, out *DragData) {
  1027. isTopLevel := in.IsStart()
  1028. if in.IsNull() {
  1029. if isTopLevel {
  1030. in.Consumed()
  1031. }
  1032. in.Skip()
  1033. return
  1034. }
  1035. in.Delim('{')
  1036. for !in.IsDelim('}') {
  1037. key := in.UnsafeFieldName(false)
  1038. in.WantColon()
  1039. if in.IsNull() {
  1040. in.Skip()
  1041. in.WantComma()
  1042. continue
  1043. }
  1044. switch key {
  1045. case "items":
  1046. if in.IsNull() {
  1047. in.Skip()
  1048. out.Items = nil
  1049. } else {
  1050. in.Delim('[')
  1051. if out.Items == nil {
  1052. if !in.IsDelim(']') {
  1053. out.Items = make([]*DragDataItem, 0, 8)
  1054. } else {
  1055. out.Items = []*DragDataItem{}
  1056. }
  1057. } else {
  1058. out.Items = (out.Items)[:0]
  1059. }
  1060. for !in.IsDelim(']') {
  1061. var v1 *DragDataItem
  1062. if in.IsNull() {
  1063. in.Skip()
  1064. v1 = nil
  1065. } else {
  1066. if v1 == nil {
  1067. v1 = new(DragDataItem)
  1068. }
  1069. (*v1).UnmarshalEasyJSON(in)
  1070. }
  1071. out.Items = append(out.Items, v1)
  1072. in.WantComma()
  1073. }
  1074. in.Delim(']')
  1075. }
  1076. case "files":
  1077. if in.IsNull() {
  1078. in.Skip()
  1079. out.Files = nil
  1080. } else {
  1081. in.Delim('[')
  1082. if out.Files == nil {
  1083. if !in.IsDelim(']') {
  1084. out.Files = make([]string, 0, 4)
  1085. } else {
  1086. out.Files = []string{}
  1087. }
  1088. } else {
  1089. out.Files = (out.Files)[:0]
  1090. }
  1091. for !in.IsDelim(']') {
  1092. var v2 string
  1093. v2 = string(in.String())
  1094. out.Files = append(out.Files, v2)
  1095. in.WantComma()
  1096. }
  1097. in.Delim(']')
  1098. }
  1099. case "dragOperationsMask":
  1100. out.DragOperationsMask = int64(in.Int64())
  1101. default:
  1102. in.SkipRecursive()
  1103. }
  1104. in.WantComma()
  1105. }
  1106. in.Delim('}')
  1107. if isTopLevel {
  1108. in.Consumed()
  1109. }
  1110. }
  1111. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput11(out *jwriter.Writer, in DragData) {
  1112. out.RawByte('{')
  1113. first := true
  1114. _ = first
  1115. {
  1116. const prefix string = ",\"items\":"
  1117. out.RawString(prefix[1:])
  1118. if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1119. out.RawString("null")
  1120. } else {
  1121. out.RawByte('[')
  1122. for v3, v4 := range in.Items {
  1123. if v3 > 0 {
  1124. out.RawByte(',')
  1125. }
  1126. if v4 == nil {
  1127. out.RawString("null")
  1128. } else {
  1129. (*v4).MarshalEasyJSON(out)
  1130. }
  1131. }
  1132. out.RawByte(']')
  1133. }
  1134. }
  1135. if len(in.Files) != 0 {
  1136. const prefix string = ",\"files\":"
  1137. out.RawString(prefix)
  1138. {
  1139. out.RawByte('[')
  1140. for v5, v6 := range in.Files {
  1141. if v5 > 0 {
  1142. out.RawByte(',')
  1143. }
  1144. out.String(string(v6))
  1145. }
  1146. out.RawByte(']')
  1147. }
  1148. }
  1149. {
  1150. const prefix string = ",\"dragOperationsMask\":"
  1151. out.RawString(prefix)
  1152. out.Int64(int64(in.DragOperationsMask))
  1153. }
  1154. out.RawByte('}')
  1155. }
  1156. // MarshalJSON supports json.Marshaler interface
  1157. func (v DragData) MarshalJSON() ([]byte, error) {
  1158. w := jwriter.Writer{}
  1159. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput11(&w, v)
  1160. return w.Buffer.BuildBytes(), w.Error
  1161. }
  1162. // MarshalEasyJSON supports easyjson.Marshaler interface
  1163. func (v DragData) MarshalEasyJSON(w *jwriter.Writer) {
  1164. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput11(w, v)
  1165. }
  1166. // UnmarshalJSON supports json.Unmarshaler interface
  1167. func (v *DragData) UnmarshalJSON(data []byte) error {
  1168. r := jlexer.Lexer{Data: data}
  1169. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput11(&r, v)
  1170. return r.Error()
  1171. }
  1172. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1173. func (v *DragData) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1174. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput11(l, v)
  1175. }
  1176. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput12(in *jlexer.Lexer, out *DispatchTouchEventParams) {
  1177. isTopLevel := in.IsStart()
  1178. if in.IsNull() {
  1179. if isTopLevel {
  1180. in.Consumed()
  1181. }
  1182. in.Skip()
  1183. return
  1184. }
  1185. in.Delim('{')
  1186. for !in.IsDelim('}') {
  1187. key := in.UnsafeFieldName(false)
  1188. in.WantColon()
  1189. if in.IsNull() {
  1190. in.Skip()
  1191. in.WantComma()
  1192. continue
  1193. }
  1194. switch key {
  1195. case "type":
  1196. (out.Type).UnmarshalEasyJSON(in)
  1197. case "touchPoints":
  1198. if in.IsNull() {
  1199. in.Skip()
  1200. out.TouchPoints = nil
  1201. } else {
  1202. in.Delim('[')
  1203. if out.TouchPoints == nil {
  1204. if !in.IsDelim(']') {
  1205. out.TouchPoints = make([]*TouchPoint, 0, 8)
  1206. } else {
  1207. out.TouchPoints = []*TouchPoint{}
  1208. }
  1209. } else {
  1210. out.TouchPoints = (out.TouchPoints)[:0]
  1211. }
  1212. for !in.IsDelim(']') {
  1213. var v7 *TouchPoint
  1214. if in.IsNull() {
  1215. in.Skip()
  1216. v7 = nil
  1217. } else {
  1218. if v7 == nil {
  1219. v7 = new(TouchPoint)
  1220. }
  1221. (*v7).UnmarshalEasyJSON(in)
  1222. }
  1223. out.TouchPoints = append(out.TouchPoints, v7)
  1224. in.WantComma()
  1225. }
  1226. in.Delim(']')
  1227. }
  1228. case "modifiers":
  1229. (out.Modifiers).UnmarshalEasyJSON(in)
  1230. case "timestamp":
  1231. if in.IsNull() {
  1232. in.Skip()
  1233. out.Timestamp = nil
  1234. } else {
  1235. if out.Timestamp == nil {
  1236. out.Timestamp = new(TimeSinceEpoch)
  1237. }
  1238. (*out.Timestamp).UnmarshalEasyJSON(in)
  1239. }
  1240. default:
  1241. in.SkipRecursive()
  1242. }
  1243. in.WantComma()
  1244. }
  1245. in.Delim('}')
  1246. if isTopLevel {
  1247. in.Consumed()
  1248. }
  1249. }
  1250. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput12(out *jwriter.Writer, in DispatchTouchEventParams) {
  1251. out.RawByte('{')
  1252. first := true
  1253. _ = first
  1254. {
  1255. const prefix string = ",\"type\":"
  1256. out.RawString(prefix[1:])
  1257. (in.Type).MarshalEasyJSON(out)
  1258. }
  1259. {
  1260. const prefix string = ",\"touchPoints\":"
  1261. out.RawString(prefix)
  1262. if in.TouchPoints == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1263. out.RawString("null")
  1264. } else {
  1265. out.RawByte('[')
  1266. for v8, v9 := range in.TouchPoints {
  1267. if v8 > 0 {
  1268. out.RawByte(',')
  1269. }
  1270. if v9 == nil {
  1271. out.RawString("null")
  1272. } else {
  1273. (*v9).MarshalEasyJSON(out)
  1274. }
  1275. }
  1276. out.RawByte(']')
  1277. }
  1278. }
  1279. {
  1280. const prefix string = ",\"modifiers\":"
  1281. out.RawString(prefix)
  1282. (in.Modifiers).MarshalEasyJSON(out)
  1283. }
  1284. if in.Timestamp != nil {
  1285. const prefix string = ",\"timestamp\":"
  1286. out.RawString(prefix)
  1287. (*in.Timestamp).MarshalEasyJSON(out)
  1288. }
  1289. out.RawByte('}')
  1290. }
  1291. // MarshalJSON supports json.Marshaler interface
  1292. func (v DispatchTouchEventParams) MarshalJSON() ([]byte, error) {
  1293. w := jwriter.Writer{}
  1294. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput12(&w, v)
  1295. return w.Buffer.BuildBytes(), w.Error
  1296. }
  1297. // MarshalEasyJSON supports easyjson.Marshaler interface
  1298. func (v DispatchTouchEventParams) MarshalEasyJSON(w *jwriter.Writer) {
  1299. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput12(w, v)
  1300. }
  1301. // UnmarshalJSON supports json.Unmarshaler interface
  1302. func (v *DispatchTouchEventParams) UnmarshalJSON(data []byte) error {
  1303. r := jlexer.Lexer{Data: data}
  1304. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput12(&r, v)
  1305. return r.Error()
  1306. }
  1307. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1308. func (v *DispatchTouchEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1309. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput12(l, v)
  1310. }
  1311. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput13(in *jlexer.Lexer, out *DispatchMouseEventParams) {
  1312. isTopLevel := in.IsStart()
  1313. if in.IsNull() {
  1314. if isTopLevel {
  1315. in.Consumed()
  1316. }
  1317. in.Skip()
  1318. return
  1319. }
  1320. in.Delim('{')
  1321. for !in.IsDelim('}') {
  1322. key := in.UnsafeFieldName(false)
  1323. in.WantColon()
  1324. if in.IsNull() {
  1325. in.Skip()
  1326. in.WantComma()
  1327. continue
  1328. }
  1329. switch key {
  1330. case "type":
  1331. (out.Type).UnmarshalEasyJSON(in)
  1332. case "x":
  1333. out.X = float64(in.Float64())
  1334. case "y":
  1335. out.Y = float64(in.Float64())
  1336. case "modifiers":
  1337. (out.Modifiers).UnmarshalEasyJSON(in)
  1338. case "timestamp":
  1339. if in.IsNull() {
  1340. in.Skip()
  1341. out.Timestamp = nil
  1342. } else {
  1343. if out.Timestamp == nil {
  1344. out.Timestamp = new(TimeSinceEpoch)
  1345. }
  1346. (*out.Timestamp).UnmarshalEasyJSON(in)
  1347. }
  1348. case "button":
  1349. (out.Button).UnmarshalEasyJSON(in)
  1350. case "buttons":
  1351. out.Buttons = int64(in.Int64())
  1352. case "clickCount":
  1353. out.ClickCount = int64(in.Int64())
  1354. case "force":
  1355. out.Force = float64(in.Float64())
  1356. case "tangentialPressure":
  1357. out.TangentialPressure = float64(in.Float64())
  1358. case "tiltX":
  1359. out.TiltX = float64(in.Float64())
  1360. case "tiltY":
  1361. out.TiltY = float64(in.Float64())
  1362. case "twist":
  1363. out.Twist = int64(in.Int64())
  1364. case "deltaX":
  1365. out.DeltaX = float64(in.Float64())
  1366. case "deltaY":
  1367. out.DeltaY = float64(in.Float64())
  1368. case "pointerType":
  1369. (out.PointerType).UnmarshalEasyJSON(in)
  1370. default:
  1371. in.SkipRecursive()
  1372. }
  1373. in.WantComma()
  1374. }
  1375. in.Delim('}')
  1376. if isTopLevel {
  1377. in.Consumed()
  1378. }
  1379. }
  1380. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput13(out *jwriter.Writer, in DispatchMouseEventParams) {
  1381. out.RawByte('{')
  1382. first := true
  1383. _ = first
  1384. {
  1385. const prefix string = ",\"type\":"
  1386. out.RawString(prefix[1:])
  1387. (in.Type).MarshalEasyJSON(out)
  1388. }
  1389. {
  1390. const prefix string = ",\"x\":"
  1391. out.RawString(prefix)
  1392. out.Float64(float64(in.X))
  1393. }
  1394. {
  1395. const prefix string = ",\"y\":"
  1396. out.RawString(prefix)
  1397. out.Float64(float64(in.Y))
  1398. }
  1399. {
  1400. const prefix string = ",\"modifiers\":"
  1401. out.RawString(prefix)
  1402. (in.Modifiers).MarshalEasyJSON(out)
  1403. }
  1404. if in.Timestamp != nil {
  1405. const prefix string = ",\"timestamp\":"
  1406. out.RawString(prefix)
  1407. (*in.Timestamp).MarshalEasyJSON(out)
  1408. }
  1409. if in.Button != "" {
  1410. const prefix string = ",\"button\":"
  1411. out.RawString(prefix)
  1412. (in.Button).MarshalEasyJSON(out)
  1413. }
  1414. if in.Buttons != 0 {
  1415. const prefix string = ",\"buttons\":"
  1416. out.RawString(prefix)
  1417. out.Int64(int64(in.Buttons))
  1418. }
  1419. if in.ClickCount != 0 {
  1420. const prefix string = ",\"clickCount\":"
  1421. out.RawString(prefix)
  1422. out.Int64(int64(in.ClickCount))
  1423. }
  1424. if in.Force != 0 {
  1425. const prefix string = ",\"force\":"
  1426. out.RawString(prefix)
  1427. out.Float64(float64(in.Force))
  1428. }
  1429. if in.TangentialPressure != 0 {
  1430. const prefix string = ",\"tangentialPressure\":"
  1431. out.RawString(prefix)
  1432. out.Float64(float64(in.TangentialPressure))
  1433. }
  1434. if in.TiltX != 0 {
  1435. const prefix string = ",\"tiltX\":"
  1436. out.RawString(prefix)
  1437. out.Float64(float64(in.TiltX))
  1438. }
  1439. if in.TiltY != 0 {
  1440. const prefix string = ",\"tiltY\":"
  1441. out.RawString(prefix)
  1442. out.Float64(float64(in.TiltY))
  1443. }
  1444. if in.Twist != 0 {
  1445. const prefix string = ",\"twist\":"
  1446. out.RawString(prefix)
  1447. out.Int64(int64(in.Twist))
  1448. }
  1449. {
  1450. const prefix string = ",\"deltaX\":"
  1451. out.RawString(prefix)
  1452. out.Float64(float64(in.DeltaX))
  1453. }
  1454. {
  1455. const prefix string = ",\"deltaY\":"
  1456. out.RawString(prefix)
  1457. out.Float64(float64(in.DeltaY))
  1458. }
  1459. if in.PointerType != "" {
  1460. const prefix string = ",\"pointerType\":"
  1461. out.RawString(prefix)
  1462. (in.PointerType).MarshalEasyJSON(out)
  1463. }
  1464. out.RawByte('}')
  1465. }
  1466. // MarshalJSON supports json.Marshaler interface
  1467. func (v DispatchMouseEventParams) MarshalJSON() ([]byte, error) {
  1468. w := jwriter.Writer{}
  1469. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput13(&w, v)
  1470. return w.Buffer.BuildBytes(), w.Error
  1471. }
  1472. // MarshalEasyJSON supports easyjson.Marshaler interface
  1473. func (v DispatchMouseEventParams) MarshalEasyJSON(w *jwriter.Writer) {
  1474. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput13(w, v)
  1475. }
  1476. // UnmarshalJSON supports json.Unmarshaler interface
  1477. func (v *DispatchMouseEventParams) UnmarshalJSON(data []byte) error {
  1478. r := jlexer.Lexer{Data: data}
  1479. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput13(&r, v)
  1480. return r.Error()
  1481. }
  1482. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1483. func (v *DispatchMouseEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1484. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput13(l, v)
  1485. }
  1486. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput14(in *jlexer.Lexer, out *DispatchKeyEventParams) {
  1487. isTopLevel := in.IsStart()
  1488. if in.IsNull() {
  1489. if isTopLevel {
  1490. in.Consumed()
  1491. }
  1492. in.Skip()
  1493. return
  1494. }
  1495. in.Delim('{')
  1496. for !in.IsDelim('}') {
  1497. key := in.UnsafeFieldName(false)
  1498. in.WantColon()
  1499. if in.IsNull() {
  1500. in.Skip()
  1501. in.WantComma()
  1502. continue
  1503. }
  1504. switch key {
  1505. case "type":
  1506. (out.Type).UnmarshalEasyJSON(in)
  1507. case "modifiers":
  1508. (out.Modifiers).UnmarshalEasyJSON(in)
  1509. case "timestamp":
  1510. if in.IsNull() {
  1511. in.Skip()
  1512. out.Timestamp = nil
  1513. } else {
  1514. if out.Timestamp == nil {
  1515. out.Timestamp = new(TimeSinceEpoch)
  1516. }
  1517. (*out.Timestamp).UnmarshalEasyJSON(in)
  1518. }
  1519. case "text":
  1520. out.Text = string(in.String())
  1521. case "unmodifiedText":
  1522. out.UnmodifiedText = string(in.String())
  1523. case "keyIdentifier":
  1524. out.KeyIdentifier = string(in.String())
  1525. case "code":
  1526. out.Code = string(in.String())
  1527. case "key":
  1528. out.Key = string(in.String())
  1529. case "windowsVirtualKeyCode":
  1530. out.WindowsVirtualKeyCode = int64(in.Int64())
  1531. case "nativeVirtualKeyCode":
  1532. out.NativeVirtualKeyCode = int64(in.Int64())
  1533. case "autoRepeat":
  1534. out.AutoRepeat = bool(in.Bool())
  1535. case "isKeypad":
  1536. out.IsKeypad = bool(in.Bool())
  1537. case "isSystemKey":
  1538. out.IsSystemKey = bool(in.Bool())
  1539. case "location":
  1540. out.Location = int64(in.Int64())
  1541. case "commands":
  1542. if in.IsNull() {
  1543. in.Skip()
  1544. out.Commands = nil
  1545. } else {
  1546. in.Delim('[')
  1547. if out.Commands == nil {
  1548. if !in.IsDelim(']') {
  1549. out.Commands = make([]string, 0, 4)
  1550. } else {
  1551. out.Commands = []string{}
  1552. }
  1553. } else {
  1554. out.Commands = (out.Commands)[:0]
  1555. }
  1556. for !in.IsDelim(']') {
  1557. var v10 string
  1558. v10 = string(in.String())
  1559. out.Commands = append(out.Commands, v10)
  1560. in.WantComma()
  1561. }
  1562. in.Delim(']')
  1563. }
  1564. default:
  1565. in.SkipRecursive()
  1566. }
  1567. in.WantComma()
  1568. }
  1569. in.Delim('}')
  1570. if isTopLevel {
  1571. in.Consumed()
  1572. }
  1573. }
  1574. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput14(out *jwriter.Writer, in DispatchKeyEventParams) {
  1575. out.RawByte('{')
  1576. first := true
  1577. _ = first
  1578. {
  1579. const prefix string = ",\"type\":"
  1580. out.RawString(prefix[1:])
  1581. (in.Type).MarshalEasyJSON(out)
  1582. }
  1583. {
  1584. const prefix string = ",\"modifiers\":"
  1585. out.RawString(prefix)
  1586. (in.Modifiers).MarshalEasyJSON(out)
  1587. }
  1588. if in.Timestamp != nil {
  1589. const prefix string = ",\"timestamp\":"
  1590. out.RawString(prefix)
  1591. (*in.Timestamp).MarshalEasyJSON(out)
  1592. }
  1593. if in.Text != "" {
  1594. const prefix string = ",\"text\":"
  1595. out.RawString(prefix)
  1596. out.String(string(in.Text))
  1597. }
  1598. if in.UnmodifiedText != "" {
  1599. const prefix string = ",\"unmodifiedText\":"
  1600. out.RawString(prefix)
  1601. out.String(string(in.UnmodifiedText))
  1602. }
  1603. if in.KeyIdentifier != "" {
  1604. const prefix string = ",\"keyIdentifier\":"
  1605. out.RawString(prefix)
  1606. out.String(string(in.KeyIdentifier))
  1607. }
  1608. if in.Code != "" {
  1609. const prefix string = ",\"code\":"
  1610. out.RawString(prefix)
  1611. out.String(string(in.Code))
  1612. }
  1613. if in.Key != "" {
  1614. const prefix string = ",\"key\":"
  1615. out.RawString(prefix)
  1616. out.String(string(in.Key))
  1617. }
  1618. if in.WindowsVirtualKeyCode != 0 {
  1619. const prefix string = ",\"windowsVirtualKeyCode\":"
  1620. out.RawString(prefix)
  1621. out.Int64(int64(in.WindowsVirtualKeyCode))
  1622. }
  1623. if in.NativeVirtualKeyCode != 0 {
  1624. const prefix string = ",\"nativeVirtualKeyCode\":"
  1625. out.RawString(prefix)
  1626. out.Int64(int64(in.NativeVirtualKeyCode))
  1627. }
  1628. {
  1629. const prefix string = ",\"autoRepeat\":"
  1630. out.RawString(prefix)
  1631. out.Bool(bool(in.AutoRepeat))
  1632. }
  1633. {
  1634. const prefix string = ",\"isKeypad\":"
  1635. out.RawString(prefix)
  1636. out.Bool(bool(in.IsKeypad))
  1637. }
  1638. {
  1639. const prefix string = ",\"isSystemKey\":"
  1640. out.RawString(prefix)
  1641. out.Bool(bool(in.IsSystemKey))
  1642. }
  1643. if in.Location != 0 {
  1644. const prefix string = ",\"location\":"
  1645. out.RawString(prefix)
  1646. out.Int64(int64(in.Location))
  1647. }
  1648. if len(in.Commands) != 0 {
  1649. const prefix string = ",\"commands\":"
  1650. out.RawString(prefix)
  1651. {
  1652. out.RawByte('[')
  1653. for v11, v12 := range in.Commands {
  1654. if v11 > 0 {
  1655. out.RawByte(',')
  1656. }
  1657. out.String(string(v12))
  1658. }
  1659. out.RawByte(']')
  1660. }
  1661. }
  1662. out.RawByte('}')
  1663. }
  1664. // MarshalJSON supports json.Marshaler interface
  1665. func (v DispatchKeyEventParams) MarshalJSON() ([]byte, error) {
  1666. w := jwriter.Writer{}
  1667. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput14(&w, v)
  1668. return w.Buffer.BuildBytes(), w.Error
  1669. }
  1670. // MarshalEasyJSON supports easyjson.Marshaler interface
  1671. func (v DispatchKeyEventParams) MarshalEasyJSON(w *jwriter.Writer) {
  1672. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput14(w, v)
  1673. }
  1674. // UnmarshalJSON supports json.Unmarshaler interface
  1675. func (v *DispatchKeyEventParams) UnmarshalJSON(data []byte) error {
  1676. r := jlexer.Lexer{Data: data}
  1677. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput14(&r, v)
  1678. return r.Error()
  1679. }
  1680. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1681. func (v *DispatchKeyEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1682. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput14(l, v)
  1683. }
  1684. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput15(in *jlexer.Lexer, out *DispatchDragEventParams) {
  1685. isTopLevel := in.IsStart()
  1686. if in.IsNull() {
  1687. if isTopLevel {
  1688. in.Consumed()
  1689. }
  1690. in.Skip()
  1691. return
  1692. }
  1693. in.Delim('{')
  1694. for !in.IsDelim('}') {
  1695. key := in.UnsafeFieldName(false)
  1696. in.WantColon()
  1697. if in.IsNull() {
  1698. in.Skip()
  1699. in.WantComma()
  1700. continue
  1701. }
  1702. switch key {
  1703. case "type":
  1704. (out.Type).UnmarshalEasyJSON(in)
  1705. case "x":
  1706. out.X = float64(in.Float64())
  1707. case "y":
  1708. out.Y = float64(in.Float64())
  1709. case "data":
  1710. if in.IsNull() {
  1711. in.Skip()
  1712. out.Data = nil
  1713. } else {
  1714. if out.Data == nil {
  1715. out.Data = new(DragData)
  1716. }
  1717. (*out.Data).UnmarshalEasyJSON(in)
  1718. }
  1719. case "modifiers":
  1720. (out.Modifiers).UnmarshalEasyJSON(in)
  1721. default:
  1722. in.SkipRecursive()
  1723. }
  1724. in.WantComma()
  1725. }
  1726. in.Delim('}')
  1727. if isTopLevel {
  1728. in.Consumed()
  1729. }
  1730. }
  1731. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput15(out *jwriter.Writer, in DispatchDragEventParams) {
  1732. out.RawByte('{')
  1733. first := true
  1734. _ = first
  1735. {
  1736. const prefix string = ",\"type\":"
  1737. out.RawString(prefix[1:])
  1738. (in.Type).MarshalEasyJSON(out)
  1739. }
  1740. {
  1741. const prefix string = ",\"x\":"
  1742. out.RawString(prefix)
  1743. out.Float64(float64(in.X))
  1744. }
  1745. {
  1746. const prefix string = ",\"y\":"
  1747. out.RawString(prefix)
  1748. out.Float64(float64(in.Y))
  1749. }
  1750. {
  1751. const prefix string = ",\"data\":"
  1752. out.RawString(prefix)
  1753. if in.Data == nil {
  1754. out.RawString("null")
  1755. } else {
  1756. (*in.Data).MarshalEasyJSON(out)
  1757. }
  1758. }
  1759. {
  1760. const prefix string = ",\"modifiers\":"
  1761. out.RawString(prefix)
  1762. (in.Modifiers).MarshalEasyJSON(out)
  1763. }
  1764. out.RawByte('}')
  1765. }
  1766. // MarshalJSON supports json.Marshaler interface
  1767. func (v DispatchDragEventParams) MarshalJSON() ([]byte, error) {
  1768. w := jwriter.Writer{}
  1769. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput15(&w, v)
  1770. return w.Buffer.BuildBytes(), w.Error
  1771. }
  1772. // MarshalEasyJSON supports easyjson.Marshaler interface
  1773. func (v DispatchDragEventParams) MarshalEasyJSON(w *jwriter.Writer) {
  1774. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput15(w, v)
  1775. }
  1776. // UnmarshalJSON supports json.Unmarshaler interface
  1777. func (v *DispatchDragEventParams) UnmarshalJSON(data []byte) error {
  1778. r := jlexer.Lexer{Data: data}
  1779. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput15(&r, v)
  1780. return r.Error()
  1781. }
  1782. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1783. func (v *DispatchDragEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1784. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput15(l, v)
  1785. }
  1786. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput16(in *jlexer.Lexer, out *CancelDraggingParams) {
  1787. isTopLevel := in.IsStart()
  1788. if in.IsNull() {
  1789. if isTopLevel {
  1790. in.Consumed()
  1791. }
  1792. in.Skip()
  1793. return
  1794. }
  1795. in.Delim('{')
  1796. for !in.IsDelim('}') {
  1797. key := in.UnsafeFieldName(false)
  1798. in.WantColon()
  1799. if in.IsNull() {
  1800. in.Skip()
  1801. in.WantComma()
  1802. continue
  1803. }
  1804. switch key {
  1805. default:
  1806. in.SkipRecursive()
  1807. }
  1808. in.WantComma()
  1809. }
  1810. in.Delim('}')
  1811. if isTopLevel {
  1812. in.Consumed()
  1813. }
  1814. }
  1815. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput16(out *jwriter.Writer, in CancelDraggingParams) {
  1816. out.RawByte('{')
  1817. first := true
  1818. _ = first
  1819. out.RawByte('}')
  1820. }
  1821. // MarshalJSON supports json.Marshaler interface
  1822. func (v CancelDraggingParams) MarshalJSON() ([]byte, error) {
  1823. w := jwriter.Writer{}
  1824. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput16(&w, v)
  1825. return w.Buffer.BuildBytes(), w.Error
  1826. }
  1827. // MarshalEasyJSON supports easyjson.Marshaler interface
  1828. func (v CancelDraggingParams) MarshalEasyJSON(w *jwriter.Writer) {
  1829. easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput16(w, v)
  1830. }
  1831. // UnmarshalJSON supports json.Unmarshaler interface
  1832. func (v *CancelDraggingParams) UnmarshalJSON(data []byte) error {
  1833. r := jlexer.Lexer{Data: data}
  1834. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput16(&r, v)
  1835. return r.Error()
  1836. }
  1837. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1838. func (v *CancelDraggingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1839. easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput16(l, v)
  1840. }