| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_BASE_IME_INPUT_METHOD_TSF_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_TSF_H_ |
| 6 #define UI_BASE_IME_INPUT_METHOD_TSF_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_TSF_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // Overridden from InputMethod: | 22 // Overridden from InputMethod: |
| 23 virtual void OnFocus() OVERRIDE; | 23 virtual void OnFocus() OVERRIDE; |
| 24 virtual void OnBlur() OVERRIDE; | 24 virtual void OnBlur() OVERRIDE; |
| 25 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | 25 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, |
| 26 NativeEventResult* result) OVERRIDE; | 26 NativeEventResult* result) OVERRIDE; |
| 27 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; | 27 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; |
| 28 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; | 28 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; |
| 29 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; | 29 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; |
| 30 virtual void SetFocusedTextInputClient(TextInputClient* client) OVERRIDE; | 30 virtual void SetFocusedTextInputClient(TextInputClient* client) OVERRIDE; |
| 31 virtual bool IsCandidatePopupOpen() const OVERRIDE; |
| 31 | 32 |
| 32 // Overridden from InputMethodBase: | 33 // Overridden from InputMethodBase: |
| 33 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, | 34 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, |
| 34 TextInputClient* focused) OVERRIDE; | 35 TextInputClient* focused) OVERRIDE; |
| 35 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, | 36 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, |
| 36 TextInputClient* focused) OVERRIDE; | 37 TextInputClient* focused) OVERRIDE; |
| 37 | 38 |
| 38 private: | 39 private: |
| 40 LRESULT OnImeNotify(UINT message, |
| 41 WPARAM wparam, |
| 42 LPARAM lparam, |
| 43 BOOL* handled); |
| 44 |
| 39 // Asks the client to confirm current composition text. | 45 // Asks the client to confirm current composition text. |
| 40 void ConfirmCompositionText(); | 46 void ConfirmCompositionText(); |
| 41 | 47 |
| 42 // Returns true if the Win32 native window bound to |client| has Win32 input | 48 // Returns true if the Win32 native window bound to |client| has Win32 input |
| 43 // focus. | 49 // focus. |
| 44 bool IsWindowFocused(const TextInputClient* client) const; | 50 bool IsWindowFocused(const TextInputClient* client) const; |
| 45 | 51 |
| 52 // True if we know for sure that a candidate window is open. |
| 53 bool is_candidate_popup_open_; |
| 54 |
| 46 DISALLOW_COPY_AND_ASSIGN(InputMethodTSF); | 55 DISALLOW_COPY_AND_ASSIGN(InputMethodTSF); |
| 47 }; | 56 }; |
| 48 | 57 |
| 49 } // namespace ui | 58 } // namespace ui |
| 50 | 59 |
| 51 #endif // UI_BASE_IME_INPUT_METHOD_TSF_H_ | 60 #endif // UI_BASE_IME_INPUT_METHOD_TSF_H_ |
| OLD | NEW |