summaryrefslogtreecommitdiffstats
path: root/views/widget/widget_win.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 01:15:59 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 01:15:59 +0000
commit6c856ae733bf8d1f187ec5b93e07216ace0c4693 (patch)
tree1bca8fe2359b7334d99bfba154876e38ba319688 /views/widget/widget_win.cc
parent1f97d19d40c07ecc87070a9dd616f966f9f7619e (diff)
downloadchromium_src-6c856ae733bf8d1f187ec5b93e07216ace0c4693.zip
chromium_src-6c856ae733bf8d1f187ec5b93e07216ace0c4693.tar.gz
chromium_src-6c856ae733bf8d1f187ec5b93e07216ace0c4693.tar.bz2
Revert 30903 - Gets find bar animation/clipping to work on views/gtk.
BUG=none TEST=none Review URL: http://codereview.chromium.org/340077 TBR=sky@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30913 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/widget_win.cc')
-rw-r--r--views/widget/widget_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/widget/widget_win.cc b/views/widget/widget_win.cc
index a3dc3ce..e0edee8 100644
--- a/views/widget/widget_win.cc
+++ b/views/widget/widget_win.cc
@@ -144,8 +144,8 @@ void WidgetWin::MoveAbove(Widget* other) {
bounds.width(), bounds.height(), SWP_NOACTIVATE);
}
-void WidgetWin::SetShape(gfx::NativeRegion region) {
- SetWindowRgn(region, TRUE);
+void WidgetWin::SetShape(const gfx::Path& shape) {
+ SetWindowRgn(shape.CreateHRGN(), TRUE);
}
void WidgetWin::Close() {