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

Unified Diff: chrome/browser/notifications/balloon_collection_impl.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/notifications/balloon_collection_impl.cc
diff --git a/chrome/browser/notifications/balloon_collection_impl.cc b/chrome/browser/notifications/balloon_collection_impl.cc
index f5e7317df9da5290a38c11638ea5fb3ba0f17f4e..e93e4332d5c0e86dc10ebb0b9181414652ae214f 100644
--- a/chrome/browser/notifications/balloon_collection_impl.cc
+++ b/chrome/browser/notifications/balloon_collection_impl.cc
@@ -464,7 +464,9 @@ bool BalloonCollectionImpl::Layout::RefreshSystemMetrics() {
#if defined(OS_MACOSX)
gfx::Rect new_work_area = GetMacWorkArea();
#else
- gfx::Rect new_work_area = gfx::Screen::GetPrimaryDisplay().work_area();
+ // TODO(scottmg): NativeScreen might be wrong. http://crbug.com/133312
oshima 2012/10/10 17:58:23 Yep, this should be a screen on which notification
scottmg 2012/10/10 19:04:47 Done. (more emphatic :)
+ gfx::Rect new_work_area =
+ gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().work_area();
#endif
if (!work_area_.Equals(new_work_area)) {
work_area_.SetRect(new_work_area.x(), new_work_area.y(),

Powered by Google App Engine
This is Rietveld 408576698