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

Unified Diff: chrome/browser/download/download_util.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/download/download_util.cc
diff --git a/chrome/browser/download/download_util.cc b/chrome/browser/download/download_util.cc
index d043c220ea4448b0692e9e4435522888d81c84a7..2eaabbf4cf0503c86f53c8ba59edcac42b414762 100644
--- a/chrome/browser/download/download_util.cc
+++ b/chrome/browser/download/download_util.cc
@@ -359,7 +359,7 @@ void DragDownload(const DownloadItem* download,
if (!root_window || !aura::client::GetDragDropClient(root_window))
return;
- gfx::Point location = gfx::Screen::GetCursorScreenPoint();
+ gfx::Point location = gfx::Screen::GetScreenFor(view)->GetCursorScreenPoint();
aura::client::GetDragDropClient(root_window)->StartDragAndDrop(
data,
root_window,

Powered by Google App Engine
This is Rietveld 408576698