Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Side by Side Diff: Source/devtools/protocol.json

Issue 1157563008: [KeyboardEvent] DOM |Key| support in devTools (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated dispatchKeyEvent to be object literal Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/devtools/front_end/screencast/ScreencastView.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "1" }, 2 "version": { "major": "1", "minor": "1" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "hidden": true, 5 "hidden": true,
6 "types": [], 6 "types": [],
7 "commands": [ 7 "commands": [
8 { 8 {
9 "name": "enable", 9 "name": "enable",
10 "description": "Enables inspector domain notifications.", 10 "description": "Enables inspector domain notifications.",
(...skipping 4295 matching lines...) Expand 10 before | Expand all | Expand 10 after
4306 { 4306 {
4307 "name": "dispatchKeyEvent", 4307 "name": "dispatchKeyEvent",
4308 "parameters": [ 4308 "parameters": [
4309 { "name": "type", "type": "string", "enum": ["keyDown", "key Up", "rawKeyDown", "char"], "description": "Type of the key event." }, 4309 { "name": "type", "type": "string", "enum": ["keyDown", "key Up", "rawKeyDown", "char"], "description": "Type of the key event." },
4310 { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Met a/Command=4, Shift=8 (default: 0)." }, 4310 { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Met a/Command=4, Shift=8 (default: 0)." },
4311 { "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)." }, 4311 { "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)." },
4312 { "name": "text", "type": "string", "optional": true, "descr iption": "Text as generated by processing a virtual key code with a keyboard lay out. Not needed for for <code>keyUp</code> and <code>rawKeyDown</code> events (d efault: \"\")" }, 4312 { "name": "text", "type": "string", "optional": true, "descr iption": "Text as generated by processing a virtual key code with a keyboard lay out. Not needed for for <code>keyUp</code> and <code>rawKeyDown</code> events (d efault: \"\")" },
4313 { "name": "unmodifiedText", "type": "string", "optional": tr ue, "description": "Text that would have been generated by the keyboard if no mo difiers were pressed (except for shift). Useful for shortcut (accelerator) key h andling (default: \"\")." }, 4313 { "name": "unmodifiedText", "type": "string", "optional": tr ue, "description": "Text that would have been generated by the keyboard if no mo difiers were pressed (except for shift). Useful for shortcut (accelerator) key h andling (default: \"\")." },
4314 { "name": "keyIdentifier", "type": "string", "optional": tru e, "description": "Unique key identifier (e.g., 'U+0041') (default: \"\")." }, 4314 { "name": "keyIdentifier", "type": "string", "optional": tru e, "description": "Unique key identifier (e.g., 'U+0041') (default: \"\")." },
4315 { "name": "code", "type": "string", "optional": true, "descr iption": "Unique DOM defined string value for each physical key (e.g., 'KeyA') ( default: \"\")." }, 4315 { "name": "code", "type": "string", "optional": true, "descr iption": "Unique DOM defined string value for each physical key (e.g., 'KeyA') ( default: \"\")." },
4316 { "name": "key", "type": "string", "optional": true, "descri ption": "Unique DOM defined string value describing the meaning of the key in th e context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: \" \")." },
4316 { "name": "windowsVirtualKeyCode", "type": "integer", "optio nal": true, "description": "Windows virtual key code (default: 0)." }, 4317 { "name": "windowsVirtualKeyCode", "type": "integer", "optio nal": true, "description": "Windows virtual key code (default: 0)." },
4317 { "name": "nativeVirtualKeyCode", "type": "integer", "option al": true, "description": "Native virtual key code (default: 0)." }, 4318 { "name": "nativeVirtualKeyCode", "type": "integer", "option al": true, "description": "Native virtual key code (default: 0)." },
4318 { "name": "autoRepeat", "type": "boolean", "optional": true, "description": "Whether the event was generated from auto repeat (default: fals e)." }, 4319 { "name": "autoRepeat", "type": "boolean", "optional": true, "description": "Whether the event was generated from auto repeat (default: fals e)." },
4319 { "name": "isKeypad", "type": "boolean", "optional": true, " description": "Whether the event was generated from the keypad (default: false). " }, 4320 { "name": "isKeypad", "type": "boolean", "optional": true, " description": "Whether the event was generated from the keypad (default: false). " },
4320 { "name": "isSystemKey", "type": "boolean", "optional": true , "description": "Whether the event was a system key event (default: false)." } 4321 { "name": "isSystemKey", "type": "boolean", "optional": true , "description": "Whether the event was a system key event (default: false)." }
4321 ], 4322 ],
4322 "description": "Dispatches a key event to the page.", 4323 "description": "Dispatches a key event to the page.",
4323 "handlers": ["browser"] 4324 "handlers": ["browser"]
4324 }, 4325 },
4325 { 4326 {
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
4949 ], 4950 ],
4950 "returns": [ 4951 "returns": [
4951 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } 4952 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true }
4952 ], 4953 ],
4953 "description": "Fetches the accessibility node for this DOM node , if it exists.", 4954 "description": "Fetches the accessibility node for this DOM node , if it exists.",
4954 "hidden": true 4955 "hidden": true
4955 } 4956 }
4956 ] 4957 ]
4957 }] 4958 }]
4958 } 4959 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/screencast/ScreencastView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698