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" |
(...skipping 20 matching lines...) Expand all Loading... |
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; |
41 void OnInputLocaleChanged() override; | |
42 std::string GetInputLocale() override; | |
43 bool IsCandidatePopupOpen() const override; | 41 bool IsCandidatePopupOpen() const override; |
44 | 42 |
45 private: | 43 private: |
46 friend TextInputClientImpl; | 44 friend TextInputClientImpl; |
47 | 45 |
48 // Overridden from ui::InputMethodBase: | 46 // Overridden from ui::InputMethodBase: |
49 void OnDidChangeFocusedClient(ui::TextInputClient* focused_before, | 47 void OnDidChangeFocusedClient(ui::TextInputClient* focused_before, |
50 ui::TextInputClient* focused) override; | 48 ui::TextInputClient* focused) override; |
51 | 49 |
52 void UpdateTextInputType(); | 50 void UpdateTextInputType(); |
53 | 51 |
54 // The toplevel window which is not owned by this class. This may be null | 52 // The toplevel window which is not owned by this class. This may be null |
55 // for tests. | 53 // for tests. |
56 ui::Window* window_; | 54 ui::Window* window_; |
57 | 55 |
58 ui::mojom::IMEServerPtr ime_server_; | 56 ui::mojom::IMEServerPtr ime_server_; |
59 ui::mojom::InputMethodPtr input_method_; | 57 ui::mojom::InputMethodPtr input_method_; |
60 std::unique_ptr<TextInputClientImpl> text_input_client_; | 58 std::unique_ptr<TextInputClientImpl> text_input_client_; |
61 | 59 |
62 DISALLOW_COPY_AND_ASSIGN(InputMethodMus); | 60 DISALLOW_COPY_AND_ASSIGN(InputMethodMus); |
63 }; | 61 }; |
64 | 62 |
65 } // namespace views | 63 } // namespace views |
66 | 64 |
67 #endif // UI_VIEWS_MUS_INPUT_METHOD_MUS_H_ | 65 #endif // UI_VIEWS_MUS_INPUT_METHOD_MUS_H_ |
OLD | NEW |