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

Unified Diff: ui/views/ime/input_method_win.h

Issue 17112021: New method: InputMethod::IsCandidatePopupOpen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Synced. 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/views/ime/input_method_bridge.cc ('k') | ui/views/ime/input_method_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/ime/input_method_win.h
diff --git a/ui/views/ime/input_method_win.h b/ui/views/ime/input_method_win.h
old mode 100644
new mode 100755
index d2347c27cf9330eaa94875e92f6b017ccf5c2211..84c804eccb7518fc7df68d483c1b139f321e285e
--- a/ui/views/ime/input_method_win.h
+++ b/ui/views/ime/input_method_win.h
@@ -44,6 +44,7 @@ class InputMethodWin : public InputMethodBase {
virtual std::string GetInputLocale() OVERRIDE;
virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE;
virtual bool IsActive() OVERRIDE;
+ virtual bool IsCandidatePopupOpen() const OVERRIDE;
// Overridden from InputMethodBase.
virtual ui::TextInputClient* GetTextInputClient() const OVERRIDE;
@@ -59,6 +60,8 @@ class InputMethodWin : public InputMethodBase {
UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled);
LRESULT OnImeRequest(
UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled);
+ LRESULT OnImeNotify(
+ UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled);
// For both WM_CHAR and WM_SYSCHAR
LRESULT OnChar(
UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled);
@@ -86,6 +89,9 @@ class InputMethodWin : public InputMethodBase {
// Indicates if the current input locale has an IME.
bool active_;
+ // True if we know for sure that a candidate window is open.
+ bool is_candidate_popup_open_;
+
// Name of the current input locale.
std::string locale_;
« no previous file with comments | « ui/views/ime/input_method_bridge.cc ('k') | ui/views/ime/input_method_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698