| 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 module display.mojom; |
| 6 |
| 7 // An interface for clients that are allowed to control the display output |
| 8 // content protection. Multiple clients can request content protection at |
| 9 // the same time, and the display will be protected until all clients are |
| 10 // closed or set |desired_method_mask| to 0 with |SetContentProtection|. |
| 11 interface OutputProtection { |
| 12 // Queries link status and protection status. |
| 13 // |link_mask| is the type of connected display links, which is a bitmask of |
| 14 // DisplayConnectionType values. |
| 15 // |protection_mask)| is the desired protection methods, which is a bitmask of |
| 16 // the ContentProtectionMethod values. |
| 17 // See //ui/display/types/display_constants.h for DisplayConnectionType and |
| 18 // ContentProtectionMethod. |
| 19 QueryContentProtectionStatus(int64 display_id) => (bool success, |
| 20 uint32 link_mask, |
| 21 uint32 protection_mask); |
| 22 |
| 23 // Requests the desired protection methods. |
| 24 // |protection_mask| is the desired protection methods, which is a bitmask |
| 25 // of the ContentProtectionMethod values. When the interface is closed, |
| 26 // the content protection mask will be reverted. |
| 27 // Return true on success. Return false if it failed to make the protection |
| 28 // request on the given display. |
| 29 // See //ui/display/types/display_constants.h for ContentProtectionMethod. |
| 30 SetContentProtection(int64 display_id, |
| 31 uint32 desired_method_mask) => (bool success); |
| 32 }; |
| OLD | NEW |