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: 1 | 5 // Next MinVersion: 2 |
6 | 6 |
7 module arc.mojom; | 7 module arc.mojom; |
8 | 8 |
9 import "mojo/common/string16.mojom"; | 9 import "mojo/common/string16.mojom"; |
10 import "screen_rect.mojom"; | 10 import "screen_rect.mojom"; |
11 | 11 |
12 // Represents the start and end unicode char indices of the selected | 12 // Represents the start and end unicode char indices of the selected |
13 // portion of the text [start, end). | 13 // portion of the text [start, end). |
14 struct TextSelection { | 14 struct TextSelection { |
15 int32 start_selection; | 15 int32 start_selection; |
(...skipping 27 matching lines...) Expand all Loading... | |
43 | 43 |
44 // Fake Android view class name of the element. Each node is assigned | 44 // Fake Android view class name of the element. Each node is assigned |
45 // a closest approximation of Android's views. | 45 // a closest approximation of Android's views. |
46 string class_name; | 46 string class_name; |
47 | 47 |
48 // Children of current node | 48 // Children of current node |
49 array<VoiceInteractionStructure> children; | 49 array<VoiceInteractionStructure> children; |
50 }; | 50 }; |
51 | 51 |
52 // Handles voice interaction queries from Android. | 52 // Handles voice interaction queries from Android. |
53 // Next method ID: 1 | 53 // Next method ID: 3 |
54 interface VoiceInteractionArcHomeHost { | 54 interface VoiceInteractionArcHomeHost { |
55 // Returns view hierarchy of current window represented as | 55 // Returns view hierarchy of current window represented as |
56 // VoiceInteractionStructure. Returns empty if the request | 56 // VoiceInteractionStructure. Returns empty if the request |
57 // fails. | 57 // fails. |
58 GetVoiceInteractionStructure@1() => (VoiceInteractionStructure? structure); | 58 GetVoiceInteractionStructure@1() => (VoiceInteractionStructure? structure); |
59 | |
60 // Notified VoiceInteractionArcHomeHost that voice interaction OOBE setup | |
Luis Héctor Chávez
2017/05/16 15:53:32
nit: s/Notified/Notifies/
Muyuan
2017/05/16 18:12:27
Done.
| |
61 // is done. | |
62 [MinVersion=1] OnVoiceInteractionOobeSetupComplete@2(); | |
59 }; | 63 }; |
60 | 64 |
61 // Connects with ArcHome. | 65 // Connects with ArcHome. |
62 // Next method ID: 1 | 66 // Next method ID: 1 |
63 interface VoiceInteractionArcHomeInstance { | 67 interface VoiceInteractionArcHomeInstance { |
64 Init@0(VoiceInteractionArcHomeHost host_ptr); | 68 Init@0(VoiceInteractionArcHomeHost host_ptr); |
65 }; | 69 }; |
OLD | NEW |