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: 2 | 5 // Next MinVersion: 3 |
6 | 6 |
7 module arc.mojom; | 7 module arc.mojom; |
8 | 8 |
9 import "screen_rect.mojom"; | 9 import "screen_rect.mojom"; |
10 | 10 |
11 // Handles voice interaction queries from Android. | 11 // Handles voice interaction queries from Android. |
12 // Next method ID: 2 | 12 // Next method ID: 3 |
13 interface VoiceInteractionFrameworkHost { | 13 interface VoiceInteractionFrameworkHost { |
14 // Returns a screenshot of currently focused window or empty array if | 14 // Returns a screenshot of currently focused window or empty array if |
15 // no window is focused. | 15 // no window is focused. |
16 CaptureFocusedWindow@0() => (array<uint8> png_data); | 16 CaptureFocusedWindow@0() => (array<uint8> png_data); |
17 | 17 |
18 // Returns a fullscreen screenshot of the primary display. | 18 // Returns a fullscreen screenshot of the primary display. |
19 [MinVersion=1]CaptureFullscreen@1() => (array<uint8> png_data); | 19 [MinVersion=1]CaptureFullscreen@1() => (array<uint8> png_data); |
20 | |
21 // Notifies the host that the metalayer has closed. | |
22 [MinVersion=2]OnMetalayerComplete@2(); | |
Luis Héctor Chávez
2017/04/19 15:48:29
maybe OnMetalayerVisibilityUpdated?
Vladislav Kaznacheev
2017/04/19 23:42:59
This is only required to notify the host that the
Luis Héctor Chávez
2017/04/20 16:03:26
Still, "MetalayerComplete" seems like an odd name.
Vladislav Kaznacheev
2017/04/20 17:54:55
Done.
| |
20 }; | 23 }; |
21 | 24 |
22 // Connects with Android system server. | 25 // Connects with Android system server. |
23 // Next method ID:4 | 26 // Next method ID: 5 |
24 interface VoiceInteractionFrameworkInstance { | 27 interface VoiceInteractionFrameworkInstance { |
25 Init@0(VoiceInteractionFrameworkHost host_ptr); | 28 Init@0(VoiceInteractionFrameworkHost host_ptr); |
26 | 29 |
27 // Starts the voice interaction session in container. | 30 // Starts the voice interaction session in container. |
28 StartVoiceInteractionSession@1(); | 31 StartVoiceInteractionSession@1(); |
29 | 32 |
30 // Starts the voice interaction session in container, with a screen region | 33 // Starts the voice interaction session in container, with a screen region |
31 // selected. | 34 // selected. |
32 [MinVersion=1] StartVoiceInteractionSessionForRegion@2(ScreenRect region); | 35 [MinVersion=1] StartVoiceInteractionSessionForRegion@2(ScreenRect region); |
33 | 36 |
34 // Toggles the metalayer. | 37 // Toggles the metalayer. Deprecated, use ShowMetalayer instead. |
35 [MinVersion=1] ToggleMetalayer@3(); | 38 [MinVersion=1] ToggleMetalayer@3(); |
Luis Héctor Chávez
2017/04/19 15:48:29
You don't need to deprecate this :D
[MinVersion=1
Vladislav Kaznacheev
2017/04/19 23:42:59
Done.
| |
39 | |
40 // Shows/hides the metalayer in the container. | |
41 [MinVersion=2] ShowMetalayer@4(bool visible); | |
36 }; | 42 }; |
OLD | NEW |