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

Unified Diff: chrome/common/extensions/api/input_ime.json

Issue 1282823002: Add text offset to OnSurroundingTextChanged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviewer feedback. Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/input_ime.json
diff --git a/chrome/common/extensions/api/input_ime.json b/chrome/common/extensions/api/input_ime.json
index cb41d2934f73c2121dccb8d7d40d1188836eeb5a..32eb56826ef5df06f31a5c562cf9bdfb9d78162d 100644
--- a/chrome/common/extensions/api/input_ime.json
+++ b/chrome/common/extensions/api/input_ime.json
@@ -693,7 +693,7 @@
"properties": {
"text": {
"type": "string",
- "description": "The text around cursor."
+ "description": "The text around cursor. This is only a subset of all text in the input field."
},
"focus": {
"type": "integer",
@@ -701,7 +701,11 @@
},
"anchor": {
"type": "integer",
- "description": "The beginning position of the selection. This value indicates caret position if is no selection."
+ "description": "The beginning position of the selection. This value indicates caret position if there is no selection."
+ },
+ "offset": {
+ "type": "integer",
+ "description": "The offset position of |text|. Since |text| only includes a subset of text around the cursor, offset indicates the absolute position of the first character of |text|."
}
}
}

Powered by Google App Engine
This is Rietveld 408576698