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

Side by Side Diff: chrome/common/extensions/api/input_ime.json

Issue 12224031: Add code attribute into onKeyEvent argument. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/api/input_ime/input_ime_api.cc ('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 // 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 by current keyboard layout or modifier s tate."},
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
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 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/input_ime/input_ime_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698