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

Unified Diff: ui/views/view.h

Issue 145033006: views: Make View::set_border() take a scoped_ptr<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Further renaming Created 6 years, 11 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/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index aba1194ea2f5b1ed3a77d42604437a39e2e6df84..54bc2eff063d665ff21071a622fea0d29feeda31 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -513,7 +513,8 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
Background* background() { return background_.get(); }
// The border object is owned by this object and may be NULL.
- void set_border(Border* b);
+ void SetBorder(scoped_ptr<Border> b);
+ void ClearBorder();
sky 2014/01/23 15:30:54 Why do we need ClearBorder? I get that it saves so
Elliot Glaysher 2014/01/23 18:55:26 Because it's really visually ugly and not clear at
sky 2014/01/23 19:39:36 That argument applies anywhere we take a scoped_pt
const Border* border() const { return border_.get(); }
Border* border() { return border_.get(); }

Powered by Google App Engine
This is Rietveld 408576698