Index: components/arc/common/voice_interaction.mojom |
diff --git a/components/arc/common/voice_interaction.mojom b/components/arc/common/voice_interaction.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..012a3eeb0bddd46b40725ea428f169d6890730ba |
--- /dev/null |
+++ b/components/arc/common/voice_interaction.mojom |
@@ -0,0 +1,50 @@ |
+// 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; |
+ |
+struct VoiceInteractionStructure { |
+ bool success; |
Luis Héctor Chávez
2017/03/08 15:22:40
You need to document all these fields.
Muyuan
2017/03/09 00:41:04
Done.
|
+ int32 x; |
+ int32 y; |
+ int32 width; |
+ int32 height; |
+ float text_size; |
+ array<uint8> text; |
+ int32 color; |
+ int32 bgcolor; |
+ bool bold; |
+ bool italic; |
+ bool underline; |
+ bool line_through; |
+ bool has_selection; |
+ int32 start_selection; |
+ int32 end_selection; |
+ string class_name; |
+ array<VoiceInteractionStructure> children; |
+}; |
+ |
+// Handles voice interaction queries from Android. |
+// Next method ID: 2 |
+interface VoiceInteractionHost { |
+ CaptureFocusedWindow@0() => (array<uint8> png_data); |
+ GetVoiceInteractionStructure@1() => (VoiceInteractionStructure structure); |
+}; |
+ |
+// Connects with Android system server. |
+// Next method ID:2 |
+interface VoiceInteractionCaptureInstance { |
+ Init@0(VoiceInteractionHost host_ptr); |
+ StartVoiceInteractionSession@1(); |
Luis Héctor Chávez
2017/03/08 15:22:40
Can this fail?
Muyuan
2017/03/09 00:41:03
I plan to handle it in Android side and prints an
|
+}; |
+ |
+// Connects with ArcHome. |
+// Next method ID: 1 |
+interface VoiceInteractionArcHomeInstance { |
+ Init@0(VoiceInteractionHost host_ptr); |
+}; |
+ |
+ |