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

Unified Diff: ash/system/tray/system_tray.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: ash/system/tray/system_tray.cc
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index 15679c3f2606b46f10593098a35c18a41d17c9bd..3cf5039677129ea2977b00e964b3c9a7d1c3c43e 100644
--- a/ash/system/tray/system_tray.cc
+++ b/ash/system/tray/system_tray.cc
@@ -248,7 +248,8 @@ bool SystemTray::IsMouseInNotificationBubble() const {
if (!notification_bubble_.get())
return false;
return notification_bubble_->bubble_view()->GetBoundsInScreen().Contains(
- gfx::Screen::GetCursorScreenPoint());
+ gfx::Screen::GetScreenFor(
+ status_area_widget()->GetNativeView())->GetCursorScreenPoint());
oshima 2012/10/10 17:58:23 Any reason this isn't Shell::GetAshScreen() ?
scottmg 2012/10/10 19:04:47 Done.
}
bool SystemTray::CloseBubbleForTest() const {

Powered by Google App Engine
This is Rietveld 408576698