| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Our singleton screen implementation that talks to xrandr. | 31 // Our singleton screen implementation that talks to xrandr. |
| 32 class VIEWS_EXPORT DesktopScreenX11 : public display::Screen, | 32 class VIEWS_EXPORT DesktopScreenX11 : public display::Screen, |
| 33 public ui::PlatformEventDispatcher { | 33 public ui::PlatformEventDispatcher { |
| 34 public: | 34 public: |
| 35 DesktopScreenX11(); | 35 DesktopScreenX11(); |
| 36 | 36 |
| 37 ~DesktopScreenX11() override; | 37 ~DesktopScreenX11() override; |
| 38 | 38 |
| 39 // Overridden from display::Screen: | 39 // Overridden from display::Screen: |
| 40 gfx::Point GetCursorScreenPoint() override; | 40 gfx::Point GetCursorScreenPoint() override; |
| 41 gfx::NativeWindow GetWindowUnderCursor() override; | 41 bool IsWindowUnderCursor(gfx::NativeWindow window) override; |
| 42 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; | 42 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; |
| 43 int GetNumDisplays() const override; | 43 int GetNumDisplays() const override; |
| 44 std::vector<display::Display> GetAllDisplays() const override; | 44 std::vector<display::Display> GetAllDisplays() const override; |
| 45 display::Display GetDisplayNearestWindow( | 45 display::Display GetDisplayNearestWindow( |
| 46 gfx::NativeView window) const override; | 46 gfx::NativeView window) const override; |
| 47 display::Display GetDisplayNearestPoint( | 47 display::Display GetDisplayNearestPoint( |
| 48 const gfx::Point& point) const override; | 48 const gfx::Point& point) const override; |
| 49 display::Display GetDisplayMatching( | 49 display::Display GetDisplayMatching( |
| 50 const gfx::Rect& match_rect) const override; | 50 const gfx::Rect& match_rect) const override; |
| 51 display::Display GetPrimaryDisplay() const override; | 51 display::Display GetPrimaryDisplay() const override; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 gfx::DisplayChangeNotifier change_notifier_; | 95 gfx::DisplayChangeNotifier change_notifier_; |
| 96 | 96 |
| 97 ui::X11AtomCache atom_cache_; | 97 ui::X11AtomCache atom_cache_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11); | 99 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace views | 102 } // namespace views |
| 103 | 103 |
| 104 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ | 104 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ |
| OLD | NEW |