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

Unified Diff: ui/views/widget/widget.h

Issue 2173033002: Make various views SetShape() methods take an unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 months 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 | « ui/views/widget/native_widget_private.h ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index 4e1617fde7a3e360bd48b065c4b9e152cb409eeb..a92dbce7282d83e4dd9e6552c5be1468a6d444c3 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -8,7 +8,6 @@
#include <map>
#include <memory>
#include <set>
-#include <stack>
#include <string>
#include <vector>
@@ -59,7 +58,7 @@ class NativeTheme;
class OSExchangeData;
class ThemeProvider;
class Window;
-}
+} // namespace ui
namespace views {
@@ -476,8 +475,8 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
void StackBelow(gfx::NativeView native_view);
// Sets a shape on the widget. Passing a NULL |shape| reverts the widget to
- // be rectangular. Takes ownership of |shape|.
- void SetShape(SkRegion* shape);
+ // be rectangular.
+ void SetShape(std::unique_ptr<SkRegion> shape);
// Hides the widget then closes it after a return to the message loop.
virtual void Close();
« no previous file with comments | « ui/views/widget/native_widget_private.h ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698