OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ |
6 #define UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 void ResetContext(); | 55 void ResetContext(); |
56 | 56 |
57 private: | 57 private: |
58 class PendingKeyEvent; | 58 class PendingKeyEvent; |
59 | 59 |
60 // Overridden from InputMethodBase: | 60 // Overridden from InputMethodBase: |
61 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, | 61 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, |
62 TextInputClient* focused) override; | 62 TextInputClient* focused) override; |
63 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, | 63 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, |
64 TextInputClient* focused) override; | 64 TextInputClient* focused) override; |
| 65 virtual void SetSupportsOnScreenKeyboard(bool supported) override; |
| 66 virtual bool SupportsOnScreenKeyboard() const override; |
65 | 67 |
66 // Asks the client to confirm current composition text. | 68 // Asks the client to confirm current composition text. |
67 void ConfirmCompositionText(); | 69 void ConfirmCompositionText(); |
68 | 70 |
69 // Checks the availability of focused text input client and update focus | 71 // Checks the availability of focused text input client and update focus |
70 // state. | 72 // state. |
71 void UpdateContextFocusState(); | 73 void UpdateContextFocusState(); |
72 | 74 |
73 // Processes a key event that was already filtered by the input method. | 75 // Processes a key event that was already filtered by the input method. |
74 // A VKEY_PROCESSKEY may be dispatched to the focused View. | 76 // A VKEY_PROCESSKEY may be dispatched to the focused View. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 137 |
136 base::string16 previous_surrounding_text_; | 138 base::string16 previous_surrounding_text_; |
137 gfx::Range previous_selection_range_; | 139 gfx::Range previous_selection_range_; |
138 | 140 |
139 // Indicates if there is an ongoing composition text. | 141 // Indicates if there is an ongoing composition text. |
140 bool composing_text_; | 142 bool composing_text_; |
141 | 143 |
142 // Indicates if the composition text is changed or deleted. | 144 // Indicates if the composition text is changed or deleted. |
143 bool composition_changed_; | 145 bool composition_changed_; |
144 | 146 |
| 147 // Indiciates that focusing an input field will bring up an on-screen |
| 148 // keyboard. |
| 149 bool on_screen_keyboard_supported_; |
| 150 |
145 // The latest id of key event. | 151 // The latest id of key event. |
146 uint32 current_keyevent_id_; | 152 uint32 current_keyevent_id_; |
147 | 153 |
148 // An object to compose a character from a sequence of key presses | 154 // An object to compose a character from a sequence of key presses |
149 // including dead key etc. | 155 // including dead key etc. |
150 CharacterComposer character_composer_; | 156 CharacterComposer character_composer_; |
151 | 157 |
152 // Used for making callbacks. | 158 // Used for making callbacks. |
153 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; | 159 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; |
154 | 160 |
155 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); | 161 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); |
156 }; | 162 }; |
157 | 163 |
158 } // namespace ui | 164 } // namespace ui |
159 | 165 |
160 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ | 166 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ |
OLD | NEW |