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

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: win fix 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 f23c44688842bd022bc8033bd289774e44ff3606..8e6a4b2aa952188535b57149c72394966cb6e204 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());
}
bool SystemTray::CloseBubbleForTest() const {

Powered by Google App Engine
This is Rietveld 408576698