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

Side by Side Diff: services/ui/display/screen_manager_ozone.h

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 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 #ifndef SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_H_ 5 #ifndef SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_H_
6 #define SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_H_ 6 #define SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void ResetInternalDisplayZoom() override; 62 void ResetInternalDisplayZoom() override;
63 void RotateCurrentDisplayCW() override; 63 void RotateCurrentDisplayCW() override;
64 void SwapPrimaryDisplay() override; 64 void SwapPrimaryDisplay() override;
65 void ToggleMirrorMode() override; 65 void ToggleMirrorMode() override;
66 void SetDisplayWorkArea(int64_t display_id, 66 void SetDisplayWorkArea(int64_t display_id,
67 const gfx::Size& size, 67 const gfx::Size& size,
68 const gfx::Insets& insets) override; 68 const gfx::Insets& insets) override;
69 void TakeDisplayControl(const TakeDisplayControlCallback& callback) override; 69 void TakeDisplayControl(const TakeDisplayControlCallback& callback) override;
70 void RelinquishDisplayControl( 70 void RelinquishDisplayControl(
71 const RelinquishDisplayControlCallback& callback) override; 71 const RelinquishDisplayControlCallback& callback) override;
72 void RegisterContentProtectionClient(
73 const RegisterContentProtectionClientCallback& callback) override;
74 void UnregisterContentProtectionClient(uint64_t client_id) override;
75 void QueryContentProtectionStatus(
76 uint64_t client_id,
77 int64_t display_id,
78 const QueryContentProtectionStatusCallback& callback) override;
79 void EnableContentProtection(
80 uint64_t client_id,
81 int64_t display_id,
82 uint32_t desired_method_mask,
83 const EnableContentProtectionCallback& callback) override;
72 84
73 private: 85 private:
74 friend class ScreenManagerOzoneTest; 86 friend class ScreenManagerOzoneTest;
75 87
76 ViewportMetrics GetViewportMetricsForDisplay(const Display& display); 88 ViewportMetrics GetViewportMetricsForDisplay(const Display& display);
77 89
78 // DisplayObserver: 90 // DisplayObserver:
79 void OnDisplayAdded(const Display& new_display) override; 91 void OnDisplayAdded(const Display& new_display) override;
80 void OnDisplayRemoved(const Display& old_display) override; 92 void OnDisplayRemoved(const Display& old_display) override;
81 void OnDisplayMetricsChanged(const Display& display, 93 void OnDisplayMetricsChanged(const Display& display,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 127
116 mojo::BindingSet<mojom::DisplayController> controller_bindings_; 128 mojo::BindingSet<mojom::DisplayController> controller_bindings_;
117 mojo::BindingSet<mojom::TestDisplayController> test_bindings_; 129 mojo::BindingSet<mojom::TestDisplayController> test_bindings_;
118 130
119 DISALLOW_COPY_AND_ASSIGN(ScreenManagerOzone); 131 DISALLOW_COPY_AND_ASSIGN(ScreenManagerOzone);
120 }; 132 };
121 133
122 } // namespace display 134 } // namespace display
123 135
124 #endif // SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_H_ 136 #endif // SERVICES_UI_DISPLAY_SCREEN_MANAGER_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698