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

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

Issue 933323002: Add experimental Support for DOM3 KeyboardEvent key value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added key=value pair for screencastview.js Created 5 years, 10 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
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 4283 matching lines...) Expand 10 before | Expand all | Expand 10 after
4294 { 4294 {
4295 "name": "dispatchKeyEvent", 4295 "name": "dispatchKeyEvent",
4296 "parameters": [ 4296 "parameters": [
4297 { "name": "type", "type": "string", "enum": ["keyDown", "key Up", "rawKeyDown", "char"], "description": "Type of the key event." }, 4297 { "name": "type", "type": "string", "enum": ["keyDown", "key Up", "rawKeyDown", "char"], "description": "Type of the key event." },
4298 { "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)." }, 4298 { "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)." },
4299 { "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)." }, 4299 { "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)." },
4300 { "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: \"\")" }, 4300 { "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: \"\")" },
4301 { "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: \"\")." }, 4301 { "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: \"\")." },
4302 { "name": "keyIdentifier", "type": "string", "optional": tru e, "description": "Unique key identifier (e.g., 'U+0041') (default: \"\")." }, 4302 { "name": "keyIdentifier", "type": "string", "optional": tru e, "description": "Unique key identifier (e.g., 'U+0041') (default: \"\")." },
4303 { "name": "code", "type": "string", "optional": true, "descr iption": "Unique DOM defined string value for each physical key (e.g., 'KeyA') ( default: \"\")." }, 4303 { "name": "code", "type": "string", "optional": true, "descr iption": "Unique DOM defined string value for each physical key (e.g., 'KeyA') ( default: \"\")." },
4304 { "name": "key", "type": "string", "optional": true, "descri ption": "Unique DOM defined string value based on the current state of all activ e keys and key input modes (e.g., 'Shift') (default: \"\")." },
Wez 2015/03/04 23:00:25 I'd suggest rephrasing this: "Unique DOM defined
Habib Virji 2015/03/09 15:14:27 Done.
4304 { "name": "windowsVirtualKeyCode", "type": "integer", "optio nal": true, "description": "Windows virtual key code (default: 0)." }, 4305 { "name": "windowsVirtualKeyCode", "type": "integer", "optio nal": true, "description": "Windows virtual key code (default: 0)." },
4305 { "name": "nativeVirtualKeyCode", "type": "integer", "option al": true, "description": "Native virtual key code (default: 0)." }, 4306 { "name": "nativeVirtualKeyCode", "type": "integer", "option al": true, "description": "Native virtual key code (default: 0)." },
4306 { "name": "autoRepeat", "type": "boolean", "optional": true, "description": "Whether the event was generated from auto repeat (default: fals e)." }, 4307 { "name": "autoRepeat", "type": "boolean", "optional": true, "description": "Whether the event was generated from auto repeat (default: fals e)." },
4307 { "name": "isKeypad", "type": "boolean", "optional": true, " description": "Whether the event was generated from the keypad (default: false). " }, 4308 { "name": "isKeypad", "type": "boolean", "optional": true, " description": "Whether the event was generated from the keypad (default: false). " },
4308 { "name": "isSystemKey", "type": "boolean", "optional": true , "description": "Whether the event was a system key event (default: false)." } 4309 { "name": "isSystemKey", "type": "boolean", "optional": true , "description": "Whether the event was a system key event (default: false)." }
4309 ], 4310 ],
4310 "description": "Dispatches a key event to the page." 4311 "description": "Dispatches a key event to the page."
4311 }, 4312 },
4312 { 4313 {
4313 "name": "dispatchMouseEvent", 4314 "name": "dispatchMouseEvent",
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
4773 { 4774 {
4774 "name": "animationPlayerCreated", 4775 "name": "animationPlayerCreated",
4775 "parameters": [ 4776 "parameters": [
4776 { "name": "player", "$ref": "AnimationPlayer", "description" : "AnimationPlayer that was created." } 4777 { "name": "player", "$ref": "AnimationPlayer", "description" : "AnimationPlayer that was created." }
4777 ], 4778 ],
4778 "hidden": true 4779 "hidden": true
4779 } 4780 }
4780 ] 4781 ]
4781 }] 4782 }]
4782 } 4783 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698