| 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 import "ui/gfx/range/mojo/range.mojom"; | 9 import "ui/gfx/range/mojo/range.mojom"; |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 TEXT, | 32 TEXT, |
| 33 PASSWORD, | 33 PASSWORD, |
| 34 SEARCH, | 34 SEARCH, |
| 35 EMAIL, | 35 EMAIL, |
| 36 NUMBER, | 36 NUMBER, |
| 37 TELEPHONE, | 37 TELEPHONE, |
| 38 URL, | 38 URL, |
| 39 DATE, | 39 DATE, |
| 40 TIME, | 40 TIME, |
| 41 DATETIME, | 41 DATETIME, |
| 42 DATETIME_LOCAL, |
| 43 MONTH, |
| 44 WEEK, |
| 45 TEXT_AREA, |
| 46 CONTENT_EDITABLE, |
| 47 DATETIME_FIELD |
| 42 }; | 48 }; |
| 43 | 49 |
| 44 // See comments for ui::TextInputMode for more details. | 50 // See comments for ui::TextInputMode for more details. |
| 45 enum TextInputMode { | 51 enum TextInputMode { |
| 46 DEFAULT, | 52 DEFAULT, |
| 47 VERBATIM, | 53 VERBATIM, |
| 48 LATIN, | 54 LATIN, |
| 49 LATIN_NAME, | 55 LATIN_NAME, |
| 50 LATIN_PROSE, | 56 LATIN_PROSE, |
| 51 FULL_WIDTH_LATIN, | 57 FULL_WIDTH_LATIN, |
| 52 KANA, | 58 KANA, |
| 59 KANA_NAME, |
| 53 KATAKANA, | 60 KATAKANA, |
| 54 NUMERIC, | 61 NUMERIC, |
| 55 TEL, | 62 TEL, |
| 56 EMAIL, | 63 EMAIL, |
| 57 URL, | 64 URL, |
| 58 }; | 65 }; |
| 59 | 66 |
| 60 // A service which provides the IMEDriver interface is responsible for doing | 67 // A service which provides the IMEDriver interface is responsible for doing |
| 61 // the composition logic. After starting a session, it receives events from | 68 // the composition logic. After starting a session, it receives events from |
| 62 // the client via the InputMethod interface, and sends composition events to | 69 // the client via the InputMethod interface, and sends composition events to |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // the character is not processed. See ui::TextInputClient::InsertChar() | 134 // the character is not processed. See ui::TextInputClient::InsertChar() |
| 128 // for more details. | 135 // for more details. |
| 129 InsertChar(ui.mojom.Event event); | 136 InsertChar(ui.mojom.Event event); |
| 130 | 137 |
| 131 // TODO(moshayedi): Add functions corresponding to ui::TextInputClient for: | 138 // TODO(moshayedi): Add functions corresponding to ui::TextInputClient for: |
| 132 // - Input context information | 139 // - Input context information |
| 133 // - Document content operations | 140 // - Document content operations |
| 134 // - Miscellaneous functions | 141 // - Miscellaneous functions |
| 135 // crbug.com/631527. | 142 // crbug.com/631527. |
| 136 }; | 143 }; |
| OLD | NEW |