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

Unified Diff: ui/views/bubble/bubble_frame_view.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: tidy 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: ui/views/bubble/bubble_frame_view.cc
diff --git a/ui/views/bubble/bubble_frame_view.cc b/ui/views/bubble/bubble_frame_view.cc
index d164194262ee51554250609c209d1575d95634f2..c178e5f378309b6d3652b1d315c957ded54f717a 100644
--- a/ui/views/bubble/bubble_frame_view.cc
+++ b/ui/views/bubble/bubble_frame_view.cc
@@ -102,7 +102,8 @@ void BubbleFrameView::SetBubbleBorder(BubbleBorder* border) {
}
gfx::Rect BubbleFrameView::GetMonitorBounds(const gfx::Rect& rect) {
- return gfx::Screen::GetDisplayNearestPoint(rect.CenterPoint()).work_area();
+ return gfx::Screen::GetDisplayNearestPoint(
+ gfx::Screen::BadTwoWorldsContext(), rect.CenterPoint()).work_area();
}
void BubbleFrameView::MirrorArrowIfOffScreen(

Powered by Google App Engine
This is Rietveld 408576698