Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2536)

Unified Diff: base/scoped_handle_win.h

Issue 342116: Attempt 2 at:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/scoped_handle_gtk.h ('k') | chrome/browser/dock_info_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/scoped_handle_win.h
===================================================================
--- base/scoped_handle_win.h (revision 30929)
+++ base/scoped_handle_win.h (working copy)
@@ -168,6 +168,12 @@
return *this;
}
+ T release() {
+ T object = object_;
+ object_ = NULL;
+ return object;
+ }
+
operator T() { return object_; }
private:
@@ -182,7 +188,7 @@
// Typedefs for some common use cases.
typedef ScopedGDIObject<HBITMAP> ScopedBitmap;
-typedef ScopedGDIObject<HRGN> ScopedHRGN;
+typedef ScopedGDIObject<HRGN> ScopedRegion;
typedef ScopedGDIObject<HFONT> ScopedHFONT;
« no previous file with comments | « base/scoped_handle_gtk.h ('k') | chrome/browser/dock_info_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698