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

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

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix some new gfx::Screen additions Created 8 years, 2 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 59b1d7fb7638ff0fd3c19076cad84075db9be044..41f4f88bfe0c72f28c1e9485aa9b46fdabf21fd1 100644
--- a/chrome/browser/ui/views/status_bubble_views.cc
+++ b/chrome/browser/ui/views/status_bubble_views.cc
@@ -767,8 +767,8 @@ void StatusBubbleViews::AvoidMouse(const gfx::Point& location) {
// Check if the bubble sticks out from the monitor or will obscure
// download shelf.
gfx::NativeView widget = base_view_->GetWidget()->GetNativeView();
oshima 2012/10/10 17:58:23 s/widget/window/
scottmg 2012/10/10 19:04:47 Done.
- gfx::Rect monitor_rect =
- gfx::Screen::GetDisplayNearestWindow(widget).work_area();
+ gfx::Rect monitor_rect = gfx::Screen::GetScreenFor(widget)->
+ GetDisplayNearestWindow(widget).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