OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 [DartPackage="mojo_services"] |
5 module keyboard; | 6 module keyboard; |
6 | 7 |
7 struct CompletionData { | 8 struct CompletionData { |
8 int64 id; | 9 int64 id; |
9 int32 position; | 10 int32 position; |
10 string text; | 11 string text; |
11 string label; | 12 string label; |
12 }; | 13 }; |
13 | 14 |
14 struct CorrectionData { | 15 struct CorrectionData { |
(...skipping 10 matching lines...) Expand all Loading... |
25 SetComposingRegion(int32 start, int32 end); | 26 SetComposingRegion(int32 start, int32 end); |
26 SetComposingText(string text, int32 newCursorPosition); | 27 SetComposingText(string text, int32 newCursorPosition); |
27 SetSelection(int32 start, int32 end); | 28 SetSelection(int32 start, int32 end); |
28 }; | 29 }; |
29 | 30 |
30 interface KeyboardService { | 31 interface KeyboardService { |
31 Show(KeyboardClient client); | 32 Show(KeyboardClient client); |
32 ShowByRequest(); | 33 ShowByRequest(); |
33 Hide(); | 34 Hide(); |
34 }; | 35 }; |
OLD | NEW |