Chromium Code Reviews| Index: services/ui/public/interfaces/display/display_controller.mojom |
| diff --git a/services/ui/public/interfaces/display/display_controller.mojom b/services/ui/public/interfaces/display/display_controller.mojom |
| index 30fe11ca724bb5960b9123591963886aee4ec301..17436d3a04735f1032d2d09afe0d5ff1199fa716 100644 |
| --- a/services/ui/public/interfaces/display/display_controller.mojom |
| +++ b/services/ui/public/interfaces/display/display_controller.mojom |
| @@ -52,4 +52,28 @@ interface DisplayController { |
| // TODO(kylechar): This interface will need to be expanded to provide |
| // additional functionality for the display settings page and other ash |
| // keyboard accelerators. |
| + |
| + // ========================= Content Protection ============================== |
| + |
| + // Registers a client for display protection and requests a client id. Returns |
| + // 0 if requesting failed. |
| + [Sync] |
| + RegisterContentProtectionClient() => (uint64 client_id); |
|
kcwu
2017/02/07 01:35:45
client_id is int64 or uint64? this is inconsistent
Peng
2017/02/07 15:12:59
Done.
|
| + |
| + // Unregisters the client. |
| + UnregisterContentProtectionClient(int64 client_id); |
| + |
| + // Queries link status and protection status. |
| + QueryContentProtectionStatus(int64 client_id, |
| + 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. |
| + // Returns true when the protection request has been made. |
| + EnableContentProtection(int64 client_id, |
| + int64 display_id, |
| + uint32 desired_method_mask) => (bool success); |
| }; |