| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ui/base/ime/input_method_base.h" | |
| 6 | |
| 7 #ifndef MANDOLINE_UI_AURA_INPUT_METHOD_MANDOLINE_H_ | |
| 8 #define MANDOLINE_UI_AURA_INPUT_METHOD_MANDOLINE_H_ | |
| 9 | |
| 10 namespace mus { | |
| 11 class View; | |
| 12 } // namespace mojo | |
| 13 | |
| 14 namespace mandoline { | |
| 15 | |
| 16 class InputMethodMandoline : public ui::InputMethodBase { | |
| 17 public: | |
| 18 InputMethodMandoline(ui::internal::InputMethodDelegate* delegate, | |
| 19 mus::View* view); | |
| 20 ~InputMethodMandoline() override; | |
| 21 | |
| 22 private: | |
| 23 // Overridden from ui::InputMethod: | |
| 24 void OnFocus() override; | |
| 25 void OnBlur() override; | |
| 26 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | |
| 27 NativeEventResult* result) override; | |
| 28 void DispatchKeyEvent(ui::KeyEvent* event) override; | |
| 29 void OnTextInputTypeChanged(const ui::TextInputClient* client) override; | |
| 30 void OnCaretBoundsChanged(const ui::TextInputClient* client) override; | |
| 31 void CancelComposition(const ui::TextInputClient* client) override; | |
| 32 void OnInputLocaleChanged() override; | |
| 33 std::string GetInputLocale() override; | |
| 34 bool IsCandidatePopupOpen() const override; | |
| 35 | |
| 36 // Overridden from ui::InputMethodBase: | |
| 37 void OnDidChangeFocusedClient(ui::TextInputClient* focused_before, | |
| 38 ui::TextInputClient* focused) override; | |
| 39 | |
| 40 void UpdateTextInputType(); | |
| 41 | |
| 42 // The toplevel view which is not owned by this class. | |
| 43 mus::View* view_; | |
| 44 | |
| 45 DISALLOW_COPY_AND_ASSIGN(InputMethodMandoline); | |
| 46 }; | |
| 47 | |
| 48 } // namespace mandoline | |
| 49 | |
| 50 #endif // MANDOLINE_UI_AURA_INPUT_METHOD_MANDOLINE_H_ | |
| OLD | NEW |