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 UI_DISPLAY_SCREEN_BASE_H_ | 5 #ifndef UI_DISPLAY_SCREEN_BASE_H_ |
6 #define UI_DISPLAY_SCREEN_BASE_H_ | 6 #define UI_DISPLAY_SCREEN_BASE_H_ |
7 | 7 |
8 #include "ui/display/display.h" | 8 #include "ui/display/display.h" |
9 #include "ui/display/display_export.h" | 9 #include "ui/display/display_export.h" |
10 #include "ui/display/display_list.h" | 10 #include "ui/display/display_list.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // If |is_primary| is true, |changed_display| is the primary display. | 25 // If |is_primary| is true, |changed_display| is the primary display. |
26 void ProcessDisplayChanged(const display::Display& changed_display, | 26 void ProcessDisplayChanged(const display::Display& changed_display, |
27 bool is_primary); | 27 bool is_primary); |
28 | 28 |
29 private: | 29 private: |
30 // display::Screen: | 30 // display::Screen: |
31 gfx::Point GetCursorScreenPoint() override; | 31 gfx::Point GetCursorScreenPoint() override; |
32 bool IsWindowUnderCursor(gfx::NativeWindow window) override; | 32 bool IsWindowUnderCursor(gfx::NativeWindow window) override; |
33 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; | 33 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; |
34 display::Display GetPrimaryDisplay() const override; | 34 display::Display GetPrimaryDisplay() const override; |
| 35 bool GetDisplayWithDisplayId(int64_t display_id, |
| 36 display::Display* display) const override; |
35 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; | 37 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; |
36 display::Display GetDisplayNearestPoint( | 38 display::Display GetDisplayNearestPoint( |
37 const gfx::Point& point) const override; | 39 const gfx::Point& point) const override; |
38 int GetNumDisplays() const override; | 40 int GetNumDisplays() const override; |
39 std::vector<display::Display> GetAllDisplays() const override; | 41 std::vector<display::Display> GetAllDisplays() const override; |
40 display::Display GetDisplayMatching( | 42 display::Display GetDisplayMatching( |
41 const gfx::Rect& match_rect) const override; | 43 const gfx::Rect& match_rect) const override; |
42 void AddObserver(display::DisplayObserver* observer) override; | 44 void AddObserver(display::DisplayObserver* observer) override; |
43 void RemoveObserver(display::DisplayObserver* observer) override; | 45 void RemoveObserver(display::DisplayObserver* observer) override; |
44 | 46 |
45 display::DisplayList display_list_; | 47 display::DisplayList display_list_; |
46 | 48 |
47 DISALLOW_COPY_AND_ASSIGN(ScreenBase); | 49 DISALLOW_COPY_AND_ASSIGN(ScreenBase); |
48 }; | 50 }; |
49 | 51 |
50 } // namespace display | 52 } // namespace display |
51 | 53 |
52 #endif // UI_DISPLAY_SCREEN_BASE_H_ | 54 #endif // UI_DISPLAY_SCREEN_BASE_H_ |
OLD | NEW |