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

Unified Diff: ui/views/view.cc

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.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 9e6d59df3ed405ff8e039bf7d9ce0534ee6cd443..7c0b4a406caac96ad0e3e3effa2984321757a8ae 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -804,8 +804,12 @@ void View::set_background(Background* b) {
background_.reset(b);
}
-void View::set_border(Border* b) {
- border_.reset(b);
+void View::SetBorder(scoped_ptr<Border> b) {
+ border_ = b.Pass();
+}
+
+void View::ClearBorder() {
+ border_.reset();
}
ui::ThemeProvider* View::GetThemeProvider() const {
« ui/views/view.h ('K') | « ui/views/view.h ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698