Chromium Code Reviews| 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. | |
| 9 interface OutputProtection { | |
|
sky
2017/02/10 19:24:56
Do we care about multiple clients trying to use th
Peng
2017/02/10 20:35:47
I am not sure. But I checked the netflix, it will
kcwu
2017/02/11 01:45:21
The api allows multiple clients at the same time.
Peng
2017/02/13 21:14:46
Refined the document.
| |
| 10 // Queries link status and protection status. | |
| 11 QueryContentProtectionStatus(int64 display_id) => (bool success, | |
| 12 uint32 link_mask, | |
| 13 uint32 protection_mask); | |
| 14 | |
| 15 // Requests the desired protection methods. | |
| 16 // |protection_mask| is the desired protection methods, which is a bitmask | |
| 17 // of the ContentProtectionMethod values. | |
| 18 // Returns true when the protection request has been made. | |
| 19 EnableContentProtection(int64 display_id, | |
|
sky
2017/02/10 19:24:56
Isn't this more of SetContentProtectionMethod() ?
Peng
2017/02/10 20:35:47
I assume it too.
kcwu@, Could you please confirm
kcwu
2017/02/11 01:45:21
Yes. When the interface is closed, the request fro
Peng
2017/02/13 21:14:46
Refined the document. And renamed it to SetContent
| |
| 20 uint32 desired_method_mask) => (bool success); | |
|
sky
2017/02/10 19:24:56
Please define the enum in the mojom.
Peng
2017/02/10 20:35:47
For the desired_method_mask? But chrome doesn't us
kcwu
2017/02/11 01:45:21
It is a bitmask in order to support other protecti
| |
| 21 }; | |
| OLD | NEW |