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

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

Issue 2957173004: Make DispatchKeyEventPostIME() asynchronous.
Patch Set: cleanup. Created 3 years, 5 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
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // Inserts a given text at the insertion point. Current composition text or 177 // Inserts a given text at the insertion point. Current composition text or
178 // selection will be removed. This method should never be called when the 178 // selection will be removed. This method should never be called when the
179 // current text input type is TEXT_INPUT_TYPE_NONE. 179 // current text input type is TEXT_INPUT_TYPE_NONE.
180 InsertText(string text); 180 InsertText(string text);
181 181
182 // Inserts a single character at the insertion point. Unlike InsertText(), 182 // Inserts a single character at the insertion point. Unlike InsertText(),
183 // the character is not processed. See ui::TextInputClient::InsertChar() 183 // the character is not processed. See ui::TextInputClient::InsertChar()
184 // for more details. 184 // for more details.
185 InsertChar(ui.mojom.Event event); 185 InsertChar(ui.mojom.Event event);
186 186
187 // Dispatch a key event skipping IME. Returns true if event was consumed.
188 DispatchKeyEventPostIME(ui.mojom.Event event) => (bool stopped_propagation);
189
187 // TODO(moshayedi): Add functions corresponding to ui::TextInputClient for: 190 // TODO(moshayedi): Add functions corresponding to ui::TextInputClient for:
188 // - Input context information 191 // - Input context information
189 // - Document content operations 192 // - Document content operations
190 // - Miscellaneous functions 193 // - Miscellaneous functions
191 // crbug.com/631527. 194 // crbug.com/631527.
192 }; 195 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698