Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: components/arc/common/voice_interaction_framework.mojom

Issue 2968073002: register voice interaction preference. (Closed)
Patch Set: add flag sync logic Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/pref_names.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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: 7 5 // Next MinVersion: 8
6 6
7 module arc.mojom; 7 module arc.mojom;
8 8
9 import "screen_rect.mojom"; 9 import "screen_rect.mojom";
10 10
11 // Handles voice interaction queries from Android. 11 // Handles voice interaction queries from Android.
12 // Next method ID: 5 12 // Next method ID: 5
13 interface VoiceInteractionFrameworkHost { 13 interface VoiceInteractionFrameworkHost {
14 // Returns a screenshot of currently focused window or empty array if 14 // Returns a screenshot of currently focused window or empty array if
15 // no window is focused. |data| represents the image encoded in JPEG 15 // no window is focused. |data| represents the image encoded in JPEG
16 // format. 16 // format.
17 CaptureFocusedWindow@0() => (array<uint8> data); 17 CaptureFocusedWindow@0() => (array<uint8> data);
18 18
19 // Returns a fullscreen screenshot of the primary display. 19 // Returns a fullscreen screenshot of the primary display.
20 // |data| represents the image encoded in JPEG format. 20 // |data| represents the image encoded in JPEG format.
21 [MinVersion=1]CaptureFullscreen@1() => (array<uint8> data); 21 [MinVersion=1]CaptureFullscreen@1() => (array<uint8> data);
22 22
23 // Notifies the host that the metalayer has closed or could not open. 23 // Notifies the host that the metalayer has closed or could not open.
24 [MinVersion=2]OnMetalayerClosed@2(); 24 [MinVersion=2]OnMetalayerClosed@2();
25 25
26 // Enables/disables screenshot taking. 26 // Enables/disables screenshot taking.
27 [MinVersion=3]SetMetalayerEnabled@3(bool enabled); 27 [MinVersion=3]SetMetalayerEnabled@3(bool enabled);
28 28
29 // Notifies Chrome whether voice interaction session is running. 29 // Notifies Chrome whether voice interaction session is running.
30 [MinVersion=6]SetVoiceInteractionRunning@4(bool running); 30 [MinVersion=6]SetVoiceInteractionRunning@4(bool running);
31 }; 31 };
32 32
33 // Connects with Android system server. 33 // Connects with Android system server.
34 // Next method ID: 7 34 // Next method ID: 8
35 interface VoiceInteractionFrameworkInstance { 35 interface VoiceInteractionFrameworkInstance {
36 Init@0(VoiceInteractionFrameworkHost host_ptr); 36 Init@0(VoiceInteractionFrameworkHost host_ptr);
37 37
38 // Starts the voice interaction session in container. 38 // Starts the voice interaction session in container.
39 StartVoiceInteractionSession@1(); 39 StartVoiceInteractionSession@1();
40 40
41 // Starts the voice interaction session in container, with a screen region 41 // Starts the voice interaction session in container, with a screen region
42 // selected. 42 // selected.
43 [MinVersion=1] StartVoiceInteractionSessionForRegion@2(ScreenRect region); 43 [MinVersion=1] StartVoiceInteractionSessionForRegion@2(ScreenRect region);
44 44
45 // Shows/hides the metalayer in the container. 45 // Shows/hides the metalayer in the container.
46 [MinVersion=1] SetMetalayerVisibility@3([MinVersion=2] bool visible); 46 [MinVersion=1] SetMetalayerVisibility@3([MinVersion=2] bool visible);
47 47
48 // Turns on / off voice interaction in container. 48 // Turns on / off voice interaction in container.
49 [MinVersion=4] SetVoiceInteractionEnabled@4(bool enable); 49 [MinVersion=4] SetVoiceInteractionEnabled@4(bool enable);
50 50
51 // Turns on / off context for voice interaction in container. This function 51 // Turns on / off context for voice interaction in container. This function
52 // controls whether screenshot and view hierarchy information should be sent 52 // controls whether screenshot and view hierarchy information should be sent
53 // to container. 53 // to container.
54 [MinVersion=4] SetVoiceInteractionContextEnabled@5(bool enable); 54 [MinVersion=4] SetVoiceInteractionContextEnabled@5(bool enable);
55 55
56 // Starts the voice interaction setup wizard in container. 56 // Starts the voice interaction setup wizard in container.
57 [MinVersion=5] StartVoiceInteractionSetupWizard@6(); 57 [MinVersion=5] StartVoiceInteractionSetupWizard@6();
58 }; 58
59 // Queries voice interaction settings status.
60 [MinVersion=7] GetVoiceInteractionSettings@7()
61 => (bool defined, bool voice_interaction, bool context);
dcheng 2017/07/06 23:30:34 1) Please explain what |defined|, |voice_interacti
Muyuan 2017/07/07 19:02:56 Done.
62 };
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698