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

Unified Diff: ash/mus/screen_mus.h

Issue 2642003002: Removes ash::mus::RootWindowController (Closed)
Patch Set: Created 3 years, 11 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
Index: ash/mus/screen_mus.h
diff --git a/ash/mus/screen_mus.h b/ash/mus/screen_mus.h
index d75147fb0408c4eff214f6cac9d1bb4b34493b81..56b5fe122f15e543cb6c32d5b832cb86779d046c 100644
--- a/ash/mus/screen_mus.h
+++ b/ash/mus/screen_mus.h
@@ -8,6 +8,16 @@
#include "base/macros.h"
#include "ui/display/screen_base.h"
+namespace aura {
+class Window;
msw 2017/01/18 23:31:27 nit: is this needed? (already used for GetDisplayN
sky 2017/01/19 01:02:19 Done.
+}
+
+namespace display {
+namespace mojom {
+class DisplayController;
+}
+}
+
namespace ash {
// Implementation of Screen for mus. The WindowManager/RootWindowController
@@ -18,14 +28,19 @@ namespace ash {
// http://crbug.com/671408.
class ScreenMus : public display::ScreenBase {
public:
- ScreenMus();
+ explicit ScreenMus(display::mojom::DisplayController* display_controller);
~ScreenMus() override;
+ // Sets the work area of the display |window| is on.
msw 2017/01/18 23:31:27 optional grammar nit: "of the display containing |
sky 2017/01/19 01:02:19 Done.
+ void SetWorkAreaInsets(aura::Window* window, const gfx::Insets& insets);
+
private:
// display::ScreenBase:
display::Display GetDisplayNearestWindow(aura::Window* window) const override;
gfx::Point GetCursorScreenPoint() override;
+ display::mojom::DisplayController* display_controller_;
+
DISALLOW_COPY_AND_ASSIGN(ScreenMus);
};

Powered by Google App Engine
This is Rietveld 408576698