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. 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 QueryContentProtectionStatus(int64 display_id) => (bool success, | |
| 14 uint32 link_mask, | |
|
dcheng
2017/02/15 06:26:52
Nit: document link_mask too
Peng
2017/02/15 16:15:33
Done.
| |
| 15 uint32 protection_mask); | |
| 16 | |
| 17 // Requests the desired protection methods. | |
| 18 // |protection_mask| is the desired protection methods, which is a bitmask | |
| 19 // of the ContentProtectionMethod values. When the interface is closed, | |
| 20 // the content protection mask will be reverted. | |
|
dcheng
2017/02/15 06:26:52
Will these/can we declare these constants in this
dcheng
2017/02/15 06:27:20
(Or have a pointer to where they're defined =)
Peng
2017/02/15 16:15:33
Done.
Peng
2017/02/15 16:15:33
Probably it is not necessary, we don't have use ca
| |
| 21 // Return true on success. Return false, if it failed to make the protection | |
|
dcheng
2017/02/15 06:26:52
Nit: no comma after false
Peng
2017/02/15 16:15:33
Done.
| |
| 22 // request on the given display. | |
| 23 SetContentProtection(int64 display_id, | |
| 24 uint32 desired_method_mask) => (bool success); | |
| 25 }; | |
| OLD | NEW |