| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 #include "ui/base/ime/input_method_base.h" | 5 #include "ui/base/ime/input_method_base.h" |
| 6 | 6 |
| 7 #ifndef MANDOLINE_UI_AURA_INPUT_METHOD_MANDOLINE_H_ | 7 #ifndef UI_BASE_IME_INPUT_METHOD_AURAANDROID_H_ |
| 8 #define MANDOLINE_UI_AURA_INPUT_METHOD_MANDOLINE_H_ | 8 #define UI_BASE_IME_INPUT_METHOD_AURAANDROID_H_ |
| 9 | 9 |
| 10 namespace mandoline { | 10 namespace ui { |
| 11 | 11 |
| 12 class InputMethodMandoline : public ui::InputMethodBase { | 12 class InputMethodAuraAndroid : public InputMethodBase { |
| 13 public: | 13 public: |
| 14 explicit InputMethodMandoline(ui::internal::InputMethodDelegate* delegate); | 14 explicit InputMethodAuraAndroid(ui::internal::InputMethodDelegate* delegate); |
| 15 ~InputMethodMandoline() override; | 15 ~InputMethodAuraAndroid() override; |
| 16 | 16 |
| 17 private: | 17 private: |
| 18 // Overridden from ui::InputMethod: | 18 // Overridden from ui::InputMethod: |
| 19 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | 19 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, |
| 20 NativeEventResult* result) override; | 20 NativeEventResult* result) override; |
| 21 void DispatchKeyEvent(ui::KeyEvent* event) override; | 21 void DispatchKeyEvent(ui::KeyEvent* event) override; |
| 22 void OnCaretBoundsChanged(const ui::TextInputClient* client) override; | 22 void OnCaretBoundsChanged(const ui::TextInputClient* client) override; |
| 23 void CancelComposition(const ui::TextInputClient* client) override; | 23 void CancelComposition(const ui::TextInputClient* client) override; |
| 24 void OnInputLocaleChanged() override; | 24 void OnInputLocaleChanged() override; |
| 25 std::string GetInputLocale() override; | 25 std::string GetInputLocale() override; |
| 26 bool IsCandidatePopupOpen() const override; | 26 bool IsCandidatePopupOpen() const override; |
| 27 | 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(InputMethodMandoline); | 28 DISALLOW_COPY_AND_ASSIGN(InputMethodAuraAndroid); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace mandoline | 31 } // namespace ui |
| 32 | 32 |
| 33 #endif // MANDOLINE_UI_AURA_INPUT_METHOD_MANDOLINE_H_ | 33 #endif // UI_BASE_IME_INPUT_METHOD_AURAANDROID_H_ |
| OLD | NEW |