Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module ui.mojom; | 5 module ui.mojom; |
| 6 | 6 |
| 7 import "ui/events/mojo/event.mojom"; | 7 import "ui/events/mojo/event.mojom"; |
| 8 import "ui/gfx/geometry/mojo/geometry.mojom"; | 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 9 | 9 |
| 10 struct CompositionEvent { | 10 struct CompositionEvent { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 | 95 |
| 96 ProcessKeyEvent(ui.mojom.Event key_event); | 96 ProcessKeyEvent(ui.mojom.Event key_event); |
| 97 CancelComposition(); | 97 CancelComposition(); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 // IME drivers send updates to clients using the TextInputClient interface. | 100 // IME drivers send updates to clients using the TextInputClient interface. |
| 101 interface TextInputClient { | 101 interface TextInputClient { |
| 102 // Corresponds to "input method result" functions of ui::TextInputClient. | 102 // Corresponds to "input method result" functions of ui::TextInputClient. |
| 103 OnCompositionEvent(CompositionEvent event); | 103 OnCompositionEvent(CompositionEvent event); |
| 104 | 104 |
| 105 // Called when IME driver didn't handle the event. | |
|
sky
2016/08/18 23:43:07
Please better document when this is called. Maybe
Hadi
2016/08/25 18:06:06
Done.
| |
| 106 OnUnhandledEvent(ui.mojom.Event key_event); | |
| 107 | |
| 105 // TODO(moshayedi): Add functions corresponding to ui::TextInputClient for: | 108 // TODO(moshayedi): Add functions corresponding to ui::TextInputClient for: |
| 106 // - Input text confirmation | 109 // - Input text confirmation |
| 107 // - Document content operations | 110 // - Document content operations |
| 108 // - Miscellaneous functions | 111 // - Miscellaneous functions |
| 109 // crbug.com/631527. | 112 // crbug.com/631527. |
| 110 }; | 113 }; |
| OLD | NEW |