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

Unified Diff: ui/base/ime/input_method_chromeos.cc

Issue 739323002: Requests for tabs permission for VirtualKeyboard. (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
« no previous file with comments | « ui/base/ime/dummy_text_input_client.cc ('k') | ui/base/ime/text_input_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_chromeos.cc
diff --git a/ui/base/ime/input_method_chromeos.cc b/ui/base/ime/input_method_chromeos.cc
index c624a0fc20bd63dae859f4e05ad50bf2196f79b3..c65741a5b946eebd1b68361ba083b735bc745ff0 100644
--- a/ui/base/ime/input_method_chromeos.cc
+++ b/ui/base/ime/input_method_chromeos.cc
@@ -241,7 +241,8 @@ void InputMethodChromeOS::OnCaretBoundsChanged(const TextInputClient* client) {
return;
GetEngine()->SetSurroundingText(base::UTF16ToUTF8(surrounding_text),
selection_range.start() - text_range.start(),
- selection_range.end() - text_range.start());
+ selection_range.end() - text_range.start(),
+ client->GetSelectionOffset());
}
void InputMethodChromeOS::CancelComposition(const TextInputClient* client) {
« no previous file with comments | « ui/base/ime/dummy_text_input_client.cc ('k') | ui/base/ime/text_input_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698