OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 // Next MinVersion: 1 | 5 // Next MinVersion: 2 |
6 | 6 |
7 module arc.mojom; | 7 module arc.mojom; |
8 | 8 |
9 import "screen_rect.mojom"; | |
10 | |
9 // Handles voice interaction queries from Android. | 11 // Handles voice interaction queries from Android. |
10 // Next method ID: 1 | 12 // Next method ID: 1 |
11 interface VoiceInteractionFrameworkHost { | 13 interface VoiceInteractionFrameworkHost { |
12 // Returns a screenshot of currently focused window or empty array if | 14 // Returns a screenshot of currently focused window or empty array if |
13 // no window is focused. | 15 // no window is focused. |
14 CaptureFocusedWindow@0() => (array<uint8> png_data); | 16 CaptureFocusedWindow@0() => (array<uint8> png_data); |
15 }; | 17 }; |
16 | 18 |
17 // Connects with Android system server. | 19 // Connects with Android system server. |
18 // Next method ID:2 | 20 // Next method ID:4 |
19 interface VoiceInteractionFrameworkInstance { | 21 interface VoiceInteractionFrameworkInstance { |
20 Init@0(VoiceInteractionFrameworkHost host_ptr); | 22 Init@0(VoiceInteractionFrameworkHost host_ptr); |
21 | 23 |
22 // Starts the voice interaction session in container. | 24 // Starts the voice interaction session in container. |
23 StartVoiceInteractionSession@1(); | 25 StartVoiceInteractionSession@1(); |
26 | |
27 // Starts the voice interaction session in container, with a screen region sel ected. | |
Luis Héctor Chávez
2017/04/11 20:02:04
nit: fit to 80 cols.
Vladislav Kaznacheev
2017/04/11 20:49:42
Done.
| |
28 [MinVersion=1] | |
29 StartVoiceInteractionSessionForRegion@2(ScreenRect region); | |
Luis Héctor Chávez
2017/04/11 20:02:04
nit: if it fits on 80 cols, put this in the same l
Vladislav Kaznacheev
2017/04/11 20:49:42
Done.
| |
30 | |
31 // Toggles the metalayer. | |
32 [MinVersion=1] | |
33 ToggleMetalayer@3(); | |
24 }; | 34 }; |
OLD | NEW |