| Index: third_party/WebKit/Source/core/inspector/protocol-1.1/Input.json
|
| diff --git a/third_party/WebKit/Source/core/inspector/protocol-1.1/Input.json b/third_party/WebKit/Source/core/inspector/protocol-1.1/Input.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d32fff54e0a4d88799d391bce7f3881030631aec
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/inspector/protocol-1.1/Input.json
|
| @@ -0,0 +1,304 @@
|
| +{
|
| + "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."
|
| + }
|
| + ]
|
| + }
|
| + ],
|
| + "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": "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."
|
| + },
|
| + {
|
| + "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)."
|
| + },
|
| + {
|
| + "name": "deviceSpace",
|
| + "type": "boolean",
|
| + "optional": true,
|
| + "hidden": true,
|
| + "description": "If true, x and y are given in dip wrt current viewport."
|
| + }
|
| + ],
|
| + "description": "Dispatches a mouse event to the page."
|
| + },
|
| + {
|
| + "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": "dispatchGestureEvent",
|
| + "hidden": true,
|
| + "parameters": [
|
| + {
|
| + "name": "type",
|
| + "type": "string",
|
| + "enum": [
|
| + "scrollBegin",
|
| + "scrollEnd",
|
| + "scrollUpdate",
|
| + "tapDown",
|
| + "tap",
|
| + "pinchBegin",
|
| + "pinchEnd",
|
| + "pinchUpdate"
|
| + ],
|
| + "description": "Type of the gesture event."
|
| + },
|
| + {
|
| + "name": "x",
|
| + "type": "integer",
|
| + "description": "X coordinate relative to the screen's viewport."
|
| + },
|
| + {
|
| + "name": "y",
|
| + "type": "integer",
|
| + "description": "Y coordinate relative to the screen's viewport."
|
| + },
|
| + {
|
| + "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": "deltaX",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Delta X where apllies."
|
| + },
|
| + {
|
| + "name": "deltaY",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Delta Y where apllies."
|
| + },
|
| + {
|
| + "name": "pinchScale",
|
| + "type": "number",
|
| + "optional": true,
|
| + "description": "Pinch scale."
|
| + }
|
| + ],
|
| + "description": "Dispatches a gesture event to the page."
|
| + }
|
| + ],
|
| + "events": []
|
| +}
|
|
|