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

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

Issue 16901011: Support CancelCompositionText/ComfirmCompositionText in TSF (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix a typo Created 7 years, 6 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 | « no previous file | ui/base/ime/win/mock_tsf_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_tsf.cc
diff --git a/ui/base/ime/input_method_tsf.cc b/ui/base/ime/input_method_tsf.cc
index ab720f11da4a6600dced99fdf7eafba0f9b5c80c..6980eecbfd1939353a4ee8b47791ca41363ba40a 100644
--- a/ui/base/ime/input_method_tsf.cc
+++ b/ui/base/ime/input_method_tsf.cc
@@ -123,12 +123,8 @@ void InputMethodTSF::OnDidChangeFocusedClient(TextInputClient* focused_before,
}
void InputMethodTSF::ConfirmCompositionText() {
- if (!IsTextInputTypeNone()) {
- // TSFBridge has not implemented ConfirmComposition yet. So here cancel
- // the composition instead as a workaround.
- // TODO(ime): Implement ConfirmComposition for TSF.
- ui::TSFBridge::GetInstance()->CancelComposition();
- }
+ if (!IsTextInputTypeNone())
+ ui::TSFBridge::GetInstance()->ConfirmComposition();
}
bool InputMethodTSF::IsWindowFocused(const TextInputClient* client) const {
« no previous file with comments | « no previous file | ui/base/ime/win/mock_tsf_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698