| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 explicit InputMethodChromeOS(internal::InputMethodDelegate* delegate); | 27 explicit InputMethodChromeOS(internal::InputMethodDelegate* delegate); |
| 28 ~InputMethodChromeOS() override; | 28 ~InputMethodChromeOS() override; |
| 29 | 29 |
| 30 // Overridden from InputMethod: | 30 // Overridden from InputMethod: |
| 31 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | 31 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, |
| 32 NativeEventResult* result) override; | 32 NativeEventResult* result) override; |
| 33 void DispatchKeyEvent(ui::KeyEvent* event) override; | 33 void DispatchKeyEvent(ui::KeyEvent* event) override; |
| 34 void OnTextInputTypeChanged(const TextInputClient* client) override; | 34 void OnTextInputTypeChanged(const TextInputClient* client) override; |
| 35 void OnCaretBoundsChanged(const TextInputClient* client) override; | 35 void OnCaretBoundsChanged(const TextInputClient* client) override; |
| 36 void CancelComposition(const TextInputClient* client) override; | 36 void CancelComposition(const TextInputClient* client) override; |
| 37 void OnInputLocaleChanged() override; | |
| 38 std::string GetInputLocale() override; | |
| 39 bool IsCandidatePopupOpen() const override; | 37 bool IsCandidatePopupOpen() const override; |
| 40 | 38 |
| 41 protected: | 39 protected: |
| 42 // Converts |text| into CompositionText. | 40 // Converts |text| into CompositionText. |
| 43 void ExtractCompositionText(const CompositionText& text, | 41 void ExtractCompositionText(const CompositionText& text, |
| 44 uint32_t cursor_position, | 42 uint32_t cursor_position, |
| 45 CompositionText* out_composition) const; | 43 CompositionText* out_composition) const; |
| 46 | 44 |
| 47 // Process a key returned from the input method. | 45 // Process a key returned from the input method. |
| 48 virtual void ProcessKeyEventPostIME(ui::KeyEvent* event, | 46 virtual void ProcessKeyEventPostIME(ui::KeyEvent* event, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 137 |
| 140 // Used for making callbacks. | 138 // Used for making callbacks. |
| 141 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; | 139 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; |
| 142 | 140 |
| 143 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); | 141 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); |
| 144 }; | 142 }; |
| 145 | 143 |
| 146 } // namespace ui | 144 } // namespace ui |
| 147 | 145 |
| 148 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ | 146 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ |
| OLD | NEW |