| 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 UI_VIEWS_MUS_INPUT_METHOD_MUS_H_ | 7 #ifndef UI_VIEWS_MUS_INPUT_METHOD_MUS_H_ |
| 8 #define UI_VIEWS_MUS_INPUT_METHOD_MUS_H_ | 8 #define UI_VIEWS_MUS_INPUT_METHOD_MUS_H_ |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "mojo/public/cpp/bindings/strong_binding.h" | 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 12 #include "services/service_manager/public/cpp/connector.h" | 12 #include "services/service_manager/public/cpp/connector.h" |
| 13 #include "services/ui/public/interfaces/ime.mojom.h" | 13 #include "services/ui/public/interfaces/ime.mojom.h" |
| 14 #include "ui/views/mus/mus_export.h" | 14 #include "ui/views/mus/mus_export.h" |
| 15 | 15 |
| 16 namespace ui { | 16 namespace ui { |
| 17 class Window; | 17 class Window; |
| 18 } // namespace mojo | 18 } // namespace mojo |
| 19 | 19 |
| 20 namespace views { | 20 namespace views { |
| 21 | 21 |
| 22 class TextInputClientImpl; | 22 class TextInputClientImpl; |
| 23 | 23 |
| 24 class VIEWS_MUS_EXPORT InputMethodMus : public ui::InputMethodBase { | 24 class VIEWS_MUS_EXPORT InputMethodMus : public ui::InputMethodBase { |
| 25 public: | 25 public: |
| 26 InputMethodMus(ui::internal::InputMethodDelegate* delegate, | 26 InputMethodMus(ui::internal::InputMethodDelegate* delegate, |
| 27 ui::Window* window); | 27 ui::Window* window); |
| 28 ~InputMethodMus() override; | 28 ~InputMethodMus() override; |
| 29 | 29 |
| 30 void Init(shell::Connector* connector); | 30 void Init(service_manager::Connector* connector); |
| 31 | 31 |
| 32 // Overridden from ui::InputMethod: | 32 // Overridden from ui::InputMethod: |
| 33 void OnFocus() override; | 33 void OnFocus() override; |
| 34 void OnBlur() override; | 34 void OnBlur() override; |
| 35 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | 35 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, |
| 36 NativeEventResult* result) override; | 36 NativeEventResult* result) override; |
| 37 void DispatchKeyEvent(ui::KeyEvent* event) override; | 37 void DispatchKeyEvent(ui::KeyEvent* event) override; |
| 38 void OnTextInputTypeChanged(const ui::TextInputClient* client) override; | 38 void OnTextInputTypeChanged(const ui::TextInputClient* client) override; |
| 39 void OnCaretBoundsChanged(const ui::TextInputClient* client) override; | 39 void OnCaretBoundsChanged(const ui::TextInputClient* client) override; |
| 40 void CancelComposition(const ui::TextInputClient* client) override; | 40 void CancelComposition(const ui::TextInputClient* client) override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 57 ui::mojom::IMEServerPtr ime_server_; | 57 ui::mojom::IMEServerPtr ime_server_; |
| 58 ui::mojom::InputMethodPtr input_method_; | 58 ui::mojom::InputMethodPtr input_method_; |
| 59 std::unique_ptr<TextInputClientImpl> text_input_client_; | 59 std::unique_ptr<TextInputClientImpl> text_input_client_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(InputMethodMus); | 61 DISALLOW_COPY_AND_ASSIGN(InputMethodMus); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace views | 64 } // namespace views |
| 65 | 65 |
| 66 #endif // UI_VIEWS_MUS_INPUT_METHOD_MUS_H_ | 66 #endif // UI_VIEWS_MUS_INPUT_METHOD_MUS_H_ |
| OLD | NEW |