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

Unified Diff: views/ime/text_input_client.h

Issue 8294026: Support IMM32 reconversion on Windows (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: update Created 9 years, 2 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: views/ime/text_input_client.h
diff --git a/views/ime/text_input_client.h b/views/ime/text_input_client.h
index 35c595fc19718790945460d4eb5dcb5e866aaadf..9c9f51acabf16c75a8a318ac2fbe9f0bff669690 100644
--- a/views/ime/text_input_client.h
+++ b/views/ime/text_input_client.h
@@ -9,7 +9,6 @@
#include <vector>
#include "base/basictypes.h"
-#include "base/callback.h"
#include "base/string16.h"
#include "ui/base/ime/composition_text.h"
#include "ui/base/ime/text_input_type.h"
@@ -74,7 +73,8 @@ class VIEWS_EXPORT TextInputClient {
// Document content operations ----------------------------------------------
- // Retrieves the UTF-16 based character range containing all text in the View.
+ // Retrieves the UTF-16 based character range containing accessabled text in
+ // the View. It must cover the composition and selection range.
James Su 2011/10/27 18:39:49 nit: accessabled -> accessible.
Peng 2011/10/28 15:42:19 Done.
// Returns false if the information cannot be retrieved right now.
virtual bool GetTextRange(ui::Range* range) = 0;
@@ -98,12 +98,10 @@ class VIEWS_EXPORT TextInputClient {
virtual bool DeleteRange(const ui::Range& range) = 0;
// Retrieves the text content in a given UTF-16 based character range.
- // The result will be send back to the input method by calling the given
- // callback, which may happen asynchronously.
- // Returns false if the operation is not supported.
- virtual bool GetTextFromRange(
- const ui::Range& range,
- const base::Callback<void(const string16&)>& callback) = 0;
+ // The result will be written in text.
James Su 2011/10/27 18:39:49 nit: The result will be stored into |*text|.
Peng 2011/10/28 15:42:19 Done.
+ // Returns false if the operation is not supported or can not get text for
+ // given range.
James Su 2011/10/27 18:39:49 nit: ... or the specified range is out of the text
Peng 2011/10/28 15:42:19 Done.
+ virtual bool GetTextFromRange(const ui::Range& range, string16* text) = 0;
// Miscellaneous ------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698