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

Unified Diff: content/browser/web_contents/web_contents_drag_win.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: content/browser/web_contents/web_contents_drag_win.cc
diff --git a/content/browser/web_contents/web_contents_drag_win.cc b/content/browser/web_contents/web_contents_drag_win.cc
index 50d3e1d0a7b0b498c06a0a0d5ec1b62c480e2c6a..0f20cfe2b6ce4c0329fc39c36e94829b3c8db0be 100644
--- a/content/browser/web_contents/web_contents_drag_win.cc
+++ b/content/browser/web_contents/web_contents_drag_win.cc
@@ -177,7 +177,8 @@ void WebContentsDragWin::StartDragging(const WebDropData& drop_data,
options.message_loop_type = MessageLoop::TYPE_UI;
if (drag_drop_thread_->StartWithOptions(options)) {
gfx::Display display =
- gfx::Screen::GetDisplayNearestWindow(web_contents_->GetNativeView());
+ gfx::Screen::GetNativeScreen()->GetDisplayNearestWindow(
+ web_contents_->GetNativeView());
ui::ScaleFactor scale_factor = ui::GetScaleFactorFromScale(
display.device_scale_factor());
drag_drop_thread_->message_loop()->PostTask(
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698