| 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 ============================== |
| 57 |
| 58 // Registers a client for display protection and requests a client id. Returns |
| 59 // 0 if requesting failed. |
| 60 [Sync] |
| 61 RegisterContentProtectionClient() => (uint64 client_id); |
| 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 |