From e62090e3bd77a23a23e350d38776fd56dd8c74fc Mon Sep 17 00:00:00 2001 From: "beng@google.com" Date: Wed, 10 Sep 2008 18:05:11 +0000 Subject: Fix grab bag of AeroGlassFrame issues: - better names and documentation for varions kOnstants in the AeroGlassNonClientView - AeroGlassFrame now uses the actual bounds of the tabstrip to adjust the DWM frame, rather than hard-coding constants. - fix bug in hit testing that meant that tabs weren't selectable... wrong coordinate system used for one function call... not sure how this didn't affect XP?!! B=1031854 Review URL: http://codereview.chromium.org/1882 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1996 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/frame/browser_view2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/views/frame/browser_view2.cc') diff --git a/chrome/browser/views/frame/browser_view2.cc b/chrome/browser/views/frame/browser_view2.cc index 607ddb0..b89cadf 100644 --- a/chrome/browser/views/frame/browser_view2.cc +++ b/chrome/browser/views/frame/browser_view2.cc @@ -696,7 +696,7 @@ int BrowserView2::NonClientHitTest(const gfx::Point& point) { CPoint point_in_tabstrip_coords(point.ToPOINT()); View::ConvertPointToView(GetParent(), tabstrip_, &point_in_tabstrip_coords); if (tabstrip_->HitTest(point_in_tabstrip_coords)) { - if (tabstrip_->PointIsWithinWindowCaption(point_in_view_coords)) + if (tabstrip_->PointIsWithinWindowCaption(point_in_tabstrip_coords)) return HTCAPTION; return HTCLIENT; } -- cgit v1.1