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

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

Issue 2161993002: Start using display.mojom.Display in mus+ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@display_traits
Patch Set: Fixes. Created 4 years, 5 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/test_wm/test_wm.cc ('k') | services/ui/ws/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « services/ui/test_wm/test_wm.cc ('k') | services/ui/ws/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698