| Index: ui/display/win/screen_win.cc
|
| diff --git a/ui/display/win/screen_win.cc b/ui/display/win/screen_win.cc
|
| index 3090a7d727c614cce0df5c434740db400bb68456..0fc5a7b82fdfa64150456ad06a687593207684ee 100644
|
| --- a/ui/display/win/screen_win.cc
|
| +++ b/ui/display/win/screen_win.cc
|
| @@ -388,6 +388,17 @@ std::vector<display::Display> ScreenWin::GetAllDisplays() const {
|
| return ScreenWinDisplaysToDisplays(screen_win_displays_);
|
| }
|
|
|
| +bool ScreenWin::GetDisplayWithDisplayId(int64_t display_id,
|
| + display::Display* display) const {
|
| + for (const auto& disp : screen_win_displays_) {
|
| + if (disp.display().id() == display_id) {
|
| + *display = disp.display();
|
| + return true;
|
| + }
|
| + }
|
| + return false;
|
| +}
|
| +
|
| display::Display ScreenWin::GetDisplayNearestWindow(
|
| gfx::NativeView window) const {
|
| HWND window_hwnd = GetHWNDFromNativeView(window);
|
|
|