| 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 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 class ScreenMus : public display::ScreenBase { | 25 class ScreenMus : public display::ScreenBase { |
| 26 public: | 26 public: |
| 27 explicit ScreenMus(display::mojom::DisplayController* display_controller); | 27 explicit ScreenMus(display::mojom::DisplayController* display_controller); |
| 28 ~ScreenMus() override; | 28 ~ScreenMus() override; |
| 29 | 29 |
| 30 // Sets the work area of the display containing |window|. | 30 // Sets the work area of the display containing |window|. |
| 31 void SetWorkAreaInsets(aura::Window* window, const gfx::Insets& insets); | 31 void SetWorkAreaInsets(aura::Window* window, const gfx::Insets& insets); |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 // display::ScreenBase: | 34 // display::ScreenBase: |
| 35 display::Display GetDisplayNearestWindow(aura::Window* window) const override; | 35 display::Display GetDisplayNearestWindow( |
| 36 gfx::NativeWindow window) const override; |
| 36 gfx::Point GetCursorScreenPoint() override; | 37 gfx::Point GetCursorScreenPoint() override; |
| 37 bool IsWindowUnderCursor(gfx::NativeWindow window) override; | 38 bool IsWindowUnderCursor(gfx::NativeWindow window) override; |
| 38 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; | 39 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; |
| 39 | 40 |
| 40 display::mojom::DisplayController* display_controller_; | 41 display::mojom::DisplayController* display_controller_; |
| 41 | 42 |
| 42 DISALLOW_COPY_AND_ASSIGN(ScreenMus); | 43 DISALLOW_COPY_AND_ASSIGN(ScreenMus); |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 } // namespace ash | 46 } // namespace ash |
| 46 | 47 |
| 47 #endif // ASH_MUS_SCREEN_MUS_H_ | 48 #endif // ASH_MUS_SCREEN_MUS_H_ |
| OLD | NEW |