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

Side by Side Diff: ash/mus/screen_mus.h

Issue 2642003002: Removes ash::mus::RootWindowController (Closed)
Patch Set: feedback 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 display {
12 namespace mojom {
13 class DisplayController;
14 }
15 }
16
11 namespace ash { 17 namespace ash {
12 18
13 // Implementation of Screen for mus. The WindowManager/RootWindowController 19 // Implementation of Screen for mus. The WindowManager/RootWindowController
14 // keep the set of displays in sync (by modifying display_list()). This class 20 // keep the set of displays in sync (by modifying display_list()). This class
15 // exists to provide implementations of ScreenBase functions that are 21 // exists to provide implementations of ScreenBase functions that are
16 // NOTIMPLEMENTED. 22 // NOTIMPLEMENTED.
17 // TODO(sky): implement remaining functions or merge with ScreenAsh: 23 // TODO(sky): implement remaining functions or merge with ScreenAsh:
18 // http://crbug.com/671408. 24 // http://crbug.com/671408.
19 class ScreenMus : public display::ScreenBase { 25 class ScreenMus : public display::ScreenBase {
20 public: 26 public:
21 ScreenMus(); 27 explicit ScreenMus(display::mojom::DisplayController* display_controller);
22 ~ScreenMus() override; 28 ~ScreenMus() override;
23 29
30 // Sets the work area of the display containing |window|.
31 void SetWorkAreaInsets(aura::Window* window, const gfx::Insets& insets);
32
24 private: 33 private:
25 // display::ScreenBase: 34 // display::ScreenBase:
26 display::Display GetDisplayNearestWindow(aura::Window* window) const override; 35 display::Display GetDisplayNearestWindow(aura::Window* window) const override;
27 gfx::Point GetCursorScreenPoint() override; 36 gfx::Point GetCursorScreenPoint() override;
28 37
38 display::mojom::DisplayController* display_controller_;
39
29 DISALLOW_COPY_AND_ASSIGN(ScreenMus); 40 DISALLOW_COPY_AND_ASSIGN(ScreenMus);
30 }; 41 };
31 42
32 } // namespace ash 43 } // namespace ash
33 44
34 #endif // ASH_MUS_SCREEN_MUS_H_ 45 #endif // ASH_MUS_SCREEN_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698