diff options
author | nona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-28 11:16:32 +0000 |
---|---|---|
committer | nona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-28 11:16:32 +0000 |
commit | 2c3a43a19b8372075ad4b16c8c7dc74d01deddb4 (patch) | |
tree | fe30dca7b11fa3c4ca48314081f0e0b0bf05f5aa /chrome/common | |
parent | da3d995aa5ec0e61a8120f94d855c84ad2bfc68a (diff) | |
download | chromium_src-2c3a43a19b8372075ad4b16c8c7dc74d01deddb4.zip chromium_src-2c3a43a19b8372075ad4b16c8c7dc74d01deddb4.tar.gz chromium_src-2c3a43a19b8372075ad4b16c8c7dc74d01deddb4.tar.bz2 |
Introduce deleteSurroundingText api for Extension IME.
Some IME requires deleting surrounding text to correct or update already
committed text.
This api is same spec of ibus which is input method framework commonly used in
Linux desktop.
BUG=177622
TEST=Manually done on lumpy.
Review URL: https://chromiumcodereview.appspot.com/12316154
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185224 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/extensions/api/input_ime.json | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/input_ime.json b/chrome/common/extensions/api/input_ime.json index b958852..4c68ccc 100644 --- a/chrome/common/extensions/api/input_ime.json +++ b/chrome/common/extensions/api/input_ime.json @@ -404,6 +404,43 @@ ] }, { + "name": "deleteSurroundingText", + "type": "function", + "description": "Deletes the text around the caret.", + "parameters": [ + { + "name": "parameters", + "type": "object", + "properties": { + "engineID": { + "type": "string", + "description": "ID of the engine receiving the event." + }, + "contextID": { + "type": "integer", + "description": "ID of the context where the surrounding text will be deleted." + }, + "offset": { + "type": "integer", + "description": "The offset from the caret position where deletion will start. This value can be negative." + }, + "length": { + "type": "integer", + "description": "The number of characters to be deleted", + "minimum": 0 + } + } + }, + { + "type": "function", + "name": "callback", + "optional": true, + "description": "Called when the operation completes.", + "parameters": [] + } + ] + }, + { "name": "keyEventHandled", "type": "function", "description": "Indicates that the key event received by onKeyEvent is handled. This should only be called if the onKeyEvent listener is asynchronous.", |