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_event_dispatcher.mojom"; | 8 import "native_viewport/interfaces/native_viewport_event_dispatcher.mojom"; |
9 | 9 |
10 struct CompletionData { | 10 struct CompletionData { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 interface KeyboardService { | 48 interface KeyboardService { |
49 Show(KeyboardClient client, KeyboardType type); | 49 Show(KeyboardClient client, KeyboardType type); |
50 ShowByRequest(); | 50 ShowByRequest(); |
51 Hide(); | 51 Hide(); |
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(mojo.NativeViewportEventDispatcher& keyEventDispatcher, |
59 mojo.NativeViewportEventDispatcher& keyEventDispatcher, | 59 KeyboardService& serviceRequest); |
60 KeyboardService& serviceRequest); | |
61 }; | 60 }; |
OLD | NEW |