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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_MUS_SCREEN_MUS_H_ 5 #ifndef ASH_MUS_SCREEN_MUS_H_
6 #define ASH_MUS_SCREEN_MUS_H_ 6 #define ASH_MUS_SCREEN_MUS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/display/screen_base.h" 9 #include "ui/display/screen_base.h"
10 10
11 namespace aura {
12 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.
13 }
14
15 namespace display {
16 namespace mojom {
17 class DisplayController;
18 }
19 }
20
11 namespace ash { 21 namespace ash {
12 22
13 // Implementation of Screen for mus. The WindowManager/RootWindowController 23 // Implementation of Screen for mus. The WindowManager/RootWindowController
14 // keep the set of displays in sync (by modifying display_list()). This class 24 // keep the set of displays in sync (by modifying display_list()). This class
15 // exists to provide implementations of ScreenBase functions that are 25 // exists to provide implementations of ScreenBase functions that are
16 // NOTIMPLEMENTED. 26 // NOTIMPLEMENTED.
17 // TODO(sky): implement remaining functions or merge with ScreenAsh: 27 // TODO(sky): implement remaining functions or merge with ScreenAsh:
18 // http://crbug.com/671408. 28 // http://crbug.com/671408.
19 class ScreenMus : public display::ScreenBase { 29 class ScreenMus : public display::ScreenBase {
20 public: 30 public:
21 ScreenMus(); 31 explicit ScreenMus(display::mojom::DisplayController* display_controller);
22 ~ScreenMus() override; 32 ~ScreenMus() override;
23 33
34 // 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.
35 void SetWorkAreaInsets(aura::Window* window, const gfx::Insets& insets);
36
24 private: 37 private:
25 // display::ScreenBase: 38 // display::ScreenBase:
26 display::Display GetDisplayNearestWindow(aura::Window* window) const override; 39 display::Display GetDisplayNearestWindow(aura::Window* window) const override;
27 gfx::Point GetCursorScreenPoint() override; 40 gfx::Point GetCursorScreenPoint() override;
28 41
42 display::mojom::DisplayController* display_controller_;
43
29 DISALLOW_COPY_AND_ASSIGN(ScreenMus); 44 DISALLOW_COPY_AND_ASSIGN(ScreenMus);
30 }; 45 };
31 46
32 } // namespace ash 47 } // namespace ash
33 48
34 #endif // ASH_MUS_SCREEN_MUS_H_ 49 #endif // ASH_MUS_SCREEN_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698