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 13 matching lines...) Expand all Loading... |
24 ~InputMethodWin() override; | 24 ~InputMethodWin() override; |
25 | 25 |
26 // Overridden from InputMethod: | 26 // Overridden from InputMethod: |
27 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | 27 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, |
28 NativeEventResult* result) override; | 28 NativeEventResult* result) override; |
29 void DispatchKeyEvent(ui::KeyEvent* event) override; | 29 void DispatchKeyEvent(ui::KeyEvent* event) override; |
30 void OnTextInputTypeChanged(const TextInputClient* client) override; | 30 void OnTextInputTypeChanged(const TextInputClient* client) override; |
31 void OnCaretBoundsChanged(const TextInputClient* client) override; | 31 void OnCaretBoundsChanged(const TextInputClient* client) override; |
32 void CancelComposition(const TextInputClient* client) override; | 32 void CancelComposition(const TextInputClient* client) override; |
33 void OnInputLocaleChanged() override; | 33 void OnInputLocaleChanged() override; |
34 std::string GetInputLocale() override; | 34 bool IsInputLocaleCJK() const override; |
35 bool IsCandidatePopupOpen() const override; | 35 bool IsCandidatePopupOpen() const override; |
36 | 36 |
37 protected: | 37 protected: |
38 // Overridden from InputMethodBase: | 38 // Overridden from InputMethodBase: |
39 // If a derived class overrides this method, it should call parent's | 39 // If a derived class overrides this method, it should call parent's |
40 // implementation. | 40 // implementation. |
41 void OnWillChangeFocusedClient(TextInputClient* focused_before, | 41 void OnWillChangeFocusedClient(TextInputClient* focused_before, |
42 TextInputClient* focused) override; | 42 TextInputClient* focused) override; |
43 void OnDidChangeFocusedClient(TextInputClient* focused_before, | 43 void OnDidChangeFocusedClient(TextInputClient* focused_before, |
44 TextInputClient* focused) override; | 44 TextInputClient* focused) override; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 136 |
137 // Used for making callbacks. | 137 // Used for making callbacks. |
138 base::WeakPtrFactory<InputMethodWin> weak_ptr_factory_; | 138 base::WeakPtrFactory<InputMethodWin> weak_ptr_factory_; |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); | 140 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); |
141 }; | 141 }; |
142 | 142 |
143 } // namespace ui | 143 } // namespace ui |
144 | 144 |
145 #endif // UI_BASE_IME_INPUT_METHOD_WIN_H_ | 145 #endif // UI_BASE_IME_INPUT_METHOD_WIN_H_ |
OLD | NEW |