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

Side by Side Diff: sky/services/keyboard/keyboard.mojom

Issue 1088793003: Expose sky KeyboardService in android mojo_shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module keyboard;
6
7 struct CompletionData {
8 int64 id;
9 int32 position;
10 string text;
11 string label;
12 };
13
14 struct CorrectionData {
15 int32 offset;
16 string old_text;
17 string new_text;
18 };
19
20 interface KeyboardClient {
21 CommitCompletion(CompletionData completion);
22 CommitCorrection(CorrectionData correction);
23 CommitText(string text, int32 newCursorPosition);
24 DeleteSurroundingText(int32 beforeLength, int32 afterLength);
25 SetComposingRegion(int32 start, int32 end);
26 SetComposingText(string text, int32 newCursorPosition);
27 SetSelection(int32 start, int32 end);
28 };
29
30 interface KeyboardService {
31 Show(KeyboardClient client);
32 Hide();
33 };
OLDNEW
« no previous file with comments | « sky/services/keyboard/BUILD.gn ('k') | sky/services/keyboard/org/domokit/keyboard/InputConnectionAdaptor.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698