Chromium Code Reviews| Index: components/arc/common/voice_interaction_framework.mojom |
| diff --git a/components/arc/common/voice_interaction_framework.mojom b/components/arc/common/voice_interaction_framework.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..38e1fc54dd93c2e50e4e40294c2a5030beadfc45 |
| --- /dev/null |
| +++ b/components/arc/common/voice_interaction_framework.mojom |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| +// |
| +// Next MinVersion: 1 |
| + |
| +module arc.mojom; |
| + |
| +// Handles voice interaction queries from Android. |
| +// Next method ID: 1 |
| +interface VoiceInteractionFrameworkHost { |
| + // Returns a screenshot of current focused window or empty bytes if |
|
Luis Héctor Chávez
2017/03/16 16:30:20
nit: s/current focused/currently focused/, s/empty
Muyuan
2017/03/16 20:41:34
Done.
|
| + // no window is focused. |
| + CaptureFocusedWindow@0() => (array<uint8> png_data); |
| +}; |
| + |
| +// Connects with Android system server. |
| +// Next method ID:2 |
| +interface VoiceInteractionFrameworkInstance { |
| + Init@0(VoiceInteractionFrameworkHost host_ptr); |
| + |
| + // Starts the voice interaction session in container. |
| + StartVoiceInteractionSession@1(); |
| +}; |