Index: services/ui/ws/display.h |
diff --git a/services/ui/ws/display.h b/services/ui/ws/display.h |
index aaca1cf700c01d535709362eb7900cd739d209fd..25bd577103ab98ecf467f1be44ad56b4fb636f04 100644 |
--- a/services/ui/ws/display.h |
+++ b/services/ui/ws/display.h |
@@ -25,6 +25,7 @@ |
#include "services/ui/ws/server_window_tracker.h" |
#include "services/ui/ws/user_id_tracker_observer.h" |
#include "services/ui/ws/window_manager_window_tree_factory_set_observer.h" |
+#include "ui/display/display.h" |
namespace ui { |
namespace ws { |
@@ -72,9 +73,12 @@ class Display : public PlatformDisplayDelegate, |
PlatformDisplay* platform_display() { return platform_display_.get(); } |
- // Returns a mojom::Display for the specified display. WindowManager specific |
- // values are not set. |
- mojom::DisplayPtr ToMojomDisplay() const; |
+ // Returns a mojom::WsDisplay for the specified display. WindowManager |
+ // specific values are not set. |
+ mojom::WsDisplayPtr ToWsDisplay() const; |
+ |
+ // Returns a display::Display for the specficied display. |
+ ::display::Display ToDisplay() const; |
// Schedules a paint for the specified region in the coordinates of |window|. |
void SchedulePaint(const ServerWindow* window, const gfx::Rect& bounds); |
@@ -84,7 +88,7 @@ class Display : public PlatformDisplayDelegate, |
// drawn, otherwise destruction is immediate. |
void ScheduleSurfaceDestruction(ServerWindow* window); |
- mojom::Rotation GetRotation() const; |
+ ::display::Display::Rotation GetRotation() const; |
gfx::Size GetSize() const; |
// Returns the id for the corresponding id. |