Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module display.mojom; | 5 module display.mojom; |
| 6 | 6 |
| 7 import "ui/gfx/geometry/mojo/geometry.mojom"; | 7 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 8 | 8 |
| 9 // An interface for clients that are allowed to make changes to the display | 9 // An interface for clients that are allowed to make changes to the display |
| 10 // state. | 10 // state. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 | 45 |
| 46 // Sets the display work area with the provided insets. The display size is | 46 // Sets the display work area with the provided insets. The display size is |
| 47 // included to ensure that the insets are for the current display size. | 47 // included to ensure that the insets are for the current display size. |
| 48 SetDisplayWorkArea(int64 display_id, | 48 SetDisplayWorkArea(int64 display_id, |
| 49 gfx.mojom.Size size, | 49 gfx.mojom.Size size, |
| 50 gfx.mojom.Insets insets); | 50 gfx.mojom.Insets insets); |
| 51 | 51 |
| 52 // TODO(kylechar): This interface will need to be expanded to provide | 52 // TODO(kylechar): This interface will need to be expanded to provide |
| 53 // additional functionality for the display settings page and other ash | 53 // additional functionality for the display settings page and other ash |
| 54 // keyboard accelerators. | 54 // keyboard accelerators. |
| 55 | |
| 56 // ========================= 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
| |
| 57 | |
| 58 // Registers a client for display protection and requests a client id. Returns | |
| 59 // 0 if requesting failed. | |
| 60 [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
| |
| 61 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
| |
| 62 | |
| 63 // Unregisters the client. | |
| 64 UnregisterContentProtectionClient(uint64 client_id); | |
| 65 | |
| 66 // Queries link status and protection status. | |
| 67 QueryContentProtectionStatus(uint64 client_id, | |
| 68 int64 display_id) => (bool success, | |
| 69 uint32 link_mask, | |
| 70 uint32 protection_mask); | |
| 71 | |
| 72 // Requests the desired protection methods. | |
| 73 // |protection_mask| is the desired protection methods, which is a bitmask | |
| 74 // of the ContentProtectionMethod values. | |
| 75 // Returns true when the protection request has been made. | |
| 76 EnableContentProtection(uint64 client_id, | |
| 77 int64 display_id, | |
| 78 uint32 desired_method_mask) => (bool success); | |
| 55 }; | 79 }; |
| OLD | NEW |