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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host.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
Index: ui/views/widget/desktop_aura/desktop_window_tree_host.h
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host.h b/ui/views/widget/desktop_aura/desktop_window_tree_host.h
index f12a2318fc7d45962f1ab024603603dfd80e015a..17c38520e74a509e57242613c00197d295f3b618 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host.h
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host.h
@@ -19,7 +19,7 @@ class Window;
namespace client {
class DragDropClient;
}
-}
+} // namespace aura
namespace gfx {
class ImageSkia;
@@ -95,8 +95,8 @@ class VIEWS_EXPORT DesktopWindowTreeHost {
virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0;
// Sets the shape of the root window. If |native_region| is NULL then the
- // window reverts to rectangular. Takes ownership of |native_region|.
- virtual void SetShape(SkRegion* native_region) = 0;
+ // window reverts to rectangular.
+ virtual void SetShape(std::unique_ptr<SkRegion> native_region) = 0;
virtual void Activate() = 0;
virtual void Deactivate() = 0;

Powered by Google App Engine
This is Rietveld 408576698