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

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

Issue 1771173002: Implement input.ime.sendKeyEvents API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test failure. Created 4 years, 9 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 // 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 "types": [ 9 "types": [
10 { 10 {
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 "type": "boolean" 262 "type": "boolean"
263 } 263 }
264 ] 264 ]
265 } 265 }
266 ] 266 ]
267 }, 267 },
268 { 268 {
269 "name": "sendKeyEvents", 269 "name": "sendKeyEvents",
270 "type": "function", 270 "type": "function",
271 "description": "Sends the key events. This function is expected to be u sed by virtual keyboards. When key(s) on a virtual keyboard is pressed by a use r, this function is used to propagate that event to the system.", 271 "description": "Sends the key events. This function is expected to be u sed by virtual keyboards. When key(s) on a virtual keyboard is pressed by a use r, this function is used to propagate that event to the system.",
272 "platforms": ["chromeos"], 272 "platforms": ["chromeos", "win", "linux"],
273 "parameters": [ 273 "parameters": [
274 { 274 {
275 "name": "parameters", 275 "name": "parameters",
276 "type": "object", 276 "type": "object",
277 "properties": { 277 "properties": {
278 "contextID": { 278 "contextID": {
279 "description": "ID of the context where the key events will be s ent, or zero to send key events to non-input field.", 279 "description": "ID of the context where the key events will be s ent, or zero to send key events to non-input field.",
280 "type": "integer" 280 "type": "integer"
281 }, 281 },
282 "keyData": { 282 "keyData": {
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 { 737 {
738 "$ref": "InputContext", 738 "$ref": "InputContext",
739 "name": "context", 739 "name": "context",
740 "description": "An InputContext object describing the text field tha t has changed." 740 "description": "An InputContext object describing the text field tha t has changed."
741 } 741 }
742 ] 742 ]
743 }, 743 },
744 { 744 {
745 "name": "onKeyEvent", 745 "name": "onKeyEvent",
746 "type": "function", 746 "type": "function",
747 "description": "This event is sent if this extension owns the active IME .", 747 "description": "Fired when a key event is sent from the operating system . The event will be sent to the extension if this extension owns the active IME. ",
748 "platforms": ["chromeos", "win", "linux"], 748 "platforms": ["chromeos", "win", "linux"],
749 "options": { 749 "options": {
750 "supportsFilters": false, 750 "supportsFilters": false,
751 "supportsListeners": true, 751 "supportsListeners": true,
752 "supportsRules": false, 752 "supportsRules": false,
753 "maxListeners": 1 753 "maxListeners": 1
754 }, 754 },
755 "parameters": [ 755 "parameters": [
756 { 756 {
757 "type": "string", 757 "type": "string",
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 "type": "array", 881 "type": "array",
882 "name": "boundsList", 882 "name": "boundsList",
883 "description": "List of bounds information for each character on IME composition text. If there's no composition text in the editor, this array cont ains the bound information of the cursor.", 883 "description": "List of bounds information for each character on IME composition text. If there's no composition text in the editor, this array cont ains the bound information of the cursor.",
884 "items": { "$ref": "Bounds" } 884 "items": { "$ref": "Bounds" }
885 } 885 }
886 ] 886 ]
887 } 887 }
888 ] 888 ]
889 } 889 }
890 ] 890 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698