Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "input.ime", | 7 "namespace": "input.ime", |
| 8 "platforms": ["chromeos"], | 8 "platforms": ["chromeos"], |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| 11 "id": "KeyboardEvent", | 11 "id": "KeyboardEvent", |
| 12 "type": "object", | 12 "type": "object", |
| 13 "description": "See http://www.w3.org/TR/DOM-Level-3-Events/#events-Keyb oardEvent", | 13 "description": "See http://www.w3.org/TR/DOM-Level-3-Events/#events-Keyb oardEvent", |
| 14 "properties": { | 14 "properties": { |
| 15 "type": {"type": "string", "description": "One of keyup or keydown.", "enum": ["keyup", "keydown"]}, | 15 "type": {"type": "string", "description": "One of keyup or keydown.", "enum": ["keyup", "keydown"]}, |
| 16 "requestId": {"type": "string", "description": "The ID of the request. "}, | 16 "requestId": {"type": "string", "description": "The ID of the request. "}, |
| 17 "key": {"type": "string", "description": "Value of the key being press ed"}, | 17 "key": {"type": "string", "description": "Value of the key being press ed"}, |
| 18 "code": {"type": "string", "description": "Value of the physical key b eing pressed. The value is not affected with current keyboard layout or modifier state."}, | |
|
Matt Perry
2013/02/11 19:38:51
affected by*
Seigo Nonaka
2013/02/12 02:22:00
Done.
| |
| 18 "altKey": {"type": "boolean", "optional": true, "description": "Whethe r or not the ALT key is pressed."}, | 19 "altKey": {"type": "boolean", "optional": true, "description": "Whethe r or not the ALT key is pressed."}, |
| 19 "ctrlKey": {"type": "boolean", "optional": true, "description": "Wheth er or not the CTRL key is pressed."}, | 20 "ctrlKey": {"type": "boolean", "optional": true, "description": "Wheth er or not the CTRL key is pressed."}, |
| 20 "shiftKey": {"type": "boolean", "optional": true, "description": "Whet her or not the SHIFT key is pressed."} | 21 "shiftKey": {"type": "boolean", "optional": true, "description": "Whet her or not the SHIFT key is pressed."} |
| 21 } | 22 } |
| 22 }, | 23 }, |
| 23 { | 24 { |
| 24 "id": "InputContext", | 25 "id": "InputContext", |
| 25 "type": "object", | 26 "type": "object", |
| 26 "description": "Describes an input Context", | 27 "description": "Describes an input Context", |
| 27 "properties": { | 28 "properties": { |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 549 { | 550 { |
| 550 "type": "string", | 551 "type": "string", |
| 551 "name": "name", | 552 "name": "name", |
| 552 "description": "Name of the MenuItem which was activated" | 553 "description": "Name of the MenuItem which was activated" |
| 553 } | 554 } |
| 554 ] | 555 ] |
| 555 } | 556 } |
| 556 ] | 557 ] |
| 557 } | 558 } |
| 558 ] | 559 ] |
| OLD | NEW |