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

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: Rebase 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
« no previous file with comments | « views/ime/input_method_win.cc ('k') | views/widget/native_widget_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a0dd86a316358cacf91a3849f8c3b11f5af97d28 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 accessibled 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(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 stored into |*text|.
+ // Returns false if the operation is not supported or the specified range
+ // is out of the text range returned by GetTextRange().
+ virtual bool GetTextFromRange(const ui::Range& range, string16* text) = 0;
// Miscellaneous ------------------------------------------------------------
« no previous file with comments | « views/ime/input_method_win.cc ('k') | views/widget/native_widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698