From 79cea75c62c965f11926b723b77c3ecdf39f4a42 Mon Sep 17 00:00:00 2001 From: "oshima@chromium.org" Date: Thu, 26 Jul 2012 02:17:23 +0000 Subject: Fix coordinates in tab detach/drag and multi window resizer. ToplevelWindowEventFilter: * Use location in root window for drag_location DocInfo::GetLocalProcessWindowAtPoint * Use ScreenPositionClient to convert a point in screen to window * Use correct root window at the position. MultiWindowResizer * Use ScreenPositionClient to convert a point in screen to window. * show_bounds_ should be screen coordinates. I also renamed {screen|parent}_{location|position| to {location|position}_in_{screen|parent} to be more explicit and consistent with the rest of the code. I'll work on the test separately as we discussed offline. BUG=138997,138868 TEST=manual Review URL: https://chromiumcodereview.appspot.com/10827022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148478 0039d316-1c4b-4281-b951-d872f2087c98 --- ash/screen_ash.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ash/screen_ash.h') diff --git a/ash/screen_ash.h b/ash/screen_ash.h index d150d4b..8c57322 100644 --- a/ash/screen_ash.h +++ b/ash/screen_ash.h @@ -7,10 +7,12 @@ #include "ash/ash_export.h" #include "base/compiler_specific.h" -#include "ui/gfx/insets.h" -#include "ui/gfx/rect.h" #include "ui/gfx/screen_impl.h" +namespace gfx { +class Rect; +} + namespace ash { // Aura implementation of gfx::Screen. Implemented here to avoid circular -- cgit v1.1