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

Unified Diff: services/ui/display/screen_manager_delegate.h

Issue 2736943003: Start to decouple display::Display from ws::PlatformDisplay. (Closed)
Patch Set: Fix comments. Created 3 years, 9 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
« no previous file with comments | « no previous file | services/ui/display/screen_manager_ozone_internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/screen_manager_delegate.h
diff --git a/services/ui/display/screen_manager_delegate.h b/services/ui/display/screen_manager_delegate.h
index c6ed387300309d04f8837e3093b50a1d49afd426..967dd478fcdc8c1bc9e31a6d0d1f364ee94cef92 100644
--- a/services/ui/display/screen_manager_delegate.h
+++ b/services/ui/display/screen_manager_delegate.h
@@ -9,25 +9,24 @@
namespace display {
+class Display;
struct ViewportMetrics;
// The ScreenManagerDelegate will be informed of changes to the display or
// screen state by ScreenManager.
class ScreenManagerDelegate {
public:
- // Called when a display is added. |id| is the display id of the new display
- // and |metrics| contains display viewport information.
- virtual void OnDisplayAdded(int64_t id, const ViewportMetrics& metrics) = 0;
+ // Called when a display is added.
+ virtual void OnDisplayAdded(const display::Display& display,
+ const ViewportMetrics& metrics) = 0;
- // Called when a display is removed. |id| is the display id of the display
- // that was removed.
- virtual void OnDisplayRemoved(int64_t id) = 0;
-
- // Called when a display is modified. |id| is the display id of the modified
- // display and |metrics| contains updated display viewport information.
- virtual void OnDisplayModified(int64_t id,
+ // Called when a display is modified.
+ virtual void OnDisplayModified(const display::Display& display,
const ViewportMetrics& metrics) = 0;
+ // Called when a display is removed.
+ virtual void OnDisplayRemoved(int64_t display_id) = 0;
+
// Called when the primary display is changed.
virtual void OnPrimaryDisplayChanged(int64_t primary_display_id) = 0;
« no previous file with comments | « no previous file | services/ui/display/screen_manager_ozone_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698