Chromium Code Reviews| Index: ui/views/mus/input_method_mus.h |
| diff --git a/ui/views/mus/input_method_mus.h b/ui/views/mus/input_method_mus.h |
| index aa5dd5d2efcecf0a0f6f4e2a5236904ccc85e577..1fbcb29759e672824c1a1f51f465469f717b203f 100644 |
| --- a/ui/views/mus/input_method_mus.h |
| +++ b/ui/views/mus/input_method_mus.h |
| @@ -15,7 +15,10 @@ |
| namespace ui { |
| class Window; |
| -} // namespace mojo |
| +namespace mojom { |
| +enum class EventResult; |
| +} // namespace mojom |
| +} // namespace ui |
| namespace views { |
| @@ -41,6 +44,11 @@ class VIEWS_MUS_EXPORT InputMethodMus : public ui::InputMethodBase { |
| void OnInputLocaleChanged() override; |
| bool IsCandidatePopupOpen() const override; |
| + void DispatchKeyEvent( |
|
sky
2016/10/14 22:15:51
move above overrides?
|
| + ui::KeyEvent* event, |
| + std::unique_ptr<base::Callback<void(ui::mojom::EventResult)>> |
| + ack_callback); |
| + |
| private: |
| friend TextInputClientImpl; |
| @@ -49,6 +57,11 @@ class VIEWS_MUS_EXPORT InputMethodMus : public ui::InputMethodBase { |
| ui::TextInputClient* focused) override; |
| void UpdateTextInputType(); |
| + void ProcessKeyEventCallback( |
| + const ui::KeyEvent& event, |
| + std::unique_ptr<base::Callback<void(ui::mojom::EventResult)>> |
| + ack_callback, |
| + bool handled); |
| // The toplevel window which is not owned by this class. This may be null |
| // for tests. |