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

Unified Diff: chrome/browser/ui/views/status_bubble_views.cc

Issue 2747143005: Revert of Add display::GetDisplayNearestView (Closed)
Patch Set: Created 3 years, 9 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
Index: chrome/browser/ui/views/status_bubble_views.cc
diff --git a/chrome/browser/ui/views/status_bubble_views.cc b/chrome/browser/ui/views/status_bubble_views.cc
index e5bde8b7ff76620ac096cbb04170de878acdafa3..70be5c02e3b0eacb443d40433ef724c7f5922e47 100644
--- a/chrome/browser/ui/views/status_bubble_views.cc
+++ b/chrome/browser/ui/views/status_bubble_views.cc
@@ -867,9 +867,10 @@
// Check if the bubble sticks out from the monitor or will obscure
// download shelf.
- gfx::NativeView view = base_view_->GetWidget()->GetNativeView();
- gfx::Rect monitor_rect =
- display::Screen::GetScreen()->GetDisplayNearestView(view).work_area();
+ gfx::NativeView window = base_view_->GetWidget()->GetNativeView();
+ gfx::Rect monitor_rect = display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(window)
+ .work_area();
const int bubble_bottom_y = top_left.y() + position_.y() + size_.height();
if (bubble_bottom_y + offset > monitor_rect.height() ||

Powered by Google App Engine
This is Rietveld 408576698