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

Unified Diff: services/ui/ws/display_manager.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 | « services/ui/ws/display.cc ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/display_manager.h
diff --git a/services/ui/ws/display_manager.h b/services/ui/ws/display_manager.h
index 333ebef89ce5e263c6fede4b1b4fd00d75a62787..0f240258379227d88c12d43f3be6bebd318b60b8 100644
--- a/services/ui/ws/display_manager.h
+++ b/services/ui/ws/display_manager.h
@@ -14,6 +14,7 @@
#include "services/ui/ws/ids.h"
#include "services/ui/ws/user_id.h"
#include "services/ui/ws/user_id_tracker_observer.h"
+#include "ui/display/display.h"
namespace ui {
namespace ws {
@@ -51,7 +52,7 @@ class DisplayManager : public UserIdTrackerObserver,
std::set<const Display*> displays() const;
// Notifies when something about the Display changes.
- void OnDisplayUpdate(Display* display);
+ void OnDisplayUpdate(const display::Display& display);
// Returns the Display that contains |window|, or null if |window| is not
// attached to a display.
@@ -86,10 +87,10 @@ class DisplayManager : public UserIdTrackerObserver,
const UserId& active_id) override;
// display::ScreenManagerDelegate:
- void OnDisplayAdded(int64_t id,
+ void OnDisplayAdded(const display::Display& display,
const display::ViewportMetrics& metrics) override;
void OnDisplayRemoved(int64_t id) override;
- void OnDisplayModified(int64_t id,
+ void OnDisplayModified(const display::Display& display,
const display::ViewportMetrics& metrics) override;
void OnPrimaryDisplayChanged(int64_t primary_display_id) override;
« no previous file with comments | « services/ui/ws/display.cc ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698