1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.
//! The `Input` domain.
//!
//! Method names for the `Input` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
/// Dispatches a drag event into the page.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `type`: string
/// - `x`: number
/// - `y`: number
/// - `data`: DragData
/// - `modifiers`: integer (optional)
pub const DISPATCH_DRAG_EVENT: &str = "Input.dispatchDragEvent";
/// Dispatches a key event to the page.
///
/// Parameters:
/// - `type`: string
/// - `modifiers`: integer (optional)
/// - `timestamp`: TimeSinceEpoch (optional)
/// - `text`: string (optional)
/// - `unmodifiedText`: string (optional)
/// - `keyIdentifier`: string (optional)
/// - `code`: string (optional)
/// - `key`: string (optional)
/// - `windowsVirtualKeyCode`: integer (optional)
/// - `nativeVirtualKeyCode`: integer (optional)
/// - `autoRepeat`: boolean (optional)
/// - `isKeypad`: boolean (optional)
/// - `isSystemKey`: boolean (optional)
/// - `location`: integer (optional)
/// - `commands`: array (optional)
pub const DISPATCH_KEY_EVENT: &str = "Input.dispatchKeyEvent";
/// This method emulates inserting text that doesn't come from a key press,
/// for example an emoji keyboard or an IME.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `text`: string
pub const INSERT_TEXT: &str = "Input.insertText";
/// This method sets the current candidate text for IME. Use
/// imeCommitComposition to commit the final text. Use imeSetComposition with
/// empty string as text to cancel composition.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `text`: string
/// - `selectionStart`: integer
/// - `selectionEnd`: integer
/// - `replacementStart`: integer (optional)
/// - `replacementEnd`: integer (optional)
pub const IME_SET_COMPOSITION: &str = "Input.imeSetComposition";
/// Dispatches a mouse event to the page.
///
/// Parameters:
/// - `type`: string
/// - `x`: number
/// - `y`: number
/// - `modifiers`: integer (optional)
/// - `timestamp`: TimeSinceEpoch (optional)
/// - `button`: MouseButton (optional)
/// - `buttons`: integer (optional)
/// - `clickCount`: integer (optional)
/// - `force`: number (optional)
/// - `tangentialPressure`: number (optional)
/// - `tiltX`: number (optional)
/// - `tiltY`: number (optional)
/// - `twist`: integer (optional)
/// - `deltaX`: number (optional)
/// - `deltaY`: number (optional)
/// - `pointerType`: string (optional)
pub const DISPATCH_MOUSE_EVENT: &str = "Input.dispatchMouseEvent";
/// Dispatches a touch event to the page.
///
/// Parameters:
/// - `type`: string
/// - `touchPoints`: array
/// - `modifiers`: integer (optional)
/// - `timestamp`: TimeSinceEpoch (optional)
pub const DISPATCH_TOUCH_EVENT: &str = "Input.dispatchTouchEvent";
/// Cancels any active dragging in the page.
pub const CANCEL_DRAGGING: &str = "Input.cancelDragging";
/// Emulates touch event from the mouse event parameters.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `type`: string
/// - `x`: integer
/// - `y`: integer
/// - `button`: MouseButton
/// - `timestamp`: TimeSinceEpoch (optional)
/// - `deltaX`: number (optional)
/// - `deltaY`: number (optional)
/// - `modifiers`: integer (optional)
/// - `clickCount`: integer (optional)
pub const EMULATE_TOUCH_FROM_MOUSE_EVENT: &str = "Input.emulateTouchFromMouseEvent";
/// Ignores input events (useful while auditing page).
///
/// Parameters:
/// - `ignore`: boolean
pub const SET_IGNORE_INPUT_EVENTS: &str = "Input.setIgnoreInputEvents";
/// Prevents default drag and drop behavior and instead emits
/// `Input.dragIntercepted` events. Drag and drop behavior can be directly
/// controlled via `Input.dispatchDragEvent`.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `enabled`: boolean
pub const SET_INTERCEPT_DRAGS: &str = "Input.setInterceptDrags";
/// Synthesizes a pinch gesture over a time period by issuing appropriate
/// touch events.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `x`: number
/// - `y`: number
/// - `scaleFactor`: number
/// - `relativeSpeed`: integer (optional)
/// - `gestureSourceType`: GestureSourceType (optional)
pub const SYNTHESIZE_PINCH_GESTURE: &str = "Input.synthesizePinchGesture";
/// Synthesizes a scroll gesture over a time period by issuing appropriate
/// touch events.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `x`: number
/// - `y`: number
/// - `xDistance`: number (optional)
/// - `yDistance`: number (optional)
/// - `xOverscroll`: number (optional)
/// - `yOverscroll`: number (optional)
/// - `preventFling`: boolean (optional)
/// - `speed`: integer (optional)
/// - `gestureSourceType`: GestureSourceType (optional)
/// - `repeatCount`: integer (optional)
/// - `repeatDelayMs`: integer (optional)
/// - `interactionMarkerName`: string (optional)
pub const SYNTHESIZE_SCROLL_GESTURE: &str = "Input.synthesizeScrollGesture";
/// Synthesizes a tap gesture over a time period by issuing appropriate touch
/// events.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `x`: number
/// - `y`: number
/// - `duration`: integer (optional)
/// - `tapCount`: integer (optional)
/// - `gestureSourceType`: GestureSourceType (optional)
pub const SYNTHESIZE_TAP_GESTURE: &str = "Input.synthesizeTapGesture";