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

Unified Diff: chrome/browser/ui/panels/panel_mouse_watcher_timer.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/panels/panel_mouse_watcher_timer.cc
diff --git a/chrome/browser/ui/panels/panel_mouse_watcher_timer.cc b/chrome/browser/ui/panels/panel_mouse_watcher_timer.cc
index a8994bfea5dc5579add62359fffb634e776ba5a2..029a8354b91539c1c91037a27c17e8b4e41ca851 100644
--- a/chrome/browser/ui/panels/panel_mouse_watcher_timer.cc
+++ b/chrome/browser/ui/panels/panel_mouse_watcher_timer.cc
@@ -65,7 +65,8 @@ bool PanelMouseWatcherTimer::IsActive() const {
}
gfx::Point PanelMouseWatcherTimer::GetMousePosition() const {
- return gfx::Screen::GetCursorScreenPoint();
+ // TODO(scottmg): NativeScreen is wrong. http://crbug.com/133312
+ return gfx::Screen::GetNativeScreen()->GetCursorScreenPoint();
}
void PanelMouseWatcherTimer::DoWork() {
« no previous file with comments | « chrome/browser/ui/panels/panel_and_desktop_notification_browsertest.cc ('k') | chrome/browser/ui/pdf/pdf_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698