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..238c70368df96ba1310747b2bfb0e2e6e385684c 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,11 @@ 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 offset. Since only a subset of surrounding |
+ // text is cached, this value indicates the offset of the stored text relative |
+ // to the entire text body. |
+ virtual uint32 GetTextOffset() const = 0; |
Shu Chen
2015/08/13 01:27:24
What's the difference between GetTextRange and Get
rsadam
2015/08/13 04:31:11
Oh wow, nice catch. They're identical. This simpli
|
+ |
// 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. |