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

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: 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..7a4b0e68a724f3fd1653f5dca7980cd14f1bb59a 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 the 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 <code>text</code>. Since <code>text</code> only includes a subset of text around the cursor, offset indicates the absolute position of the first character of <code>text</code>."
}
}
}
« no previous file with comments | « chrome/browser/extensions/api/input_ime/input_ime_api.cc ('k') | chrome/test/data/extensions/input_ime/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698