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..e0df624f3237c7b838dfa5b3fa9dcb4f1c0bf75f 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 ============================== |
|
rjkroege
2017/02/09 00:44:43
I don't think that this code belongs here. display
Peng
2017/02/09 14:27:15
This interface can not only enable content protect
kcwu
2017/02/09 18:55:39
This interface should be only accessed from truste
|
| + |
| + // Registers a client for display protection and requests a client id. Returns |
| + // 0 if requesting failed. |
| + [Sync] |
|
rjkroege
2017/02/09 00:44:43
Can this be not sync?
sky
2017/02/09 20:59:07
+1
Peng
2017/02/10 15:57:02
I removed this method. And keep the client_id in s
|
| + RegisterContentProtectionClient() => (uint64 client_id); |
|
sky
2017/02/09 20:59:07
This seems like separate functions than the rest o
Peng
2017/02/10 15:57:02
I removed the client_id, and moved those method to
|
| + |
| + // Unregisters the client. |
| + UnregisterContentProtectionClient(uint64 client_id); |
| + |
| + // Queries link status and protection status. |
| + QueryContentProtectionStatus(uint64 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(uint64 client_id, |
| + int64 display_id, |
| + uint32 desired_method_mask) => (bool success); |
| }; |