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

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

Issue 346513003: Adds the legacy KeyboardEvent.keyCode attribute for extension IMEs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « 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 "description": "Use the <code>chrome.input.ime</code> API to implement a cus tom IME for Chrome OS. This allows your extension to handle keystrokes, set the composition, and manage the candidate window.", 8 "description": "Use the <code>chrome.input.ime</code> API to implement a cus tom IME for Chrome OS. This allows your extension to handle keystrokes, set the composition, and manage the candidate window.",
9 "platforms": ["chromeos"], 9 "platforms": ["chromeos"],
10 "types": [ 10 "types": [
11 { 11 {
12 "id": "KeyboardEvent", 12 "id": "KeyboardEvent",
13 "type": "object", 13 "type": "object",
14 "description": "See http://www.w3.org/TR/DOM-Level-3-Events/#events-Keyb oardEvent", 14 "description": "See http://www.w3.org/TR/DOM-Level-3-Events/#events-Keyb oardEvent",
15 "properties": { 15 "properties": {
16 "type": {"type": "string", "description": "One of keyup or keydown.", "enum": ["keyup", "keydown"]}, 16 "type": {"type": "string", "description": "One of keyup or keydown.", "enum": ["keyup", "keydown"]},
17 "requestId": {"type": "string", "description": "The ID of the request. "}, 17 "requestId": {"type": "string", "description": "The ID of the request. "},
18 "extensionId": {"type": "string", "optional": true, "description": "Th e extension ID of the sender of this keyevent."}, 18 "extensionId": {"type": "string", "optional": true, "description": "Th e extension ID of the sender of this keyevent."},
19 "key": {"type": "string", "description": "Value of the key being press ed"}, 19 "key": {"type": "string", "description": "Value of the key being press ed"},
20 "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."}, 20 "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."},
21 "keyCode": {"type": "integer", "description": "It holds system- and im plementation-dependent numerical code signifying the unmodified identifier assoc iated with the key pressed."},
not at google - send to devlin 2014/06/19 15:57:27 s/It holds// does this relate to the deprecated H
Shu Chen 2014/06/20 06:11:57 Done.
21 "altKey": {"type": "boolean", "optional": true, "description": "Whethe r or not the ALT key is pressed."}, 22 "altKey": {"type": "boolean", "optional": true, "description": "Whethe r or not the ALT key is pressed."},
22 "ctrlKey": {"type": "boolean", "optional": true, "description": "Wheth er or not the CTRL key is pressed."}, 23 "ctrlKey": {"type": "boolean", "optional": true, "description": "Wheth er or not the CTRL key is pressed."},
23 "shiftKey": {"type": "boolean", "optional": true, "description": "Whet her or not the SHIFT key is pressed."}, 24 "shiftKey": {"type": "boolean", "optional": true, "description": "Whet her or not the SHIFT key is pressed."},
24 "capsLock": {"type": "boolean", "optional": true, "description": "Whet her or not the CAPS_LOCK is enabled."} 25 "capsLock": {"type": "boolean", "optional": true, "description": "Whet her or not the CAPS_LOCK is enabled."}
25 } 26 }
26 }, 27 },
27 { 28 {
28 "id": "InputContext", 29 "id": "InputContext",
29 "type": "object", 30 "type": "object",
30 "description": "Describes an input Context", 31 "description": "Describes an input Context",
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 { 667 {
667 "type": "string", 668 "type": "string",
668 "name": "engineID", 669 "name": "engineID",
669 "description": "ID of the engine receiving the event" 670 "description": "ID of the engine receiving the event"
670 } 671 }
671 ] 672 ]
672 } 673 }
673 ] 674 ]
674 } 675 }
675 ] 676 ]
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