| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WIN_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_WIN_H_ |
| 6 #define UI_BASE_IME_INPUT_METHOD_WIN_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 virtual void OnBlur() OVERRIDE; | 28 virtual void OnBlur() OVERRIDE; |
| 29 virtual bool DispatchKeyEvent( | 29 virtual bool DispatchKeyEvent( |
| 30 const base::NativeEvent& native_key_event) OVERRIDE; | 30 const base::NativeEvent& native_key_event) OVERRIDE; |
| 31 virtual bool DispatchFabricatedKeyEvent(const ui::KeyEvent& event) OVERRIDE; | 31 virtual bool DispatchFabricatedKeyEvent(const ui::KeyEvent& event) OVERRIDE; |
| 32 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; | 32 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; |
| 33 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; | 33 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; |
| 34 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; | 34 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; |
| 35 virtual std::string GetInputLocale() OVERRIDE; | 35 virtual std::string GetInputLocale() OVERRIDE; |
| 36 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; | 36 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; |
| 37 virtual bool IsActive() OVERRIDE; | 37 virtual bool IsActive() OVERRIDE; |
| 38 virtual void SetFocusedTextInputClient(TextInputClient* client) OVERRIDE; |
| 39 virtual TextInputClient* GetTextInputClient() const OVERRIDE; |
| 38 | 40 |
| 39 // Handles IME messages. | 41 // Handles IME messages. |
| 40 LRESULT OnImeMessages(UINT message, | 42 LRESULT OnImeMessages(UINT message, |
| 41 WPARAM wparam, | 43 WPARAM wparam, |
| 42 LPARAM lparam, | 44 LPARAM lparam, |
| 43 BOOL* handled); | 45 BOOL* handled); |
| 44 | 46 |
| 45 // Message handlers. The native widget is responsible for forwarding following | 47 // Message handlers. The native widget is responsible for forwarding following |
| 46 // messages to the input method. | 48 // messages to the input method. |
| 47 void OnInputLangChange(DWORD character_set, HKL input_language_id); | 49 void OnInputLangChange(DWORD character_set, HKL input_language_id); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 ui::ImeInput ime_input_; | 112 ui::ImeInput ime_input_; |
| 111 | 113 |
| 112 bool enabled_; | 114 bool enabled_; |
| 113 | 115 |
| 114 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); | 116 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); |
| 115 }; | 117 }; |
| 116 | 118 |
| 117 } // namespace ui | 119 } // namespace ui |
| 118 | 120 |
| 119 #endif // UI_BASE_IME_INPUT_METHOD_WIN_H_ | 121 #endif // UI_BASE_IME_INPUT_METHOD_WIN_H_ |
| OLD | NEW |