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

Unified Diff: services/ui/public/interfaces/ime.mojom

Issue 2230393002: IME for Mus: Make InputMethodMus use the IME Mojo API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update mash_browser_tests_manifest. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ime/test_ime_driver/test_ime_driver.cc ('k') | services/ui/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/interfaces/ime.mojom
diff --git a/services/ui/public/interfaces/ime.mojom b/services/ui/public/interfaces/ime.mojom
index ed1f56d15a26f4ebd202b8cd677a2bb7c3abda53..17d91070c30454fac083725453fa53e9d2f9559c 100644
--- a/services/ui/public/interfaces/ime.mojom
+++ b/services/ui/public/interfaces/ime.mojom
@@ -93,15 +93,24 @@ interface InputMethod {
// Mus translates it to global coordinates and sends it to IME app.
OnCaretBoundsChanged(gfx.mojom.Rect caret_bounds);
+ // Called to process a key event. If InputMethod handles the event, it will
+ // notify the client of the resulting composition events (there might be none)
+ // by calling TextInputClient::OnCompositionEvent(). If the event is not
+ // handled by InputMethod, TextInputClient::OnUnhandledEvent() is called.
ProcessKeyEvent(ui.mojom.Event key_event);
+
CancelComposition();
};
// IME drivers send updates to clients using the TextInputClient interface.
interface TextInputClient {
// Corresponds to "input method result" functions of ui::TextInputClient.
+ // See comments for InputMethod::ProcessKeyEvent() for when this is called.
OnCompositionEvent(CompositionEvent event);
+ // See comments for InputMethod::ProcessKeyEvent() for when this is called.
+ OnUnhandledEvent(ui.mojom.Event key_event);
+
// TODO(moshayedi): Add functions corresponding to ui::TextInputClient for:
// - Input text confirmation
// - Document content operations
« no previous file with comments | « services/ui/ime/test_ime_driver/test_ime_driver.cc ('k') | services/ui/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698