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

Unified Diff: ui/views/controls/button/label_button_border.h

Issue 2637383003: Change Painter factory functions to unique_ptr (Closed)
Patch Set: msw review Created 3 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
« no previous file with comments | « ui/views/bubble/bubble_border.cc ('k') | ui/views/controls/button/label_button_border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/label_button_border.h
diff --git a/ui/views/controls/button/label_button_border.h b/ui/views/controls/button/label_button_border.h
index fabbde5e60e4fde0a3996f93898df23608fbeba0..cdb5dc195d5640fedb59d56848c96ad37a9e1558 100644
--- a/ui/views/controls/button/label_button_border.h
+++ b/ui/views/controls/button/label_button_border.h
@@ -58,7 +58,9 @@ class VIEWS_EXPORT LabelButtonAssetBorder : public LabelButtonBorder {
// Get or set the painter used for the specified |focused| button |state|.
// LabelButtonAssetBorder takes and retains ownership of |painter|.
Painter* GetPainter(bool focused, Button::ButtonState state);
- void SetPainter(bool focused, Button::ButtonState state, Painter* painter);
+ void SetPainter(bool focused,
+ Button::ButtonState state,
+ std::unique_ptr<Painter> painter);
private:
// The painters used for each unfocused or focused button state.
« no previous file with comments | « ui/views/bubble/bubble_border.cc ('k') | ui/views/controls/button/label_button_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698