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

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

Issue 2871583003: Add VoiceInteractionFrameworkHost::SetMetalayerEnabled (Closed)
Patch Set: Addressed comments Created 3 years, 7 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/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.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: 3 5 // Next MinVersion: 4
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: 3 12 // Next method ID: 4
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
26 // Enables/disables screenshot taking.
27 [MinVersion=3]SetMetalayerEnabled@3(bool enabled);
estark 2017/05/11 01:14:13 Does untrusted code call this, or only trusted cod
25 }; 28 };
26 29
27 // Connects with Android system server. 30 // Connects with Android system server.
28 // Next method ID: 4 31 // Next method ID: 4
29 interface VoiceInteractionFrameworkInstance { 32 interface VoiceInteractionFrameworkInstance {
30 Init@0(VoiceInteractionFrameworkHost host_ptr); 33 Init@0(VoiceInteractionFrameworkHost host_ptr);
31 34
32 // Starts the voice interaction session in container. 35 // Starts the voice interaction session in container.
33 StartVoiceInteractionSession@1(); 36 StartVoiceInteractionSession@1();
34 37
35 // Starts the voice interaction session in container, with a screen region 38 // Starts the voice interaction session in container, with a screen region
36 // selected. 39 // selected.
37 [MinVersion=1] StartVoiceInteractionSessionForRegion@2(ScreenRect region); 40 [MinVersion=1] StartVoiceInteractionSessionForRegion@2(ScreenRect region);
38 41
39 // Shows/hides the metalayer in the container. 42 // Shows/hides the metalayer in the container.
40 [MinVersion=1] SetMetalayerVisibility@3([MinVersion=2] bool visible); 43 [MinVersion=1] SetMetalayerVisibility@3([MinVersion=2] bool visible);
41 }; 44 };
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698