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

Unified Diff: mojo/services/keyboard/public/interfaces/keyboard.mojom

Issue 1382943003: Add a Submit method to the keyboard interface (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
Index: mojo/services/keyboard/public/interfaces/keyboard.mojom
diff --git a/mojo/services/keyboard/public/interfaces/keyboard.mojom b/mojo/services/keyboard/public/interfaces/keyboard.mojom
index f47ecc4379f30a7a7ce8301bdf84a7cb40ada639..97942207a8ac08efdf7931d35b1d49500c9792f9 100644
--- a/mojo/services/keyboard/public/interfaces/keyboard.mojom
+++ b/mojo/services/keyboard/public/interfaces/keyboard.mojom
@@ -18,6 +18,10 @@ struct CorrectionData {
string new_text;
};
+enum SubmitAction {
+ DONE,
+};
+
interface KeyboardClient {
CommitCompletion(CompletionData completion);
CommitCorrection(CorrectionData correction);
@@ -26,6 +30,7 @@ interface KeyboardClient {
SetComposingRegion(int32 start, int32 end);
SetComposingText(string text, int32 newCursorPosition);
SetSelection(int32 start, int32 end);
+ Submit(SubmitAction action);
};
// Loosely modeled on Android InputType:
@@ -41,4 +46,6 @@ interface KeyboardService {
Show(KeyboardClient client, KeyboardType type);
ShowByRequest();
Hide();
+ SetText(string text);
+ SetSelection(int32 start, int32 end);
};

Powered by Google App Engine
This is Rietveld 408576698