diff options
author | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-10 01:44:21 +0000 |
---|---|---|
committer | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-10 01:44:21 +0000 |
commit | c20add7be6d28fe0aa9325a73b3dcaeca8c07d89 (patch) | |
tree | 621c7eab02451d0dc0049372b2776454a13a3f81 /chrome/browser/views/frame/browser_frame_win.cc | |
parent | 8f5602c711b0ae644c8935a12f74429cd339c5ad (diff) | |
download | chromium_src-c20add7be6d28fe0aa9325a73b3dcaeca8c07d89.zip chromium_src-c20add7be6d28fe0aa9325a73b3dcaeca8c07d89.tar.gz chromium_src-c20add7be6d28fe0aa9325a73b3dcaeca8c07d89.tar.bz2 |
Round the top left and right edges of the toolbar.
BUG=40022
TEST=Make sure the top left and right eges of the toolbar are rounded.
Review URL: http://codereview.chromium.org/1606021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44177 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame/browser_frame_win.cc')
-rw-r--r-- | chrome/browser/views/frame/browser_frame_win.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/views/frame/browser_frame_win.cc b/chrome/browser/views/frame/browser_frame_win.cc index d12963f..0092fa7 100644 --- a/chrome/browser/views/frame/browser_frame_win.cc +++ b/chrome/browser/views/frame/browser_frame_win.cc @@ -28,6 +28,9 @@ // static static const int kClientEdgeThickness = 3; static const int kTabDragWindowAlpha = 200; +// We need to offset the DWMFrame into the toolbar so that the blackness +// doesn't show up on our rounded corners. +static const int kDWMFrameTopOffset = 3; // static (Factory method.) BrowserFrame* BrowserFrame::Create(BrowserView* browser_view, @@ -303,7 +306,8 @@ void BrowserFrameWin::UpdateDWMFrame() { margins.cyTopHeight += GetSystemMetrics(SM_CYSIZEFRAME); } else { margins.cyTopHeight = - GetBoundsForTabStrip(browser_view_->tabstrip()).bottom(); + GetBoundsForTabStrip(browser_view_->tabstrip()).bottom() + + kDWMFrameTopOffset; } } } else { |