| 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 16 matching lines...) Expand all Loading... |
| 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(aura::Window* window) const override; |
| 36 gfx::Point GetCursorScreenPoint() override; | 36 gfx::Point GetCursorScreenPoint() override; |
| 37 bool IsWindowUnderCursor(gfx::NativeWindow window) override; |
| 38 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; |
| 37 | 39 |
| 38 display::mojom::DisplayController* display_controller_; | 40 display::mojom::DisplayController* display_controller_; |
| 39 | 41 |
| 40 DISALLOW_COPY_AND_ASSIGN(ScreenMus); | 42 DISALLOW_COPY_AND_ASSIGN(ScreenMus); |
| 41 }; | 43 }; |
| 42 | 44 |
| 43 } // namespace ash | 45 } // namespace ash |
| 44 | 46 |
| 45 #endif // ASH_MUS_SCREEN_MUS_H_ | 47 #endif // ASH_MUS_SCREEN_MUS_H_ |
| OLD | NEW |