diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-04 00:38:45 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-04 00:38:45 +0000 |
commit | b7aaf42c6a4a3ce2b45801079f6f7dbea073d0e8 (patch) | |
tree | 312d25b9356bfc94bdff0983a831dcd6968d05e8 /base/scoped_handle_win.h | |
parent | eebc0b413d66975e86be3814103438c3ec154bec (diff) | |
download | chromium_src-b7aaf42c6a4a3ce2b45801079f6f7dbea073d0e8.zip chromium_src-b7aaf42c6a4a3ce2b45801079f6f7dbea073d0e8.tar.gz chromium_src-b7aaf42c6a4a3ce2b45801079f6f7dbea073d0e8.tar.bz2 |
Gets find bar animation/clipping to work on views/gtk.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/340077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30903 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/scoped_handle_win.h')
-rw-r--r-- | base/scoped_handle_win.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/base/scoped_handle_win.h b/base/scoped_handle_win.h index dbd0627..6375ad9 100644 --- a/base/scoped_handle_win.h +++ b/base/scoped_handle_win.h @@ -168,6 +168,12 @@ class ScopedGDIObject { return *this; } + T release() { + T object = object_; + object_ = NULL; + return object; + } + operator T() { return object_; } private: @@ -182,7 +188,7 @@ class ScopedGDIObject { // Typedefs for some common use cases. typedef ScopedGDIObject<HBITMAP> ScopedBitmap; -typedef ScopedGDIObject<HRGN> ScopedHRGN; +typedef ScopedGDIObject<HRGN> ScopedRegion; typedef ScopedGDIObject<HFONT> ScopedHFONT; |