Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: services/ui/public/interfaces/display/display_controller.mojom

Issue 2675743002: PPAPI: Make output protection API work with mus+ash (Closed)
Patch Set: Fix try bot Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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);
kcwu 2017/02/07 01:35:45 client_id is int64 or uint64? this is inconsistent
Peng 2017/02/07 15:12:59 Done.
62
63 // Unregisters the client.
64 UnregisterContentProtectionClient(int64 client_id);
65
66 // Queries link status and protection status.
67 QueryContentProtectionStatus(int64 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(int64 client_id,
77 int64 display_id,
78 uint32 desired_method_mask) => (bool success);
55 }; 79 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698