Index: ui/base/ime/text_input_client.h |
diff --git a/ui/base/ime/text_input_client.h b/ui/base/ime/text_input_client.h |
index aea24b2984920f5e191e7dfd6a44efdc703fff0f..966276f38109922ca7d086b466ff9513d88c4126 100644 |
--- a/ui/base/ime/text_input_client.h |
+++ b/ui/base/ime/text_input_client.h |
@@ -99,7 +99,7 @@ class UI_BASE_IME_EXPORT TextInputClient { |
// Document content operations ---------------------------------------------- |
- // Retrieves the UTF-16 based character range containing accessibled text in |
+ // Retrieves the UTF-16 based character range containing accessible text in |
// the View. It must cover the composition and selection range. |
// Returns false if the information cannot be retrieved right now. |
virtual bool GetTextRange(gfx::Range* range) const = 0; |
@@ -117,6 +117,10 @@ class UI_BASE_IME_EXPORT TextInputClient { |
// Returns false if the operation is not supported. |
virtual bool SetSelectionRange(const gfx::Range& range) = 0; |
+ // Retrieves the text selection offset. This is equal to the number of |
+ // characters that have not been included |
+ virtual uint32 GetSelectionOffset() const = 0; |
+ |
// Deletes contents in the given UTF-16 based character range. Current |
// composition text will be confirmed before deleting the range. |
// The input caret will be moved to the place where the range gets deleted. |