diff options
author | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-09 19:49:32 +0000 |
---|---|---|
committer | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-09 19:49:32 +0000 |
commit | 5d870f2ee49dfb4fb11b4289048547a0bd3c23e5 (patch) | |
tree | b46a4c912b7f3361d0aa141790635e9689373420 /chrome/browser/views/constrained_window_win.cc | |
parent | 357cf11306e0f7d56fbb808076276fa9519a4967 (diff) | |
download | chromium_src-5d870f2ee49dfb4fb11b4289048547a0bd3c23e5.zip chromium_src-5d870f2ee49dfb4fb11b4289048547a0bd3c23e5.tar.gz chromium_src-5d870f2ee49dfb4fb11b4289048547a0bd3c23e5.tar.bz2 |
Make the bottom edges of the opaque frame rounded.
BUG=40024
TEST=On a non-AeroGlass Windows machine, verify that the bottom edges of the Window are rounded.
Review URL: http://codereview.chromium.org/1560021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44115 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/constrained_window_win.cc')
-rw-r--r-- | chrome/browser/views/constrained_window_win.cc | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/chrome/browser/views/constrained_window_win.cc b/chrome/browser/views/constrained_window_win.cc index 488f1a4..c70ec75 100644 --- a/chrome/browser/views/constrained_window_win.cc +++ b/chrome/browser/views/constrained_window_win.cc @@ -34,6 +34,7 @@ #include "views/window/client_view.h" #include "views/window/non_client_view.h" #include "views/window/window_resources.h" +#include "views/window/window_shape.h" using base::TimeDelta; @@ -349,24 +350,7 @@ int ConstrainedWindowFrameView::NonClientHitTest(const gfx::Point& point) { void ConstrainedWindowFrameView::GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) { DCHECK(window_mask); - - // Redefine the window visible region for the new size. - window_mask->moveTo(0, 3); - window_mask->lineTo(1, 2); - window_mask->lineTo(1, 1); - window_mask->lineTo(2, 1); - window_mask->lineTo(3, 0); - - window_mask->lineTo(SkIntToScalar(size.width() - 3), 0); - window_mask->lineTo(SkIntToScalar(size.width() - 2), 1); - window_mask->lineTo(SkIntToScalar(size.width() - 1), 1); - window_mask->lineTo(SkIntToScalar(size.width() - 1), 2); - window_mask->lineTo(SkIntToScalar(size.width()), 3); - - window_mask->lineTo(SkIntToScalar(size.width()), - SkIntToScalar(size.height())); - window_mask->lineTo(0, SkIntToScalar(size.height())); - window_mask->close(); + views::GetDefaultWindowMask(size, window_mask); } void ConstrainedWindowFrameView::EnableClose(bool enable) { |