| Index: third_party/WebKit/Source/core/inspector/protocol/Input.json
|
| diff --git a/third_party/WebKit/Source/core/inspector/protocol/Input.json b/third_party/WebKit/Source/core/inspector/protocol/Input.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..57436193f3bebe0980fa20f8a116869130952523
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/inspector/protocol/Input.json
|
| @@ -0,0 +1,498 @@
|
| +{
|
| + "domain": "Input",
|
| + "version": {
|
| + "major": "1",
|
| + "minor": "1"
|
| + },
|
| + "types": [
|
| + {
|
| + "id": "TouchPoint",
|
| + "type": "object",
|
| + "hidden": true,
|
| + "properties": [
|
| + {
|
| + "name": "state",
|
| + "type": "string",
|
| + "enum": [
|
| + "touchPressed",
|
| + "touchReleased",
|
| + "touchMoved",
|
| + "touchStationary",
|
| + "touchCancelled"
|
| + ],
|
| + "description": "State of the touch point."
|
| + },
|
| + {
|
| + "name": "x",
|
| + "type": "integer",
|
| + "description": "X coordinate of the event relative to the main frame's viewport."
|
| + },
|
| + {
|
| + "name": "y",
|
| + "type": "integer",
|
| + "description": "Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."
|
| + },
|
| + {
|
| + "name": "radiusX",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "X radius of the touch area (default: 1)."
|
| + },
|
| + {
|
| + "name": "radiusY",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Y radius of the touch area (default: 1)."
|
| + },
|
| + {
|
| + "name": "rotationAngle",
|
| + "type": "number",
|
| + "optional": true,
|
| + "description": "Rotation angle (default: 0.0)."
|
| + },
|
| + {
|
| + "name": "force",
|
| + "type": "number",
|
| + "optional": true,
|
| + "description": "Force (default: 1.0)."
|
| + },
|
| + {
|
| + "name": "id",
|
| + "type": "number",
|
| + "optional": true,
|
| + "description": "Identifier used to track touch sources between events, must be unique within an event."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "GestureSourceType",
|
| + "type": "string",
|
| + "hidden": true,
|
| + "enum": [
|
| + "default",
|
| + "touch",
|
| + "mouse"
|
| + ]
|
| + }
|
| + ],
|
| + "commands": [
|
| + {
|
| + "name": "dispatchKeyEvent",
|
| + "parameters": [
|
| + {
|
| + "name": "type",
|
| + "type": "string",
|
| + "enum": [
|
| + "keyDown",
|
| + "keyUp",
|
| + "rawKeyDown",
|
| + "char"
|
| + ],
|
| + "description": "Type of the key event."
|
| + },
|
| + {
|
| + "name": "modifiers",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "type": "number",
|
| + "optional": true,
|
| + "description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time)."
|
| + },
|
| + {
|
| + "name": "text",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "Text as generated by processing a virtual key code with a keyboard layout. Not needed for for <code>keyUp</code> and <code>rawKeyDown</code> events (default: \"\")"
|
| + },
|
| + {
|
| + "name": "unmodifiedText",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: \"\")."
|
| + },
|
| + {
|
| + "name": "keyIdentifier",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "Unique key identifier (e.g., 'U+0041') (default: \"\")."
|
| + },
|
| + {
|
| + "name": "code",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: \"\")."
|
| + },
|
| + {
|
| + "name": "key",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: \"\")."
|
| + },
|
| + {
|
| + "name": "windowsVirtualKeyCode",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Windows virtual key code (default: 0)."
|
| + },
|
| + {
|
| + "name": "nativeVirtualKeyCode",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Native virtual key code (default: 0)."
|
| + },
|
| + {
|
| + "name": "autoRepeat",
|
| + "type": "boolean",
|
| + "optional": true,
|
| + "description": "Whether the event was generated from auto repeat (default: false)."
|
| + },
|
| + {
|
| + "name": "isKeypad",
|
| + "type": "boolean",
|
| + "optional": true,
|
| + "description": "Whether the event was generated from the keypad (default: false)."
|
| + },
|
| + {
|
| + "name": "isSystemKey",
|
| + "type": "boolean",
|
| + "optional": true,
|
| + "description": "Whether the event was a system key event (default: false)."
|
| + }
|
| + ],
|
| + "description": "Dispatches a key event to the page.",
|
| + "handlers": [
|
| + "browser"
|
| + ]
|
| + },
|
| + {
|
| + "name": "dispatchMouseEvent",
|
| + "parameters": [
|
| + {
|
| + "name": "type",
|
| + "type": "string",
|
| + "enum": [
|
| + "mousePressed",
|
| + "mouseReleased",
|
| + "mouseMoved"
|
| + ],
|
| + "description": "Type of the mouse event."
|
| + },
|
| + {
|
| + "name": "x",
|
| + "type": "integer",
|
| + "description": "X coordinate of the event relative to the main frame's viewport."
|
| + },
|
| + {
|
| + "name": "y",
|
| + "type": "integer",
|
| + "description": "Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."
|
| + },
|
| + {
|
| + "name": "modifiers",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "type": "number",
|
| + "optional": true,
|
| + "description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time)."
|
| + },
|
| + {
|
| + "name": "button",
|
| + "type": "string",
|
| + "enum": [
|
| + "none",
|
| + "left",
|
| + "middle",
|
| + "right"
|
| + ],
|
| + "optional": true,
|
| + "description": "Mouse button (default: \"none\")."
|
| + },
|
| + {
|
| + "name": "clickCount",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Number of times the mouse button was clicked (default: 0)."
|
| + }
|
| + ],
|
| + "description": "Dispatches a mouse event to the page.",
|
| + "handlers": [
|
| + "browser"
|
| + ]
|
| + },
|
| + {
|
| + "name": "dispatchTouchEvent",
|
| + "hidden": true,
|
| + "parameters": [
|
| + {
|
| + "name": "type",
|
| + "type": "string",
|
| + "enum": [
|
| + "touchStart",
|
| + "touchEnd",
|
| + "touchMove"
|
| + ],
|
| + "description": "Type of the touch event."
|
| + },
|
| + {
|
| + "name": "touchPoints",
|
| + "type": "array",
|
| + "items": {
|
| + "$ref": "TouchPoint"
|
| + },
|
| + "description": "Touch points."
|
| + },
|
| + {
|
| + "name": "modifiers",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "type": "number",
|
| + "optional": true,
|
| + "description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time)."
|
| + }
|
| + ],
|
| + "description": "Dispatches a touch event to the page."
|
| + },
|
| + {
|
| + "name": "emulateTouchFromMouseEvent",
|
| + "hidden": true,
|
| + "parameters": [
|
| + {
|
| + "name": "type",
|
| + "type": "string",
|
| + "enum": [
|
| + "mousePressed",
|
| + "mouseReleased",
|
| + "mouseMoved",
|
| + "mouseWheel"
|
| + ],
|
| + "description": "Type of the mouse event."
|
| + },
|
| + {
|
| + "name": "x",
|
| + "type": "integer",
|
| + "description": "X coordinate of the mouse pointer in DIP."
|
| + },
|
| + {
|
| + "name": "y",
|
| + "type": "integer",
|
| + "description": "Y coordinate of the mouse pointer in DIP."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "type": "number",
|
| + "description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970."
|
| + },
|
| + {
|
| + "name": "button",
|
| + "type": "string",
|
| + "enum": [
|
| + "none",
|
| + "left",
|
| + "middle",
|
| + "right"
|
| + ],
|
| + "description": "Mouse button."
|
| + },
|
| + {
|
| + "name": "deltaX",
|
| + "type": "number",
|
| + "optional": true,
|
| + "description": "X delta in DIP for mouse wheel event (default: 0)."
|
| + },
|
| + {
|
| + "name": "deltaY",
|
| + "type": "number",
|
| + "optional": true,
|
| + "description": "Y delta in DIP for mouse wheel event (default: 0)."
|
| + },
|
| + {
|
| + "name": "modifiers",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)."
|
| + },
|
| + {
|
| + "name": "clickCount",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Number of times the mouse button was clicked (default: 0)."
|
| + }
|
| + ],
|
| + "description": "Emulates touch event from the mouse event parameters.",
|
| + "handlers": [
|
| + "browser"
|
| + ]
|
| + },
|
| + {
|
| + "name": "synthesizePinchGesture",
|
| + "async": true,
|
| + "parameters": [
|
| + {
|
| + "name": "x",
|
| + "type": "integer",
|
| + "description": "X coordinate of the start of the gesture in CSS pixels."
|
| + },
|
| + {
|
| + "name": "y",
|
| + "type": "integer",
|
| + "description": "Y coordinate of the start of the gesture in CSS pixels."
|
| + },
|
| + {
|
| + "name": "scaleFactor",
|
| + "type": "number",
|
| + "description": "Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out)."
|
| + },
|
| + {
|
| + "name": "relativeSpeed",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Relative pointer speed in pixels per second (default: 800)."
|
| + },
|
| + {
|
| + "name": "gestureSourceType",
|
| + "$ref": "GestureSourceType",
|
| + "optional": true,
|
| + "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)."
|
| + }
|
| + ],
|
| + "description": "Synthesizes a pinch gesture over a time period by issuing appropriate touch events.",
|
| + "hidden": true,
|
| + "handlers": [
|
| + "browser"
|
| + ]
|
| + },
|
| + {
|
| + "name": "synthesizeScrollGesture",
|
| + "async": true,
|
| + "parameters": [
|
| + {
|
| + "name": "x",
|
| + "type": "integer",
|
| + "description": "X coordinate of the start of the gesture in CSS pixels."
|
| + },
|
| + {
|
| + "name": "y",
|
| + "type": "integer",
|
| + "description": "Y coordinate of the start of the gesture in CSS pixels."
|
| + },
|
| + {
|
| + "name": "xDistance",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "The distance to scroll along the X axis (positive to scroll left)."
|
| + },
|
| + {
|
| + "name": "yDistance",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "The distance to scroll along the Y axis (positive to scroll up)."
|
| + },
|
| + {
|
| + "name": "xOverscroll",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "The number of additional pixels to scroll back along the X axis, in addition to the given distance."
|
| + },
|
| + {
|
| + "name": "yOverscroll",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "The number of additional pixels to scroll back along the Y axis, in addition to the given distance."
|
| + },
|
| + {
|
| + "name": "preventFling",
|
| + "type": "boolean",
|
| + "optional": true,
|
| + "description": "Prevent fling (default: true)."
|
| + },
|
| + {
|
| + "name": "speed",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Swipe speed in pixels per second (default: 800)."
|
| + },
|
| + {
|
| + "name": "gestureSourceType",
|
| + "$ref": "GestureSourceType",
|
| + "optional": true,
|
| + "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)."
|
| + },
|
| + {
|
| + "name": "repeatCount",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "The number of times to repeat the gesture (default: 0)."
|
| + },
|
| + {
|
| + "name": "repeatDelayMs",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "The number of milliseconds delay between each repeat. (default: 250)."
|
| + },
|
| + {
|
| + "name": "interactionMarkerName",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "The name of the interaction markers to generate, if not empty (default: \"\")."
|
| + }
|
| + ],
|
| + "description": "Synthesizes a scroll gesture over a time period by issuing appropriate touch events.",
|
| + "hidden": true,
|
| + "handlers": [
|
| + "browser"
|
| + ]
|
| + },
|
| + {
|
| + "name": "synthesizeTapGesture",
|
| + "async": true,
|
| + "parameters": [
|
| + {
|
| + "name": "x",
|
| + "type": "integer",
|
| + "description": "X coordinate of the start of the gesture in CSS pixels."
|
| + },
|
| + {
|
| + "name": "y",
|
| + "type": "integer",
|
| + "description": "Y coordinate of the start of the gesture in CSS pixels."
|
| + },
|
| + {
|
| + "name": "duration",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Duration between touchdown and touchup events in ms (default: 50)."
|
| + },
|
| + {
|
| + "name": "tapCount",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Number of times to perform the tap (e.g. 2 for double tap, default: 1)."
|
| + },
|
| + {
|
| + "name": "gestureSourceType",
|
| + "$ref": "GestureSourceType",
|
| + "optional": true,
|
| + "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)."
|
| + }
|
| + ],
|
| + "description": "Synthesizes a tap gesture over a time period by issuing appropriate touch events.",
|
| + "hidden": true,
|
| + "handlers": [
|
| + "browser"
|
| + ]
|
| + }
|
| + ],
|
| + "events": []
|
| +}
|
|
|