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

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

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: and another rebase Created 4 years, 11 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 ef57b7535e3768439dbb70f80331c5e73d54f360..e2b21bd82bed9934fee28ac7f62c701ab3796094 100644
--- a/chrome/browser/ui/views/status_bubble_views.cc
+++ b/chrome/browser/ui/views/status_bubble_views.cc
@@ -804,8 +804,8 @@ void StatusBubbleViews::AvoidMouse(const gfx::Point& location) {
// Check if the bubble sticks out from the monitor or will obscure
// download shelf.
gfx::NativeView window = base_view_->GetWidget()->GetNativeView();
- gfx::Rect monitor_rect = gfx::Screen::GetScreenFor(window)->
- GetDisplayNearestWindow(window).work_area();
+ gfx::Rect monitor_rect =
+ gfx::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