| OLD | NEW |
| 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 ash { | 11 namespace ash { |
| 12 | 12 |
| 13 // Implementation of Screen for mus. The WindowManager/RootWindowController | 13 // Implementation of Screen for mus. The WindowManager/RootWindowController |
| 14 // keep the set of displays in sync (by modifying display_list()). This class | 14 // keep the set of displays in sync (by modifying display_list()). This class |
| 15 // exists to provide implementations of ScreenBase functions that are | 15 // exists to provide implementations of ScreenBase functions that are |
| 16 // NOTIMPLEMENTED. | 16 // NOTIMPLEMENTED. |
| 17 // TODO(sky): implement remaining functions or merge with ScreenAsh: | 17 // TODO(sky): implement remaining functions or merge with ScreenAsh: |
| 18 // http://crbug.com/671408. | 18 // http://crbug.com/671408. |
| 19 class ScreenMus : public display::ScreenBase { | 19 class ScreenMus : public display::ScreenBase { |
| 20 public: | 20 public: |
| 21 ScreenMus(); | 21 ScreenMus(); |
| 22 ~ScreenMus() override; | 22 ~ScreenMus() override; |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 // display::ScreenBase: | 25 // display::ScreenBase: |
| 26 display::Display GetDisplayNearestWindow(aura::Window* window) const override; | 26 display::Display GetDisplayNearestWindow(aura::Window* window) const override; |
| 27 gfx::Point GetCursorScreenPoint() override; |
| 27 | 28 |
| 28 DISALLOW_COPY_AND_ASSIGN(ScreenMus); | 29 DISALLOW_COPY_AND_ASSIGN(ScreenMus); |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 } // namespace ash | 32 } // namespace ash |
| 32 | 33 |
| 33 #endif // ASH_MUS_SCREEN_MUS_H_ | 34 #endif // ASH_MUS_SCREEN_MUS_H_ |
| OLD | NEW |