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

Unified Diff: services/ui/public/interfaces/display/output_protection.mojom

Issue 2675743002: PPAPI: Make output protection API work with mus+ash (Closed)
Patch Set: Addressed review issues Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/public/interfaces/display/BUILD.gn ('k') | ui/display/manager/chromeos/display_configurator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/interfaces/display/output_protection.mojom
diff --git a/services/ui/public/interfaces/display/output_protection.mojom b/services/ui/public/interfaces/display/output_protection.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..b44331ccdbacdeb9d7943ae799e0f68cbd4206d7
--- /dev/null
+++ b/services/ui/public/interfaces/display/output_protection.mojom
@@ -0,0 +1,32 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module display.mojom;
+
+// An interface for clients that are allowed to control the display output
+// content protection. Multiple clients can request content protection at
+// the same time, and the display will be protected until all clients are
+// closed or set |desired_method_mask| to 0 with |SetContentProtection|.
+interface OutputProtection {
+ // Queries link status and protection status.
+ // |link_mask| is the type of connected display links, which is a bitmask of
+ // DisplayConnectionType values.
+ // |protection_mask)| is the desired protection methods, which is a bitmask of
+ // the ContentProtectionMethod values.
+ // See //ui/display/types/display_constants.h for DisplayConnectionType and
+ // ContentProtectionMethod.
+ QueryContentProtectionStatus(int64 display_id) => (bool success,
+ uint32 link_mask,
+ uint32 protection_mask);
+
+ // Requests the desired protection methods.
+ // |protection_mask| is the desired protection methods, which is a bitmask
+ // of the ContentProtectionMethod values. When the interface is closed,
+ // the content protection mask will be reverted.
+ // Return true on success. Return false if it failed to make the protection
+ // request on the given display.
+ // See //ui/display/types/display_constants.h for ContentProtectionMethod.
+ SetContentProtection(int64 display_id,
+ uint32 desired_method_mask) => (bool success);
+};
« no previous file with comments | « services/ui/public/interfaces/display/BUILD.gn ('k') | ui/display/manager/chromeos/display_configurator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698