Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 // | |
| 5 // Next MinVersion: 1 | |
| 6 | |
| 7 module arc.mojom; | |
| 8 | |
| 9 struct VoiceInteractionStructure { | |
| 10 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.
| |
| 11 int32 x; | |
| 12 int32 y; | |
| 13 int32 width; | |
| 14 int32 height; | |
| 15 float text_size; | |
| 16 array<uint8> text; | |
| 17 int32 color; | |
| 18 int32 bgcolor; | |
| 19 bool bold; | |
| 20 bool italic; | |
| 21 bool underline; | |
| 22 bool line_through; | |
| 23 bool has_selection; | |
| 24 int32 start_selection; | |
| 25 int32 end_selection; | |
| 26 string class_name; | |
| 27 array<VoiceInteractionStructure> children; | |
| 28 }; | |
| 29 | |
| 30 // Handles voice interaction queries from Android. | |
| 31 // Next method ID: 2 | |
| 32 interface VoiceInteractionHost { | |
| 33 CaptureFocusedWindow@0() => (array<uint8> png_data); | |
| 34 GetVoiceInteractionStructure@1() => (VoiceInteractionStructure structure); | |
| 35 }; | |
| 36 | |
| 37 // Connects with Android system server. | |
| 38 // Next method ID:2 | |
| 39 interface VoiceInteractionCaptureInstance { | |
| 40 Init@0(VoiceInteractionHost host_ptr); | |
| 41 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
| |
| 42 }; | |
| 43 | |
| 44 // Connects with ArcHome. | |
| 45 // Next method ID: 1 | |
| 46 interface VoiceInteractionArcHomeInstance { | |
| 47 Init@0(VoiceInteractionHost host_ptr); | |
| 48 }; | |
| 49 | |
| 50 | |
| OLD | NEW |