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

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller2.cc

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 8 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/tabs/tab_drag_controller2.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller2.cc b/chrome/browser/ui/views/tabs/tab_drag_controller2.cc
index a664f83e026fd3509be76f471b9a8c637ebec672..05bb2d2a4e50ce7fa479e10c636b004af6ba6e74 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller2.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller2.cc
@@ -502,8 +502,8 @@ gfx::Point TabDragController2::GetWindowCreatePoint() const {
}
// If the cursor is outside the monitor area, move it inside. For example,
// dropping a tab onto the task bar on Windows produces this situation.
- gfx::Rect work_area = gfx::Screen::GetMonitorWorkAreaNearestPoint(
- cursor_point);
+ gfx::Rect work_area = gfx::Screen::GetMonitorNearestPoint(
+ cursor_point).work_area();
if (!work_area.IsEmpty()) {
if (cursor_point.x() < work_area.x())
cursor_point.set_x(work_area.x());

Powered by Google App Engine
This is Rietveld 408576698