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 23 matching lines...) Expand all Loading... |
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 bool IsWindowUnderCursor(gfx::NativeWindow window) 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 const 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; |
52 void AddObserver(display::DisplayObserver* observer) override; | 52 void AddObserver(display::DisplayObserver* observer) override; |
53 void RemoveObserver(display::DisplayObserver* observer) override; | 53 void RemoveObserver(display::DisplayObserver* observer) override; |
54 | 54 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 display::DisplayChangeNotifier change_notifier_; | 98 display::DisplayChangeNotifier change_notifier_; |
99 | 99 |
100 ui::X11AtomCache atom_cache_; | 100 ui::X11AtomCache atom_cache_; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11); | 102 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace views | 105 } // namespace views |
106 | 106 |
107 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ | 107 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ |
OLD | NEW |