| 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 #ifndef UI_AURA_MUS_INPUT_METHOD_MUS_H_ | 5 #ifndef UI_AURA_MUS_INPUT_METHOD_MUS_H_ |
| 6 #define UI_AURA_MUS_INPUT_METHOD_MUS_H_ | 6 #define UI_AURA_MUS_INPUT_METHOD_MUS_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // Called when the server responds to our request to process an event. | 72 // Called when the server responds to our request to process an event. |
| 73 void ProcessKeyEventCallback( | 73 void ProcessKeyEventCallback( |
| 74 const ui::KeyEvent& event, | 74 const ui::KeyEvent& event, |
| 75 bool handled); | 75 bool handled); |
| 76 | 76 |
| 77 // The toplevel window which is not owned by this class. This may be null | 77 // The toplevel window which is not owned by this class. This may be null |
| 78 // for tests. | 78 // for tests. |
| 79 Window* window_; | 79 Window* window_; |
| 80 | 80 |
| 81 // May be null in tests. | 81 // May be null in tests. |
| 82 ui::mojom::IMEServerPtr ime_server_; | 82 ui::mojom::IMEDriverPtr ime_driver_; |
| 83 ui::mojom::InputMethodPtr input_method_ptr_; | 83 ui::mojom::InputMethodPtr input_method_ptr_; |
| 84 // Typically this is the same as |input_method_ptr_|, but it may be mocked | 84 // Typically this is the same as |input_method_ptr_|, but it may be mocked |
| 85 // in tests. | 85 // in tests. |
| 86 ui::mojom::InputMethod* input_method_ = nullptr; | 86 ui::mojom::InputMethod* input_method_ = nullptr; |
| 87 std::unique_ptr<TextInputClientImpl> text_input_client_; | 87 std::unique_ptr<TextInputClientImpl> text_input_client_; |
| 88 | 88 |
| 89 // Callbacks supplied to DispatchKeyEvent() are added here while awaiting | 89 // Callbacks supplied to DispatchKeyEvent() are added here while awaiting |
| 90 // the response from the server. These are removed when the response is | 90 // the response from the server. These are removed when the response is |
| 91 // received (ProcessKeyEventCallback()). | 91 // received (ProcessKeyEventCallback()). |
| 92 std::deque<std::unique_ptr<EventResultCallback>> pending_callbacks_; | 92 std::deque<std::unique_ptr<EventResultCallback>> pending_callbacks_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(InputMethodMus); | 94 DISALLOW_COPY_AND_ASSIGN(InputMethodMus); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace aura | 97 } // namespace aura |
| 98 | 98 |
| 99 #endif // UI_AURA_MUS_INPUT_METHOD_MUS_H_ | 99 #endif // UI_AURA_MUS_INPUT_METHOD_MUS_H_ |
| OLD | NEW |