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

Unified Diff: ui/base/ime/input_method_imm32.h

Issue 17112021: New method: InputMethod::IsCandidatePopupOpen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed from IsPopupOpen() to IsCandidatePopupOpen(). 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/base/ime/input_method_imm32.h
diff --git a/ui/base/ime/input_method_imm32.h b/ui/base/ime/input_method_imm32.h
old mode 100644
new mode 100755
index 25bac6015059f3deb3e4f10ebcf32d6a36255536..a67d79681ce4b6a65c9a36754cffa09d1c583b58
--- a/ui/base/ime/input_method_imm32.h
+++ b/ui/base/ime/input_method_imm32.h
@@ -30,6 +30,7 @@ class UI_EXPORT InputMethodIMM32 : public InputMethodWin {
virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE;
virtual void CancelComposition(const TextInputClient* client) OVERRIDE;
virtual void SetFocusedTextInputClient(TextInputClient* client) OVERRIDE;
+ virtual bool IsCandidatePopupOpen() const OVERRIDE;
protected:
// Overridden from InputMethodBase:
@@ -59,6 +60,10 @@ class UI_EXPORT InputMethodIMM32 : public InputMethodWin {
WPARAM wparam,
LPARAM lparam,
BOOL* handled);
+ LRESULT OnImeNotify(UINT message,
+ WPARAM wparam,
+ LPARAM lparam,
+ BOOL* handled);
// Asks the client to confirm current composition text.
void ConfirmCompositionText();
@@ -72,6 +77,9 @@ class UI_EXPORT InputMethodIMM32 : public InputMethodWin {
bool enabled_;
+ // True if we know for sure that a candidate window is open.
+ bool is_candidate_popup_open_;
+
// Window handle where composition is on-going. NULL when there is no
// composition.
HWND composing_window_handle_;

Powered by Google App Engine
This is Rietveld 408576698