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

Unified Diff: ui/views/ime/input_method_bridge.cc

Issue 80583002: [FYI] All-in-one OnCandidateWindow{Show,Update,Hide} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« ui/base/ime/input_method_tsf.cc ('K') | « ui/views/ime/input_method_bridge.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/ime/input_method_bridge.cc
diff --git a/ui/views/ime/input_method_bridge.cc b/ui/views/ime/input_method_bridge.cc
index ea13bd481707e2f7cb6569ebf31c128ed8ab4a1d..616960ead41f1ed4242a2d3832a8bbc5689bbcbd 100644
--- a/ui/views/ime/input_method_bridge.cc
+++ b/ui/views/ime/input_method_bridge.cc
@@ -311,6 +311,24 @@ void InputMethodBridge::EnsureCaretInRect(const gfx::Rect& rect) {
client->EnsureCaretInRect(rect);
}
+void InputMethodBridge::OnCandidateWindowShow() {
+ TextInputClient* client = GetTextInputClient();
+ if (client)
+ client->OnCandidateWindowShow();
+}
+
+void InputMethodBridge::OnCandidateWindowUpdate() {
+ TextInputClient* client = GetTextInputClient();
+ if (client)
+ client->OnCandidateWindowUpdate();
+}
+
+void InputMethodBridge::OnCandidateWindowHide() {
+ TextInputClient* client = GetTextInputClient();
+ if (client)
+ client->OnCandidateWindowHide();
+}
+
// Overridden from FocusChangeListener.
void InputMethodBridge::OnWillChangeFocus(View* focused_before, View* focused) {
if (HasCompositionText()) {
« ui/base/ime/input_method_tsf.cc ('K') | « ui/views/ime/input_method_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698