| 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 20 matching lines...) Expand all Loading... |
| 31 void OnFocus() override; | 31 void OnFocus() override; |
| 32 void OnBlur() override; | 32 void OnBlur() override; |
| 33 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | 33 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, |
| 34 NativeEventResult* result) override; | 34 NativeEventResult* result) override; |
| 35 bool DispatchKeyEvent(const ui::KeyEvent& event) override; | 35 bool DispatchKeyEvent(const ui::KeyEvent& event) override; |
| 36 void OnTextInputTypeChanged(const TextInputClient* client) override; | 36 void OnTextInputTypeChanged(const TextInputClient* client) override; |
| 37 void OnCaretBoundsChanged(const TextInputClient* client) override; | 37 void OnCaretBoundsChanged(const TextInputClient* client) override; |
| 38 void CancelComposition(const TextInputClient* client) override; | 38 void CancelComposition(const TextInputClient* client) override; |
| 39 void OnInputLocaleChanged() override; | 39 void OnInputLocaleChanged() override; |
| 40 std::string GetInputLocale() override; | 40 std::string GetInputLocale() override; |
| 41 bool IsActive() override; | |
| 42 bool IsCandidatePopupOpen() const override; | 41 bool IsCandidatePopupOpen() const override; |
| 43 | 42 |
| 44 protected: | 43 protected: |
| 45 // Converts |text| into CompositionText. | 44 // Converts |text| into CompositionText. |
| 46 void ExtractCompositionText(const chromeos::CompositionText& text, | 45 void ExtractCompositionText(const chromeos::CompositionText& text, |
| 47 uint32 cursor_position, | 46 uint32 cursor_position, |
| 48 CompositionText* out_composition) const; | 47 CompositionText* out_composition) const; |
| 49 | 48 |
| 50 // Process a key returned from the input method. | 49 // Process a key returned from the input method. |
| 51 virtual void ProcessKeyEventPostIME(const ui::KeyEvent& event, | 50 virtual void ProcessKeyEventPostIME(const ui::KeyEvent& event, |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 144 |
| 146 // Used for making callbacks. | 145 // Used for making callbacks. |
| 147 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; | 146 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; |
| 148 | 147 |
| 149 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); | 148 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); |
| 150 }; | 149 }; |
| 151 | 150 |
| 152 } // namespace ui | 151 } // namespace ui |
| 153 | 152 |
| 154 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ | 153 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ |
| OLD | NEW |