diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-26 02:17:23 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-26 02:17:23 +0000 |
commit | 79cea75c62c965f11926b723b77c3ecdf39f4a42 (patch) | |
tree | 253265acc0184950ea9143e5426f5445b6e54b00 /ash/screen_ash.h | |
parent | a281638a8fa79d4eeee796a46188f0df37903910 (diff) | |
download | chromium_src-79cea75c62c965f11926b723b77c3ecdf39f4a42.zip chromium_src-79cea75c62c965f11926b723b77c3ecdf39f4a42.tar.gz chromium_src-79cea75c62c965f11926b723b77c3ecdf39f4a42.tar.bz2 |
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
Diffstat (limited to 'ash/screen_ash.h')
-rw-r--r-- | ash/screen_ash.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 |