diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-19 14:58:40 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-19 14:58:40 +0000 |
commit | dc3785502ba13caa8680579d948f476cbb991f3a (patch) | |
tree | 8291afa474499aab4550fa54686f0baca420db69 /chrome/browser/dock_info.h | |
parent | 159f77627c71bc666863cde38a358281d8b5fe0d (diff) | |
download | chromium_src-dc3785502ba13caa8680579d948f476cbb991f3a.zip chromium_src-dc3785502ba13caa8680579d948f476cbb991f3a.tar.gz chromium_src-dc3785502ba13caa8680579d948f476cbb991f3a.tar.bz2 |
Changes docking behavior to not offer a maximize drop target if there
is a maxmized tabbed browser on the monitor already. I don't feel this
is the right long term behavior, but until we figure that out I'm
going with this.
BUG=4878
TEST=maximize a tabbed browser, drag a tab out of the tabbed browser
toward the top of the screen and make sure you aren't offered a
dock target. Now restore the tabbed browser, drag a tab toward the
top of the screen and make sure you are offered a maximized drop
target.
Review URL: http://codereview.chromium.org/14858
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dock_info.h')
-rw-r--r-- | chrome/browser/dock_info.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/dock_info.h b/chrome/browser/dock_info.h index 819322e..ee8c61b 100644 --- a/chrome/browser/dock_info.h +++ b/chrome/browser/dock_info.h @@ -119,8 +119,10 @@ class DockInfo { // If screen_loc is close enough to the hot spot given by |x| and |y|, the // type and hot_spot are set from the supplied parameters. This is used - // internally, there is no need to invoke this otherwise. - bool CheckMonitorPoint(const gfx::Point& screen_loc, + // internally, there is no need to invoke this otherwise. |monitor| gives the + // monitor the location is on. + bool CheckMonitorPoint(HMONITOR monitor, + const gfx::Point& screen_loc, int x, int y, Type type); |