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

Unified Diff: services/ui/display/screen_manager_ozone.cc

Issue 2675743002: PPAPI: Make output protection API work with mus+ash (Closed)
Patch Set: Fix review issues 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 side-by-side diff with in-line comments
Download patch
Index: services/ui/display/screen_manager_ozone.cc
diff --git a/services/ui/display/screen_manager_ozone.cc b/services/ui/display/screen_manager_ozone.cc
index 772ee11d82b0fc2810999f36ffaebe2c51ac9d74..50a0cf72873fceed0b1cc24d042378fe3ae4f948 100644
--- a/services/ui/display/screen_manager_ozone.cc
+++ b/services/ui/display/screen_manager_ozone.cc
@@ -301,6 +301,33 @@ void ScreenManagerOzone::RelinquishDisplayControl(
display_configurator_.RelinquishControl(callback);
}
+void ScreenManagerOzone::RegisterContentProtectionClient(
+ const RegisterContentProtectionClientCallback& callback) {
+ uint64_t client_id = display_configurator_.RegisterContentProtectionClient();
+ callback.Run(client_id);
+}
+
+void ScreenManagerOzone::UnregisterContentProtectionClient(uint64_t client_id) {
+ display_configurator_.UnregisterContentProtectionClient(client_id);
+}
+
+void ScreenManagerOzone::QueryContentProtectionStatus(
+ uint64_t client_id,
+ int64_t display_id,
+ const QueryContentProtectionStatusCallback& callback) {
+ display_configurator_.QueryContentProtectionStatus(client_id, display_id,
+ callback);
+}
+
+void ScreenManagerOzone::EnableContentProtection(
+ uint64_t client_id,
+ int64_t display_id,
+ uint32_t desired_method_mask,
+ const EnableContentProtectionCallback& callback) {
+ display_configurator_.EnableContentProtection(client_id, display_id,
+ desired_method_mask, callback);
+}
+
void ScreenManagerOzone::OnDisplayAdded(const Display& display) {
ViewportMetrics metrics = GetViewportMetricsForDisplay(display);
DVLOG(1) << "OnDisplayAdded: " << display.ToString() << "\n "

Powered by Google App Engine
This is Rietveld 408576698