Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: services/ui/public/interfaces/ime/ime.mojom

Issue 2843413002: Update Mus IME mojom and struct traits with new style enums and tests. (Closed)
Patch Set: Rebase. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | services/ui/public/interfaces/ime/ime_struct_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "mojo/common/text_direction.mojom"; 7 import "mojo/common/text_direction.mojom";
8 import "ui/events/mojo/event.mojom"; 8 import "ui/events/mojo/event.mojom";
9 import "ui/gfx/geometry/mojo/geometry.mojom"; 9 import "ui/gfx/geometry/mojo/geometry.mojom";
10 import "ui/gfx/range/mojo/range.mojom"; 10 import "ui/gfx/range/mojo/range.mojom";
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Represents a text currently being composed by IME. Corresponds to 69 // Represents a text currently being composed by IME. Corresponds to
70 // ui::CompositionText. 70 // ui::CompositionText.
71 struct CompositionText { 71 struct CompositionText {
72 string text; 72 string text;
73 array<CompositionUnderline> underlines; 73 array<CompositionUnderline> underlines;
74 gfx.mojom.Range selection; 74 gfx.mojom.Range selection;
75 }; 75 };
76 76
77 // See comments for ui::TextInputType for more details. 77 // See comments for ui::TextInputType for more details.
78 enum TextInputType { 78 enum TextInputType {
79 NONE, 79 kNone,
80 TEXT, 80 kText,
81 PASSWORD, 81 kPassword,
82 SEARCH, 82 kSearch,
83 EMAIL, 83 kEmail,
84 NUMBER, 84 kNumber,
85 TELEPHONE, 85 kTelephone,
86 URL, 86 kUrl,
87 DATE, 87 kDate,
88 TIME, 88 kTime,
89 DATETIME, 89 kDateTime,
90 DATETIME_LOCAL, 90 kDateTimeLocal,
91 MONTH, 91 kMonth,
92 WEEK, 92 kWeek,
93 TEXT_AREA, 93 kTextArea,
94 CONTENT_EDITABLE, 94 kContentEditable,
95 DATETIME_FIELD 95 kDateTimeField
96 }; 96 };
97 97
98 // See comments for ui::TextInputMode for more details. 98 // See comments for ui::TextInputMode for more details.
99 enum TextInputMode { 99 enum TextInputMode {
100 DEFAULT, 100 kDefault,
101 VERBATIM, 101 kVerbatim,
102 LATIN, 102 kLatin,
103 LATIN_NAME, 103 kLatinName,
104 LATIN_PROSE, 104 kLatinProse,
105 FULL_WIDTH_LATIN, 105 kFullWidthLatin,
106 KANA, 106 kKana,
107 KANA_NAME, 107 kKanaName,
108 KATAKANA, 108 kKatakana,
109 NUMERIC, 109 kNumeric,
110 TEL, 110 kTel,
111 EMAIL, 111 kEmail,
112 URL, 112 kUrl,
113 }; 113 };
114 114
115 // Parameters needed to start an IME session. 115 // Parameters needed to start an IME session.
116 struct StartSessionDetails { 116 struct StartSessionDetails {
117 TextInputClient client; 117 TextInputClient client;
118 InputMethod& input_method_request; 118 InputMethod& input_method_request;
119 119
120 // Initial details about |client| required by IMEDriver. 120 // Initial details about |client| required by IMEDriver.
121 TextInputType text_input_type; 121 TextInputType text_input_type;
122 TextInputMode text_input_mode; 122 TextInputMode text_input_mode;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // the character is not processed. See ui::TextInputClient::InsertChar() 192 // the character is not processed. See ui::TextInputClient::InsertChar()
193 // for more details. 193 // for more details.
194 InsertChar(ui.mojom.Event event); 194 InsertChar(ui.mojom.Event event);
195 195
196 // TODO(moshayedi): Add functions corresponding to ui::TextInputClient for: 196 // TODO(moshayedi): Add functions corresponding to ui::TextInputClient for:
197 // - Input context information 197 // - Input context information
198 // - Document content operations 198 // - Document content operations
199 // - Miscellaneous functions 199 // - Miscellaneous functions
200 // crbug.com/631527. 200 // crbug.com/631527.
201 }; 201 };
OLDNEW
« no previous file with comments | « no previous file | services/ui/public/interfaces/ime/ime_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698