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 [DartPackage="mojo_services"] |
6 module keyboard; | 6 module keyboard; |
7 | 7 |
| 8 import "native_viewport/interfaces/native_viewport.mojom"; |
| 9 |
8 struct CompletionData { | 10 struct CompletionData { |
9 int64 id; | 11 int64 id; |
10 int32 position; | 12 int32 position; |
11 string text; | 13 string text; |
12 string label; | 14 string label; |
13 }; | 15 }; |
14 | 16 |
15 struct CorrectionData { | 17 struct CorrectionData { |
16 int32 offset; | 18 int32 offset; |
17 string old_text; | 19 string old_text; |
(...skipping 24 matching lines...) Expand all Loading... |
42 DATETIME, | 44 DATETIME, |
43 }; | 45 }; |
44 | 46 |
45 interface KeyboardService { | 47 interface KeyboardService { |
46 Show(KeyboardClient client, KeyboardType type); | 48 Show(KeyboardClient client, KeyboardType type); |
47 ShowByRequest(); | 49 ShowByRequest(); |
48 Hide(); | 50 Hide(); |
49 SetText(string text); | 51 SetText(string text); |
50 SetSelection(int32 start, int32 end); | 52 SetSelection(int32 start, int32 end); |
51 }; | 53 }; |
| 54 |
| 55 [ServiceName="keyboard::KeyboardServiceFactory"] |
| 56 interface KeyboardServiceFactory { |
| 57 CreateKeyboardService( |
| 58 mojo.NativeViewportEventDispatcher& keyEventDispatcher, |
| 59 KeyboardService& serviceRequest); |
| 60 }; |
OLD | NEW |