| 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 "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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 "url": {"type": "string", "optional": true}, | 128 "url": {"type": "string", "optional": true}, |
| 129 "bounds": {"$ref": "Bounds", "optional": true} | 129 "bounds": {"$ref": "Bounds", "optional": true} |
| 130 } | 130 } |
| 131 } | 131 } |
| 132 ], | 132 ], |
| 133 "functions": [ | 133 "functions": [ |
| 134 { | 134 { |
| 135 "name": "setComposition", | 135 "name": "setComposition", |
| 136 "type": "function", | 136 "type": "function", |
| 137 "description": "Set the current composition. If this extension does not
own the active IME, this fails.", | 137 "description": "Set the current composition. If this extension does not
own the active IME, this fails.", |
| 138 "platforms": ["chromeos"], | 138 "platforms": ["chromeos", "win", "linux"], |
| 139 "parameters": [ | 139 "parameters": [ |
| 140 { | 140 { |
| 141 "name": "parameters", | 141 "name": "parameters", |
| 142 "type": "object", | 142 "type": "object", |
| 143 "properties": { | 143 "properties": { |
| 144 "contextID": { | 144 "contextID": { |
| 145 "description": "ID of the context where the composition text wil
l be set", | 145 "description": "ID of the context where the composition text wil
l be set", |
| 146 "type": "integer" | 146 "type": "integer" |
| 147 }, | 147 }, |
| 148 "text": { | 148 "text": { |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 "type": "boolean" | 228 "type": "boolean" |
| 229 } | 229 } |
| 230 ] | 230 ] |
| 231 } | 231 } |
| 232 ] | 232 ] |
| 233 }, | 233 }, |
| 234 { | 234 { |
| 235 "name": "commitText", | 235 "name": "commitText", |
| 236 "type": "function", | 236 "type": "function", |
| 237 "description": "Commits the provided text to the current input.", | 237 "description": "Commits the provided text to the current input.", |
| 238 "platforms": ["chromeos"], | 238 "platforms": ["chromeos", "win", "linux"], |
| 239 "parameters": [ | 239 "parameters": [ |
| 240 { | 240 { |
| 241 "name": "parameters", | 241 "name": "parameters", |
| 242 "type": "object", | 242 "type": "object", |
| 243 "properties": { | 243 "properties": { |
| 244 "contextID": { | 244 "contextID": { |
| 245 "description": "ID of the context where the text will be committ
ed", | 245 "description": "ID of the context where the text will be committ
ed", |
| 246 "type": "integer" | 246 "type": "integer" |
| 247 }, | 247 }, |
| 248 "text": { | 248 "text": { |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 "type": "array", | 841 "type": "array", |
| 842 "name": "boundsList", | 842 "name": "boundsList", |
| 843 "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.", | 843 "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.", |
| 844 "items": { "$ref": "Bounds" } | 844 "items": { "$ref": "Bounds" } |
| 845 } | 845 } |
| 846 ] | 846 ] |
| 847 } | 847 } |
| 848 ] | 848 ] |
| 849 } | 849 } |
| 850 ] | 850 ] |
| OLD | NEW |