| Index: ui/views/widget/desktop_aura/desktop_screen_x11.cc
|
| diff --git a/ui/views/widget/desktop_aura/desktop_screen_x11.cc b/ui/views/widget/desktop_aura/desktop_screen_x11.cc
|
| index 96f20cca2160c9983c4ea002fb5be5eec4dd92e0..1f300ff2fbfb0b04b3cb76e7859523852260fdbf 100644
|
| --- a/ui/views/widget/desktop_aura/desktop_screen_x11.cc
|
| +++ b/ui/views/widget/desktop_aura/desktop_screen_x11.cc
|
| @@ -170,6 +170,18 @@ std::vector<display::Display> DesktopScreenX11::GetAllDisplays() const {
|
| return displays_;
|
| }
|
|
|
| +bool DesktopScreenX11::GetDisplayWithDisplayId(
|
| + int64_t display_id,
|
| + display::Display* display) const {
|
| + for (const display::Display& display_in_list : displays_) {
|
| + if (display_in_list.id() == display_id) {
|
| + *display = display_in_list;
|
| + return true;
|
| + }
|
| + }
|
| + return false;
|
| +}
|
| +
|
| display::Display DesktopScreenX11::GetDisplayNearestWindow(
|
| gfx::NativeView window) const {
|
| if (!window)
|
|
|