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

Unified Diff: chrome/browser/ui/views/notifications/balloon_collection_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 new addition 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/notifications/balloon_collection_views.cc
diff --git a/chrome/browser/ui/views/notifications/balloon_collection_views.cc b/chrome/browser/ui/views/notifications/balloon_collection_views.cc
index a66ea192b14081b1c25878a961e1a38555eba63d..8e3af62f0a166d46ffcc9979dc82451389bc813e 100644
--- a/chrome/browser/ui/views/notifications/balloon_collection_views.cc
+++ b/chrome/browser/ui/views/notifications/balloon_collection_views.cc
@@ -80,7 +80,8 @@ bool BalloonCollectionImpl::IsCursorInBalloonCollection() const {
#else
// TODO(saintlou): Not sure if this is correct because on Windows at least
// the following call is GetCursorPos() not GetMessagePos().
- gfx::Point cursor(gfx::Screen::GetCursorScreenPoint());
+ // TODO(scottmg): NativeScreen might be wrong. http://crbug.com/133312
+ gfx::Point cursor(gfx::Screen::GetNativeScreen()->GetCursorScreenPoint());
#endif
return GetBalloonsBoundingBox().Contains(cursor);
}
« no previous file with comments | « chrome/browser/ui/views/fullscreen_exit_bubble_views.cc ('k') | chrome/browser/ui/views/panels/panel_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698