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

Unified Diff: ui/base/ime/win/tsf_bridge.h

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 | « ui/base/ime/win/mock_tsf_bridge.cc ('k') | ui/base/ime/win/tsf_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/win/tsf_bridge.h
diff --git a/ui/base/ime/win/tsf_bridge.h b/ui/base/ime/win/tsf_bridge.h
index cfebcaf5ef004206b129cf8dba8b834569606e01..6256fac166adcf81093bd6cd25f32eb012090380 100644
--- a/ui/base/ime/win/tsf_bridge.h
+++ b/ui/base/ime/win/tsf_bridge.h
@@ -55,9 +55,17 @@ class UI_EXPORT TSFBridge {
virtual void OnTextLayoutChanged() = 0;
// Cancels the ongoing composition if exists.
+ // Returns true if there is no composition.
+ // Returns false if an edit session is on-going.
// Returns false if an error occures.
virtual bool CancelComposition() = 0;
+ // Confirms the ongoing composition if exists.
+ // Returns true if there is no composition.
+ // Returns false if an edit session is on-going.
+ // Returns false if an error occures.
+ virtual bool ConfirmComposition() = 0;
+
// Sets currently focused TextInputClient.
// Caller must free |client|.
virtual void SetFocusedClient(HWND focused_window,
« no previous file with comments | « ui/base/ime/win/mock_tsf_bridge.cc ('k') | ui/base/ime/win/tsf_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698