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 // Represents view structure to be passed to ARC. | |
| 10 struct VoiceInteractionStructure { | |
|
xc
2017/03/09 05:05:47
still needs some more documentation on the fields.
Muyuan
2017/03/09 20:44:44
Done.
| |
| 11 // whether this is a valid response | |
| 12 bool success; | |
| 13 | |
| 14 // geometry of the view element | |
|
xc
2017/03/09 05:05:47
what is a view element?
Muyuan
2017/03/09 20:44:44
Done.
| |
| 15 int32 x; | |
| 16 int32 y; | |
| 17 int32 width; | |
|
xc
2017/03/09 05:05:47
dp or pixel?
Muyuan
2017/03/09 20:44:45
Done.
| |
| 18 int32 height; | |
| 19 | |
| 20 // text properties | |
|
xc
2017/03/09 05:05:47
what is text properties?
Muyuan
2017/03/09 20:44:45
Done.
| |
| 21 float text_size; | |
| 22 array<uint8> text; | |
|
xc
2017/03/09 05:05:47
what's the encoding of text?
Muyuan
2017/03/09 20:44:44
Done.
| |
| 23 int32 color; | |
|
xc
2017/03/09 05:05:47
what's the format of color, rgba or argb what not?
Muyuan
2017/03/09 20:44:44
Done.
| |
| 24 int32 bgcolor; | |
| 25 bool bold; | |
| 26 bool italic; | |
| 27 bool underline; | |
| 28 bool line_through; | |
| 29 | |
| 30 // properties of the text selection | |
| 31 bool has_selection; | |
| 32 int32 start_selection; | |
| 33 int32 end_selection; | |
|
xc
2017/03/09 05:05:47
is start/end inclusive or not?
Muyuan
2017/03/09 20:44:45
Done.
| |
| 34 | |
| 35 // fake Android view class name of the element | |
|
xc
2017/03/09 05:05:47
what do we need this?
Muyuan
2017/03/09 20:44:45
Done.
| |
| 36 string class_name; | |
| 37 | |
| 38 array<VoiceInteractionStructure> children; | |
|
xc
2017/03/09 05:05:47
what is children?
Muyuan
2017/03/09 20:44:44
Done.
| |
| 39 }; | |
| 40 | |
| 41 // Handles voice interaction queries from Android. | |
| 42 // Next method ID: 2 | |
| 43 interface VoiceInteractionHost { | |
| 44 CaptureFocusedWindow@0() => (array<uint8> png_data); | |
| 45 GetVoiceInteractionStructure@1() => (VoiceInteractionStructure structure); | |
| 46 }; | |
| 47 | |
| 48 // Connects with Android system server. | |
| 49 // Next method ID:2 | |
| 50 interface VoiceInteractionCaptureInstance { | |
| 51 Init@0(VoiceInteractionHost host_ptr); | |
| 52 StartVoiceInteractionSession@1(); | |
| 53 }; | |
| 54 | |
| 55 // Connects with ArcHome. | |
| 56 // Next method ID: 1 | |
| 57 interface VoiceInteractionArcHomeInstance { | |
| 58 Init@0(VoiceInteractionHost host_ptr); | |
| 59 }; | |
| 60 | |
| 61 | |
| OLD | NEW |