Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1162)

Unified Diff: ui/gfx/screen_mac.mm

Issue 10580042: Fix for screen_mac::GetDisplayNearestPoint. The input point may not (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/screen_mac.mm
diff --git a/ui/gfx/screen_mac.mm b/ui/gfx/screen_mac.mm
index 156e08e70e33e204ec04f11529a5d36e8f192984..018e954ba06f420c35552ffb957a1d6d9344e399 100644
--- a/ui/gfx/screen_mac.mm
+++ b/ui/gfx/screen_mac.mm
@@ -157,8 +157,7 @@ gfx::Display Screen::GetDisplayNearestPoint(const gfx::Point& point) {
if (NSMouseInRect(ns_point, [screen frame], NO))
return GetDisplayForScreen(screen, screen == primary);
}
- NOTREACHED();
- return gfx::Display();
+ return GetPrimaryDisplay();
}
} // namespace gfx
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698