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"; | 8 import "native_viewport/interfaces/native_viewport_event_dispatcher.mojom"; |
9 | 9 |
10 struct CompletionData { | 10 struct CompletionData { |
11 int64 id; | 11 int64 id; |
12 int32 position; | 12 int32 position; |
13 string text; | 13 string text; |
14 string label; | 14 string label; |
15 }; | 15 }; |
16 | 16 |
17 struct CorrectionData { | 17 struct CorrectionData { |
18 int32 offset; | 18 int32 offset; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 SetText(string text); | 52 SetText(string text); |
53 SetSelection(int32 start, int32 end); | 53 SetSelection(int32 start, int32 end); |
54 }; | 54 }; |
55 | 55 |
56 [ServiceName="keyboard::KeyboardServiceFactory"] | 56 [ServiceName="keyboard::KeyboardServiceFactory"] |
57 interface KeyboardServiceFactory { | 57 interface KeyboardServiceFactory { |
58 CreateKeyboardService( | 58 CreateKeyboardService( |
59 mojo.NativeViewportEventDispatcher& keyEventDispatcher, | 59 mojo.NativeViewportEventDispatcher& keyEventDispatcher, |
60 KeyboardService& serviceRequest); | 60 KeyboardService& serviceRequest); |
61 }; | 61 }; |
OLD | NEW |