vendor/github.com/go-rod/rod/lib/proto/input.go

626 lines · 24131 bytes

  1// This file is generated by "./lib/proto/generate"
  2
  3package proto
  4
  5/*
  6
  7Input
  8
  9*/
 10
 11// InputTouchPoint ...
 12type InputTouchPoint struct {
 13	// X coordinate of the event relative to the main frame's viewport in CSS pixels.
 14	X float64 `json:"x"`
 15
 16	// Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
 17	// the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
 18	Y float64 `json:"y"`
 19
 20	// RadiusX (optional) X radius of the touch area (default: 1.0).
 21	RadiusX *float64 `json:"radiusX,omitempty"`
 22
 23	// RadiusY (optional) Y radius of the touch area (default: 1.0).
 24	RadiusY *float64 `json:"radiusY,omitempty"`
 25
 26	// RotationAngle (optional) Rotation angle (default: 0.0).
 27	RotationAngle *float64 `json:"rotationAngle,omitempty"`
 28
 29	// Force (optional) Force (default: 1.0).
 30	Force *float64 `json:"force,omitempty"`
 31
 32	// TangentialPressure (experimental) (optional) The normalized tangential pressure, which has a range of [-1,1] (default: 0).
 33	TangentialPressure float64 `json:"tangentialPressure,omitempty"`
 34
 35	// TiltX (optional) 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)
 36	TiltX float64 `json:"tiltX,omitempty"`
 37
 38	// TiltY (optional) 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).
 39	TiltY float64 `json:"tiltY,omitempty"`
 40
 41	// Twist (experimental) (optional) The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
 42	Twist int `json:"twist,omitempty"`
 43
 44	// ID (optional) Identifier used to track touch sources between events, must be unique within an event.
 45	ID *float64 `json:"id,omitempty"`
 46}
 47
 48// InputGestureSourceType (experimental) ...
 49type InputGestureSourceType string
 50
 51const (
 52	// InputGestureSourceTypeDefault enum const.
 53	InputGestureSourceTypeDefault InputGestureSourceType = "default"
 54
 55	// InputGestureSourceTypeTouch enum const.
 56	InputGestureSourceTypeTouch InputGestureSourceType = "touch"
 57
 58	// InputGestureSourceTypeMouse enum const.
 59	InputGestureSourceTypeMouse InputGestureSourceType = "mouse"
 60)
 61
 62// InputMouseButton ...
 63type InputMouseButton string
 64
 65const (
 66	// InputMouseButtonNone enum const.
 67	InputMouseButtonNone InputMouseButton = "none"
 68
 69	// InputMouseButtonLeft enum const.
 70	InputMouseButtonLeft InputMouseButton = "left"
 71
 72	// InputMouseButtonMiddle enum const.
 73	InputMouseButtonMiddle InputMouseButton = "middle"
 74
 75	// InputMouseButtonRight enum const.
 76	InputMouseButtonRight InputMouseButton = "right"
 77
 78	// InputMouseButtonBack enum const.
 79	InputMouseButtonBack InputMouseButton = "back"
 80
 81	// InputMouseButtonForward enum const.
 82	InputMouseButtonForward InputMouseButton = "forward"
 83)
 84
 85// InputDragDataItem (experimental) ...
 86type InputDragDataItem struct {
 87	// MIMEType Mime type of the dragged data.
 88	MIMEType string `json:"mimeType"`
 89
 90	// Data Depending of the value of `mimeType`, it contains the dragged link,
 91	// text, HTML markup or any other data.
 92	Data string `json:"data"`
 93
 94	// Title (optional) Title associated with a link. Only valid when `mimeType` == "text/uri-list".
 95	Title string `json:"title,omitempty"`
 96
 97	// BaseURL (optional) Stores the base URL for the contained markup. Only valid when `mimeType`
 98	// == "text/html".
 99	BaseURL string `json:"baseURL,omitempty"`
100}
101
102// InputDragData (experimental) ...
103type InputDragData struct {
104	// Items ...
105	Items []*InputDragDataItem `json:"items"`
106
107	// Files (optional) List of filenames that should be included when dropping
108	Files []string `json:"files,omitempty"`
109
110	// DragOperationsMask Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16
111	DragOperationsMask int `json:"dragOperationsMask"`
112}
113
114// InputDispatchDragEventType enum.
115type InputDispatchDragEventType string
116
117const (
118	// InputDispatchDragEventTypeDragEnter enum const.
119	InputDispatchDragEventTypeDragEnter InputDispatchDragEventType = "dragEnter"
120
121	// InputDispatchDragEventTypeDragOver enum const.
122	InputDispatchDragEventTypeDragOver InputDispatchDragEventType = "dragOver"
123
124	// InputDispatchDragEventTypeDrop enum const.
125	InputDispatchDragEventTypeDrop InputDispatchDragEventType = "drop"
126
127	// InputDispatchDragEventTypeDragCancel enum const.
128	InputDispatchDragEventTypeDragCancel InputDispatchDragEventType = "dragCancel"
129)
130
131// InputDispatchDragEvent (experimental) Dispatches a drag event into the page.
132type InputDispatchDragEvent struct {
133	// Type of the drag event.
134	Type InputDispatchDragEventType `json:"type"`
135
136	// X coordinate of the event relative to the main frame's viewport in CSS pixels.
137	X float64 `json:"x"`
138
139	// Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
140	// the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
141	Y float64 `json:"y"`
142
143	// Data ...
144	Data *InputDragData `json:"data"`
145
146	// Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
147	// (default: 0).
148	Modifiers int `json:"modifiers,omitempty"`
149}
150
151// ProtoReq name.
152func (m InputDispatchDragEvent) ProtoReq() string { return "Input.dispatchDragEvent" }
153
154// Call sends the request.
155func (m InputDispatchDragEvent) Call(c Client) error {
156	return call(m.ProtoReq(), m, nil, c)
157}
158
159// InputDispatchKeyEventType enum.
160type InputDispatchKeyEventType string
161
162const (
163	// InputDispatchKeyEventTypeKeyDown enum const.
164	InputDispatchKeyEventTypeKeyDown InputDispatchKeyEventType = "keyDown"
165
166	// InputDispatchKeyEventTypeKeyUp enum const.
167	InputDispatchKeyEventTypeKeyUp InputDispatchKeyEventType = "keyUp"
168
169	// InputDispatchKeyEventTypeRawKeyDown enum const.
170	InputDispatchKeyEventTypeRawKeyDown InputDispatchKeyEventType = "rawKeyDown"
171
172	// InputDispatchKeyEventTypeChar enum const.
173	InputDispatchKeyEventTypeChar InputDispatchKeyEventType = "char"
174)
175
176// InputDispatchKeyEvent Dispatches a key event to the page.
177type InputDispatchKeyEvent struct {
178	// Type of the key event.
179	Type InputDispatchKeyEventType `json:"type"`
180
181	// Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
182	// (default: 0).
183	Modifiers int `json:"modifiers,omitempty"`
184
185	// Timestamp (optional) Time at which the event occurred.
186	Timestamp TimeSinceEpoch `json:"timestamp,omitempty"`
187
188	// Text (optional) Text as generated by processing a virtual key code with a keyboard layout. Not needed for
189	// for `keyUp` and `rawKeyDown` events (default: "")
190	Text string `json:"text,omitempty"`
191
192	// UnmodifiedText (optional) Text that would have been generated by the keyboard if no modifiers were pressed (except for
193	// shift). Useful for shortcut (accelerator) key handling (default: "").
194	UnmodifiedText string `json:"unmodifiedText,omitempty"`
195
196	// KeyIdentifier (optional) Unique key identifier (e.g., 'U+0041') (default: "").
197	KeyIdentifier string `json:"keyIdentifier,omitempty"`
198
199	// Code (optional) Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "").
200	Code string `json:"code,omitempty"`
201
202	// Key (optional) Unique DOM defined string value describing the meaning of the key in the context of active
203	// modifiers, keyboard layout, etc (e.g., 'AltGr') (default: "").
204	Key string `json:"key,omitempty"`
205
206	// WindowsVirtualKeyCode (optional) Windows virtual key code (default: 0).
207	WindowsVirtualKeyCode int `json:"windowsVirtualKeyCode,omitempty"`
208
209	// NativeVirtualKeyCode (optional) Native virtual key code (default: 0).
210	NativeVirtualKeyCode int `json:"nativeVirtualKeyCode,omitempty"`
211
212	// AutoRepeat (optional) Whether the event was generated from auto repeat (default: false).
213	AutoRepeat bool `json:"autoRepeat,omitempty"`
214
215	// IsKeypad (optional) Whether the event was generated from the keypad (default: false).
216	IsKeypad bool `json:"isKeypad,omitempty"`
217
218	// IsSystemKey (optional) Whether the event was a system key event (default: false).
219	IsSystemKey bool `json:"isSystemKey,omitempty"`
220
221	// Location (optional) Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default:
222	// 0).
223	Location *int `json:"location,omitempty"`
224
225	// Commands (experimental) (optional) Editing commands to send with the key event (e.g., 'selectAll') (default: []).
226	// These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding.
227	// See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.
228	Commands []string `json:"commands,omitempty"`
229}
230
231// ProtoReq name.
232func (m InputDispatchKeyEvent) ProtoReq() string { return "Input.dispatchKeyEvent" }
233
234// Call sends the request.
235func (m InputDispatchKeyEvent) Call(c Client) error {
236	return call(m.ProtoReq(), m, nil, c)
237}
238
239// InputInsertText (experimental) This method emulates inserting text that doesn't come from a key press,
240// for example an emoji keyboard or an IME.
241type InputInsertText struct {
242	// Text The text to insert.
243	Text string `json:"text"`
244}
245
246// ProtoReq name.
247func (m InputInsertText) ProtoReq() string { return "Input.insertText" }
248
249// Call sends the request.
250func (m InputInsertText) Call(c Client) error {
251	return call(m.ProtoReq(), m, nil, c)
252}
253
254// InputImeSetComposition (experimental) This method sets the current candidate text for IME.
255// Use imeCommitComposition to commit the final text.
256// Use imeSetComposition with empty string as text to cancel composition.
257type InputImeSetComposition struct {
258	// Text The text to insert
259	Text string `json:"text"`
260
261	// SelectionStart selection start
262	SelectionStart int `json:"selectionStart"`
263
264	// SelectionEnd selection end
265	SelectionEnd int `json:"selectionEnd"`
266
267	// ReplacementStart (optional) replacement start
268	ReplacementStart *int `json:"replacementStart,omitempty"`
269
270	// ReplacementEnd (optional) replacement end
271	ReplacementEnd *int `json:"replacementEnd,omitempty"`
272}
273
274// ProtoReq name.
275func (m InputImeSetComposition) ProtoReq() string { return "Input.imeSetComposition" }
276
277// Call sends the request.
278func (m InputImeSetComposition) Call(c Client) error {
279	return call(m.ProtoReq(), m, nil, c)
280}
281
282// InputDispatchMouseEventType enum.
283type InputDispatchMouseEventType string
284
285const (
286	// InputDispatchMouseEventTypeMousePressed enum const.
287	InputDispatchMouseEventTypeMousePressed InputDispatchMouseEventType = "mousePressed"
288
289	// InputDispatchMouseEventTypeMouseReleased enum const.
290	InputDispatchMouseEventTypeMouseReleased InputDispatchMouseEventType = "mouseReleased"
291
292	// InputDispatchMouseEventTypeMouseMoved enum const.
293	InputDispatchMouseEventTypeMouseMoved InputDispatchMouseEventType = "mouseMoved"
294
295	// InputDispatchMouseEventTypeMouseWheel enum const.
296	InputDispatchMouseEventTypeMouseWheel InputDispatchMouseEventType = "mouseWheel"
297)
298
299// InputDispatchMouseEventPointerType enum.
300type InputDispatchMouseEventPointerType string
301
302const (
303	// InputDispatchMouseEventPointerTypeMouse enum const.
304	InputDispatchMouseEventPointerTypeMouse InputDispatchMouseEventPointerType = "mouse"
305
306	// InputDispatchMouseEventPointerTypePen enum const.
307	InputDispatchMouseEventPointerTypePen InputDispatchMouseEventPointerType = "pen"
308)
309
310// InputDispatchMouseEvent Dispatches a mouse event to the page.
311type InputDispatchMouseEvent struct {
312	// Type of the mouse event.
313	Type InputDispatchMouseEventType `json:"type"`
314
315	// X coordinate of the event relative to the main frame's viewport in CSS pixels.
316	X float64 `json:"x"`
317
318	// Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
319	// the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
320	Y float64 `json:"y"`
321
322	// Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
323	// (default: 0).
324	Modifiers int `json:"modifiers,omitempty"`
325
326	// Timestamp (optional) Time at which the event occurred.
327	Timestamp TimeSinceEpoch `json:"timestamp,omitempty"`
328
329	// Button (optional) Mouse button (default: "none").
330	Button InputMouseButton `json:"button,omitempty"`
331
332	// Buttons (optional) A number indicating which buttons are pressed on the mouse when a mouse event is triggered.
333	// Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
334	Buttons *int `json:"buttons,omitempty"`
335
336	// ClickCount (optional) Number of times the mouse button was clicked (default: 0).
337	ClickCount int `json:"clickCount,omitempty"`
338
339	// Force (experimental) (optional) The normalized pressure, which has a range of [0,1] (default: 0).
340	Force float64 `json:"force,omitempty"`
341
342	// TangentialPressure (experimental) (optional) The normalized tangential pressure, which has a range of [-1,1] (default: 0).
343	TangentialPressure float64 `json:"tangentialPressure,omitempty"`
344
345	// TiltX (optional) 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).
346	TiltX float64 `json:"tiltX,omitempty"`
347
348	// TiltY (optional) 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).
349	TiltY float64 `json:"tiltY,omitempty"`
350
351	// Twist (experimental) (optional) The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
352	Twist int `json:"twist,omitempty"`
353
354	// DeltaX X delta in CSS pixels for mouse wheel event (default: 0).
355	DeltaX float64 `json:"deltaX"`
356
357	// DeltaY Y delta in CSS pixels for mouse wheel event (default: 0).
358	DeltaY float64 `json:"deltaY"`
359
360	// PointerType (optional) Pointer type (default: "mouse").
361	PointerType InputDispatchMouseEventPointerType `json:"pointerType,omitempty"`
362}
363
364// ProtoReq name.
365func (m InputDispatchMouseEvent) ProtoReq() string { return "Input.dispatchMouseEvent" }
366
367// Call sends the request.
368func (m InputDispatchMouseEvent) Call(c Client) error {
369	return call(m.ProtoReq(), m, nil, c)
370}
371
372// InputDispatchTouchEventType enum.
373type InputDispatchTouchEventType string
374
375const (
376	// InputDispatchTouchEventTypeTouchStart enum const.
377	InputDispatchTouchEventTypeTouchStart InputDispatchTouchEventType = "touchStart"
378
379	// InputDispatchTouchEventTypeTouchEnd enum const.
380	InputDispatchTouchEventTypeTouchEnd InputDispatchTouchEventType = "touchEnd"
381
382	// InputDispatchTouchEventTypeTouchMove enum const.
383	InputDispatchTouchEventTypeTouchMove InputDispatchTouchEventType = "touchMove"
384
385	// InputDispatchTouchEventTypeTouchCancel enum const.
386	InputDispatchTouchEventTypeTouchCancel InputDispatchTouchEventType = "touchCancel"
387)
388
389// InputDispatchTouchEvent Dispatches a touch event to the page.
390type InputDispatchTouchEvent struct {
391	// Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while
392	// TouchStart and TouchMove must contains at least one.
393	Type InputDispatchTouchEventType `json:"type"`
394
395	// TouchPoints Active touch points on the touch device. One event per any changed point (compared to
396	// previous touch event in a sequence) is generated, emulating pressing/moving/releasing points
397	// one by one.
398	TouchPoints []*InputTouchPoint `json:"touchPoints"`
399
400	// Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
401	// (default: 0).
402	Modifiers int `json:"modifiers,omitempty"`
403
404	// Timestamp (optional) Time at which the event occurred.
405	Timestamp TimeSinceEpoch `json:"timestamp,omitempty"`
406}
407
408// ProtoReq name.
409func (m InputDispatchTouchEvent) ProtoReq() string { return "Input.dispatchTouchEvent" }
410
411// Call sends the request.
412func (m InputDispatchTouchEvent) Call(c Client) error {
413	return call(m.ProtoReq(), m, nil, c)
414}
415
416// InputCancelDragging Cancels any active dragging in the page.
417type InputCancelDragging struct{}
418
419// ProtoReq name.
420func (m InputCancelDragging) ProtoReq() string { return "Input.cancelDragging" }
421
422// Call sends the request.
423func (m InputCancelDragging) Call(c Client) error {
424	return call(m.ProtoReq(), m, nil, c)
425}
426
427// InputEmulateTouchFromMouseEventType enum.
428type InputEmulateTouchFromMouseEventType string
429
430const (
431	// InputEmulateTouchFromMouseEventTypeMousePressed enum const.
432	InputEmulateTouchFromMouseEventTypeMousePressed InputEmulateTouchFromMouseEventType = "mousePressed"
433
434	// InputEmulateTouchFromMouseEventTypeMouseReleased enum const.
435	InputEmulateTouchFromMouseEventTypeMouseReleased InputEmulateTouchFromMouseEventType = "mouseReleased"
436
437	// InputEmulateTouchFromMouseEventTypeMouseMoved enum const.
438	InputEmulateTouchFromMouseEventTypeMouseMoved InputEmulateTouchFromMouseEventType = "mouseMoved"
439
440	// InputEmulateTouchFromMouseEventTypeMouseWheel enum const.
441	InputEmulateTouchFromMouseEventTypeMouseWheel InputEmulateTouchFromMouseEventType = "mouseWheel"
442)
443
444// InputEmulateTouchFromMouseEvent (experimental) Emulates touch event from the mouse event parameters.
445type InputEmulateTouchFromMouseEvent struct {
446	// Type of the mouse event.
447	Type InputEmulateTouchFromMouseEventType `json:"type"`
448
449	// X coordinate of the mouse pointer in DIP.
450	X int `json:"x"`
451
452	// Y coordinate of the mouse pointer in DIP.
453	Y int `json:"y"`
454
455	// Button Mouse button. Only "none", "left", "right" are supported.
456	Button InputMouseButton `json:"button"`
457
458	// Timestamp (optional) Time at which the event occurred (default: current time).
459	Timestamp TimeSinceEpoch `json:"timestamp,omitempty"`
460
461	// DeltaX (optional) X delta in DIP for mouse wheel event (default: 0).
462	DeltaX float64 `json:"deltaX,omitempty"`
463
464	// DeltaY (optional) Y delta in DIP for mouse wheel event (default: 0).
465	DeltaY float64 `json:"deltaY,omitempty"`
466
467	// Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
468	// (default: 0).
469	Modifiers int `json:"modifiers,omitempty"`
470
471	// ClickCount (optional) Number of times the mouse button was clicked (default: 0).
472	ClickCount int `json:"clickCount,omitempty"`
473}
474
475// ProtoReq name.
476func (m InputEmulateTouchFromMouseEvent) ProtoReq() string { return "Input.emulateTouchFromMouseEvent" }
477
478// Call sends the request.
479func (m InputEmulateTouchFromMouseEvent) Call(c Client) error {
480	return call(m.ProtoReq(), m, nil, c)
481}
482
483// InputSetIgnoreInputEvents Ignores input events (useful while auditing page).
484type InputSetIgnoreInputEvents struct {
485	// Ignores input events processing when set to true.
486	Ignore bool `json:"ignore"`
487}
488
489// ProtoReq name.
490func (m InputSetIgnoreInputEvents) ProtoReq() string { return "Input.setIgnoreInputEvents" }
491
492// Call sends the request.
493func (m InputSetIgnoreInputEvents) Call(c Client) error {
494	return call(m.ProtoReq(), m, nil, c)
495}
496
497// InputSetInterceptDrags (experimental) Prevents default drag and drop behavior and instead emits `Input.dragIntercepted` events.
498// Drag and drop behavior can be directly controlled via `Input.dispatchDragEvent`.
499type InputSetInterceptDrags struct {
500	// Enabled ...
501	Enabled bool `json:"enabled"`
502}
503
504// ProtoReq name.
505func (m InputSetInterceptDrags) ProtoReq() string { return "Input.setInterceptDrags" }
506
507// Call sends the request.
508func (m InputSetInterceptDrags) Call(c Client) error {
509	return call(m.ProtoReq(), m, nil, c)
510}
511
512// InputSynthesizePinchGesture (experimental) Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
513type InputSynthesizePinchGesture struct {
514	// X coordinate of the start of the gesture in CSS pixels.
515	X float64 `json:"x"`
516
517	// Y coordinate of the start of the gesture in CSS pixels.
518	Y float64 `json:"y"`
519
520	// ScaleFactor Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
521	ScaleFactor float64 `json:"scaleFactor"`
522
523	// RelativeSpeed (optional) Relative pointer speed in pixels per second (default: 800).
524	RelativeSpeed *int `json:"relativeSpeed,omitempty"`
525
526	// GestureSourceType (optional) Which type of input events to be generated (default: 'default', which queries the platform
527	// for the preferred input type).
528	GestureSourceType InputGestureSourceType `json:"gestureSourceType,omitempty"`
529}
530
531// ProtoReq name.
532func (m InputSynthesizePinchGesture) ProtoReq() string { return "Input.synthesizePinchGesture" }
533
534// Call sends the request.
535func (m InputSynthesizePinchGesture) Call(c Client) error {
536	return call(m.ProtoReq(), m, nil, c)
537}
538
539// InputSynthesizeScrollGesture (experimental) Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
540type InputSynthesizeScrollGesture struct {
541	// X coordinate of the start of the gesture in CSS pixels.
542	X float64 `json:"x"`
543
544	// Y coordinate of the start of the gesture in CSS pixels.
545	Y float64 `json:"y"`
546
547	// XDistance (optional) The distance to scroll along the X axis (positive to scroll left).
548	XDistance *float64 `json:"xDistance,omitempty"`
549
550	// YDistance (optional) The distance to scroll along the Y axis (positive to scroll up).
551	YDistance *float64 `json:"yDistance,omitempty"`
552
553	// XOverscroll (optional) The number of additional pixels to scroll back along the X axis, in addition to the given
554	// distance.
555	XOverscroll *float64 `json:"xOverscroll,omitempty"`
556
557	// YOverscroll (optional) The number of additional pixels to scroll back along the Y axis, in addition to the given
558	// distance.
559	YOverscroll *float64 `json:"yOverscroll,omitempty"`
560
561	// PreventFling (optional) Prevent fling (default: true).
562	PreventFling bool `json:"preventFling,omitempty"`
563
564	// Speed (optional) Swipe speed in pixels per second (default: 800).
565	Speed *int `json:"speed,omitempty"`
566
567	// GestureSourceType (optional) Which type of input events to be generated (default: 'default', which queries the platform
568	// for the preferred input type).
569	GestureSourceType InputGestureSourceType `json:"gestureSourceType,omitempty"`
570
571	// RepeatCount (optional) The number of times to repeat the gesture (default: 0).
572	RepeatCount int `json:"repeatCount,omitempty"`
573
574	// RepeatDelayMs (optional) The number of milliseconds delay between each repeat. (default: 250).
575	RepeatDelayMs *int `json:"repeatDelayMs,omitempty"`
576
577	// InteractionMarkerName (optional) The name of the interaction markers to generate, if not empty (default: "").
578	InteractionMarkerName string `json:"interactionMarkerName,omitempty"`
579}
580
581// ProtoReq name.
582func (m InputSynthesizeScrollGesture) ProtoReq() string { return "Input.synthesizeScrollGesture" }
583
584// Call sends the request.
585func (m InputSynthesizeScrollGesture) Call(c Client) error {
586	return call(m.ProtoReq(), m, nil, c)
587}
588
589// InputSynthesizeTapGesture (experimental) Synthesizes a tap gesture over a time period by issuing appropriate touch events.
590type InputSynthesizeTapGesture struct {
591	// X coordinate of the start of the gesture in CSS pixels.
592	X float64 `json:"x"`
593
594	// Y coordinate of the start of the gesture in CSS pixels.
595	Y float64 `json:"y"`
596
597	// Duration (optional) Duration between touchdown and touchup events in ms (default: 50).
598	Duration *int `json:"duration,omitempty"`
599
600	// TapCount (optional) Number of times to perform the tap (e.g. 2 for double tap, default: 1).
601	TapCount *int `json:"tapCount,omitempty"`
602
603	// GestureSourceType (optional) Which type of input events to be generated (default: 'default', which queries the platform
604	// for the preferred input type).
605	GestureSourceType InputGestureSourceType `json:"gestureSourceType,omitempty"`
606}
607
608// ProtoReq name.
609func (m InputSynthesizeTapGesture) ProtoReq() string { return "Input.synthesizeTapGesture" }
610
611// Call sends the request.
612func (m InputSynthesizeTapGesture) Call(c Client) error {
613	return call(m.ProtoReq(), m, nil, c)
614}
615
616// InputDragIntercepted (experimental) Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to
617// restore normal drag and drop behavior.
618type InputDragIntercepted struct {
619	// Data ...
620	Data *InputDragData `json:"data"`
621}
622
623// ProtoEvent name.
624func (evt InputDragIntercepted) ProtoEvent() string {
625	return "Input.dragIntercepted"
626}