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

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: 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
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..61297151d39204ec7f1412675f154f6f710e9d95
--- 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 IsPopupOpen() 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,10 @@ class InputMethodWin : public InputMethodBase {
// Indicates if the current input locale has an IME.
bool active_;
+ // True if a candidate window (or IME suggest, etc.) is open.
+ // False if not or unsure.
+ bool is_popup_open_;
+
// Name of the current input locale.
std::string locale_;

Powered by Google App Engine
This is Rietveld 408576698