Chromium Code Reviews| 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); |
| }; |